Repository navigation
style(class): grey icon-and-label action buttons, a 48px Register, Apple Maps on iOS - #502
Merged
Merged
Conversation
Directions, Contact and Share were thin teal outlined circles with icons that matched nothing else on the page. Each is now the Button atom itself: neutral, flat, an 18px Navigation, Phone or Share icon beside its label, 44px tall. Each starts at its own label's width, so "Directions" fits the 352px desktop panel. A fourth action (Website), or a row under 296px, puts the icon above the label, so no label is cut on a 320px phone. ActionRow and ActionCircle are gone: EventActions renders Buttons in a container-query row. Every action link now passes through Button's isSafeHref gate, so the JSX anchor inventory is Link and Button alone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Directions opened Google Maps in Safari, where a fresh browser first stops at a Google consent page. directionsUrl now returns maps.apple.com/?daddr= on an iPhone or iPad (an iPad reports itself as a Mac, so touch points tell them apart), and Google Maps everywhere else, for coordinates and address text alike. The Apple URL joins the production hrefs isSafeHref must pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Register moves to the Button atom's lg size, so it stays the one obvious main step on a phone and on desktop. The sticky footer gaps the action row by 16px, as the inline layout already does, so the row reads as its own set. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The row put icons above labels below a 296px row or with four actions, a rule tuned to English. Three labels need 266px in English but 320-336px in Spanish, Portuguese, Russian and Ukrainian, so those labels were cut in the desktop panel and on most phones. The row now measures: icon beside label while every label fits, icon above label across the row once one would be cut, latched until the labels change. That also fixes a class with no address, which listed Directions but drew no button, stacking the other three. From the /simplify and /code-review passes: - directionsUrl takes `apple` from the Drawer's existing isIOS() rather than a second, user-agent-based iOS check, and is pure again. - The Directions arrow no longer mirrors in RTL, like the external-link arrow. - Inert classes go; anchor-count comments no longer name a number. 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. |
# Conflicts: # CHANGELOG.md
RFC 3966 allows no spaces in a tel: URI and some dialers fail on them. The error screen's contact link already stripped them; both now share telHref, and the visible label keeps the number as written. Co-Authored-By: Claude Opus 5.5 <[email protected]>
On the phone map sheet the pinned footer carried Register and the action row together, so Directions, Contact and Share left the panel. Only Register pins now; the row stays in the panel after the facts. EventDetails' prop becomes registerInline, the footer drops its lazy EventActions copy, and a new Views story shows the pinned-Register case. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | 1f810cc | Nov 26 2026, 06:32 PM |
# Conflicts: # CHANGELOG.md
From the local adversarial review: - The fit check records the width the inline row needs when a label is cut, and goes back inline once the row has it, so one narrow measurement no longer stacks the row for good. It keys on the label text itself, and re-checks when the fonts arrive, since neither moves the row's own size. - isIOS moves to src/lib/platform.ts, so a molecule no longer imports a Drawer internal. - DESIGN_SYSTEM's EventActions row and the changelog entry describe the measured layout; data-layer.md drops the history sentence. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
The session for review-pr did not finish after 3 attempts. I have stopped retrying. A 🤖 sydevs dispatcher |
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
Buttonatom, with an 18px icon beside its label. Register moves up to the 48px size.callandregister_freekeys aren't live in SahajCloud, so rewording is left for later.tel:link had spaces, which RFC 3966 doesn't allow. It now sharestelHrefwith the error screen.Change outline
Components — the action row
ActionRowandActionCircleare gone.EventActionsnow rendersButtons directly, so every action link goes throughButton'sisSafeHrefgate.EventView src/views/EventView/EventView.tsx sticky footer (phone map sheet) EventRegisterBar Button size="lg" - EventActions (lazy copy) row rode the pinned bar EventDetails ctaInline → registerInline Register only; the row always renders here EventRegisterBar (when registerInline) - EventActions → ActionRow → ActionCircle ×n own <a>, own isSafeHref, tonal circle + EventActions src/components/molecules/EventActions/EventActions.tsx + useStackWhenCut(the row's label text) → { ref, stacked } + <div ref group/actions data-stacked?> + Button variant="flat" ×n icon + truncating label span + Directions href=directionsUrl(address, isIOS()) target=_blank + Website href=event.website target=_blank + Contact coarse pointer → href=telHref(phone) else → ContactPopover (number + copy) + Share onClick → navigate(share)Behaviour — when the row stacks
The row measures its own labels instead of using a width breakpoint, because the space needed varies from 266px (English) to 336px (Portuguese).
Behaviour — directionsUrl
src/lib/events.tsstays pure. The iOS answer is the Drawer's existingisIOS(), moved tosrc/lib/platform.ts(readsnavigator.platform).Contract — JSX anchor inventory
src/lib/shape/href.test.ts GATED_ANCHORS components/atoms/Button/Button.tsx components/atoms/Link/Link.tsx - components/molecules/ActionRow/ActionRow.tsxPreview
/gb/south-east/london/balham-library/1392at 375×667, 1280×800 and 320×568.Test results
events.directions.test.ts,href.test.ts(incl. newtelHrefcase, watched failing),Icons.usage.test.tsx,translations.test.ts,responsive.test.tsall passnavigator.platform: Directions opensmaps.apple.com.Manual verification
pnpm dev --host): Directions opens Apple Maps.Notes for reviewer
href.ts,href.test.tsandEventDetails/): no findings. Every action anchor passesButton'sisSafeHrefand getsrel="noopener noreferrer"ontarget=_blank. The maps scheme and host are literals; address text is URI-encoded.navigator.platform, like the Drawer's Safari workarounds. An iPhone user who prefers Google Maps now gets Apple Maps.min-hwould hit the same tailwind-merge trap. A follow-up could fold this caller and Fallbacks'callSkintogether.href/onClickunion and the per-action availability checks make it no shorter.Button.test.tsxcovers the href gate andrel, and the layout decision needs a browser.origin/main(feat(sheet): a class drags down to its key facts, not the shared open stop #496, feat(class): end the class page address with its postcode, and copy it on tap #498) to clear aCHANGELOG.mdconflict; both entries kept. feat(class): end the class page address with its postcode, and copy it on tap #498's notes that Directions opens Google Maps only now say iOS gets Apple Maps.Detail
Navigationarrow no longer mirrors in RTL, like the external-link arrow.src/AGENTS.mdnow says so.🤖 Generated with Claude Code