Skip to content

story(NavigationStack): Settings Heavy Commit, for device evidence - #12981

Merged
cixzhang merged 3 commits into
mainfrom
story/navstack-heavy-commit
Nov 20, 2026
Merged

cixzhang merged 3 commits into
mainfrom
story/navstack-heavy-commit

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

What this adds

A story-only variant of the Lab NavigationStack Settings story, Lab/NavigationStack › Settings Heavy Commit, used to record device evidence of a push after a heavy commit.

  • General (heavy commit): the pushed screen blocks the main thread for 300 ms in its layout effect, inside the push's own commit.
  • General (heavy after): the first moving frame blocks for 300 ms.
  • Readout: a fixed readout lists the pushed card's travelled share in the first eight frames, and whether the page runs as a Home Screen app (navigator.standalone). A screenshot carries the result, and no page script is needed.

Opened top-level through Storybook's iframe.html?id=lab-navigationstack--settings-heavy-commit and added to an iPhone's Home Screen, it gives a standalone, top-level reproduction route for the NavigationStack WebKit first-frame question (#12737).

Scope

  • Story only (apps/storybook/stories/NavigationStack.stories.tsx): no Changeset, no release, no component change.
  • Public text contains no internal Meta context.

Validation

  • ESLint and the Storybook typecheck on the story file: clean.

Overlap checked: #12737 (the NavigationStack WebKit change this story gives evidence for; a separate evidence-only draft carries this story on #12737's head)

…ce evidence

The pushed screen blocks the main thread for 300 ms in the push's commit,
or in its first moving frame. A readout lists the pushed card's travelled
share in the first eight frames and whether the page runs as a Home Screen
app. Story only.
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 20, 2026 2:59am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026
@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 20, 2026, 4:37 AM UTC

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 2fed0c4

Storybook · Sandbox · built from this PR's head

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 1e1d6e0

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: one fix to the story's readout before it can carry device evidence.

  • The readout header (apps/storybook/stories/NavigationStack.stories.tsx, line 215) does not record Reduce Motion, so with it on every traced frame reads 100.0%, the same as a push that skips to its end, and "heavy after" holds on the first frame; print matchMedia('(prefers-reduced-motion: reduce)').matches in the header line.

Otherwise the story does what the description says: both holds land where stated, the story id resolves, and ESLint and the Storybook typecheck are clean on the file. #12737 has since closed unmerged, so whether this story still lands as a standing reproduction route is your call; if it does, the fix above applies.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rules since the last review (0): none.
  • Claim: adds a story-only variant of the Settings story, Settings Heavy Commit: verified (story file lines 221-229; Storybook index).
  • Claim: heavy commit blocks 300 ms in the pushed screen's layout effect, inside the push's commit: verified (lines 114-121; the readout stays at 0.0% through the hold).
  • Claim: heavy after blocks the first moving frame for 300 ms: verified with Reduce Motion off (lines 148-151); false with it on, where the hold lands on the first frame.
  • Claim: the readout lists the first eight frames' travel and whether the page runs from the Home Screen: verified (lines 136-158, 165-167, 215).
  • Claim: a screenshot carries the result, with no page script: false with Reduce Motion on (finding above).
  • Claim: the story opens top-level at iframe.html?id=lab-navigationstack--settings-heavy-commit: verified (Storybook index).
  • Claim: added to an iPhone Home Screen it gives a standalone route: not checkable without a device; the readout's standalone line reports it on each screenshot.
  • Claim: story only, with no changeset, release or component change: verified (one file changed).
  • Claim: public text holds no internal context: verified.
  • Claim: ESLint and the Storybook typecheck are clean on the story file: verified.
  • Claim: it gives a reproduction route for the NavigationStack WebKit first-frame question in #12737: verified as a route; that pull request has since closed unmerged.
  • File apps/storybook/stories/NavigationStack.stories.tsx: one finding (readout header, line 215).

Automated review (maintainer link)

With Reduce Motion on, the push cross-fades and every frame reads 100%, as
a push that skips to its end would. The readout header now says whether
Reduce Motion is on.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 18700d6

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: the story's readout now records Reduce Motion, which was the one change the last review asked for. CI has not run on this head yet because the pull request is a draft; it runs once the pull request is marked ready for review.

There are no blocking findings. #12737 has closed unmerged, so keeping this story as a standing reproduction route is your call.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none.
  • Claim: adds a story-only variant of the Settings story, Settings Heavy Commit: verified (story file lines 225-233; Storybook index).
  • Claim: heavy commit blocks the main thread for 300 ms in the pushed screen's layout effect, inside the push's commit: verified (lines 114-122; the readout stays at 0.0% through the hold).
  • Claim: heavy after blocks the first moving frame for 300 ms: verified (lines 148-151); with Reduce Motion on, the card lands at once and the hold falls on the first frame, which the header now records.
  • Claim: the readout lists the card's share in the first eight frames and whether the page runs as a Home Screen app: verified (lines 136-158, 165-167, 219).
  • Claim: a screenshot carries the result, with no page script: verified (the header also prints Reduce Motion, lines 168-171 and 219).
  • Claim: the story opens top-level through its own iframe URL: verified (Storybook index).
  • Claim: added to an iPhone Home Screen, it gives a standalone route: not checkable without a device; the readout's standalone field reports it on each screenshot.
  • Claim: story only, with no changeset, release or component change: verified (one file changed).
  • Claim: public text holds no internal context: verified.
  • Claim: ESLint and the Storybook typecheck are clean on the story file: verified.
  • Claim: the story gives a reproduction route for the NavigationStack WebKit first-frame question in #12737: verified as a route; #12737 and its evidence-only copy have since closed unmerged.
  • File apps/storybook/stories/NavigationStack.stories.tsx: clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 20, 2026 02:26
@cixzhang
cixzhang marked this pull request as draft November 20, 2026 02:46
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 2fed0c4

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved: the Settings Heavy Commit story still works as described, and CI and Lint passed on this head once the pull request left draft.

There are no blocking findings. #12737 and the evidence-only draft that carried this story are both closed unmerged, so keeping the story as a standing reproduction route is your call.

Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none.
  • Claim: adds a story-only variant of the Settings story, Settings Heavy Commit: verified (story file lines 225-233; the Storybook index built for this head lists it).
  • Claim: heavy commit blocks the main thread for 300 ms in the pushed screen's layout effect, inside the push's commit: verified (lines 114-122; the readout holds at 0.0% across a 300 ms gap before the card moves).
  • Claim: heavy after blocks the first moving frame for 300 ms: verified (lines 148-151; the readout moves 2.6%, then shows a 300 ms gap).
  • Claim: the readout lists the card's share in the first eight frames and whether the page runs as a Home Screen app: verified (lines 124-159, 165-167, 219).
  • Claim: a screenshot carries the result, with no page script: verified (fixed readout at lines 206-220, which also records Reduce Motion).
  • Claim: the story opens top-level through its own story id: verified (Storybook index).
  • Claim: added to an iPhone Home Screen, it gives a standalone route: not checkable without a device; the readout's standalone field reports it on each screenshot.
  • Claim: story only, with no changeset, release or component change: verified (one file changed).
  • Claim: public text holds no internal context: verified.
  • Claim: ESLint and the Storybook typecheck are clean on the story file: verified (CI's lint at this head reports nothing in the file; CI's Storybook typecheck passes).
  • Claim: the story gives a reproduction route for the NavigationStack WebKit first-frame question in #12737, and a separate evidence-only draft carries it on that head: verified as a route; #12737 and that draft are closed unmerged.
  • File apps/storybook/stories/NavigationStack.stories.tsx: clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 20, 2026 04:13
@cixzhang
cixzhang merged commit 3920a07 into main Nov 20, 2026
147 checks passed
@github-actions
github-actions Bot deleted the story/navstack-heavy-commit branch November 20, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — 2fed0c46 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant