Skip to content

chore(board): post-review cleanups - #274

Merged
winlp4ever merged 2 commits into
mainfrom
chore/post-review-cleanups
Sep 5, 2026
Merged

winlp4ever merged 2 commits into
mainfrom
chore/post-review-cleanups

Conversation

@winlp4ever

Copy link
Copy Markdown
Contributor

Follow-up cleanups surfaced by the recent /code-review high passes (findings #3, #4, #5). No behavior change beyond dropping one redundant network call.

Changes

  1. Drop the REST /path fetch in SheetPanel (ci(github): publish github releases from workflow #3). After the unified breadcrumb took over the ancestor chain, the panel kept useGetNotePath purely to count ancestors for the decorative SheetStackBackground ghost cards — a full /path round-trip per synced sub-page open, for a single integer. stackDepth now comes from the off-scene chain length; a synced sub-page not in the local replica shows no stack (purely cosmetic).
  2. Dedup the parentId walk (ci(github): push release tags explicitly #4). buildNodePath (breadcrumb) and buildNotePath (off-scene note) were two near-identical cycle-safe walks. Extracted the shared walk into model/parent-chain.ts (generic over item shape via id/parentId accessors); both now project the shared chain into their own crumb type, so the cycle-safety can't drift.
  3. Fix the stale model-routing plan doc (style(ui): minor ui board twists #5). model-routing-deepseek-base.md predated the later changes: it said gpt-oss-120b uses openai/gpt-oss-120b with no :nitro and a 2 → 5 timeout. Corrected to :nitro (open-weight, multi-provider) and 2 → 3.

Test plan

  • npm run check-all: clean
  • npm run test:run: 1354 passed (existing build-node-path + use-off-scene-note tests cover the refactor)

Follow-up to the code-review passes on the breadcrumb + model-routing work:

- Drop the REST `/path` fetch in SheetPanel that existed only to count ancestors
  for the decorative ghost-card stack after the breadcrumb moved out. Depth now
  comes from the off-scene chain length; a synced sub-page not in the replica
  simply shows no stack (purely cosmetic) instead of a `/path` round-trip.
- Extract the shared, cycle-safe parentId walk into `model/parent-chain.ts` and
  route both `buildNodePath` (breadcrumb) and `buildNotePath` (off-scene) through
  it, so the two crumb builders can't drift.
- Fix the stale model-routing plan doc (it predated the nitro + 3s-timeout
  changes): gpt-oss-120b keeps `:nitro`, and the timeout is 2 → 3.
Follow-up to the review of this PR:
- Delete get-note-path.ts (useGetNotePath): dropping the REST /path fetch removed
  its last caller, so the module is now unreachable. Refresh the stale reference
  in the off-scene note-path docstring.
- Add e.stopPropagation() to the sheet panel's H1 title input keydown so editing
  the title no longer leaks Esc (closes the sheet) or letter keys (tool shortcuts)
  to the window listeners — matching the breadcrumb's title input.
@winlp4ever
winlp4ever merged commit a7e3e19 into main Sep 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant