Repository navigation
Closed
Labels
complexity-mediumComplexity: medium (board points 5-8)priority-p2Importanttheme-ui-uxTheme: UI/UXtype-bugBug fix
Description
Summary
The Create Agent dialog does not fit a laptop screen and is hard to use. It scrolls both vertically and horizontally, its height changes as you pick options, and it asks for two names. Replace it with a fixed-size two-pane picker: sources on the left, the selected source's details and the name on the right.
Problem
Observed on a 14" MacBook in dark mode (src/frontend/src/components/CreateAgentModal.vue):
- Two stacked vertical scrollbars. The dialog itself scrolls (
max-h-[90vh] overflow-y-auto) and the template list scrolls again inside it (max-h-80). - Horizontal scroll. The featured template's tagline has no truncation, so a long line overflows its card and the list scrolls sideways.
- The dialog jumps. The repository field, the import-intent picker, the agent-or-codebase question, the fork-to-own fields and the template description box each appear in the middle of the form and push everything below them down.
- Two name fields, slug first. The permanent identifier is asked for before the friendly name, with long help text under each.
Proposed design (option A, two-pane picker)
Mockups: option A in the design review canvas (linked in the PR).
- A fixed-size dialog (about 880×600, clamped to the viewport). Header and footer never move. Each pane scrolls on its own, vertically only.
- Left pane: a search field over one list. Groups: Start (Blank agent, Import a GitHub repository), Featured, Local templates, GitHub templates. Long text truncates.
- Right pane: the selected source's icon, title and description, then one Name field. The permanent ID is shown under it as a live preview (
marketing-assistant) with an Edit link to override it. The display name is the typed name. - Runtime row (read-only): shows the template's declared runtime, or "Claude Code" for a blank agent. A picker is out of scope here (trinity-enterprise#603).
- Source-specific options (repository, import intent, agent or codebase, fork-to-own fields) render only in the right pane, which scrolls inside itself, so nothing outside it moves.
- The narrow-screen layout stacks the two panes; nothing scrolls horizontally.
Acceptance Criteria
- At 1440×900 and 1280×720, light and dark, the dialog fits the viewport with no page or dialog-level scrollbar and no horizontal scroll anywhere.
- Switching between any two sources does not change the dialog's size or move the header, footer or left list.
- One Name field. The ID preview follows the existing sanitizer, can be overridden, and an empty or invalid name disables Create with a named reason (bug(ui): Agent name has no length ceiling, no format hint and no preview of the sanitized slug #3463).
- Every existing create path still works with the same API payload: blank, local template, GitHub template, featured fork-to-own, custom GitHub repo with clone, copy and fork, and the agent-or-codebase choice. The post-create validation step still shows for GitHub-sourced creates.
- Built on
BaseModal,BaseInputandBaseButton, with semantic tokens only. The raw-color ratchet does not grow. - A mounted component test pins the payload for each path and the single-name-to-ID behaviour.
Out of scope
- Runtime selection (trinity-enterprise#603).
- Changing what the agent-or-codebase question offers or defaults to.
Metadata
Metadata
Assignees
Labels
complexity-mediumComplexity: medium (board points 5-8)priority-p2Importanttheme-ui-uxTheme: UI/UXtype-bugBug fix
Activity
vybe commentedon Oct 18, 2026
/claim
github-actions commentedon Oct 18, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/3792-<short-slug>Fixes #3792fix(ui): redesign the Create Agent dialog as a fixed two-pane picker (#…