Skip to content

fix: tab bar + button dropdown clipping and file discovery#11

Closed
PresenceWith wants to merge 11 commits intodevelopfrom
fix/tab-add-button
Closed

fix: tab bar + button dropdown clipping and file discovery#11
PresenceWith wants to merge 11 commits intodevelopfrom
fix/tab-add-button

Conversation

@PresenceWith
Copy link
Copy Markdown
Owner

Summary

  • CSS fix: Separated tab scroll container (.vync-tab-scroll) from .vync-tab-bar to prevent overflow-x: auto from clipping the absolutely-positioned dropdown
  • Server endpoint: Added GET /api/files/discover that scans allowedDirs for unregistered .vync files (max 100 results)
  • Frontend integration: Dropdown now shows two sections — "Reopen" (closed tabs) and "Open" (discovered unregistered files) — fetched on + click

Test Plan

  • 5 new discovery endpoint tests (72 total, all pass)
  • Manual: click + button → dropdown visible below tab bar
  • Manual: unregistered .vync files appear in "Open" section
  • Manual: clicking a discovered file registers and opens it as a tab

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

PresenceWith and others added 11 commits March 12, 2026 13:52
overflow-x: auto on .vync-tab-bar forced overflow-y: auto per CSS spec,
clipping the absolutely positioned dropdown. Split into .vync-tab-scroll
(overflow-x: auto) and keep .vync-tab-add outside the scroll container.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Scans allowedDirs and their .vync/ subdirectories for unregistered
.vync files. Returns up to 100 discovered file paths. Enables the
frontend '+' button to show files available for opening.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
App fetches GET /api/files/discover on '+' click, passes results
to TabBar. Dropdown shows 'Reopen' (closed tabs) and 'Open'
(unregistered .vync files) sections. Uses handleAddFile with
server-validated path for reliable tab creation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…point

- ARCHITECTURE.md: add GET /api/files/discover to API endpoint table
- DECISIONS.md: fix D-015/D-016 doc paths (plans/ → archive/)
- CLAUDE.md: update multi-tab UI description for two-section dropdown

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove docs/archive/*, completed docs/plans/*, and examples/ that are
no longer needed. Add docs/archive/ to .gitignore.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change `app.get('*', ...)` to `app.get('*path', ...)` to fix
"Missing parameter name at index 1" error with path-to-regexp v8.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add 'showHiddenFiles' property so .vync files in dot-prefixed
directories are visible when opening via the file chooser.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Without flex:1, the scroll container only takes the width of its
tab contents, placing the "+" button immediately after the last tab.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update all subagent_type references from "vync-translator" to
"vync:vync-translator" to match marketplace naming convention.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- CLAUDE.md: add Electron bundle sync instructions
- ARCHITECTURE.md: add diff pipeline section, file discovery endpoint,
  EADDRINUSE recovery flow, code signing note
- PLAN.md: add post-MVP sections (diff pipeline, server lifecycle,
  code signing, tab bar fix)
- FUTURE.md: fix relative link path
- WRAP.md: add post-MVP phase naming convention
- Add tab-add-button fix plan document

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@PresenceWith PresenceWith deleted the fix/tab-add-button branch March 12, 2026 06:39
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