Skip to content

docs(Lightbox): custom items, a title bar, a footer and opt-in plug-ins - #11999

Draft
vjeux wants to merge 8 commits into
meta:mainfrom
vjeux:lightbox/items-and-chrome
Draft

vjeux wants to merge 8 commits into
meta:mainfrom
vjeux:lightbox/items-and-chrome

Conversation

@vjeux

@vjeux vjeux commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

One decision for the spec owner: Lightbox's item model and chrome (DEC-6 to DEC-12 in component:Lightbox). Eight parts need a yes or no:

  1. The new API (FR20–FR25, FR31, AR10). Custom items join media, and each item may carry a title, subtitle, thumbnail and actions. A footer part takes LightboxFilmstrip and LightboxZoomControl from their own imports. They read useLightboxGallery() and useLightboxZoom(). finalFocusRef, as BottomSheet takes it, names where focus returns. With two or more actions, the Actions part joins family:action-groups, as Banner's and Toast's action rows do. Recommended: yes.

  2. Drag-out from the Title part, through createLightboxDragOut (FR29). A drag on the photo pages and closes, so it never drags out (DEC-2). An app whose people drag the photo itself to the desktop today moves that drag to the Title part. Recommended: yes.

  3. The loader plug-in, createLightboxLoader (FR28). Recommended: yes.

  4. Lightbox joins family:overlay-dismissal FR10: a press beside the media closes only when it starts and ends there. As the family's AV4 says, its members also follow FR11, so FR11 names Lightbox too. Today a press that crosses the media's edge either way closes the viewer, so FR10's evidence for Lightbox is an implementation gap. Recommended: yes.

  5. A per-item boundary (FR30): content that throws leaves the chrome and paging standing. Recommended: yes.

  6. initialZoom: 'width' per image (FR27): a zoom start inside DEC-1's photo viewer, not a page-width mode. Recommended: yes. On such an image a trackpad's scroll pans down (FR11). A mouse wheel's notches leave it in place, as for any zoomed photo (spec:AST-094 FR43).

  7. A mouse wheel on an image opened at initialZoom: 'width'. A media app shows tall screenshots on desktops. It asks for a plain wheel to scroll such an image, and ctrl-wheel or a pinch to zoom. spec:AST-094 FR43 says a pan never takes a mouse wheel's notches, so a yes makes an exception to it for these items. This pull request would then add the exception to FR27 and to FR43 before approval. Recommended: yes, since the caller marks the image as a page.

  8. Two non-goals (Ownership boundary). No editing stage inside the viewer: an app's editor opens as its own layer. Lightbox gains no stage slot and no switches that suspend paging, keys or the backdrop. No page-width mode chosen by an image's shape: a tall image opens fitted, and item 6 gives the caller a zoom start instead. Recommended: yes.

Not in this record: the top safe-area inset and pointer maths under a document zoom are defects that ship apart.

Existing authority searched

Decision

Area Contract
Public contract LightboxItem, LightboxAction, the footer part, finalFocusRef, two value hooks, and four opt-in imports.
Behavior A custom item pages and closes by drag as a photo does. Its content keeps its own drags and keys.
End-user impact One viewer for photos, videos and an app's own content, with names and actions.
Builder impact Optional data per item, the Footer slot and a custom item's content, and opt-in imports.
Compatibility Additive, with five changes for existing callers. A consumer preventDefault skips a shortcut. Arrows skip fields and media. With a modifier held, +, - and the arrow pan reach the page. A press that crosses the media's edge no longer closes. A failed image shows a line instead of a broken image.
Review checks Reject any slot but the Footer and a custom item's content. Reject a hook that returns gesture machinery. Reject an opt-in over 0.3 KB where unused.
Governing rules Lightbox DEC-1–DEC-4; the rules above.

Callsite before (spec:AST-002 DEC-9). A gallery that needs a title, a download and a filmstrip builds its own viewer:

<Lightbox isOpen={isOpen} onOpenChange={setIsOpen} media={photos} hasZoom />

After:

import {Lightbox} from '@astryxdesign/core/Lightbox';
import {LightboxFilmstrip} from '@astryxdesign/core/LightboxFilmstrip';
import {LightboxZoomControl} from '@astryxdesign/core/LightboxZoomControl';

