Files

Handoff: Helder App v2 — full-screen Git view and Schema view

Overview

Helder is a desktop IDE shell for one developer working with Claude Code. It has a title bar, an Explorer (file tree), a File editor, a Claude transcript with prompt and terminal, a status bar, plus overlays for search and file diff.

v2 replaces the old 264px Git sidebar with a full-screen Git view. Press ⌘G to toggle it. The view covers the whole window, the same way the file diff overlay does. In it the user can:

  • see staged, changed, new (untracked) and deleted files, each in its own colour-coded section, with Staged always on top
  • expand any file to see an inline side-by-side diff with collapsed context
  • stage, unstage, discard, delete or restore files one at a time or in bulk
  • write a commit message and commit, or commit and push
  • pull and push, with ahead/behind counts
  • read the real git commands and their output in a console, and type git commands there
  • see local and remote branches and switch between them, but only when the working tree is clean

v2 also adds a full-screen Schema view (⌘D). It exists only when the open Laravel app contains app/Console/Commands/HelderSchemaCommand.php. It runs php artisan helder:schema, reads the dump it writes, and draws the whole database as a navigable diagram of tables and foreign-key lines. See Screen: Schema view below.

Everything outside the Git and Schema views works as it did in v1 (Explorer, File, Claude, terminal, search, diff, menus, modals). The only exceptions are the changed shortcuts listed below.

About the design files

The files in this bundle are design references created in HTML. They are prototypes that show the intended look and behaviour; they are not production code to copy. The task is to recreate this design in Helder's real codebase, using its existing framework, state management and git layer. If no environment exists yet, pick the best fit; for a desktop IDE shell that is likely Electron or Tauri, with React and a real git backend such as simple-git, isomorphic-git or shelling out to git.

The prototype fakes git: file contents live in memory, and console output is simulated. The real build must run real git commands and stream their real stdout and stderr into the console.

Fidelity

High-fidelity. Colours, type, spacing, states and copy are final. Recreate them pixel-precisely with the codebase's own components. The visual language is the Blijnder Kade design system in its dark (slate) application: IBM Plex Mono and IBM Plex Sans, flat fields, 2px radii, amber as the only accent, no shadows except on menus and modals.


Keyboard shortcuts (v2)

Key Action
⌘G / Ctrl+G Open or close the Git view
⌘D / Ctrl+D Open or close the Schema view (only when the app has HelderSchemaCommand.php)
⌘1 / ⌘2 / ⌘3 Toggle Explorer / File / Claude (in v1 this was ⌘1–4, with Git on ⌘1)
⌘F Search the project
⌘L Fluid (soft wrap)
⌘. Show hidden files
⌘N Scratch note
⌘↵ (in the commit message) Commit
↑ (in the console input) Recall the last command
Enter (in the Schema table search) Centre the first matching table
Esc Closes the topmost layer, in this order: context menu → modal → search → file diff → Schema selection → Schema view → Git view → interrupts Claude

The title-bar panel toggle group now reads Git N · Schema · Explorer · File · Claude. N is the number of changed files. The Git and Schema buttons show an amber dot while their view is open. The Schema button is left out when the command file does not exist. Git and Schema are mutually exclusive: opening one closes the other.


Screen: Git view (full screen)

A position: fixed; inset: 0 layer, z-index: 44, background #101720, min-width 900px, laid out as a flex column. It sits above the app shell and below the file diff overlay (45), context menu (60/61), modal (70) and toast (80). This lets the confirm modals and the context menus appear on top of it.

From top to bottom:

1. Top bar — 44px

  • Background #18202B, bottom border 1px #232C39, padding 0 14px (left: the traffic-light inset, 14px in full screen), flex row, gap 14px, items centred.
  • [ GIT ]: Plex Mono 700, 11px, letter-spacing .14em, uppercase, #828D9A.
  • Branch: Lucide git-branch icon at 13px, then the branch name. Plex Mono 500, 12px, #E8913A, truncated with an ellipsis.
  • Sync label: Plex Mono 400, 12px, #828D9A. Text is 2 behind origin, 1 ahead · 2 behind origin, or in sync with origin.
  • A flex spacer, then four buttons, each 28px tall:
    • Shared style: padding 0 11px, border 1px #232C39, radius 2px, transparent background, Plex Sans 500 12px #BAC0C0, icon 14px, gap 7px.
    • Hover: text #F4F5F4, border #3A424C.
    • Pull: icon arrow-down-to-line, label Pull (Pulling… while busy), then the count ↓2 in Plex Mono 600 11px #E8913A. The count is hidden when 0.
    • Push: icon arrow-up-from-line, label Push (Pushing… while busy), then the count ↑1 in the same amber style.
    • Clean up (native build only): icon eraser, label Clean up, no count. Disabled (40% opacity, default cursor) when nothing is unstaged or untracked, during a merge conflict, or while a pull or push runs.
    • Close: icon minimize-2, label Close, then the key hint ⌘G in amber mono 11px.

