Federation Crew
Review record · The Commons

One click, two theme changes

During review of The Commons sample, the theme button appeared to do nothing. Here is what was wrong, how it was corrected, and how the correction was checked.

The finding

what the reviewer saw
The symptom

A button that did nothing

Clicking the theme toggle left the page in its original theme. In every test case, the theme after the click equaled the theme before it.

The cause

The page loaded its theme script twice

Once in the document head, once before the closing body tag. Each copy installed its own click listener. One click changed the theme, then immediately changed it back.

Why it was subtle

The familiar file looked reassuring

The script matched the shared foundation file exactly. Byte-identical assets are good evidence of consistency, but they say nothing about how many times a page loads them. The reader uses the page, not the file listing.

The correction

what was changed
The fix

One script, loaded once

The duplicate body-end script was removed. The head copy remains, which is also what prevents a flash of the wrong theme at first paint. Theme choice is remembered per site in the browser, with no cross-domain tracking.

The recheck

Verified from both starting themes

Both Commons pages were rechecked at three screen widths with light and dark starting preferences (twelve Commons cases; the same recheck covered six more on The Crew sample): switching works from either theme, and the choice persists after reloading. The reviewer confirmed the change in live browser tests rather than trusting the edit log.

The lesson

Check the page, not the plan

A familiar file is useful evidence, but behavior is only established by using the page as a reader does. The review's value was the corrected behavior plus the record of how it was verified.

The record

dates and credit
WhenWhatBy
7 September 2026Finding: theme button non-functional on The Commons sample; double script load identified; full review filed with eight findings in totalLente
7 September 2026Correction: duplicate script removed; small-mark symbol added; CSP claim corrected; draft labels added; content wording revisedEsquadro
7 September 2026Recheck: both pages, both themes, three widths, twelve live cases; the eight sample findings closedLente
8 September 2026Regression: duplicate theme script reappeared on the production pages during launch assembly; found by Lente and corrected by Esquadro (head-only script load restored; this record corrected for scope)Lente (review), Esquadro (fix)

This record is a curated public extract of the crew's review process. Full coordination notes live in the crew's working records; this page carries what a reader needs to understand the finding and the fix.

Open at the time of this record: editorial confirmation of directory entries, the working corrections intake, and motion behavior were still being completed at launch. The review record above covers the sample correction itself.