const items = files.map(file => ({
  src: file.url,
  alt: file.description,
  title: file.name,
  subtitle: `From ${file.origin}`,
  actions: [
    {label: 'Download', icon: downloadIcon, href: file.downloadUrl, download: file.name},
  ],
}));

<Lightbox
  isOpen={isOpen}
  onOpenChange={setIsOpen}
  media={[...items, {type: 'custom', label: 'Before and after', content: <Comparison />}]}
  hasZoom
  footer={<><LightboxZoomControl /><LightboxFilmstrip /></>}
/>

A caller now decides which items carry a title and actions. It also decides whether to add the footer's components and the plug-ins.

Demos, from #11997 (a preview draft, not for merge):

Rejected alternatives

  • Header and actions slots: each caller would own the bar's layout and its contrast (DEC-8).
  • A caller's own image element: it replaces the element zoom and paging measure (DEC-10).
  • A stage slot that suspends paging and keys for an editor: the editor is the app's own layer.

Claim scope and non-goals

The record covers the item model, the three chrome parts, the hooks, the opt-ins, the failed-item line, initialZoom, finalFocusRef, keys, and FR10's member. Theming targets for the new parts and all motion stay out. Close, Previous, Next and the Counter keep Lightbox's labels and wording, and the dialog's name gives them their context (AR4). Lightbox's measured zoom bounds stay (AV4), and FR32 records their floor: one image pixel per device pixel.

Evidence and implementation relationship

  • A media app hand-builds Lightbox's frame for a title, actions, a filmstrip, a zoom control and a failed-load line. It also needs its own player as an item, expiring upload URLs, and a drag to the desktop.
  • Credit: the custom item comes from #7400 (imdreamrunner) and #3937 (jiunshinn), after issue #2486 (ernestt). This record keeps their shape, label and keyboard rule, and adds the gesture rules.
  • This pull request changes records only.
  • After main's fix(BottomSheet): a scrim press dismisses only when it starts and ends on the scrim (#11589) #11611, FR10's member list keeps BottomSheet and BottomSheetSwitcher beside Lightbox.

Writing rubric results

  • R1 narration: none.
  • R2 research in the record: none.
  • R3 evidence naming a change: none; new rows cite DEC-6–DEC-12.
  • R4 rejected alternatives over one line or outside a decision: none.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none.
  • R7 project status (build status or work order): one implementation-gap bullet, in Current-state impact.

Scope

Components: Lightbox, action-groups family, overlay-dismissal family

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: passes.
  • Prettier and git diff --check: clean.

@vercel

vercel Bot commented Nov 16, 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 22, 2026 1:57pm UTC

Request Review

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

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 22, 2026, 2:04 PM UTC

Amends component:Lightbox for a gallery that hosts the caller's own
content beside photos and videos, and for the chrome a media app needs.

- Custom items are a third kind inside `media` (DEC-6). They page and
  close by drag like a fitted photo, while their content keeps its own
  drags and keys (DEC-7, ORD4, AR3). Before the touch modules load,
  they page and close as a photo does then.
- An item's title, subtitle and actions are data that Lightbox renders
  in its top bar; the title names the dialog (DEC-8).
- One Footer part takes a filmstrip or a zoom control from their own
  imports, read through value hooks (DEC-9, PR3).
- A loader and a drag-out from the Title part plug in (DEC-10).
- A failed image or a throwing item stays inside the item (DEC-11).
- A caller may open an image at the viewer's width (DEC-12).
- `finalFocusRef`, as BottomSheet takes it, names where focus returns.

family:overlay-dismissal FR10 adds Lightbox: a press beside the media
closes only when it starts and ends there. The decisions are pending
the spec owner.
@vjeux
vjeux force-pushed the lightbox/items-and-chrome branch from 5a3a153 to ee5eecc Compare November 16, 2026 05:55
@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown

Deployment failed for project astryx with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

FR32 records the floor of Lightbox's maximum zoom: never less than the
zoom that shows one image pixel per device pixel, so a person can check
a picture's pixels on any screen. The measured multiple past it stays
the motion table's (AV4). It is a statement of the current zoom limit.