2. Commit block

  • Background #18202B, bottom border 1px #232C39.
  • Message textarea: full width, auto-grows (field-sizing: content) from 56px up to 180px.
    • Background #101720, no border except a 1px #232C39 bottom border, which turns #E8913A on focus.
    • Padding 14px 16px, Plex Mono 400, 14px / 1.6, colour #F4F5F4, caret #E8913A, text right-aligned.
    • Placeholder: Commit message, right-aligned. The field gets focus when the Git view opens.
  • Footer row: 52px tall, padding 0 14px 0 16px, gap 16px. Order: author, hint, a spacer, then Gen. Commit Message and the three commit buttons, gap 8px.
    • Gen. Commit Message (small secondary), on the right just before Add, Stage & Commit: 32px tall, padding 0 12px, radius 2px, a 1px #232C39 border, the pass-on spark glyph (12px, stroke) then the label in the commit-button type, text #BAC0C0; hover fills #1E2733 and turns glyph and text #F4F5F4. While it runs the label reads Generating…. Disabled (40% opacity, default cursor, no clicks) when nothing is staged or while it runs. A click sends the staged diff to the Claude CLI and puts its one-line answer in the message field (replacing the draft, lowercased like typed text) and focuses the field; a failure toasts Couldn't generate a commit message with the reason (claude not found, the CLI's first error line, timed out). Native build only.
    • Author Jonathan van Rij <jonathan@blijnder.nl> in Plex Mono 12px #828D9A, first on the left; it truncates when space runs out. In the real build, read this from git config user.name and user.email.
    • Hint ⌘↵ commits in Plex Mono 12px #6C7783.
    • A spacer, then Gen. Commit Message and three buttons side by side, gap 8px, each radius 2px, 32px tall, padding 0 18px, Plex Sans 600 13px:
      • Add, Stage & Commit (secondary), on the left: the same look as Commit. Stages every unstaged path with git add -- <paths>, then commits without a push. An empty message stages nothing and focuses the message field. Disabled (40% opacity, default cursor, no clicks) with no changes, during a merge conflict, or while a push or pull runs.
      • Commit (secondary): min-width 160px, label Commit N file(s), or Nothing staged when nothing is staged. Transparent with a 1px #232C39 border and text #BAC0C0; hover fills #1E2733 and turns the text #F4F5F4.
      • Commit and push (primary), on the right. Ready state (≥1 staged file and a non-empty message): background #E8913A, text #101720, hover amber-deep #C4741F. Otherwise: background #232C39, text #828D9A, hover #202834. With files staged it stays clickable, so git's own error appears in the console.
      • Nothing staged: Commit and Commit and push are disabled, 40% opacity, default cursor, clicks do nothing. ⌘↵ still runs git commit.
      • Native build only; the prototype still draws the old split button.

3. File sections (scrolling area, flex: 1, padding-bottom 24px)

Sections appear in this fixed order, and only when they contain files:

Section Contains Colour Tint (header background) Bulk actions (left column · right column) Row actions (left · right)
STAGED every staged path, any status #E8913A rgba(232,145,58,.08) — · Unstage all — · Unstage
CHANGED unstaged, modified #F0B476 rgba(240,180,118,.06) Discard all · Stage all Discard · Stage
NEW · UNTRACKED unstaged, added #8FBFB4 rgba(143,191,180,.06) Delete all · Stage all Delete · Stage
DELETED unstaged, deleted #C3A6CE rgba(195,166,206,.06) Restore all · Stage all Restore · Stage

The section right after Staged gets margin-top: 28px and a 1px #232C39 top border, which visually separates staged from unstaged work.

