Skip to content

refactor(board): consolidate sync indicator to footer#100

Merged
mhersson merged 2 commits into
mainfrom
ctxmax-509/git-sync-on-3-different-places-in-the-board-view
May 18, 2026
Merged

refactor(board): consolidate sync indicator to footer#100
mhersson merged 2 commits into
mainfrom
ctxmax-509/git-sync-on-3-different-places-in-the-board-view

Conversation

@contextmatrix-runner
Copy link
Copy Markdown
Contributor

Summary

  • Removes the duplicate "last synced" displays from the top bar and the board sub-header band, leaving a single clickable indicator in the board footer.
  • Drops the standalone "Connected" dot from the top bar (the sidebar already shows connection status).
  • Removes the pulsating green dot in the footer (eliminates a continuous CSS animation) and the trailing "· 1 board" suffix.
  • Deletes the now-orphan SyncIndicator.tsx component (and its 30s relative-time setInterval); prunes the now-unused connected, syncStatus, onSyncClick props from AppHeaderProps and the lastUpdated prop from BoardBandProps. The .board-footer__pulse CSS rule and its ::before pseudo-element are gone; @keyframes pulse-dot is retained because .board-band__pulse still consumes it.
  • New onSyncClick prop on BoardFooter is wired through Board to ProjectShell.triggerSync() so the consolidated footer indicator initiates a sync on click; renders as a <button> when a handler is provided, plain <span> otherwise.

Test plan

  • cd web && npm test -- --run (49 files / 592 tests pass)
  • cd web && npm run lint (clean)
  • cd web && npx tsc --noEmit (clean)
  • Manual smoke: open the board, click the footer sync label, verify a sync runs and the relative time refreshes
  • Manual smoke: confirm the top bar's right side now contains only Stop All (when applicable), PaletteSelector, and ThemeToggle — no Connected dot, no sync time
  • Manual smoke: confirm the board sub-header line ends at … shipped this week with no trailing Updated … / git sync …
  • Manual smoke: confirm the footer reads <sync label> <N> cards · <M> columns <rail toggle> with no · 1 board and no pulsating dot

Review notes

Automated review (Opus, 3 specialists) flagged one Important consideration as a candidate follow-up:

  • The previous SyncIndicator rendered three states (syncing, last_sync_error, idle); the consolidated footer label only surfaces the idle/last-sync-time state. syncStatus.syncing and syncStatus.last_sync_error are no longer read anywhere, and triggerSync errors are caught and swallowed in useSync.ts. Out of scope per the card's literal acceptance criteria but worth a follow-up if silent error/in-flight is undesirable.

See the parent card's ## Review Findings section for the full set of minor a11y/style notes.

ContextMatrix Runner and others added 2 commits May 18, 2026 05:36
… duplicates

- Remove SyncIndicator component and delete SyncIndicator.tsx
- Drop connected/syncStatus/onSyncClick props from AppHeaderProps and render
- Remove lastUpdated prop and trailing span from BoardBand sub-line
- Add onSyncClick prop to BoardFooter; render sync label as <button> when
  handler is provided, plain <span> otherwise
- Remove "· 1 board" suffix from footer card/column count line
- Remove pulsating green dot from board footer (drop .board-footer__pulse::before)
- Add .board-footer__sync-label CSS for the clickable sync label button
- Wire onSyncClick={triggerSync} from ProjectShell into Board into BoardFooter
- Update BoardBand and BoardFooter tests to match new prop shapes
- Show syncing / error / idle states with aria-busy and tooltip
- Add useRef re-entrancy guard to triggerSync
- Self-tick relative-time label every 30s in BoardFooter
- Move SSE-connected dot from Sidebar to BoardFooter (visible to all)
- Drop now-redundant relativeTime helper and syncLabel from ProjectShell
@mhersson mhersson merged commit 93fb9a3 into main May 18, 2026
7 checks passed
@mhersson mhersson deleted the ctxmax-509/git-sync-on-3-different-places-in-the-board-view branch May 18, 2026 07:15
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