Repository navigation
fix(ui): dark-theme and display fixes from the 6 Nov bug sweep - #370
Conversation
A by-request class has no schedule, so it derived as a one-off and read ONE-OFF EVENT; its type tag is dropped, as "Contact host for timings" already says what it is. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Anton asked why the world was zoomed out so far, and said it needs to show only once. The world view reset to zoom 0, a 512px-wide world, so a wide desktop window repeated it three or four times. Repeated world copies are now off. With them off, Mapbox keeps the world at least as wide as the map, so the world view fills the map edge to edge once at any window size. The reset centres on latitude 20, which leans north, where most classes are. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ng as other fields The geocoder hardcodes its typed text at 75% black in both themes, which its `colorText` variable never reaches, so in dark theme what a visitor typed was about 1.1:1 on the field and the box looked empty. Its focus state was a dotted border, and its placeholder was 37% black. The theme's cssText restates all three in the panel's tokens, with the 2px ring `fieldChrome` draws. Ported from f53bb5d on ux/first-screen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The suggestion list was as wide as the field, 298px on a 390px phone panel, with square corners, so the country counts and arrows of the list underneath showed beside it and read as part of the suggestions. The home and results headers are now inline-size containers that hand their width to the list (`--sy-results-w`), less the 1px the list sits inside the field's border on each side. Measured at 390px: 356px, from 17 to 373. Ported from 8ae28fd and 4902caf on ux/first-screen and ux/all-proposals. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mapbox paints its locate and attribution controls white with glyphs in fixed colours, so in the dark theme they stayed white beside the dark settings cog. In the dark theme they now take the cog's surface, a gray-3 hover, and light glyphs: `invert` then `hue-rotate` flips the glyph's lightness and keeps each state's hue, so the locate button's active blue and error red survive. The open attribution's links take the secondary text colour. The light theme is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nothing set `color-scheme`, so it computed `normal` in the dark theme and the browser drew its own parts in light-theme colours: dark calendar icons on the dark From and To fields, and white date pickers. The theme root now carries `color-scheme: light` or `dark`, so native controls follow the atlas's theme rather than the host page's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
On sahajatlas.com, with the dark theme picked from the settings cog, the strip behind an iPhone's clock and battery stayed white above the dark map. Standalone, `<html>` is the theme root, so it now carries the theme's background (iOS Safari tints that strip from the page's own background, not the map drawn under it), and the standalone Helmet sets `theme-color` to the same colour for browsers that read it. Both follow a switch made in the settings menu. Embedded, neither applies: the scope class sits on a wrapper, never on the host's `<html>`, and the Helmet block renders only standalone. `theme-color.test.ts` holds the two colours to each theme's `--background`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…le-X's purple Schedule-X sets its own purple palette on `.is-dark`, an element inside the `.sx-calendar` wrapper that carries our token mapping, so in the dark theme its values beat the inherited ones: purple entries, header and today marker (rgb(79,55,139), rgb(234,221,255), rgb(208,188,255)). The mapping now covers `.is-dark` too. Measured on /calendar at 1440x900: 163 elements, none purple. The selector part of 6221dba on ux/dates. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Map-less (`map=0`, and map-less embeds), the cog floated at the bottom left over the panel, on top of the "Czechia" row on the home list and over the sign-up form. It now sits in a 48px strip below the views, with the header icons' flat look and a 44px tap area (SettingsMenu's new `toolbar`). Map mode's floating cog is unchanged. Measured at 390x844: the panel ends at 796px and the cog sits at 799-843px, with nothing under it. After the map-less half of a3279b9 on ux/embed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The × that removes a filter tag (UNITED KINGDOM, TUE) was a 12x12px target on phones. A new `touch-target` utility gives it an invisible 44px area on touch screens, at the same drawn size, through a centred `::after`. Measured at 390x844 with touch: the × still draws at 12x12, a tap 14px from its centre lands on it, and a fine pointer gets no extra area. The Chip part of 0847612 on ux/all-proposals, with aad2635's utility. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hosts often type the town into the street field too, so the address line read "32 Cejl, 602 00, Brno, Brno" and "Sneek, Sneek" on cards and class pages. `streetAndCity` leaves the town off when the street's last comma-separated part already is that town (case- and accent-insensitive), and still joins a street that only contains the name, such as "Rue de Paris, Paris". Co-Authored-By: Claude Opus 5.5 <[email protected]>
With world copies off, Mapbox keeps the world as wide as the map, but it measures that around the camera centre and ignores padding. The side panel pads the left and only a margin pads the right, so the world was drawn shifted right by half the difference, leaving a blank strip at the map's left edge (176px at 1440px, white in dark theme too). The world view now makes the world as wide as the map plus the padding difference, so longitude 0 stays in the middle of the visible area and the world reaches both edges (`worldViewCamera`, lib/camera). Checked at 1440x900 (dark) and 2560x1080 (light): the world shows once, edge to edge. A phone's padding is even side to side, so its world view is unchanged. Ported from e30ba02 on ux/all-proposals, without its filters-panel case. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`theme-color.test.ts` reads globals.css through `repo-source.ts`, which puts it in that module's per-edit selection, the widest in the tree. Timed the hook as docs/testing.md describes, medians of three on 11 cores: 1.97s for repo-source.ts at 20 specs and 2.26s for i18n.ts, well under the 12s budget. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| 🔵 In progress View logs |
sahajatlas-design | b19e58c | Nov 07 2026, 09:17 PM |
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Ten numbered bugs from the 6 Nov report, one commit each, every claim measured. Nothing is unasked-for, and the three that needed code rather than CSS each say why. The diff is no bigger than the problem.
Two fixes stop one step short of their owner: --sy-results-w is pasted into two headers and misses a third that also hosts a live search field, and the by-request chip is suppressed at the consumer, not at the resolver that mislabels the listing.
No contract surface moves: no fetch origin, no new attribute, no docs/embedding.md row. renderWorldCopies={false} is the one host-observable change, and it is map-wide where the bug was one view.
Findings
- should-fix —
--sy-results-wduplicated,views/fallbacks.tsx:181left out →CountriesView.tsx:87 - should-fix —
byRequestre-derives a label the resolver gets wrong →EventChips.tsx:39 - consider —
renderWorldCopies={false}stops the whole map wrapping →Map.tsx:472 - consider — the 19→20 ratchet buys a drift pin on two literals →
select-unit-specs.test.ts:249 - consider —
drawnmodels Mapbox rather than testing it →camera.test.ts:150
What was checked
Ladder: worldViewCamera — Mapbox fits inside padding and has no cover mode, so the math is earned, and re-derives to the test's 1345px and 1633px. streetAndCity — use-event-display.ts held the only joiner. touch-target — no 44px utility existed.
Consumers: typeLabel has one reader (EventChips.tsx:63); display.kind elsewhere reads only 'course'. All six SearchField hosts traced, two covered. AttributionControl is unconditionally compact (Map.tsx:572), so no wide variant escapes the dark rules. .light/.dark match the root blocks at globals.css:295,340. reset()'s early return matches moveMap's !mapbox guard.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
`--sy-results-w` and its container context were pasted into CountriesView's and SearchView's headers, and `views/fallbacks.tsx`'s third `DrawerHeader` — which mounts a live `SearchField` on the error chrome — had neither, so the suggestions were still narrower than the panel there. Both declarations move onto `DrawerHeader`'s own slot, so every header that hosts a field is covered and there is no arbitrary-property string to keep in sync. `container-type: inline-size` now applies to every drawer header. It is not a containing block for a fixed or absolutely positioned descendant — measured in Chrome 151 and recorded in `src/components/AGENTS.md` — and CalendarView's header, the one with a positioned child, is already `relative`. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVM9Qg69594AJduTX3
The by-request suppression sat in `EventChips`, re-deriving from `status === 'inactive' && kind === 'oneoff'` what the display layer had already got wrong. That proxy also fired on a real one-off an operator marked inactive, which lost its type chip. `useEventDisplay` returns `typeLabel: null` where the listing carries no schedule — the condition that actually makes a type unnameable — and `EventChips` is back to one question about the label it was handed. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVM9Qg69594AJduTX3
`drawn` re-implemented Mapbox's projection and its padding-blind centre clamp from the same premise `worldViewCamera` is built on, so three cases agreed with the helper by construction: had the clamp read padding after all, both would still have agreed and the blank strip would have come back. The browser pass in the PR body is the evidence for that premise. What is left asserts the helper's own outputs — the world's width against the padding difference, the 39° band of centres that still reaches both edges, the latitude passed through — and models nothing but the 512px-at-zoom-0 world. Each case was watched failing against a helper with no widening and against one with no clamp. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVM9Qg69594AJduTX3
… zoom
renderWorldCopies={false} was map-wide. Mapbox then clamps the camera centre
to keep the world over the canvas, so the map stopped at ±180° and a New
Zealand or Fiji fit below about zoom 8 landed west of its bbox (#370 review).
The world copies are back on. The world view already fills the map with one
world (worldViewCamera), and zooming out now stops where one world is as wide
as the map: minZoom is worldMinZoom(width), set on load and on resize. A map
narrower than the world keeps zoom 0, so a wide country's fit on a phone is
never clamped.
Checked in Chromium: the world view at 2560 and 1440 shows the world once, a
hand zoom-out at 2560 stops at one world, and /nz at 1280 frames New Zealand
in the middle of the map.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both conflicts were additive, so both sides stand. `Map.tsx`: #371 extended `onMoveEnd` to clear `useCameraTarget`, and this branch added an `onResize` that recomputes `minZoom` from the canvas width. Independent concerns on one prop block — the handler keeps the clear, the resize handler sits beside it. `CHANGELOG.md`: #371's two `### Fixed` entries and its link definition join #370's, newest first. `DrawerStack.tsx` was the third file both branches touched and merged on its own: #371's ancestry work is in the hook region, this branch's cog strip in the JSX. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjZ2hG59FJihHmmUzC7
|
Merged
Lean gate passes: lint, typecheck, 1944 unit tests across 162 files. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
I could not apply the relay here, so this is the step left for you.
🤖 sydevs dispatcher |
… zoom Map.tsx was the one conflict: #369 gates hover on a real pointer and this branch adds the minimum zoom. Both kept — onLoad still arms the reveal and sets the minimum zoom, and onMouseMove is hover-only on a real pointer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both sides add state to the same spot in `Map.tsx` and both behaviours are wanted, so the merge keeps each. `onLoad` arms the reveal and sets the world-filling `minZoom`; `onMouseMove` stays gated on `hasRealPointer`, so the pin popover is still off on a touch device where a tap would be swallowed. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVGLhFmtbQPJQZnGAH
|
Merged Lean gate passes on the merge: lint, typecheck, 1960 unit tests. Merge commit 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
The merge queue run for this PR failed typecheck:
src/components/organisms/Mapbox/Map.tsx(375,9): error TS2451:
Cannot redeclare block-scoped variable 'hasRealPointer'.
#369 and #370 each added the same `useHasRealPointer()` line to Map.tsx,
and the two squash merges landed both copies. The defect is on `main`, not
in this PR's contract re-sync — but it blocks this PR's queue run, so it is
fixed here.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVzTVJHHfMJtaFncMp
Brings main's 14 commits (#363-#380) into the combined review build. Non-obvious resolutions: - Clock rule (#380): an in-person time names the venue's clock only when the viewer's differs, an online time always. Replaces the proposals' "every time names its clock". The calendar's TimesNote now says main's one sentence (calendar.times_note), only when an online class is listed, kept above the grid and the week list; its times_city/times_local/times_online keys are gone. Add-a-class Check still spells out the inferred clock once, now added there itself. - Camera padding (#369): the proposals' useClassSheet stays and now reports the peek while the sheet is collapsed; main's useSheetCover, fitSheet marker and fit-snap rewrite are dropped for the proposals' own fit-snap. - World view (#370): world copies back on with main's minZoom, per its Pacific-wrap fix, under the proposals' map controls. - Place search (#371): the proposals' "search all countries" button stays; main's ?cc / browsed-country fallback, per-query release and "couldn't find that place" line are ported into it. - Ancestry (#371): placedPathname/placePathsOf live once, in navigation.ts; DrawerStack's stack follows the region tree. - Deep links to placeless events frame their region (#363), via useFrameEventOnTop, which skips contact-only listings. - Kept proposal designs over main's: registration confirmation, Add to calendar list, consent link, GeolocationSuggestion placement, filter tags in ListToolbar, map control column. Main's failure copy (#365), autofill, by-request type label (#370) and dead-place header (#371) are ported in. - streetAndCity: the proposals' version, now accent-blind as main's is. - Width pin for the per-edit hook ratcheted 20 -> 21 (both sides added one spec). Co-Authored-By: Claude Opus 5.5 <[email protected]>
SahajCloud sends a by-request listing an all-null schedule group rather than none (class 830, Stirling). `z.coerce.date()` read its null first date as 1 Jan 1970, so the listing looked scheduled and #370's no-schedule check missed it: the class still read "One-off event". The event schemas now read such a group as no schedule. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…band The list took the band's full width (#370) on the assumption that the field starts the band. On SearchView, Back comes first, so the list ran 28px past the field and off the panel (off the screen on a phone). MapSearch now measures the span from the field to the band's end and hands it to the list; the start page still covers the strip under Filters, as #370 intended. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
This is the third of three PRs for the bugs in
atlas-current-bugs-2026-11-06.md, the 6 November check of the live site. It covers the dark theme and the smaller display bugs. The numbers below are the report's. #369 is the phone PR, and a separate PR covers the embed, URL and search bugs.cssTextrestates typed text, caret, placeholder and focus in the panel's tokens, withfieldChrome's 2px ringDrawerHeader's own slot is the inline-size container and hands its width to the list (--sy-results-w), so every header that mounts a field is covered — including the error chrome's, which the first version missed; 8px cornersinvert+hue-rotatefor the glyphs, which keeps each locate state's hue. On the standalone page,<html>takes the theme's background and Helmet setstheme-color, both following the settings menucolor-scheme: light/darkon the theme root--sx-*mapping also covers Schedule-X's own.is-darkuseEventDisplayreturnstypeLabel: nullwhere the listing carries no schedule, so there is no type to tag. A real one-off an operator marked inactive keeps its chiptoolbar)touch-targetutility gives it an invisible 44px area on touch screens, at the same drawn sizestreetAndCitydrops the town when the street's last comma-separated part already is the townrenderWorldCopies={false}(cd2e2ab, cherry-picked), plusworldViewCameraso the single world reaches the map's left edge despite the side panel's paddingThe spec lane's widest per-edit selection is ratcheted from 19 to 20, because
theme-color.test.tsreadsglobals.cssthroughrepo-source. Timed on 4 cores, medians of three: 4.0s for that selection and 4.4s fori18n.ts, against the hook's 12s bound.docs/testing.mdcarries the method.CHANGELOG.mdgains three### Fixedentries for what a host can observe here: the single world and the pan it costs, the dark theme plus the browser chrome that now follows it, and the smaller display repairs.Not in this PR: #25, labelling which clock an online class's time is in ("8:00 pm Prague time"). It needs two new keys in SahajCloud's translations schema,
event.display.zone_time("%{city} time") andcalendar.times_note, which is a SahajCloud code change rather than an admin edit. It follows once those land. #15 (exact pin for a class with no street) is a separate ticket.Checked
Local dev server in Chromium (Playwright), light and dark, at 390×844 with touch, 1440×900, and 2560×1080:
container-type: inline-sizeand--sy-results-w: calc(100cqi - 2px)at both widths, having carried neither.<html>is rgb(18,18,18) andtheme-colorishsl(0 0% 7%). Both switch at once when the theme changes mid-session.color-scheme: darkin dark andlightin light. The calendar icons are visible on the dark field (screenshot).mainthe dark entries were rgb(79,55,139) / rgb(234,221,255) and the today header rgb(208,188,255), measured the same way.?map=0on home and on the Balham sign-up form, the panel ends at 796px and the cog sits at 799–843px, with nothing under it.docs/rules/mapbox.md.pnpm buildpasses its CSS gates, andpnpm sizeis within budget: embed 326.8 / 330 KiB, standalone 325.0 / 330 KiB.Not checked on a device
theme-colorboth follow the theme.Notes for reviewer
Map.tsx'srenderWorldCopies={false}. The flag is map-wide, which costs the continuous pan past ±180° and nudges a far-Pacific region fit below zoom 8 west of its bbox. Scoping it to the world view is possible — react-map-gl reconciles the prop — but the toggle races the camera command and needs a browser with a Mapbox access token to prove, which the loop's environment does not hold. Keeping it map-wide is the recommendation; the call is yours.?map=0, since no Mapbox token is available there. The map's own rendering is unverified in this round; perf(api): spike — separate region hierarchy from the event feed #32's rows above are from the original pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01Mg9rjVM9Qg69594AJduTX3