@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.

Approval waits on an engineering owner's decision about the new Lightbox requirements, and three record fixes are needed as well.

What must be settled: whether component:Lightbox takes FR20-FR32, ORD4, AR10, AV5, PR3, DEC-6 to DEC-12 and the reworded AR3 and AR4, and whether Lightbox joins family:overlay-dismissal FR10. The owners also need to rule on the description's item 7: a plain mouse wheel scrolling an image opened at initialZoom: 'width', which would be an exception to spec:AST-094 FR43. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

Fix before approval:

  • The new FR10 verification row in docs/families/overlay-dismissal.md cites Lightbox.test.tsx backdrop cases, but Lightbox.test.tsx asserts that a press starting beside the photo and released on it closes the viewer, so mark Lightbox's FR10 evidence as an implementation gap and name both press directions in the Lightbox gap line.
  • The compatibility list in Lightbox.spec.md says two observable changes reach existing callers, but FR10's backdrop press and AR3's modifier rule (Ctrl+= and Ctrl+- stop zooming the photo) change for them too, so list both there and in the description.
  • The bare (FR12, FR21) in the [experimental] compatibility line now points at the new custom-item FR21 instead of spec:AST-017 FR21, so qualify it.
Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: the pull request changes knowledge records only. Verified: two Markdown records change.
  • Claim: the knowledge check passes. Verified for every check that runs without git; its two git-based checks could not run in the review environment.
  • Claim: Prettier and the whitespace check are clean. Verified.
  • Claim: the current Lightbox record covers photos and videos, with no chrome content and no values for a page to read. Verified against the record's intent and FR1-FR19.
  • Claim: the touch spec's FR43 keeps a mouse wheel's notches from panning. Verified.
  • Claim: another open pull request already uses DEC-5, so the new decisions start at DEC-6. Verified: that pull request adds DEC-5.
  • Claim: FR32 records the shipped maximum-zoom floor. Verified in zoomStage.ts and zoomStage.test.ts.
  • Claim: compatibility is additive, with two key changes. False (second fix above).
  • Claim: the writing rubric finds no pull request or issue references and no rejected alternative longer than one line. Verified.
  • Claim: the custom item keeps the earlier proposals' shape, label and keyboard rule. Not checked.
  • File docs/specs/components/Lightbox/Lightbox.spec.md: the second and third fixes, part of the first, and a non-blocking note on FR29 (inline).
  • File docs/families/overlay-dismissal.md: the first fix.

Automated review (maintainer link)

Comment thread docs/families/overlay-dismissal.md Resolved
From review:
- Compatibility lists the two more changes existing callers see: a
  modifier stops `+`, `-` and the zoomed arrow pan, and a press that
  crosses the media's edge no longer closes the viewer (FR10).
- FR10's verification row marks Lightbox as an implementation gap, and
  Lightbox's Current-state names both press directions that close it
  today. The layer-runtime line says its backdrop press follows FR10.
- The `[experimental]` line and the family links qualify AST-017's
  FR21, since FR21 is now the custom-item rule.
- AR2 names the download action as the drag-out's alternative, and
  FR29 says which action that is and that it counts toward three.

@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.

Approval waits on an engineering owner's decision about the new Lightbox requirements; the last review's three fixes are in, and three more are listed below.

