Skip to content

feat(ui): add-a-stack dialog: tabs, one folder field, choose what a scan adds - #410

Merged
7schmiede merged 1 commit into
mainfrom
feat/add-stack-dialog
Nov 2, 2026
Merged

7schmiede merged 1 commit into
mainfrom
feat/add-stack-dialog

Conversation

@7schmiede

Copy link
Copy Markdown
Member

What

  • Tabs instead of two buttons for "One repository" / "Scan a folder of repositories", in the style of a stack page's tabs.
  • One folder field (FolderField.vue, shared by both tabs): folder icon, path input and the "Browse…" button (the hub's folder dialog; gone where the hub answers 501) as one control, the action attached.
  • One repository: the path is checked once typing pauses (450 ms), Enter or a picked folder at once; an answer for a path the field no longer holds is dropped. The Check button goes.
  • Scan: every new repository gets a checkbox (all chosen after a scan), a header row chooses all/none; "Add N stacks" adds only the chosen ones, one registration each through the existing POST /hub/stacks/add. A failed one keeps the dialog open with its reason at the row. The hub is unchanged (add of /hub/stacks/scan stays in the API, the dashboard no longer uses it).
  • Mock: the scan finds a second new repository (worker).

Review card

None: dashboard only, no point in a card category (trust, concept, contract, term). Decided on my own: auto-check while typing, 450 ms, "Browse…", the per-repository registration instead of add: true, dropping the unused test id add-stack-check.

Owner asked for it in the conversation on 2026-11-02 (tabs, one field instead of separate button + input, choosing what a scan adds).

Checks

npm run typecheck, vitest run (129 passed); looked at in the lane against the mock hub.

🤖 Generated with Claude Code

…oice of what a scan adds

The two ways to add are tabs; the path, the folder dialog and the action are
one field (FolderField), shared by both tabs. A single repository is checked
once typing pauses, so its Check button goes. A scan lists the new
repositories with a checkbox each (all chosen at first) and adds only the
chosen ones, one registration each through POST /hub/stacks/add.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit e8a4de5 into main Nov 2, 2026
@7schmiede
7schmiede deleted the feat/add-stack-dialog branch November 2, 2026 14:58
@7schmiede 7schmiede mentioned this pull request Nov 2, 2026
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