If there are no changes at all, the area shows only: — No changes. The working tree is clean. (Plex Sans 13px / 1.6, #828D9A, padding 24px 16px).

Section header: 46px tall, padding 0 14px 0 11px, a 3px left border in the section colour, the tint background, and a 1px #232C39 bottom border. Hover background is #18202B. Clicking it collapses or expands the section. From left to right:

  • Chevron at 14px: chevron-down in #E8913A when open, chevron-right in #6C7783 when closed.
  • Label: Plex Mono 700, 11px, .14em, uppercase, in the section colour.
  • Count badge: Plex Mono 600 11px, text #101720 on the section colour, radius 2px, padding 3px 6px.
  • A spacer, then the actions table.

Actions table (identical in headers and rows, so the buttons line up as columns): a CSS grid grid-template-columns: 100px 100px; gap: 6px. When a section has only one action (Staged), the left cell is an empty spacer, so Unstage always sits in the right column.

  • Header buttons: 100×28px, border 1px #3A424C, radius 2px, transparent background, Plex Sans 500 12px. Hover: border #6C7783, background #232C39.
  • Row buttons: 100×26px, border transparent, background transparent. Hover: border #3A424C, background #232C39, text #F4F5F4.
  • Text colour: destructive actions (Discard, Delete, and their "all" versions) use #F0B476; all others use #BAC0C0.
  • Buttons stop propagation, so clicking one never expands the row.

File row: 36px tall, padding 0 14px 0 11px, gap 10px, row bottom border 1px #232C39.

  • A 3px left border: #E8913A for rows in Staged, transparent elsewhere.
  • Background #18202B when expanded, transparent otherwise. Hover background is #1F2834.
  • Click toggles the inline diff; right-click opens the context menu (below).
  • From left to right:
    1. Chevron at 13px: chevron-down in #E8913A when expanded, otherwise chevron-right in #6C7783.
    2. Status badge: 18×18px, radius 2px, filled with the status colour (M #F0B476, A #8FBFB4, D #C3A6CE), letter in Plex Mono 700 11px #101720. Tooltip: Modified / New file / Deleted.
    3. Path: flex 1, ellipsis, Plex Mono 400 13px. The directory part plus / is #828D9A; the file name is #F4F5F4. Deleted files have a line-through and the name in #828D9A.
    4. Stats, placed just left of the actions table:
      • +N in a 52px right-aligned cell, Plex Mono 500 12px #8FBFB4.
      • −N in a 52px right-aligned cell, Plex Mono 500 12px #F0B476, padding-right 8px. Use a real minus sign −.
    5. The actions table.

Row context menu:

  • Open in editor (bold, icon file-text; not shown for deleted files): closes the Git view and opens the file.
  • Separator.
  • Pass on reference (icon sparkle): closes the Git view and inserts @path into the Claude prompt.
  • Copy reference (icon files).

4. Inline diff (inside an expanded row)

  • A 1px #232C39 top border, padding 8px 0 12px, Plex Mono 400 13px / 22px.
  • Each line is a two-column grid, minmax(0,1fr) minmax(0,1fr). Left is the last commit, right is the working tree. The left cell has a 1px #232C39 right border.
  • Each cell:
    • Line-number column: 52px wide, right-aligned, padding-right 12px, user-select: none.
    • Code: white-space: pre-wrap; word-break: break-word; tab-size: 4, colour #E4E7E6.
  • Line types:
Type Background Line-number colour
Unchanged transparent #3A424C
Removed (left) rgba(232,145,58,.12) #F0B476
Added (right) rgba(143,191,180,.12) #8FBFB4
Empty filler (the side with no line) rgba(35,44,57,.35) —
  • Intra-line highlight: when a removed line is paired with an added line, compute their common prefix and suffix. Highlight the differing middle with a background of rgba(232,145,58,.38) on the left and rgba(143,191,180,.36) on the right. If they share no prefix or suffix, there is no highlight.
  • Hunking: keep 3 lines of context around each change. Collapse any other run of unchanged lines into one separator row:
    • 28px tall, margin: 6px 0, background #18202B, padding-left 64px.
    • Text: ⋯ N unchanged lines in Plex Mono 11px #6C7783.
  • Added files show everything on the right; deleted files show everything on the left.
  • The prototype uses an LCS line diff (diffOps). In production, use git diff hunks (--unified=3), or a proper diff library, and pair -/+ runs line by line.

5. Bottom strip — 230px, split 50/50 (side columns from 1600px)

  • Window ≥ 1600px (native build only): no strip. Under the top bar three full-height columns: left 480px with branches over commits (half the height each, a 1px #232C39 line between, a 1px #232C39 right border), the commit block and sections in the middle, the console right at 560px (1px #232C39 left border). Both side columns have background #18202B.
  • Narrower: the strip below, as follows.
  • Background #18202B, top border 1px #232C39.
  • display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr). The left half has a 1px #232C39 right border.
  • Native build: console and branches each stop at 820px. When at least 260px is left after them, a commits list fills the rest behind a 1px #232C39 left border; below that the rest stays empty. Not in the prototype.

Left — Console

  • Header: 32px tall, padding 0 12px 0 16px.
    • [ CONSOLE ] GIT in Plex Mono 700 10px, .14em, uppercase, #6C7783.
    • Busy label: → pushing to origin… or → pulling from origin… in 12px #E8913A.
    • A spacer, then the clear button (icon eraser at 14px, #828D9A, hover #F4F5F4).
  • Log: scrolls, auto-scrolls to the bottom on every new line, padding 0 16px 12px, Plex Mono 12px / 1.6, pre-wrap, tab-size: 4, max 400 lines kept.
    • Command lines: $ git … in #F4F5F4.
    • Normal output: #BAC0C0.
    • Errors and rejections: #E8913A.
    • Hints: #828D9A.
    • Staged paths in status: #8FBFB4; unstaged and untracked paths: #F0B476.
  • Input line: prompt $ git in #8FBFB4, then an input with no border, Plex Mono 12px #F4F5F4. Placeholder: status · add -A · commit -m "…" · push · pull · log. Clicking anywhere in the console focuses it, unless the user is selecting text. Enter runs the command; ↑ recalls the last one; clear empties the log. A leading git is optional.

Every UI action logs the exact git command it ran. The prototype supports these commands, and the real build should simply run git:

  • status
  • add <path|.|-A>
  • restore --staged <path|.>
  • restore <path>
  • clean -f <path>
  • commit -m "…"
  • push
  • pull
  • log
  • diff [--staged]
  • branch [-a]
  • switch <name> / checkout <name>

Right — Branches

  • Header: 32px tall, padding 0 16px.
    • [ BRANCHES ] in the same style as the console header.
    • Right side, 12px mono: clean · click to switch in #828D9A, or — N uncommitted files · switching locked in #F0B476.
  • List: scrolls, with two groups. Group labels are Plex Mono 700 10px, .14em, uppercase, #6C7783, padding 8px 16px 4px:
    • LOCAL: local branches.
    • REMOTE · ORIGIN: origin/* branches.
  • Branch row: 28px tall, padding 0 16px 0 13px, a 3px left border, gap 10px, hover background #232C39. From left to right:
    • Icon at 13px: git-branch for local branches, cloud for remote ones.
    • Name: Plex Mono 12px, ellipsis.
    • Meta text: 11px #6C7783.
    • Action text: 11px Plex Mono 600 #E8913A.
  • States:
State Left border Background Name Icon Meta Action Cursor / opacity
Current #E8913A rgba(232,145,58,.08) 600, #F4F5F4 #E8913A current — default cursor
Other, tree clean transparent transparent 400, #BAC0C0 #6C7783 tracked on remotes that already have a local branch switch →, or checkout → for a remote with no local branch pointer
Other, tree dirty transparent transparent 400, #BAC0C0 #6C7783 — — 40% opacity, not-allowed cursor

Tooltip on the dirty state: Commit or discard your changes first.

  • Switch rules:
    • "Dirty" means there is at least one changed file, staged or not.
    • Clicking a branch while dirty only shows the toast — Commit or discard N files before you switch. Typing git switch while dirty logs git's real error: error: Your local changes to N files would be overwritten by checkout. / Please commit your changes or stash them before you switch branches. / Aborting.
    • When clean, switching to a local branch runs git switch <name>.
    • Switching to a remote branch with no local branch runs git switch <name>, which auto-creates a tracking branch. It logs branch '<name>' set up to track 'origin/<name>'. and Switched to a new branch '<name>', then adds the branch to the local list.
    • After a switch: the title bar, status bar and Git top bar show the new branch; ahead/behind are recalculated; expanded diffs are cleared; a toast reads Switched to <name>.

Far right — Commits (native build only)

  • Header: 32px tall, padding 0 16px, [ COMMITS ] in the console header style; right side, the current branch in 12px mono #828D9A, ellipsis.
  • List: scrolls, overlay scrollers, padding-bottom 12px. The last 30 commits of HEAD (git log -n 30), newest first.
  • Commit row: 28px tall, padding 0 16px, gap 10px, no hover, default cursor. From left to right:
    • Short hash: Plex Mono 500 12px amber.
    • Subject: Plex Mono 12px #E4E7E6, one line, ellipsis; it takes the free width.
    • Right-aligned: author · 3 h ago 11px #6C7783, the author cut at 140px.
  • Empty: no commits yet, or — no repository, in 12px mono #6C7783, padding 0 16px.

Screen: Schema view (full screen)

When it exists

  • Detect app/Console/Commands/HelderSchemaCommand.php in the open project; watch for it, so the view appears as soon as the file is created.
  • No file → no title-bar button, ⌘D does nothing.
  • The command (included in the prototype's fake repo, see the file) uses Laravel's Schema::getTables / getColumns / getIndexes / getForeignKeys. It skips migrations, jobs, cache and sessions, and writes storage/helder/schema.json:
{ connection, generated_at, tables: [{ name, columns[], indexes[], foreign_keys[] }] }
  • Helder reads that JSON. Row counts are not in the dump yet; the prototype shows fake ones. Either add rows per table to the command (DB::table($name)->count(), or information_schema.TABLES.TABLE_ROWS for speed), or drop the row-count labels.

Layer

position: fixed; inset: 0, z-index: 45, background #101720, min-width 900px, flex column. From top to bottom: top bar, body (table list · canvas · detail panel), console.

1. Top bar — 44px

Same frame as the Git top bar (background #18202B, bottom border 1px #232C39, padding 0 14px, gap 14px).

  • [ SCHEMA ]: Plex Mono 700 11px, .14em, uppercase, #828D9A.
  • Connection: Lucide database 13px + mysql · odynt, Plex Mono 500 12px #E8913A. Real build: driver and database name from the dump.
  • Meta: Plex Mono 12px #828D9A, ellipsis. Before a dump: no dump yet. After: dumped 14:32 · 16 tables · 23 relations (time of the last successful run).
  • Spacer.
  • Command path app/Console/Commands/HelderSchemaCommand.php as a text button, Plex Mono 12px #828D9A, hover #F4F5F4. Click: close the view and open the file in the editor.
  • Run button, 28px, padding 0 12px, radius 2px, background #E8913A, text #101720, Plex Sans 600 12px, icon terminal 14px. Hover #C4741F. Label: Run helder:schema, Re-run helder:schema once a dump exists, Dumping… while running (clicks ignored).
  • Close: the same style as the Git Close button, key hint ⌘D.

2. Empty state (no dump yet)

Centred in the canvas, max-width 440px, gap 16px:

  • [ NO DUMP YET ]: Plex Mono 700 11px, .14em, #E8913A.
  • — Helder draws the schema from storage/helder/schema.json. Run the command to write it. Plex Sans 15px / 1.6 #BAC0C0; the path in Plex Mono #F4F5F4.
  • Primary button (36px, padding 0 16px, Plex Sans 600 13px, amber) with the run label, and next to it $ php artisan helder:schema in Plex Mono 12px #6C7783.
  • If storage/helder/schema.json already exists when the view opens, load it straight away and skip the empty state.

3. Table list (left) — 240px

Background #18202B, right border 1px #232C39. Shown only once a dump exists.

  • Search row, 44px, bottom border: search icon 14px #828D9A, input Find a table, Plex Mono 13px #F4F5F4, no border. Filters by substring. Enter centres the first match; Esc clears the query.
  • Label row, 34px: [ TABLES ] 16, or [ TABLES ] 3 of 16 while filtering. Plex Mono 700 10px, .14em, #6C7783.
  • Rows, alphabetical, 30px, padding 0 14px 0 11px, 3px left border, grid 1fr auto:
    • Name: Plex Mono 12px, #BAC0C0 (#F4F5F4 when hovered or selected).
    • Row count: Plex Mono 11px #6C7783, en-US thousands separators.
    • Selected: left border #E8913A, background rgba(232,145,58,.10). Hover: background #1F2834.
    • Hovering a list row highlights that table on the canvas exactly like hovering the table itself. Click: select and centre it.

4. Canvas (centre, flex 1)

Background #101720, overflow: hidden. One transformed layer (translate(x,y) scale(k), origin 0 0) holds an SVG of relationship lines, with the table cards on top.

Navigation

  • Drag the background: pan (cursor grab / grabbing).
  • Scroll / trackpad: pan. ⌘ or Ctrl + scroll, and pinch: zoom around the cursor. Zoom range 30–200%.
  • Bottom-right control (background #18202B, border 1px #232C39, radius 2px, 28px tall): − · zoom % (52px, Plex Mono 500 11px #828D9A) · + (steps of ×1.2, around the centre) · Fit. Fit frames all tables with 48px margin, max 110%.
  • Bottom-left hint, Plex Mono 11px #6C7783: drag to pan · ⌘ scroll to zoom · hover a table or a key to trace it · click to inspect.
  • The first dump auto-fits. Later re-runs keep the user's view and positions.

Table card — 240px wide, background #18202B, 1px border, radius 4px, user-select: none.

  • Header, 33px including its 1px #232C39 bottom border, padding 0 10px: name in Plex Mono 700 12px #E4E7E6, row count right-aligned in Plex Mono 11px #6C7783.
  • Column rows, 22px, padding 0 10px, grid 20px 1fr auto, gap 6px:
    • Key: Plex Mono 700 9px, .06em — PK in #F0B476, FK / UQ in #828D9A, blank otherwise.
    • Name: Plex Mono 12px; #E4E7E6 for keys, #BAC0C0 for the rest.
    • Type: Plex Mono 11px #6C7783, with ? appended for nullable columns (timestamp?).
  • Geometry matters for the lines: the centre of column i sits at top + 45 + i × 22.
  • Cards can be dragged to new positions (4px threshold separates a drag from a click). Real build: persist positions per project, e.g. storage/helder/schema-layout.json or app settings, so a re-run does not reshuffle.

Default layout: five lanes, 340px apart, tables stacked with 48px gaps, each lane vertically centred against the tallest. The prototype hard-codes the lane per table. Real build: rank tables by foreign-key depth (tables nothing points from on the left… or start with a simple layered/Sugiyama layout such as dagre or elkjs in LR direction), then let the user rearrange.

Relationship lines — one per foreign key, drawn from the FK column row to the target table's primary-key row.

  • Cubic Bézier with horizontal tangents. Target to the right: leave from the right edge, enter the left edge. Target to the left: the mirror. Same lane (centres closer than 240px): leave and enter on the right edge, looping out by 46 + |Δy| × 0.12 px.
  • Ends: hollow circle r3 at the FK end (fill #101720), filled circle r3 at the PK end.
  • Resting: #3A424C, 1.25px.

Hover and selection — the core of the view

  • Focus = the hovered table, otherwise the selected table.
  • Hover a table: every line in or out of it turns #E8913A, 1.75px, drawn on top. Its card border turns #E8913A with header background rgba(232,145,58,.10). Related tables keep full opacity with border #6C7783; all other tables drop to 30% opacity; inactive lines go to #232C39. The FK columns involved and the target PK rows get an amber key, #F4F5F4 name and rgba(232,145,58,.10) row fill.
  • Hover an FK column: narrows the highlight to that one relationship and its two tables.
  • Click a table: selects it (border #C4741F while another table is hovered), opens the detail panel. Click it again or click empty canvas to deselect. Esc deselects first, then closes the view.
  • Search with no focus: matching cards get border #F0B476, the rest drop to 30%.
  • Opacity and border colour transition 160ms cubic-bezier(0.22,1,0.36,1). Nothing moves.

5. Detail panel (right) — 320px, only with a selection

Background #18202B, left border 1px #232C39.

  • Header, 44px: table name (Plex Mono 700 13px #F4F5F4), 214,330 rows (11px #828D9A), close x.
  • [ COLUMNS ] N, then one block per column (padding 7px 16px, top border #232C39): name (Plex Mono 500 12px #E4E7E6), type right-aligned (11px #828D9A), and a flags line (11px): PRIMARY · NOT NULL, FK → users.id · NULL, UNIQUE · NOT NULL. Key flags in #F0B476, otherwise #6C7783.
  • [ BELONGS TO ]: outgoing FKs — → users … via user_id. [ HAS MANY ]: incoming FKs — ← messages … via conversation_id. Rows: Plex Mono 12px, arrow #E8913A, table #F4F5F4, via … #828D9A, hover #1F2834. Hover highlights that table on the canvas; click selects and centres it. This is how you walk the schema.
  • No FKs either way: — No foreign keys in or out.
  • Footer, two equal 30px outline buttons: Pass on to Claude (closes the view, inserts @schema:<table> into the prompt) and Copy name (toast Copied table name).

6. Console — 150px, after the first run

Same styling as the Git console. Header [ CONSOLE ] ARTISAN, a chevron-down button hides it until the next run. Stays scrolled to the bottom. The prototype prints:

$ php artisan helder:schema
  Connection ............................ mysql · odynt
  Tables ................................ 16
  Columns ............................... 104
  Foreign keys .......................... 23
  Wrote storage/helder/schema.json (18.4 KB)        (#8FBFB4)
  DONE  Schema dumped in 0.41s.                     (#8FBFB4)

Real build: run php artisan helder:schema in the project root (respect the project's PHP binary / Sail / Herd setup), stream real stdout and stderr, show errors in #E8913A, and reload the JSON on exit code 0. Toast on success: Schema dumped · 16 tables.


Interactions & behaviour

Stage / unstage

  • Stage runs git add <paths>; when all unstaged paths are staged at once, it logs git add -A.
  • Unstage runs git restore --staged <paths>, or . when everything is unstaged.
  • Each file moves between sections immediately.

Discard / delete / restore

  • Modified files: git restore <paths>. New files: git clean -f <paths>, which logs Removing <path> per file.
  • Modified and new files open a confirm modal first:
    • Title: Discard changes to <path|N files>?, or Delete <path|N files>? when every file is new.
    • Body: This reverts to the last commit and cannot be undone., or New files are removed from disk. This cannot be undone. when the batch includes new files.
    • Confirm button: Discard or Delete (amber). Enter confirms, Esc cancels.
  • Restoring deleted files is not destructive, so it runs at once without a modal.

Commit

  • Validation runs through git and shows in the console:
    • Nothing staged: no changes added to commit (use "git add" and/or "git commit -a"), or nothing to commit, working tree clean.
    • Empty message: Aborting commit due to empty commit message., and the message field gets focus.
  • On success the console shows:
    • [<branch> <sha>] <first line>
    • N files changed, X insertions(+), Y deletions(-)
    • create mode 100644 <path> / delete mode 100644 <path> for added and deleted files
  • After a commit: the message clears, the staged section disappears, ahead increases by 1, and the commit is added to git log.
  • Commit and push pushes right after a successful commit.
  • Add, Stage & Commit runs git add -- <every unstaged path> first, then the same commit; a failed add runs no commit.

Push

  • Ahead 0: Everything up-to-date.
  • Behind > 0: rejected (all in #E8913A except the hints):
    • ! [rejected] <br> -> <br> (fetch first)
    • error: failed to push some refs to '…'
    • Two hint lines in #828D9A: hint: Updates were rejected because the remote contains work that you do not / hint: have locally. Pull first, then push again.
  • Otherwise the console shows the real progress output (Enumerating…, Writing objects…, To …) and ends with <old>..<new> <br> -> <br> in #8FBFB4. Then ahead becomes 0 and a toast confirms.
  • While busy the button reads Pushing… and further push/pull clicks are ignored.

Pull

  • Behind 0: Already up to date.
  • Otherwise: From …, then a fast-forward (Updating a..b, Fast-forward, and a diffstat), or Merge made by the 'ort' strategy. when ahead > 0, which creates a merge commit. Then behind becomes 0 and a toast reads Pulled N commits from origin/<br>.
  • In the real build, refresh the file list after a pull.

Other details

  • On open, the prototype seeds the console with git fetch origin output; this is what makes it show "2 behind". In the real build, run a background fetch when the view opens, or every few minutes, to keep the ahead/behind counts honest.
  • Toasts appear at the bottom centre: background #232C39, border 1px #3A424C, radius 2px, Plex Mono 13px, prefix → in amber, hidden after 2.4s.
  • Motion: colour transitions only, 120–160ms on cubic-bezier(0.22,1,0.36,1). Nothing slides or scales.

State (Git view)

gitOpen: boolean                       // ⌘G
gitSec: { [sectionKey]: boolean }       // false = collapsed (default: open)
gitOpenFiles: string[]                  // expanded rows, key = `${section}:${path}`
commitMsg: string
staged: string[]                        // staged paths (real build: from `git status --porcelain=v2`)
files: { [path]: { orig, content } }    // prototype only — replace with git status + git diff
BR: string                              // current branch
branches: string[]; remotes: string[]   // `git branch`, `git branch -r`
ahead: number; behind: number           // `git rev-list --left-right --count HEAD...@{u}`
commits: { sha, msg }[]
gBusy: null | 'push' | 'pull'
glog: { t: string, c: color }[]         // console lines, cap 400
gInput: string; gHist: string[]         // console input + history

Derived values:

  • File status: M if orig ≠ content, A if orig === null, D if content === null.
  • unstaged = changed minus staged. Sections come from status plus staged membership.
  • dirty = changed.length > 0; it locks branch switching.

State (Schema view)

schemaOpen: boolean                         // ⌘D
schema: null | { tables: [{ name, rows, cols: [{ n, t, pk, fk, uq, nul }] }],
                 edges: [{ from, col, ci, to }] }   // parsed from schema.json
sPos: { [table]: { x, y } }                 // card positions, persist per project
sView: { x, y, k }                          // pan + zoom
sHover: string | null                       // hovered table
sCol: string | null                         // hovered FK, `${table}.${column}`
sSel: string | null                         // selected table → detail panel
sQ: string                                  // table search
sBusy: boolean; sDumped: string | null      // run state, last dump time
slog: { t, c }[]; slogOpen: boolean         // artisan console

Derived: active edges = edges touching the focus (or only the hovered FK); related tables = both ends of every active edge.

Design tokens used

  • Slate surfaces:
    • #101720: page, editor, diff, message field
    • #18202B: bars, panels, expanded row, separators
    • #1F2834: row hover
    • #232C39: rules, hover fills, disabled button
    • #2B3544: menu border
    • #3A424C: strong rule, button border, unchanged line numbers
  • Text:
    • #F4F5F4: primary
    • #E4E7E6: code
    • #BAC0C0: secondary
    • #828D9A: muted
    • #6C7783: faint
  • Accent: #E8913A (amber), #C4741F (amber-deep, hover), #F0B476 (amber-soft).
  • Status:
    • Modified #F0B476, New #8FBFB4 (teal), Deleted #C3A6CE (lilac), Staged #E8913A.
    • Teal and lilac already exist in Helder's v1 vocabulary (diff colours and the php badge). They are app-level additions outside the core Kade palette.
  • Type:
    • IBM Plex Mono (400/500/600/700) and IBM Plex Sans (400/500/600).
    • Sizes used: 10, 11, 12, 13, 14px.
    • Label style: 700, letter-spacing .14em, uppercase, written lowercase in source and in brackets, e.g. [ console ] git.
  • Radius: 2px for buttons, badges and inputs; 4px for menus; 8px for modals.
  • Shadows: only for menus 0 4px 16px rgba(16,23,32,.45) and modals 0 16px 48px rgba(16,23,32,.5).
  • Spacing: 4px steps. Common values are 6, 8, 10, 12, 14 and 16px.

Assets

  • Icons: Lucide 0.544.0 at stroke width 1.75, through the Kade Icon component. Used here:
    • git-branch, cloud
    • arrow-down-to-line, arrow-up-from-line
    • minimize-2, chevron-down, chevron-right
    • eraser, check, file-text, sparkle, files
    • Schema: database, terminal, search, minus, plus, x
  • Fonts: IBM Plex Mono and IBM Plex Sans (Google Fonts, through the Kade tokens/fonts.css).
  • There are no images.

Files

  • Helder App v2.dc.html: the full prototype. Open it in a browser from this folder; it loads support.js and the Kade tokens and bundle from the included _ds/blijnder-e2fd6583-1c87-4e16-bc91-117f035adbbc/. Serve the folder over http (e.g. npx serve) rather than opening it as file://.
  • Where to look in the file:
What Where
Git view markup the <!-- git overlay --> block
Git logic methods prefixed g…: gStage, gUnstage, gDiscard, gCommit, gPush, gPull, gSwitch, gStatus, gRun, gitRows
Section, row and branch view models renderVals(), from const GC to brGroups
Schema view markup the <!-- schema overlay --> block
Schema logic the // ---------- schema section: schemaData (fake dump + default layout), sPath (line geometry), sFit, sZoom, sCenter, sDown/sMove/sUp (pan + drag), schemaRun, schemaVals (highlight rules and view models)
Fake command file put('app/Console/Commands/HelderSchemaCommand.php', …) in the seed data
  • support.js: the prototype runtime, needed only to open the HTML. Do not port it.
  • _ds/…: the Kade tokens and component bundle, needed only to render the prototype. Use the codebase's own copy of the design system.