Skip to content

fix(ui): focusing a low field scrolls the whole drawer off-screen - #328

Merged
sydevs-bot merged 10 commits into
mainfrom
claude/fix-326-drawer-scroll-clip
Oct 27, 2026
Merged

sydevs-bot merged 10 commits into
mainfrom
claude/fix-326-drawer-scroll-clip

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • overflow: hidden is still a scroll container, so focus scrolled the drawer panel — and the frames holding it — off-screen with no way back. Every such box now clips, in every drawer variant.
  • The one sticky footer's clearance lives on its own body, offset by the sheet's live top, so a focused field stops above the bar at any snap rather than only at the top one.
  • Joined, not listed: DrawerStack's map-less container and the compact card's dialog are the same defect; the dialog was measured scrolling 528px.
  • Joined, not listed: story-harness.tsx hand-copies the panel's chrome, so all ten view stories previewed the unrepaired box until this branch clipped it too.

Change outline

Behaviour — what the browser was allowed to scroll

The fix is one property on every box the fixed interface resolves against. Two independent mechanisms fill those boxes with scrollable overflow, which is why the panel and its containers both needed it.

 focus lands on a field below the fold
   browser walks ancestors looking for a scroll container
-    [data-vaul-drawer]            overflow: hidden  → scrolls 762px   # vaul's ::after filler
-    [data-sy-frame] (dialog)      overflow: hidden  → scrolls 528px   # the snap-translated panel
-    [data-sy-frame] (MapFrame)    overflow: hidden  → eligible
-    map-less container            overflow: hidden  → eligible
+    every one of the four         overflow: clip    → not a scroll container at all
     DrawerBody                    overflow-y: auto  → the one thing that moves
+      ::after spacer         height: var(--sy-footer-h)                       # the bar's CONTENT clearance
+      scroll-padding-bottom: calc(var(--sy-footer-h) + var(--sy-sheet-top))   # EventView's body only

Components — where the property lives

 src/components/atoms/Drawer/Drawer.tsx
   tv slots
-    content: … overflow-hidden …          # the panel: vaul's ::after gives it ~1688px
+    content: … overflow-clip …            # held per variant, not on the base slot alone
-    body:    … overflow-y-auto            # the one scroller, and it stays one — no padding
+    body:    … overflow-y-auto after:h-[var(--sy-footer-h,0px)]   # plus #320's own spacer

 src/views/
-  MapFrame.tsx            h-full w-full overflow-hidden [contain:layout]
+  MapFrame.tsx            h-full w-full overflow-clip   [contain:layout]
-  CompactEmbedView.tsx    fixed inset-2 … overflow-hidden … [contain:layout]
+  CompactEmbedView.tsx    fixed inset-2 … overflow-clip   … [contain:layout]
-  DrawerStack.tsx         relative w-full overflow-hidden     # takes the containing block
+  DrawerStack.tsx         relative w-full overflow-clip       # through `relative`, not `contain`
-  story-harness.tsx       z-10 flex flex-col overflow-hidden  # the panel's chrome, hand-copied
+  story-harness.tsx       z-10 flex flex-col overflow-clip

-  EventView.tsx           <DrawerBody className={sticky ? 'pb-20' : undefined}>
+  EventView.tsx           <DrawerBody className={sticky ? 'scroll-pb-[calc(var(--sy-footer-h,0px)_+_var(--sy-sheet-top,0px))]' …

Files — what holds the rule

 src/lib/
+├── overlay.clip.test.ts     # the four boxes, named; `[contain:layout]` scan catches a fifth
 └── overlay.ts               # still owns setFrame / frameElement

 src/components/atoms/Drawer/
+├── Drawer.scroll.test.tsx   # the panel across all 16 variants, and the footer-clearance pair
 └── Drawer.snap.test.tsx     # unchanged: which box vaul measures

 src/components/AGENTS.md     # the containment section gains the clip half of the rule

Preview

Branch preview: https://claude-fix-326-drawer-scroll.sahajatlas.pages.dev — note it lags this push by a build.

  • Registration form on a phone sheet (390×844) — /gb/south-east/brighton/163/register
  • The event panel, where the sticky Register bar renders — /gb/south-east/brighton/163
  • Contained embed and compact dialog — pnpm build && pnpm review:embed, then /__review/contained-map.html?atlas=/gb/south-east/brighton/163 at 390×844 (card dialog) and at 900×900 (MapFrame)

Test results

  • Lean gate: ✓ lint, typecheck, test:run — 154 files, 1814 tests, on the 9c133c3 base merge
  • Build: ✓ including assert:css (no rem escaped, 750 var() refs resolved) and pnpm size — standalone 310.6/318 KiB, loader 2.8/3.5
  • Every new assertion was watched failing first: the per-variant sweep against !overflow-hidden in the filled compound (8 of 16 red) and against lg:overflow-auto on the left panel (4 red); the clearance pair against a bare scroll-pb-28, against its removal, against the padding returning to the base slot, and against the class string being renamed out of reach.

Manual verification

Driven with Playwright at 390×844. A reviewer should still confirm on a real phone, where the soft keyboard shrinks the visual viewport in a way headless Chromium does not reproduce.

  1. On /gb/south-east/brighton/163/register, drag the sheet to the top snap, expand Show more dates, and focus each of the 14 fields. Before: [data-vaul-drawer] reached scrollTop: 762. After: scrollTop/scrollLeft 0 throughout.
  2. On /gb/south-east/brighton/163, with the sheet at its 544px snap: the body's bottom edge sits at y=1363 — 519px below the viewport — while the sticky bar paints at y=754–819. It stays auto on the ten bodies with no bar. ⚠ The 656px and 137px computed here were measured against the 112px constant, which fix(ui): sticky Register bar floats and covers the event actions #320 replaced with the bar's own published height (65px to 197.5px, as fix(ui): sticky Register bar floats and covers the event actions #320 measured it). Neither value has been re-measured on this head.
  3. ⚠ Not reproduced, and worth a look: at that same mid snap this event's body does not overflow, so its last control ("Share", bottom y=831) sits behind the bar with nothing scrollable to move it. That is the sheet's layout at a mid snap, not the scroll padding, and it predates this branch.

Notes for reviewer

No thread is open. The --sy-footer-h question is settled — leave it as built. #320 landed that mechanism on main while this branch was open, so the body slot spends the footer's published height for the CONTENT and EventView's pb-20 is gone. The SCROLL clearance stays on that one body, spending the same height plus --sy-sheet-top, because a spacer cannot stop focus parking a field behind a viewport-pinned bar.

What the review asked and what came of it:

  • Move the clearance to EventView. Adopted (4bde402). The earlier refusal had its reason inverted: RegistrationView renders no sticky footer, so it has nothing at the bottom to clear, and ten bodies carried 112px to serve one. ⚠ Half superseded by fix(ui): sticky Register bar floats and covers the event actions #320: the CONTENT clearance is the body slot's spacer again, at the footer's published height, and only the SCROLL half is still EventView's.
  • 112px is constant where the footer's offset is not. Adopted (4bde402), with the measurement in § Manual verification; the 112px itself is gone since fix(ui): sticky Register bar floats and covers the event actions #320, so the first term is the bar's published height. The bar is pinned to the viewport edge through --sy-sheet-top while the body's box runs on to the panel's bottom, so the padding carries the same offset.
  • One mechanism stated in three files that already point at its owner. Adopted (bd4f913). Four files, 17 comment lines down to 10, each left with the pointer plus its own local fact.
  • Delete vaul's ::after filler instead of clipping the panel. Declined, with evidence on the thread: vaul emits the filler only when no container is passed (data-vaul-custom-container), so it is already absent in both framed configurations — measured scrollHeight 638 = clientHeight — and the dialog's 528px was measured in one of them. Deleting the rule would cover one box of four, and styles/vaul.css's own refresh procedure would drop the deletion silently.
  • Also clip Modal.tsx. Declined, unchanged. Its -translate-x-1/2 makes it a containing block for fixed descendants, but it has none: ReportIssueForm's Select portals out through overlayContainer(), and the dialog is a bounded max-h flex column.

Still true, and worth a second opinion: MapFrame and the map-less container were not measured overflowing. They are the structural twins of the box that was, so they carry the invariant rather than a repair, and both comments say so.

Reported on this PR by another session, measured there and not re-measured here: this branch also fixes #319 (Month button y −70 → 53 on a direct /calendar load at 390×844).

Detail

Why the panel overflows at all. styles/vaul.css gives every panel a ::after background filler at top: 100%; height: 200% — about 1688px below an 844px sheet, which matches the 1686px of scrollable overflow measured on the live panel. No view creates it and none can decline it, so the clip belongs on the atom rather than on any caller.

Why the clip is held per variant. filled and the wide left panel are nothing but !important overrides of the content slot, and tailwind-merge does not strip a base overflow-clip across importance — so a compound adding !overflow-hidden leaves the panel carrying both classes while a base-only assertion stays green. The spec mounts all sixteen direction × mode × wide combinations and refuses any overflow token that scrolls, at any importance, prefix or axis.

Why the specs assert classes, not scrollTop. jsdom has no layout — every box is 0×0 and scrollTop never leaves 0 — and no Tailwind sheet is loaded, so getComputedStyle().overflow reads empty. A scrollTop === 0 assertion would pass against the defect it was written for, which docs/testing.md names as the worst kind of green. The calc() padding was therefore checked where a class can lie: in the built bundle, computed in Chrome.

clip is not hidden in every respect — it establishes no block formatting context. Moot for all four boxes: the panel is a flex container, and contain: layout already gives the two frames an independent formatting context.

Rejected: a closed list over every overflow-hidden in src/. There is no single property to scan for — these boxes take the containing block through contain: layout, a transform, or position: relative — but a blanket ban would flag Select, Combobox, CalendarView and the collapsed card, all of which are correctly hidden. Naming the boxes and keeping the [contain:layout] scan beside them catches the realistic next case without that noise.

Browser work ran against the live SahajCloud API with the read-only key already in this environment. Nothing was written.

Closes #326


🤖 Generated with Claude Code

https://claude.ai/code/session_01HaLJxGqK9T5rxtF8cGX4ZW (revision) · https://claude.ai/code/session_01RA2xQvrinJWAUkdn1HWefd (implementation)

`overflow: hidden` clips like a scroll container because it IS one. Every box
that holds this app's fixed interface used it, so the browser counted each as
somewhere it could scroll to reach a focused field — and then there was no way
back, since a clipped box paints no scrollbar and takes no wheel.

Measured in Chrome at 390x844 on `/gb/south-east/brighton/163/register`:
`scrollIntoView` on the form's submit button put `[data-vaul-drawer]` at
`scrollTop: 762`. The header left the screen, a blank band replaced it, and
Cancel/Register floated over nothing. In a contained embed the compact card's
dialog did the same at `scrollTop: 528`, carrying the whole widget out of the
host's own box.

`overflow: clip` is the same paint with no scroll box at all. It goes on the
Drawer atom's `content` slot, on `MapFrame`, and on `CompactEmbedView`'s dialog
— every element carrying `[contain:layout]`, which is what re-parents the fixed
layer onto it. Only the dialog was measured overflowing; the other two carry it
as the stated invariant.

`scroll-pb-28` is what the panel can no longer absorb: a sticky `DrawerFooter`
paints OVER the body, so a field scrolled flush to the bottom edge parks behind
EventView's Register bar.

Two specs, each watched failing against the defect first. `Drawer.scroll` pins
the atom's classes rather than `scrollTop`, because jsdom has no layout and that
assertion would pass against the bug. `overlay.clip` is the closed list over
`[contain:layout]`, because this session fixed the panel and left the dialog
scrolling — which is exactly the failure a closed list exists for.

Closes #326

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RA2xQvrinJWAUkdn1HWefd
Review of the branch found a fourth box of the same class and two ways the
first pass could pass by vacuum.

`DrawerStack`'s map-less container is `MapFrame`'s `map=false` twin: the filled
panel is `!absolute !inset-0` against it, so it is that panel's containing
block, and vaul translates the panel on drag and on close. Nothing has been
measured overflowing it — map-less takes no snap ladder — so it carries the
invariant, not a repair.

That box takes the containing block through `position: relative`, not
`contain: layout`, so a scan for the latter could never see it. The closed
list is named now, with the `[contain:layout]` scan kept beside it only to
catch a box added that way.

`overlay.clip` asserted class TOKENS against a substring. `CompactEmbedView`'s
own spec carries the defect that settles this: prettier-plugin-tailwindcss ate
a template literal's leading space and shipped `text-foregroundh-full`, which a
substring assertion passes. One of the scanned strings is that exact shape.
Watched a glued `outline-noneoverflow-clip` pass the old matcher and fail the
new one.

Two prose corrections, both found by reading rather than measuring. The panel's
overflow is vaul's own `::after` filler (`top: 100%; height: 200%`, ~1688px on
a phone sheet) — no view creates it and none can decline it, which is why the
atom owns the clip. And `clip` is not `hidden` in every respect: it establishes
no block formatting context. Moot for all four boxes — the panel is a flex
container, and `contain: layout` already gives the frames an independent
formatting context — but the spec said "the same paint" and now says what it
means.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RA2xQvrinJWAUkdn1HWefd
The containment section of `components/AGENTS.md` is where the next author
reads about `contain: layout` re-parenting the fixed layer. It now carries the
other half: such a box clips, and both mechanisms that make it matter — a
snap-translated sheet contributing its translate to whatever holds it, and
vaul's `::after` background filler on the panel itself.

It also names the box a reader would otherwise miss, `DrawerStack`'s map-less
container, which takes the containing block through `position: relative`.

`docs/testing.md` had two more figures left stale by the tenth inventory spec:
a walk count that now reads as a bare "another", and nine closed lists that are
ten.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RA2xQvrinJWAUkdn1HWefd
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9c133c3
Status: ✅  Deploy successful!
Preview URL: https://ec7b389a.sahajatlas.pages.dev
Branch Preview URL: https://claude-fix-326-drawer-scroll.sahajatlas.pages.dev

View logs

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 question for the reviewer, one per thread.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread src/components/atoms/Drawer/Drawer.tsx Resolved
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design 9c133c3 Oct 27 2026, 07:55 PM

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 25, 2026
@sydevs-bot

sydevs-bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 22:40Z address-review · attempt 1 · session · done
  • 22:40Z address-review · attempt 1 · session
  • 19:43Z resolve-conflicts · attempt 1 · session · done
  • 19:43Z resolve-conflicts · attempt 1 · session
  • 03:07Z resolve-conflicts · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Adversarial review

The fix works and the acceptance criterion holds — on the preview the panel's scrollTop/scrollLeft stay 0 after focusing every control, with overflow: clip computed. The behaviour is five tokens. Around them the diff adds ~250 lines and states one mechanism eight times, three of which point at components/AGENTS.md and then re-explain it. That aggregate is the thing to push on.

The two halves differ in kind. Clipping the frames is a real invariant, and the compact dialog's 528px was measured. Clipping the panel neutralises an effect whose cause is still present and is ours: 1686px of overflow from a ::after in our own vendored styles/vaul.css. Scope is clean and no contract surface is touched.

Findings

  • should-fix — the panel still carries all 1686px of overflow; the cause is a rule in a file we vendor (Drawer.tsx:31).
  • should-fix — scroll-pb-28 sits on the base slot for one caller, and the body's reason for that is inverted (Drawer.tsx:58).
  • should-fix — one mechanism restated in three files that already point at its owner (MapFrame.tsx:120).
  • consider — 112px is constant where the footer's offset is not (Drawer.tsx:54).

What was checked

Read whole: the four touched components, both new specs, styles/vaul.css, components/AGENTS.md, #326.

Browser, branch preview at 390×844 on the register route: overflow: clip, scrollHeight 2529 / clientHeight 843, offsets 0 after focusing all 6 controls, body scroll-padding-bottom: 112px. The body says no preview had deployed; one has since. Not reproduced: the top snap with 14 fields.

Clear: scroll-pb-28 generates (--spacing: 4px); overflow: clip is under docs/embedding.md's Safari 16.4 floor; DrawerFooter's sticky prop is absolute, so losing the block formatting context costs no scrollport.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread src/components/atoms/Drawer/Drawer.tsx Resolved
Comment thread src/components/atoms/Drawer/Drawer.tsx Resolved
Comment thread src/components/atoms/Drawer/Drawer.tsx Resolved
Comment thread src/views/MapFrame.tsx Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 25, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Two gaps, found while verifying #319 — which this branch also fixes (measured: Month button y = −70 → 53 on a direct /calendar load at 390×844, panel scrollTop 123 → 0).

  • src/views/story-harness.tsx:337 hand-copies the panel's chrome, overflow-hidden included. A Ladle story still previews the box this branch repaired, including the CalendarView story.
  • Drawer.scroll.test.tsx reads base slots only, and filled/wide are nothing but !important overrides of content. Adding !overflow-hidden to the filled compound leaves the panel carrying both classes — tailwind-merge does not strip overflow-clip from the base across importance — and the spec stays green. Watched it. /(^|:)!?overflow(-[xy])?-(hidden|auto|scroll)!?$/ over the token list catches it, mounted once per variant.

Not pushed: this PR holds bot:working and is not mine.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Four files stated the same containment mechanism for five changed tokens,
three of them pointing at `components/AGENTS.md` and then re-explaining it.
Each now carries the pointer plus the one fact local to the file: the measured
528px for the compact dialog, "nothing measured here" for the two boxes that
carry the invariant rather than a repair, and vaul's `::after` filler for the
panel, which is the one overflow no view can decline.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HaLJxGqK9T5rxtF8cGX4ZW
`scroll-pb-28` sat on the Drawer's base body slot for a single caller.
`EventView`'s Register bar is the app's only `sticky` DrawerFooter, so the ten
other drawer bodies carried 112px of scroll padding with nothing at the bottom
to clear — the register form among them, which has no footer at all. Both
numbers now sit on that one body, where `pb-20` already was, and a spec holds
the pair so a drift fails.

The constant was also right at the top snap only. The sticky footer is pinned
to the viewport edge through `--sy-sheet-top`, while the body's own box runs to
the panel's bottom — measured at 390×844 with the sheet at its 544px snap, the
body's bottom edge sits 519px below the viewport, so 112px of scroll padding
parked a focused field that far off-screen rather than above the bar. The
padding carries the same offset: computed 656px at that snap, 137px at the top
one, and `auto` wherever no bar renders.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HaLJxGqK9T5rxtF8cGX4ZW
Two gaps in what shipped, both reported against this branch.

`story-harness.tsx` hand-copies the panel's chrome so a view previews in Ladle
with the chrome the app renders. It still said `overflow-hidden`, so every
story — CalendarView's among them — previewed the box this branch repaired.

And the spec read the base `content` slot alone. `filled` and the wide left
panel are nothing but `!important` overrides of that slot, and tailwind-merge
does not strip a base `overflow-clip` across importance: a compound adding
`!overflow-hidden` leaves the panel carrying both classes, and the assertion
stayed green. It now mounts all sixteen variant combinations and refuses any
overflow token that scrolls, at any importance, prefix or axis — watched failing
against both shapes, on the eight filled cases and on the four left ones.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HaLJxGqK9T5rxtF8cGX4ZW
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Base merged clean (825c1d9). Three commits, lean gate green at 1776 tests.

Adopted — the clearance to its one caller and its offset in 4bde402; comment duplication in bd4f913.

Rebutted — delete vaul's ::after instead: the filler is already absent wherever a frame exists, which is where the 528px was.

Also pushed (3ecc9c4), from a peer comment: the story harness still hid its overflow, and the spec read base slots alone. Both reproduced first.

Open, and it holds the merge: the --sy-footer-h question. Option A is no longer built.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 25, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review October 25, 2026 20:46
@sydevs-bot
sydevs-bot requested a review from Ardnived October 25, 2026 20:46
@sydevs-bot
sydevs-bot enabled auto-merge October 25, 2026 20:46
@sydevs-bot sydevs-bot moved this from Revising to Approved in SYDevelopers Technical Roadmap Oct 25, 2026
#329 landed its own `### Fixed` entry and link reference at the same two
positions this branch writes to. Both entries are wanted: the radio mark and
the drawer scroll are unrelated host-visible fixes. Kept both, #329 first to
hold the section's descending PR order.

No other file overlaps — #329 touched RadioGroup, the ladle wrapper and the
scope spec, none of which this branch reads.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015WGofpx29gVMbk8UboQ8eB
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main in — only CHANGELOG.md conflicted. #329 added a ### Fixed entry and a link reference at the same two positions this branch writes to. Both fixes are host-visible and unrelated, so both entries stayed; #329 sits first to keep the section's descending PR order. No other file overlaps.

Lean gate green on the merge: 150 files, 1779 tests.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot added awaiting and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 25, 2026
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed awaiting labels Oct 26, 2026
#332 and this branch each added one spec that inventories `src/` and one that
reads a single repo file. Each side bumped the shared counts by one, so git
merged both edits and left every count one short.

CHANGELOG: both `### Fixed` entries and both link references kept — the 16px
zoom floor and the drawer scroll are unrelated host-visible fixes.

docs/testing.md and the three docblocks: counts re-derived from the merged
tree rather than taken from either side — eleven inventories, three of them
parsing, fourteen walkers, eight raw-text readers.

scripts/select-unit-specs.test.ts: the widest per-edit selection reaches 17,
one adopter of `repo-source.ts` from each side, against a ceiling of 16. The
spec's own comment names the answer — time the hook and ratchet, never drop a
spec — so the ceiling is 18. Timed here at ~3.6s against the 12s budget, and
`i18n.ts`'s 12 specs at ~3.5s, which is why the comment now claims width is
not time instead of quoting one machine's seconds.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012oxdkGx61u6EaQ13SgYhSX
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main (#332). Both conflicts were docs and purely additive: both CHANGELOG entries and both link references kept.

What the diff cannot show: #332 and this branch each added one src/ inventory spec and one repo-source.ts reader, and each bumped the same shared counts by one. Git merged both edits cleanly and left every count one short, so they are re-derived from the merged tree rather than taken from either side — eleven inventories, three of them parsing, fourteen walkers.

That same doubling tripped select-unit-specs.test.ts: the widest per-edit selection is 17 against a ceiling of 16. Its own comment names the answer — time the hook and ratchet, never drop a spec — so the ceiling is 18. Timed on 4 cores: repo-source.ts ~3.6s, i18n.ts ~3.5s, against the 12s budget.

Lean gate green: 151 files, 1788 tests.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot added awaiting and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 26, 2026
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed awaiting labels Oct 26, 2026
#320 landed on main and replaced this view's constant clearance with a
spacer sized by the footer's own published height, which answers the open
question thread here. Five hunks, resolved keeping both behaviours:

- EventView: main's body-slot spacer owns the CONTENT clearance, so `pb-20`
  goes. The scroll clearance stays — a spacer cannot stop focus parking a
  field behind the bar — and now spends `--sy-footer-h` rather than 112px,
  which #320 measured wrong in both directions (the bar runs 65px to
  197.5px). It keeps `--sy-sheet-top` on top, which #320 did not need.
- Drawer.tsx: both docblock halves kept. main's `fixed`-not-`absolute` ⚠,
  plus the scroll half rewritten against the published height.
- Drawer.scroll.test.tsx: asserts the new token, and that no constant
  padding returns. Watched failing against the token's removal, against a
  112px constant, and against `pb-20` coming back.
- select-unit-specs.test.ts, docs/testing.md: both sides raised the
  per-edit ceiling. 18 measured here, so main's prose keeps its two ⚠ lines
  at the branch's number. On 4 cores the widest selection is 5.0s and
  `i18n.ts` 4.7s, so "the widest is not the slowest" has flipped and the
  claim is now that width is not time at all.
- CHANGELOG.md: both link references.

Lean gate: lint, typecheck, test:run — 154 files, 1814 tests.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXP4oj7LD6ydH8sXPr
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main (9c133c3). Five hunks, one real choice.

#320 built the --sy-footer-h spacer this PR's open question thread asked for. So the body slot now owns the CONTENT clearance and pb-20 is gone from EventView. The SCROLL clearance stays, because a spacer cannot stop focus parking a field behind the bar — it now spends the published height rather than 112px, which #320 measured wrong in both directions (the bar runs 65px to 197.5px), and keeps --sy-sheet-top on top, which #320 did not need. Both docblock halves kept in Drawer.tsx.

Watched the rewritten spec fail against the token's removal, against a 112px constant, and against pb-20 returning.

Both sides raised the per-edit ceiling: 18 measured here, so main's prose keeps its two ⚠ lines at this branch's number. ⚠ Re-measured on 4 cores, the widest selection is 5.0s and i18n.ts 4.7s — so "the widest is not the slowest" has flipped, and the claim is now that width is not time at all.

Lean gate: 154 files, 1814 tests.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot added awaiting bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. awaiting labels Oct 27, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 5bb1854 Oct 27, 2026
43 checks passed
@sydevs-bot
sydevs-bot deleted the claude/fix-326-drawer-scroll-clip branch October 27, 2026 22:47
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

No code change this run. The branch already carries main's tip (9c133c3), so there was nothing to merge.

Answered — the --sy-footer-h question thread: left as built, and resolved. #320 landed option B's mechanism on main while this branch was open, so the body slot already spends the footer's published height for the content and EventView's pb-20 is gone. The scroll half stays on that one body, spending the same height plus --sy-sheet-top.

Body refreshed where the 9c133c3 merge had left it false: both 112px figures, the EventView and body-slot lines in § Change outline, the stale computed scroll-padding-bottom values, and the test count.

That was the last open thread. merge-verdict.mjs held only on it, and CI is green on this head. The newest approval is on 72b848f, so a fresh one is what it now waits for.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot moved this from Approved to Done in SYDevelopers Technical Roadmap Oct 27, 2026
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 27, 2026
Ardnived added a commit to sydevs/claude-workflow that referenced this pull request Oct 28, 2026
…d and stuck labels (#217)

* fix(dispatcher): retry a GitHub 5xx under every call

One 503 mid-plan ended an `act` leg after the lease was taken and before
the lock label was written. sydevs/SahajAtlasWeb#318 and
sydevs/WeMeditateWeb#146 were then refused as contention on every later
fire, silently, for days, until the refs were deleted by hand on
2026-10-27.

`installRetry` wraps the Octokit request hook once per leg, so REST,
`paginate` and GraphQL all retry a 500/502/503/504 or a dropped
connection `dispatch.githubRetry.attempts` times, doubling from
`baseSeconds`. A 4xx is an answer and is never retried.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(dispatcher)!: derive Status from state, and retire the awaiting, blocked and stuck labels

On 2026-10-27 seven open items sat in a dead zone with none of
`awaiting`, `blocked` or `bot:working` (SahajAtlasWeb#318 and #328,
WeMeditateWeb#124, #146, #150, #168 and #198). Each label was written on
a transition, so a transition that was missed left nothing at all.

What changes, each with the failure it prevents:

- Status is derived, never read. `status.mjs` turns the record, the
  relationships, Hold Until, the lock and the PR into one of Awaiting,
  Blocked, Hold, Pending, Working or Done; every plan ends in
  `syncStatus` and `apply` writes it after the plan's other writes.
  `rec.status` remembers the value written, so a different one on the
  board is a drag, reverted and journalled (`board-drag`). Roadmap
  goals get a Status too. `bot:working` stays: it is the lease a session
  reads, the unlock event, and the kill switch.
- Approval lives in the record (`approved: {by, at}`), not in a Status
  the board could lose. `pendingImplement` folds into it; `hold`,
  `revise`, a reopen, an abandoned PR and a build that ends with no PR
  spend it.
- Pending has a due. A wait the machinery owns starts `pendingSince`;
  past `dispatch.pendingDueMinutes` the reconciler checks it again, up to
  `maxAttempts`, then hands it back with the reason. #328 and #198 sat
  approved and armed for days with nobody owning the wait. `handback`
  replaces `stuck` and every give-up label.
- The reconciler replaces the two-hour drift window, which the 2–7 hour
  cron rarely met (#124, #150): a cheap GraphQL view of every open item
  against the board, a full gather only where they disagree, plus every
  Pending item on the cron, and a capped pass on event runs.
- A lease past its deadline is reclaimed whatever the label says, and a
  lease with a session on record and no lock is read as its lost unlock.
- A refused fire sets `rec.pending` with a retry, so it reads Pending and
  is fired again instead of waiting on a drain that never comes.
- `hold [until] <N days|weeks|months|date>`: a date, approval withdrawn,
  a bare hold spread across `holdUntil.defaultDays`, capped at 180 days.
  No recheck sessions and no `maxRehold`: the date passing hands the
  ticket back, and a blocker closing starts an approved ticket at once.
  `block on` keeps an approval; `block until <reason>` asks a session.
  `implement` on a held ticket clears the hold and starts it; on a
  blocked, unplanned goal it records the approval instead of refusing.
- PRs are merged or closed: `hold` and `block` on a PR are refused.
- A member's PR gets the loop: once ready, the critic, the other member
  asked to review (GitHub refuses the author, which failed on #318),
  fixes and auto-merge. Their drafts are left alone unless mentioned.
- An approved PR with a thread waiting on a person reads Awaiting and
  names the thread once; an approved PR a session touched stays Pending,
  so a conflict fix no longer re-asks for review (#328, approved 3x).
  Past its due, mergeability GitHub still calls UNKNOWN is resolved, not
  read as clean.

Not separately revertable: the derived Status replaces the label writes
in every row of decide.mjs, so this lands and reverts as one commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(loop): skills read a derived Status, and a base merge is pushed only with work

The skills move with the dispatcher (5.0.0, so an installed plugin picks
them up):

- Labels and Status: start-run's "never write state" list, format-ticket,
  run-audit, finalize-pr, audit-deps, implement-ticket, improve-loop and
  implement-roadmap/cross-repo say Status is derived and name only the
  two labels left, `bot:working` and `proposal`.
- write-ticket and revise-roadmap lose the `recheck` mode. `block` turns
  `block until <reason>` into a `Blocked by:` line or a Hold Until date
  with the reason written into the body, since nothing rechecks it later.
- A base merge opens address-review (as before), fix-ci and a continued
  implement, and is pushed only with the work or when it resolved a
  conflict. address-review used to push a clean merge alone, which
  re-ran CI and put approved PRs back on the reviewer's list for nothing.
- resolve-conflicts asks about a hunk only as a question thread, which is
  the one thing that makes an approved PR the person's turn again (the
  false re-ask on sydevs/SahajAtlasWeb#328). "You cannot push to a human's
  PR" becomes what is true: a session pushes only to `claude/*`, so a
  member's PR on a `claude/*` branch is pushed to like the bot's.

`rule-delta.mjs --base origin/main workflow/skills`: 88 → 88 directives,
none removed, one reworded (start-run's state list).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(loop): the Status lifecycle in README, why.md and routine-setup

README: the Status table replaces the label table, the verbs table gains
`hold` and the reshaped `block`, and member PRs are described.
routine-setup: three labels left, the new Status options and colours,
the board views moved to Status filters, and `gh workflow run
workflow-state.yml` as the on-demand full reconcile. why.md: a new
"Status lifecycle" group with an entry per rule above, and the rules it
replaces moved under Retired with their Replaced-by lines. The citation
of #3, closed on 2026-10-27, is dropped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(rollback): migrate-to-lifecycle.mjs, the one-time move to the derived Status

Four phases, dry run unless --apply: `records` writes `approved` into the
status comment of every issue the old model approved (Status Approved,
`pendingImplement`, `approveOnPlan`, or a goal that was planned), and a
`handback` on an approved ticket still carrying `awaiting`, so it reads
Awaiting rather than firing a build; `board` replaces the Status options
(Done keeps its id and its items); `labels` deletes the three labels in
every repo; `reconcile` dispatches each repo's workflow-state.yml.
`records` runs before the merge: the old dispatcher keeps fields it does
not know when it saves a record.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(dispatcher): no pass but a person's verb approves a goal's children

The migration records `approved` on every goal that was planned, so the
reconcile pass, which starts an approved free ticket, would have reached
sydevs/SahajCloud#902, #941, #897 and sydevs/SahajAtlasWeb#266 and
approved their unstarted children: builds nobody asked for. A goal is now
only ever planned by a pass (an approved goal whose blocker closed), never
has its children approved; reconcile leaves goals alone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

fix(ui): focusing a low field scrolls the whole drawer off-screen fix(calendar): direct /calendar on a phone hides its header and Close

3 participants