Skip to content

Redesign the site around type, rules and live data - #112

Merged
offyotto merged 3 commits into
mainfrom
site/paper-redesign
Oct 6, 2026
Merged

offyotto merged 3 commits into
mainfrom
site/paper-redesign

Conversation

@offyotto

@offyotto offyotto commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Change

The site at xnu.is-a.dev had drifted into a generic dashboard look: hairline cards, pill buttons, status chips and numbered eyebrows carried the hierarchy instead of the content. This rebuilds docs/ around typography, rules, whitespace and the product itself.

  • New paper-and-ink stylesheet that follows the system light/dark preference; the theme toggle is gone. Colour is used only inside data (metric tints in charts, orange for live operating points).
  • Home page: large headline, a four-number live strip, a full-width sixty-second trace with labels at the line ends, a seven-row readings sheet with inline sparklines, an editorial collage of real screenshots, alternating feature rows, the editable fan curve, the Touch Bar clip, a ruled privacy list, a plain comparison table, two install columns with the Homebrew command, and plain FAQ disclosures.
  • Removed all pills, badges, chips, status dots, numbered eyebrows, floating labels, cards, the mock menu bar and Touch Bar, tabs, scroll-reveal animations and the closing pulse canvas.
  • Copy checked against the app source and README; unverifiable claims removed.
  • Mac App Store pages and the 404 regenerated with the same chrome. Every original sentence on the App Store pages is preserved verbatim (checked element by element against main).
  • Self-hosted fonts (Cabinet Grotesk, Satoshi, Geist Mono) with licences in docs/fonts/LICENSES.txt, WebP copies of the UI screenshots, a poster for the Touch Bar clip, and manifest colours updated.
  • The strict CSP is unchanged: no inline styles or scripts; JS sets CSS custom properties only.

Verification

  • Loaded index.html, the three Mac App Store pages and 404.html in a headless browser: no console errors, no failed image requests.

  • Compared every h1/h2/h3/p/li/figcaption text in the App Store pages against main: nothing missing.

  • Exercised the fan curve (drag and arrow keys), the temperature slider, the hand-back control, the copy action and the FAQ disclosures.

  • Checked light and dark schemes, the no-JS fallback (static trace) and the reduced-motion path.

  • Tests cover the changed behavior.

  • User-facing changes are documented.

  • Security-sensitive changes were reviewed for privilege, XPC, signing, and SMC impact.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T14:50:51.016454Z cde013e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cde013ec6b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/index.html Resolved
Comment thread docs/script.js Resolved
Comment thread docs/styles.css Resolved
@offyotto
offyotto merged commit e166efb into main Oct 6, 2026
6 checks passed
Comment thread docs/script.js
Comment on lines +617 to +631
/* ---------- main loop ---------- */

function drawAll(phase, force) {
for (var i = 0; i < sparks.length; i++) sparks[i].draw(phase, force);
if (trace) trace.draw(phase, force);
}

updateText();
drawAll(0, true);

var textEvery = HZ / 2; // numbers settle at 2 Hz so they stay readable
var stepCount = 0;

function afterStep() {
stepCount++;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Performance: Animation loop runs forever on pages with no live elements

script.js now loads on the three Mac App Store pages and the 404 page, which only need the menu toggle. Nothing checks whether the page has any live elements, so on those pages the script still pre-steps the simulation 600 times and then runs a requestAnimationFrame loop on every frame for as long as the tab is visible. That loop does simulation and draw work for no visible output and keeps the page from going idle, which costs battery on laptops. Fix: only start the simulation and frame loop when the page has a trace, sparkline, lab or live text binding.

Skip the simulation and main loop when nothing on the page consumes it (place before the history pre-fill and the loop start).:

var hasLive = $("[data-trace]") || $("[data-lab]") || $("canvas[data-spark]") || $("[data-r]");
if (!hasLive) return; // menu and copy handlers above are already wired
  • Apply fix

Check the box to apply the fix or reply for a change | Was this helpful? React with 👍 / 👎

@gitar-bot

gitar-bot Bot commented Oct 6, 2026

Copy link
Copy Markdown
Code Review 👍 Approved with suggestions 0 closed / 1 findings

🟡 Medium risk · The redesign changes live readings and interactive fan-curve behavior.

Comprehensive redesign around typography, rules, and live data with new paper-and-ink stylesheet, reorganized home page, and removed visual chrome (pills, badges, cards, animations). All pages tested for console errors and image requests; App Store copy verified against main. Consider gating the animation loop in script.js to only run on pages with live elements (trace, sparkline, lab, or live text bindings) to avoid battery drain on static pages like the Mac App Store and 404.

Auto-approved: No blocking issues found.
Please see Auto-approve Docs for details on setting custom approval criteria.

💡 Performance: Animation loop runs forever on pages with no live elements

📄 docs/script.js:617-631 📄 docs/Mac-App-Store/privacy/index.html:31 📄 docs/Mac-App-Store/support/index.html:31

script.js now loads on the three Mac App Store pages and the 404 page, which only need the menu toggle. Nothing checks whether the page has any live elements, so on those pages the script still pre-steps the simulation 600 times and then runs a requestAnimationFrame loop on every frame for as long as the tab is visible. That loop does simulation and draw work for no visible output and keeps the page from going idle, which costs battery on laptops. Fix: only start the simulation and frame loop when the page has a trace, sparkline, lab or live text binding.

Skip the simulation and main loop when nothing on the page consumes it (place before the history pre-fill and the loop start).
var hasLive = $("[data-trace]") || $("[data-lab]") || $("canvas[data-spark]") || $("[data-r]");
if (!hasLive) return; // menu and copy handlers above are already wired
🤖 Prompt for agents
Code Review: Comprehensive redesign around typography, rules, and live data with new paper-and-ink stylesheet, reorganized home page, and removed visual chrome (pills, badges, cards, animations). All pages tested for console errors and image requests; App Store copy verified against `main`. Consider gating the animation loop in `script.js` to only run on pages with live elements (trace, sparkline, lab, or live text bindings) to avoid battery drain on static pages like the Mac App Store and 404.

1. 💡 Performance: Animation loop runs forever on pages with no live elements
   Files: docs/script.js:617-631, docs/Mac-App-Store/privacy/index.html:31, docs/Mac-App-Store/support/index.html:31

   `script.js` now loads on the three Mac App Store pages and the 404 page, which only need the menu toggle. Nothing checks whether the page has any live elements, so on those pages the script still pre-steps the simulation 600 times and then runs a `requestAnimationFrame` loop on every frame for as long as the tab is visible. That loop does simulation and draw work for no visible output and keeps the page from going idle, which costs battery on laptops. Fix: only start the simulation and frame loop when the page has a trace, sparkline, lab or live text binding.

   Fix (Skip the simulation and main loop when nothing on the page consumes it (place before the history pre-fill and the loop start).):
   var hasLive = $("[data-trace]") || $("[data-lab]") || $("canvas[data-spark]") || $("[data-r]");
   if (!hasLive) return; // menu and copy handlers above are already wired

Review coverage

🤖 Auto-approval Approved

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@gitar-bot gitar-bot Bot added the gitar-approved Added by Gitar label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gitar-approved Added by Gitar

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant