Repository navigation
docs(spec): AppShell region plugins and Focus Mode - #8410
humbertovirtudes wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
This draft spec can't be approved yet. No current spec covers its new AppShell plugins API and Focus Mode (FR1–FR14), so an engineering owner needs to decide OQ1–OQ4, including whether region descriptors should be able to replace children and padding alongside the existing slot props, or carry only isHidden. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, you can do so yourself. Whatever the decision, these points conflict with current records and need fixing:
- FR7 moves focus to main when the drawer closes, but the current MobileNav contract (FR6) returns focus to an opener that is still connected. Either name that amendment in Current-state impact or make FR7 conform.
- Under reduced motion the record settles changes immediately, but the current reduced-motion design (DR2) requires an opacity-only cross-fade of 200 ms or less on touch screens.
- FR9's
--ease-standardand the animation of the space navigation releases predate the current theme-motion spec (AST-108) and AppShell's FR17. Please reconcile them when you rebase.
[Automated review]
419bbed to
b941f39
Compare
There was a problem hiding this comment.
This draft spec now agrees with the current MobileNav, reduced-motion and theme-motion contracts it cites, and I found no defects in it. Approval waits on an owner decision: no current spec covers the new AppShell plugins API and Focus Mode (FR1–FR14), and FR7 deliberately amends MobileNav's FR6 focus return. An engineering owner needs to settle OQ1–OQ4, in particular whether region descriptors may replace children and padding beside the existing slot props or carry only isHidden, and to accept the FR6 amendment. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; as an engineering owner, you may do so yourself.
- One reading to settle while deciding: with Focus Mode on and no banner, the record does not say whether the shell's header region (its banner landmark and safe-area padding) goes away with the hidden top nav.
[Automated review]
TL;DR This is a specification-only draft for AppShell region plugins and Focus Mode. The rebase reconciles 3 newer motion/focus contracts. OQ1-OQ4 still need an owner decision; no runtime behavior changes.
Exact decision needed
Refs #4255. This draft does not implement or close the feature.
The caller knows whether otherwise identical page content is part of ordinary navigation or a focused task. Removing navigation slots loses state; styling alone cannot coordinate generated drawers, native modal close, and focus. The candidate keeps that task intent at the shell boundary.
Owner decisions remain explicit in OQ1-OQ4: region descriptor and ordering admission, the single preset, effect lifecycle without React Activity on the supported React floor, and restoration of requested drawer state. In particular, replacing
childrenandpaddingthrough descriptors is not approved by this rebase.Existing authority searched
component:AppShell,component:MobileNav,family:layout-regions,family:overlay-dismissal,spec:AST-002,spec:AST-013, and the React runtime and component-theming architecture.design:reduced-motionDR1-DR3,spec:AST-105FR4/FR8, andspec:AST-108FR2/FR4a/FR6.The distinct system boundary is coordination between AppShell visibility, a cooperating MobileNav's native modal lifecycle, and focus handoff to page content. AppShell remains the aggregate API owner; Focus Mode's independent contract belongs to its module. The current canonical owners must receive the approved projections before build.
Decision
Candidate contract:
focusModefirst, then custom own-entry order; region writes compose forward and the last write wins. The first context wrapper is outermost, matching Table.focuspreset hides top/side/mobile navigation and preserves banner, content, padding and independent SideNav state.No owner decision is recorded by this draft.
Rebase reconciliation
component:MobileNavFR6reducedMotion: 'always'enforces the same rules.design:reduced-motionDR1-DR3;spec:AST-108FR4/FR6component:AppShellFR17;spec:AST-105FR4/FR8;spec:AST-108FR2/FR4aThe API example, all 4 open questions, and draft authority metadata are unchanged.
Rejected alternatives
A dedicated focus-mode prop or independent hide props creates a second mechanism instead of the selected plugin direction. Child-component props cannot represent arbitrary existing node slots. Conditional removal loses navigation state; a fragment-only visibility fallback leaves navigation interactive. More presets, augmentation, motion tuning and shortcuts need separate caller-need evidence.
Claim scope and non-goals
Specification records only. No behavior change. No runtime implementation, exports, stories, changesets, theme targets, consumer-doc changes, SideNav collapse/resize changes, or unrelated shell repairs. Main content and its skip target remain available.
Evidence and implementation relationship
The record is grounded in current source and existing canonical contracts. Its verification matrix describes required future evidence, not completed feature tests. The rebase extends that matrix with connected visible/suppressed openers, theme knobs, coarse/fine reduced-motion paths, shared clocks and the no-animated-width constraint.
Implementation remains held until owner decisions are recorded as current authority. A passing check does not approve the proposed API or the MobileNav focus exception.
Writing rubric results
Scope
Validation
node scripts/specs-for-file.mjs <path>and--diff origin/main: completed; concern-routed current records read.node scripts/check-knowledge.mjs: passed, "Knowledge templates and records are aligned."git diff --check: passed.node scripts/pre-review.mjs --head HEAD --json: 0 findings, 0 merge conflicts; only specification records changed.b941f3908fb3592ac6f88a973b805d5265a0a2bf.824e71ea0123402e44e30f3e989e9052b0c2c709.