Skip to content

fix(board): restore breadcrumb regressions from #267 - #273

Merged
winlp4ever merged 1 commit into
mainfrom
fix/breadcrumb-267-regressions
Sep 5, 2026
Merged

winlp4ever merged 1 commit into
mainfrom
fix/breadcrumb-267-regressions

Conversation

@winlp4ever

Copy link
Copy Markdown
Contributor

Follow-up to #267 (unified board breadcrumb). A /code-review high pass incidentally re-scanned the merged #267 code and surfaced these regressions, all verified against main.

Fixes

  1. Add-icon hover broken on un-iconed sheets (functional, every un-iconed sheet). Restoring the sheet title dropped the group class from the panel body header; NoteIconControl's "Add icon" button is opacity-0 + group-hover:opacity-100, so with no group ancestor it stayed permanently invisible. Re-added group.
  2. "Name your canvas" onboarding coachmark never rendered. data-coachmark="title" existed nowhere after the refactor — the old FolderBreadcrumb carried it, the new BoardBreadcrumb didn't, and empty-board-coachmarks.tsx queries for it (null -> callout dropped). Added it to the breadcrumb's board-name element (root only).
  3. Cross-board rename edge. The root edit-target sentinel was a shared constant, so a no-blur route change mid-rename could commit board A's draft onto board B. Scoped the sentinel by boardId so switching boards changes the target and abandons the in-flight edit.

Not included

The reviewer also flagged that folder-depth now derives from the on-device replica (useLocalBoardContents) rather than the backend note-path, so a synced board with a lagging replica could transiently under-count depth and allow a sub-board past the limit. Left as-is: it's the intended offline-first source of truth (the replica is complete post-sync), and reintroducing a backend note-path call just for the depth gate contradicts that direction. Noted here for visibility.

Test plan

  • npm run check-all: clean
  • npm run test:run: 1354 passed

- Re-add the `group` class to the sheet panel body header so NoteIconControl's
  hover-revealed "Add icon" button works again for un-iconed sheets (it relies on
  group-hover; the class was dropped when the title was restored).
- Add data-coachmark="title" to the breadcrumb's board-name element so the empty
  board "name your canvas" onboarding callout anchors again (the old
  FolderBreadcrumb carried it; the new one didn't).
- Scope the root edit target by boardId so switching boards mid-rename abandons
  the in-flight edit instead of committing one board's draft onto another.
@winlp4ever
winlp4ever merged commit 1629b14 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