Repository navigation
Redesign the site around type, rules and live data - #112
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| /* ---------- 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++; |
There was a problem hiding this comment.
💡 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 👍 / 👎
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
💡 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
Skip the simulation and main loop when nothing on the page consumes it (place before the history pre-fill and the loop start).🤖 Prompt for agentsReview coverage🤖 Auto-approval Approved 📋 Rules No rules evaluated 🧪 Functional validation Not enabled · Set up OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
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.main).docs/fonts/LICENSES.txt, WebP copies of the UI screenshots, a poster for the Touch Bar clip, and manifest colours updated.Verification
Loaded
index.html, the three Mac App Store pages and404.htmlin a headless browser: no console errors, no failed image requests.Compared every
h1/h2/h3/p/li/figcaptiontext in the App Store pages againstmain: 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.