Repository navigation
feat(share): one share block and one class summary for Share and the sign-up confirmation - #518
Merged
Merged
Conversation
…sign-up confirmation - ShareContent is the one share block: Share opens the device's own share sheet; where there is none, or a host page refuses it, the same button opens the region's networks in a popover, in their brand colours, and the popover closes after a pick. Backing out of the sheet keeps the button. Copy link is a named button that says "Link copied" for 2.5 s, announced, and on a refused clipboard selects the link and says how to copy it by hand. - EventSummary (new molecule) is the list card's body: title with its Online tag, card facts, chips. The list card renders it in its link; Share, Register and the confirmation box it at their top (hideSubtext on the last two). EventFacts loses its boxed `summary` surface and gains hideSubtext. - The Share panel opens on the summary under "Share this class" (share.title_class); share.title goes on the retiring list. - The poster QR code row moves from Share to the bottom of the class page. - The snapshot gains the four new share keys, copied by hand from production while a full sync is blocked on #466; share.copy_link is wired again (SahajCloud#1288 re-declares it). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Permissions Policy rows now say what each refusal does: Share opens a popover of networks, and Copy link selects the link to copy by hand. DESIGN_SYSTEM rows for EventSummary, ShareContent and the moved QrPoster, and a CHANGELOG entry. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
After #508 a parent resolves an event's display once and hands the strings to its facts and chips. EventSummary follows suit, so the list card, Share and Register each still resolve once. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- CopyField moves into EventActions, its one caller, so a class page no longer loads react-share and the share block to copy a phone number; the multi-export exception for ShareContent goes with it. - The share targets' common button props are built once in PlatformButton. - EventSummary reads the resolved `display.online`; ShareButton reuses ShareContentProps; Copy link resolves its status string once. - An open fallback popover now closes from the Share button (review finding), with a spec. - Stale comments and a spec that could not fail are gone; the changelog notes the list card's Online tag. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
#519 removed Radix Popover, so the Share fallback is rebuilt on the app's own usePopover (Floating UI), as the contact popover is; usePopover gains toggleOnClick so Share opens the native sheet first. ShareContent leaves the Radix popper inventory, and its single-use COPIED_MS and caption recipe are inlined (review). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Local adversarial review, addressed in ddb6d7a, 856629a and the merge d886740:
|
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EventSummary(the list card's body) opens the Share panel, Register and the confirmation. The QR row moves to the bottom of the class page, as the owner asked during review.CopyFieldmoves into EventActions, so a class page no longer loads react-share (about 16 KB gz) just to copy a phone number.Change outline
Components
Copy
share src/config/translations.en.json (copied from production; full sync blocked until #466) + copy_failed_pointer / copy_failed_touch / link_copied / title_class # sydevs/SahajCloud#1287 copy_link # wired again; sydevs/SahajCloud#1288 re-declares it title # unread → RETIRING_KEYS, sydevs/SahajCloud#1290Host contract
docs/embedding.md's Permissions Policy rows now say what happens when a policy refuses each feature. Refusedweb-shareopens the popover. Refusedclipboard-writeselects the link and shows a hint.CHANGELOG.mdhas an entry. No parameter, origin or CSP change.Preview
Preview pending. The Cloudflare branch aliases for the app and Ladle are added once the deploys report.
Stories to open on the Ladle preview:
?story=molecules--share-content,?story=molecules--event-summary,?story=views--share(press Share… for the popover),?story=views--registration&arg-example=Confirmation, and?story=molecules--list--event-list-item.Test results
test:run);--fullalso ✓ (build,pnpm sizewithin budget)ShareContent.dom.test.tsx(sheet shared / dismissed / refused, popover closes after a pick and from its button, 2.5 s "Link copied", refused clipboard),EventSummary.test.tsx,EventDetails.qr.test.tsxShareContent.test.tsx,EventFacts.test.tsx,overlay.popper.test.ts,translations.test.tspnpm test:browser: 26/26pnpm test:a11y: the new stories are clean. The two findings left (form-field, mapbox) reproduce on a cleanmainbuild locally.Manual verification
Notes for reviewer
/code-review mediumran. Fixed: an open popover could not be closed from its own Share button.share.native." It is the trigger's visible text, not a screen-reader-only string./simplifyran. Skipped as out of scope:closablevariant on the Chip atom, which would change every chip on touch screensAlertfor the copy hint, a visible redesignQrPoster(about 2 KB gz)/security-reviewran (EventDetails path): no findings.useCopy, the phone copy field inlined into its one caller, and the caption recipe and duration constant inlined. Rebutted: the list card's Online tag is the ticket's own spec ("EventSummary … is the list card's summary: title with its Online tag"); the facts line still says Online if a long title clips the chip.ShareTargetsstays (the specs and stories pin it).usePopover(owner's choice), which gainstoggleOnClick.CopyFieldkeeps its old accessible name, "Copy link: ". Naming it for the phone number needs a new machine-translated a11y key, left for a follow-up.Detail
EventFactsandEventSummarystay separate: merging them would bring back the variant-with-flags shape this ticket removes.pnpm sync:translations --writealso pulls in unrelated drift (compact.open) until feat(widget): open every embed inline; expand the map over the page #466 lands.setState-in-render warning (DrawerStack / ReadClient) that shows in dev also shows on a cleanmain.🤖 Generated with Claude Code