What must be settled: whether component:Lightbox takes FR20-FR32, ORD4, AR10, AV5, PR3, DEC-6 to DEC-12 and the reworded AR2-AR4, whether Lightbox joins family:overlay-dismissal FR10, and whether a plain mouse wheel may scroll an image opened at initialZoom: 'width' as an exception to spec:AST-094 FR43 (the description's item 7). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

Fixes needed whatever the owners decide:

  • Lightbox.spec.md:84-85 classes the backdrop-press change as [fix], but Lightbox is not an FR10 member today and spec:AST-017 FR33 calls a change with no pre-existing authority a new decision, so class it [feat] or name the FR53 accessibility target or owner ruling it rests on.
  • Miss: Lightbox.spec.md:86-87 classes the failed-image line (FR26) as [fix] on the same missing basis, so it needs the same correction.
  • The description's Compatibility row counts four changes for existing callers, but the record's list adds a fifth, the failed-image line, so add it there.

Smaller non-blocking notes are inline and in the review: name the catalog message for the download action Lightbox adds (FR29), and record Lightbox's FR10 gap and FR11 coverage in the family record.

Claims and files checked

Review mode: full; reason: spec-record

  • The pull request changes records only: verified, two Markdown records.
  • Knowledge validation, Prettier and the whitespace check pass: verified at this head.
  • Today a press that crosses the media's edge either way closes the viewer: verified (Lightbox.tsx:1392-1396, Lightbox.test.tsx:847).
  • FR10's evidence for Lightbox is an implementation gap: verified (overlay-dismissal.md:322).
  • DEC-5 is taken by an owner-approved decision in another open pull request, so new decisions start at DEC-6: verified.
  • Compatibility: four changes reach existing callers: false, the record lists a fifth (FR26).
  • On an initialZoom: 'width' image a trackpad scroll pans and wheel notches do not: verified against FR11 and spec:AST-094 FR43; the item 7 exception is not written yet.
  • FR32 records the shipped maximum-zoom floor: verified (zoomStage.ts:91-103).
  • Writing rubric results: verified for the Lightbox record; the family's FR10 verification cell adds a second gap line.
  • docs/specs/components/Lightbox/Lightbox.spec.md: findings at lines 84-87; non-blocking note at line 215.
  • docs/families/overlay-dismissal.md: this head's edits are clear; non-blocking notes on the Adoption table and FR11 coverage.

Automated review (maintainer link)

From review:
- The backdrop press and the failed-image line are `[feat]`: neither
  has pre-existing authority, so each is a new decision (AST-017 FR33).
- FR11 names Lightbox, since the family's AV4 makes FR10's members
  follow FR11, and its verification row marks the Lightbox gap.
- FR29's added download action takes its label from the catalog, and
  createLightboxDragOut takes an optional `downloadLabel` for it.

@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.

Approval waits on an engineering owner's decision about the new Lightbox requirements; the last review's two fixes are in, and one blocking record fix is left.

What must be settled: whether component:Lightbox takes FR20-FR32, ORD4, AR10, AV5, PR3, DEC-6 to DEC-12 and the reworded AR2-AR4, whether Lightbox joins family:overlay-dismissal FR10 and FR11, and whether a plain mouse wheel may scroll an image opened at initialZoom: 'width' as an exception to spec:AST-094 FR43 (the description's item 7). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.

Needed whatever the owners decide:

  • Miss: FR23 (Lightbox.spec.md:209) has Lightbox render up to three sibling actions beside Close, which is exactly family:action-groups' membership rule ("two or more sibling momentary, toggle, or option actions that a person chooses one of", and a later component "joins by the rule"), so name that family in the record, have the Actions part follow its FR1-FR5 through the shared implementation with a verification row, and add the part to the family's members, or record why the row is not a member.

Two smaller notes are inline: name Lightbox's FR10 deviation in the family's Adoption table, and say in FR10's Lightbox cases that the controls are shown, since ORD3 has the first tap beside the photo only bring hidden controls back.

Claims and files checked

Review mode: full; reason: spec-record

  • The seven decisions the description lists are the ones the record writes: verified against FR20-FR31, AR10 and the family rule.
  • finalFocusRef behaves as BottomSheet's prop of the same name: verified against BottomSheet's props.
  • A drag on the photo pages and closes, so a drag-out starts only from the Title part: verified against the record's fine-pointer clause and DEC-2.
  • The family's allowed-variation clause applies FR11 to every FR10 member, so FR11 names Lightbox: verified.
  • Today a press that crosses the media's edge either way closes the viewer: verified in Lightbox's source and its test.
  • The family's FR10 and FR11 evidence for Lightbox is an implementation gap: verified in both verification rows.
  • On an initialZoom: 'width' image a trackpad scroll pans and a mouse wheel's notches do not: verified; the item 7 exception is not written at this head.
  • The maximum-zoom floor the new FR32 records is what the code already does: verified in the zoom stage's maximum-scale function.
  • The record changes only records, and knowledge validation, Prettier and the whitespace check pass: verified at this head.
  • The writing rubric results in the description hold: verified over the added lines.
  • The decision numbering starts after the one an owner-approved open pull request takes, and four other open pull requests edit the same tables: verified from those pull requests.
  • "Already decided by the records" for the editor layer and the absence of a page-width mode: false as stated, since both lines are new here; the owners' decision covers them.
  • docs/specs/components/Lightbox/Lightbox.spec.md: blocking finding at line 209; notes at lines 152-153 and 268-270.
  • docs/families/overlay-dismissal.md: this head's edits are clear; notes on the Adoption table and FR10's Lightbox cases.

Automated review (maintainer link)

Comment thread docs/families/overlay-dismissal.md Resolved
From review:
- Two or more actions beside Close meet family:action-groups'
  membership rule, as Banner's and Toast's action rows do. FR23's
  Actions part follows the family's FR1–FR5 through the shared
  implementation, with a verification row; Lightbox names the family,
  and the family lists the part among its members.
- FR10's Lightbox cases have the controls shown, since under ORD3 the
  first tap beside the photo with hidden controls only brings them back.

@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.

Approval waits on an engineering owner's decision about the new Lightbox requirements; the action-groups membership is now in the Lightbox record, and two record fixes remain.

What must be settled: whether component:Lightbox takes FR20-FR32, ORD4, AR10, AV5, PR3, DEC-6 to DEC-12 and the reworded AR2-AR4, whether Lightbox joins family:overlay-dismissal FR10 and FR11, and whether a plain mouse wheel may scroll an image opened at initialZoom: 'width' as an exception to spec:AST-094 FR43 (the description's item 7). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; a new commit voids that approval, so the fixes below are best made first.

Needed whatever the owners decide:

  • docs/families/action-groups.md now lists Lightbox's Actions part as a member (line 86), but its frontmatter members list (lines 18-41) still omits component:Lightbox, so add it there as Banner and Toast are.
  • Miss: the description says the editor-as-its-own-layer and no-page-width-mode points are "already decided by the records", but no current record states either and both are new non-goals at Lightbox.spec.md:152-153, so list them among the decisions or cite the current clause that decides each.
Claims and files checked

Review mode: full; reason: spec-record

  • The seven decisions the description lists are the ones the record writes: verified against FR20-FR31, AR10 and the family rule.
  • With two or more actions the Actions part joins the action-groups family as Banner's and Toast's rows do: verified in FR23 and the family's prose and adoption table; the family's members list still omits Lightbox (first finding).
  • finalFocusRef behaves as BottomSheet's prop of the same name: verified against BottomSheet's props.
  • A drag on the photo pages and closes, so a drag-out starts only from the Title part: verified against the fine-pointer clause and DEC-2.
  • The family's allowed-variation clause applies FR11 to every FR10 member, so FR11 names Lightbox: verified.
  • Today a press that crosses the media's edge either way closes the viewer: verified in Lightbox's source and its test.
  • The family's FR10 and FR11 evidence for Lightbox is an implementation gap: verified in both verification rows.
  • On an initialZoom: 'width' image a trackpad scroll pans and a mouse wheel's notches do not, and the item 7 exception is not written: verified.
  • "Already decided by the records" for the editor layer and the page-width mode: false (second finding).
  • The existing authority the description lists exists on the main branch, clause by clause: verified.
  • The decision numbering starts after DEC-5, which another open pull request takes with an owner as decider, and five other open pull requests edit the same records: verified from those pull requests.
  • The Decision table, the callsite before and after, the rejected alternatives and the claim scope match the records: verified.
  • The credited pull requests and issue are open: verified.
  • The pull request changes records only, the writing rubric results hold, and knowledge validation, Prettier and the whitespace check pass: verified at this head.
  • docs/specs/components/Lightbox/Lightbox.spec.md: second finding anchored at lines 152-153; otherwise clear.
  • docs/families/overlay-dismissal.md: clear.
  • docs/families/action-groups.md: first finding.

Automated review (maintainer link)

Comment thread docs/families/action-groups.md Resolved
From review:
- family:action-groups' `members` list names component:Lightbox, as it
  names Banner and Toast, so the family's page and specs:for show it.
- The page-width non-goal no longer leans on DEC-1, which does not
  state it: a tall image opens fitted, and FR27 starts it at the
  viewer's width when the caller asks. Both non-goals are new in this
  record, and the description lists them among the decisions.

@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.

Approval waits on an engineering owner's decision about the new Lightbox requirements; the last review's two record fixes are in, and nothing else needs changing.

What must be settled: whether component:Lightbox takes FR20-FR32, ORD4, AR10, AV5, PR3, DEC-6 to DEC-12, the reworded AR2-AR4 and the two non-goals in its ownership boundary; whether Lightbox joins family:overlay-dismissal FR10 and FR11 and, through its Actions part, family:action-groups; and whether a plain mouse wheel may scroll an image opened at initialZoom: 'width' as an exception to spec:AST-094 FR43 (the description's item 7, which the record does not yet write). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; a new commit voids that approval.

Claims and files checked

Review mode: full; reason: spec-record

  • The eight decisions the description lists are the ones the records write: verified against FR20-FR31, AR10, the two family records and the ownership boundary.
  • With two or more actions the Actions part joins the action-groups family as Banner's and Toast's rows do: verified in FR23, the family's members list, prose and adoption table.
  • finalFocusRef behaves as BottomSheet's prop of the same name: verified against BottomSheet's props.
  • A drag on the photo pages and closes, so a drag-out starts only from the Title part: verified against the fine-pointer clause and DEC-2.
  • The family's outside-dismissal variation applies FR11 to every FR10 member, so FR11 names Lightbox: verified.
  • Today a press that crosses the media's edge either way closes the viewer: verified in Lightbox's source and its test.
  • The family's FR10 and FR11 evidence for Lightbox is an implementation gap: verified in both verification rows.
  • On an initialZoom: 'width' image a trackpad scroll pans and a mouse wheel's notches do not, and the item 7 exception is not written: verified.
  • The two non-goals are new in this record and listed for approval: verified.
  • The existing authority the description lists exists on the main branch, clause by clause: verified.
  • The decision numbering starts after DEC-5, which another open pull request takes with an owner as decider, and the other open pull requests named edit the same records: verified from those pull requests.
  • The Decision table, its five compatibility changes, the callsite before and after, the rejected alternatives and the claim scope match the records: verified.
  • The credited pull requests, the issue and the preview draft are open: verified.
  • The pull request changes records only, the writing rubric results hold, and knowledge validation, Prettier and the whitespace check pass: verified at this head.
  • docs/specs/components/Lightbox/Lightbox.spec.md: clear.
  • docs/families/overlay-dismissal.md: clear.
  • docs/families/action-groups.md: clear.

Automated review (maintainer link)

@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.

Approval waits on an engineering owner's decision about the new Lightbox requirements; the latest push merges main without changing the proposal, and nothing else needs changing.

What must be settled: whether component:Lightbox takes FR20-FR32, ORD4, AR10, AV5, PR3, DEC-6 to DEC-12, the reworded AR2-AR4 and the two non-goals in its ownership boundary; whether Lightbox joins family:overlay-dismissal FR10 and FR11 and, through its Actions part, family:action-groups; and whether a plain mouse wheel may scroll an image opened at initialZoom: 'width' as an exception to spec:AST-094 FR43 (the description's item 7, which the record does not yet write). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; a new commit voids that approval.

Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • The eight decisions the description lists are the ones the records write: verified against FR20-FR31, AR10, the two family records and the ownership boundary.
  • With two or more actions the Actions part joins the action-groups family as Banner's and Toast's rows do: verified in FR23, the family's members list, prose and adoption table.
  • finalFocusRef behaves as BottomSheet's prop of the same name: verified against BottomSheet's props.
  • A drag on the photo pages and closes, so a drag-out starts only from the Title part: verified against the fine-pointer clause and DEC-2.
  • The family's outside-dismissal variation applies FR11 to every FR10 member, so FR11 names Lightbox: verified.
  • Today a press that crosses the media's edge either way closes the viewer: verified in Lightbox's current source and its test.
  • The family's FR10 and FR11 evidence for Lightbox is an implementation gap: verified in both verification rows.
  • On an initialZoom: 'width' image a trackpad scroll pans and a mouse wheel's notches do not, and the item 7 exception is not written: verified.
  • The two non-goals are new in this record and listed for approval: verified.
  • The top safe-area inset and pointer maths under a document zoom stay out of the record: verified.
  • The existing authority the description lists exists on the main branch, clause by clause: verified.
  • The decision numbering starts after DEC-5, which another open pull request takes with an owner as decider, and the other open pull requests named edit the same records: verified from those pull requests.
  • The Decision table, its five compatibility changes, the callsite before and after, the rejected alternatives and the claim scope match the records: verified.
  • The credited pull requests, the issue and the preview draft are open: verified.
  • The pull request changes records only, the writing rubric results hold, and knowledge validation, Prettier and the whitespace check pass: verified at this head.
  • docs/specs/components/Lightbox/Lightbox.spec.md: clear.
  • docs/families/overlay-dismissal.md: clear.
  • docs/families/action-groups.md: clear.

Automated review (maintainer link)

@cixzhang cixzhang added ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) labels Nov 19, 2026

@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.

Approval waits on an engineering owner's decision about the new Lightbox requirements; the latest push merges main, keeps BottomSheet and BottomSheetSwitcher beside Lightbox in the backdrop-press rule, and needs no record change.

What must be settled: whether component:Lightbox takes FR20-FR32, ORD4, AR10, AV5, PR3, DEC-6 to DEC-12, the reworded AR2-AR4 and the two non-goals in its ownership boundary; whether Lightbox joins family:overlay-dismissal FR10 and FR11 and, through its Actions part, family:action-groups; and whether a plain mouse wheel may scroll an image opened at initialZoom: 'width' as an exception to spec:AST-094 FR43 (the description's item 7, which the record does not yet write). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; a new commit voids that approval.

  • Non-blocking: the description still files #11611 under open work, but it is on main and this head merges it; moving it out of that list keeps the conflict list accurate for the approver.
Claims and files checked

Review mode: full; reason: spec-record

  • The eight decisions the description lists are the ones the records write: verified against FR20-FR31, AR10, the two family records and the ownership boundary.
  • With two or more actions the Actions part joins the action-groups family as Banner's and Toast's rows do: verified in FR23, the family's members list, prose and adoption table.
  • finalFocusRef behaves as BottomSheet's prop of the same name: verified against BottomSheet's props.
  • A drag on the photo pages and closes, so a drag-out starts only from the Title part: verified against the fine-pointer clause and DEC-2.
  • The family's outside-dismissal variation applies FR11 to every FR10 member, so FR11 names Lightbox: verified.
  • After the merge of main, the backdrop-press rule keeps BottomSheet and BottomSheetSwitcher beside Lightbox, in its text and both verification rows: verified.
  • Today a press that crosses the media's edge either way closes the viewer: verified in Lightbox's current source and its test.
  • The family's FR10 and FR11 evidence for Lightbox is an implementation gap: verified in both verification rows.
  • On an initialZoom: 'width' image a trackpad scroll pans and a mouse wheel's notches do not, and the item 7 exception is not written: verified.
  • The two non-goals are new in this record and listed for approval: verified.
  • The top safe-area inset and pointer maths under a document zoom stay out of the record: verified.
  • The existing authority the description lists exists on the main branch, clause by clause: verified.
  • The decision numbering starts after DEC-5, which another open pull request takes with an owner as decider: verified.
  • The other open pull requests named edit the same records and are still open: verified, except #11611, which has landed (non-blocking note above).
  • The Decision table, its five compatibility changes, the callsite before and after, the rejected alternatives and the claim scope match the records: verified.
  • The credited pull requests, the issue and the preview draft are open: verified.
  • The pull request changes records only, the writing rubric results hold, and knowledge validation, Prettier and the whitespace check pass: verified at this head.
  • docs/specs/components/Lightbox/Lightbox.spec.md: clear.
  • docs/families/overlay-dismissal.md: clear; the merge with main is resolved correctly.
  • docs/families/action-groups.md: clear.

Automated review (maintainer link)

This branch was successfully deployed

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

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants