| 1 | # UI |
| 2 | |
| 3 | > **2026-10-01: the look is redone last.** This file describes the UI as built — its |
| 4 | > layout and the entry-point map — and stays the reference for that. The aesthetic is |
| 5 | > redone for Steid and Steid Cloud together in the launch plan's final phase |
| 6 | > ([launch phase 7](../../plans/launch.md#phase-7-the-aesthetic)), so put no effort into |
| 7 | > visual polish before then. |
| 8 | |
| 9 | > **Superseded in part, 2026-09-27.** The visual design in this file is superseded; a |
| 10 | > new aesthetic is being drafted separately by the author. The product positioning has |
| 11 | > also changed — see [decisions/0010](decisions/0010-single-tenant-vcs-not-portfolio.md) |
| 12 | > — so any portfolio justification still below is historical. The structural reasoning |
| 13 | > (why a tab bar, why one column, what does not exist yet) is what remains useful. |
| 14 | |
| 15 | ## Philosophy |
| 16 | |
| 17 | A developer tool people use daily to browse code and manage repos. Optimise for: |
| 18 | |
| 19 | 1. **Speed-first** — minimise clicks, maximise information density |
| 20 | 2. **Scannable** — find what you need in under a second |
| 21 | 3. **Quiet confidence** — premium without flashy; the UI should disappear |
| 22 | 4. **Code-centric** — code is the hero, everything else supports it |
| 23 | |
| 24 | |
| 25 | |
| 26 | | Readable density | Compact without cramped. Maximise info per viewport. | |
| 27 | | Clear hierarchy | Strong contrast between labels, content, and muted elements | |
| 28 | | Functional spacing | 8px on items, 12–16px on sections. No wasted space. | |
| 29 | | Keyboard-first | Every action reachable without a mouse | |
| 30 | | Dark-mode primary | Developers live in dark mode. Light mode is supported, secondary. | |
| 31 | |
| 32 | **Do:** small type (`text-xs` / `text-sm` for most UI), small buttons, monospace for |
| 33 | paths, SHAs, and branch names, opacity modifiers for text hierarchy, tight spacing. |
| 34 | |
| 35 | **Don't:** large type outside page titles, shadows in dark mode (use borders), bright |
| 36 | backgrounds, hover animations that move or resize things. |
| 37 | |
| 38 | ## Where the framing bites |
| 39 | |
| 40 | Steid is one owner's version control server, not a Gitea clone. The owner's home page |
| 41 | at `/{handle}` is the front door — a repository index with a name and a description — |
| 42 | and the owner may be a person or an organisation. Any layout inherited from a |
| 43 | GitHub-shaped forge needs checking against that before it's copied: it was drawn for a |
| 44 | platform with many tenants and many destinations, and this has one of each. |
| 45 | |
| 46 | ## The shell |
| 47 | |
| 48 | Settled 2026-09-05, when app-shell navigation (PostHog/GitLab-style sidebar) was |
| 49 | considered and rejected. |
| 50 | |
| 51 | **A slim top bar plus contextual tabs, not an app shell.** The reasoning: |
| 52 | |
| 53 | - Sidebar shells optimise for the logged-in daily user hopping between many top-level |
| 54 | destinations. Steid's first audience is the opposite — an anonymous reader of |
| 55 | someone's site who will never sign in — and rail chrome reads as "self-hosted admin |
| 56 | tool", which is the wrong first impression for a server someone hands a URL out for. |
| 57 | The managed offering strengthens this: every paying customer's audience is that visitor. |
| 58 | - Steid has four-ish global destinations; a sidebar would be mostly empty rail, |
| 59 | advertising incompleteness the same way the old stacked-section home page did. |
| 60 | - A shell-for-owners / site-for-visitors split is the two-design-languages trap again. |
| 61 | One vibe. |
| 62 | |
| 63 | What ships instead: |
| 64 | |
| 65 | - **The top bar**: one ~44px row, wordmark on the left → `/`, sign-in state on the |
| 66 | right ("Sign in", or `@handle` / Settings / Sign out). It never grows navigation; |
| 67 | that belongs to the thing being navigated — the home page's tab bar, the |
| 68 | repository's. |
| 69 | - **Per-page widths.** The layout imposes none; pages wrap themselves in `narrow` |
| 70 | (48rem — prose-shaped: the home page, forms, settings, writing) or `wide` (80rem — |
| 71 | code-shaped: tree, blob, log). Both live in `layout.rs`. A page that forgets one |
| 72 | renders full-bleed, which is visible, not silently wrong. |
| 73 | - Where a sidebar does earn its place is *within* a wide page — a file tree beside a |
| 74 | blob, a settings-section nav — as local structure, not global chrome. |
| 75 | |
| 76 | Open: **the wordmark says "steid"**, but on someone's own domain there is an argument |
| 77 | that the top-left identity slot belongs to the owner, not to Steid. Undecided; |
| 78 | becomes decidable when multi-user lands and "the owner" needs a rule anyway. The |
| 79 | larger shape of it (noted 2026-09-05): companies and individuals — self-hosted or |
| 80 | managed — will likely want **custom text in that slot, and perhaps elsewhere**: a |
| 81 | company name where "steid" sits, maybe a footer line. That is an instance-level |
| 82 | setting on `Organization` or config, not a theme; whatever answers the wordmark |
| 83 | question should leave room for it rather than hardcoding either choice. |
| 84 | |
| 85 | ## The repository page |
| 86 | |
| 87 | Settled 2026-09-05. `/{handle}/repos/{name}` is the only two-column page in a |
| 88 | repository: code on the left, an About sidebar on the right. Every page below it — |
| 89 | a tree subpath, a file, the log — stays a single `wide` column, the same way GitHub |
| 90 | narrows once you are inside the tree. |
| 91 | |
| 92 | ``` |
| 93 | @jamesgill / |
| 94 | steid [Settings] |
| 95 | Code Commits |
| 96 | ────────────────────────────────────────────────────────────────────────── |
| 97 | main ▾ ⑂ 3 branches · 2 tags │ ABOUT |
| 98 | ● docs: record the forge feature survey │ A single-tenant version control… |
| 99 | 31a6a7e · 2d │ 🕮 AGPL-3.0 |
| 100 | ┌──────────────────────────────────────┐ │ ───────────────────────── |
| 101 | │ steid │ │ Commits 80 |
| 102 | │ deploy/ plans/ src/ │ │ Branches 3 |
| 103 | │ Cargo.toml README.md LICENSE │ │ Tags 2 |
| 104 | └──────────────────────────────────────┘ │ Latest tag ⌗ v0.2.0 |
| 105 | ┌──────────────────────────────────────┐ │ Pushed 2 days ago |
| 106 | │ README.md │ │ ───────────────────────── |
| 107 | └──────────────────────────────────────┘ │ CLONE |
| 108 | │ https://…/steid.git |
| 109 | ``` |
| 110 | |
| 111 | **The sidebar's About block is what the repository is for.** A visitor arriving from |
| 112 | the owner's home page reads it before they read any code — what this is, whether they may use it, |
| 113 | how much of it there is — so it gets the right-hand column and the description gets |
| 114 | its only home there. The header stays one line tall as a result: two homes for a |
| 115 | description means the header grows tallest on exactly the repositories with the most |
| 116 | to say, pushing the code below the fold. |
| 117 | |
| 118 | - **The header and tab strip are shared by every repository page**, so a tree, a file |
| 119 | and a log read as one place rather than three. The strip takes the active tab as a |
| 120 | parameter, so a new tab is one variant and one line. |
| 121 | - **The active tab is underlined in the primary colour.** Nothing else on the strip |
| 122 | is coloured, so it reads as position rather than decoration. The only other use of |
| 123 | the primary colour on the page is the latest-commit dot. |
| 124 | - **The file list has a per-file last-commit column**, two muted columns after the |
| 125 | name: the commit summary, truncated with an ellipsis and linking to the commit page, |
| 126 | and the relative date — the latest-commit bar's typography, at the bar's own size, so |
| 127 | the two read as the same fact at two scales. An entry whose last change is older than |
| 128 | the walk reaches shows nothing rather than a commit that merely happens to be the |
| 129 | oldest one looked at. |
| 130 | - **Below `md` both columns are dropped, not wrapped** — the rule the branches page |
| 131 | settled: a row is a scanning surface, and one that wraps stops being one. **The |
| 132 | latest-commit bar stays**, and on a narrow viewport it is what is left: it says the |
| 133 | same thing once for the directory instead of once per row, for one |
| 134 | `git log --max-count=1` that is no longer even a process. |
| 135 | - **Counts beside the switcher link to `/branches` and `/tags`.** Both pages sit under |
| 136 | the Code tab — they are ways into the code, not places of their own, and a tab each |
| 137 | for two lists would make the strip advertise plumbing. Each page's heading cross-links |
| 138 | the other. Their rows keep trailing metadata in fixed-width right-aligned columns so |
| 139 | the sha does not zig-zag, and below `sm` drop the subject and Compare link rather than |
| 140 | wrap: a row is a scanning surface. Three distinct empty states — no commits (push |
| 141 | snippet), no tags yet (`git push --tags`), and a timeout that says the repository is fine. |
| 142 | - **Sidebar sections are separated by hairlines, never boxed as cards** — the rule the |
| 143 | owner's home page settled on, and what makes the page read as one surface. |
| 144 | - **Below `lg` the sidebar is not a sidebar: it comes first**, above the file list, with |
| 145 | a rule under it and no stickiness. Ordering it after the code would bury "what is this |
| 146 | and may I use it" under a long README — the one question the visitor arrived with, on |
| 147 | the viewport with the least room to go looking for it. That is why the two-column |
| 148 | container is a flex column rather than a plain block: `order-first` needs a flex |
| 149 | parent. |
| 150 | - **A licence is named only when its own text names it.** A licence file Steid cannot |
| 151 | identify is linked to and labelled "Licence": naming the wrong one is a claim about |
| 152 | somebody's legal terms. |
| 153 | |
| 154 | - **Syntax colour is the one place colour carries information rather than position.** |
| 155 | The palette is deliberately narrow: comments below muted-foreground, strings and |
| 156 | keywords carrying the contrast, punctuation just under foreground, everything else |
| 157 | close to it — a file reads as text with structure, not a parade. It is one |
| 158 | `--syntax-*` block in `styles.css`, so it follows the palette. The over-cap notice is a |
| 159 | row of the blob panel sharing the header's hairline, a page state rather than a banner. |
| 160 | |
| 161 | - **Download links are for the revision being viewed**, under the clone URL; someone |
| 162 | reading a tag wants that tag's tarball. An empty repository shows none. |
| 163 | - **The search box is the width of the About sidebar** on `sm` and up, so the two columns |
| 164 | line up; full width below and on the results page. `<mark>` is `bg-primary/25`, the only |
| 165 | other primary on the page besides the active tab and the latest-commit dot: it marks |
| 166 | the thing being looked for, the same rule. Every search state is a bordered panel with |
| 167 | one sentence. A long matched line scrolls inside its own `<code>`. |
| 168 | |
| 169 | - **A commit page is a Commits-tab page**, and its Commits link points at the log at |
| 170 | that commit's own id, not the revision in the URL: a branch name there would send |
| 171 | someone to a different commit tomorrow. **A compare page is a Code-tab page**: it is |
| 172 | about two revisions of the code, reached from the branches page and also directly at |
| 173 | `/compare`. |
| 174 | - **Success and destructive appear as text in exactly three places**: the commit's |
| 175 | `+a −b`, each file header's, and the truncated file list. Diff line tints are the same |
| 176 | tokens at 12% (rows) and 20% (gutters) through `color-mix` in plain CSS. The primary |
| 177 | colour is used only for links out of a dead end ("View the whole file", "Compare them |
| 178 | the other way round"). |
| 179 | |
| 180 | - **A file has two views and one header.** `Code · Blame · Raw` sits where Raw alone |
| 181 | used to, the active view in the primary colour, the same rule as the tab strip. Raw is |
| 182 | never active: it downloads. **Blame's rows are the blob's rows** — same type, leading |
| 183 | and height, so they read as two readings of one thing; the commit is shown once per run |
| 184 | and held to a single line. **The age tint is texture, not a heat map**: a hairline down |
| 185 | the left of each run at 5–30% of the primary. If it ever reads as a value to look up, it |
| 186 | is too strong. |
| 187 | |
| 188 | - **A control the state refuses is rendered disabled, with the reason said once.** The |
| 189 | settings page during an import keeps all five sections and greys Rename and Archive, |
| 190 | with one `Info` flash under the section nav rather than a sentence beside each; the |
| 191 | default-branch section says what the import will bring instead of "nothing has been |
| 192 | pushed yet", which is a different fact. A button that always fails is worse than one |
| 193 | that is visibly not available yet. |
| 194 | |
| 195 | - **The settings page reads as five sections, not one form.** Description, visibility |
| 196 | and pin stay the single Save form; Default branch and Archive are hairline sections; |
| 197 | Rename and Delete are the two bordered boxes at the bottom — **Rename in a neutral |
| 198 | border, Delete in a destructive one.** A box means "read this before you act"; the |
| 199 | colour says how bad it is. Archive is a one-button form whose heading changes with |
| 200 | state, never a checkbox in the Save form. `Archived` is an outline badge beside the |
| 201 | name in `repo_header`, so it shows on every repository page: a state that vanishes when |
| 202 | you click into a file is a state you stop believing. |
| 203 | |
| 204 | - **Issues is a tab after Commits**, open count as a muted mono number **on every |
| 205 | repository page** — it comes off the repository view rather than being passed by the |
| 206 | issues pages, because a number that appears when you click Issues and vanishes when you |
| 207 | click Code reads as a bug in the number. Zero is drawn as nothing at all. The state marker |
| 208 | carries the only colour on a list row (open in `success`, closed muted): whether an |
| 209 | issue is open is the one live fact about it. **A prose column inside the repository |
| 210 | frame is `max-w-3xl` without `mx-auto`** — centring it under a full-width header puts |
| 211 | the two left edges out of line. **Comment and Close/Reopen sit on one row under the |
| 212 | textarea** — the two things to do on the page, and a row each spent a row on each. They |
| 213 | are still two forms; the Comment button reaches its own by `form=` id rather than by |
| 214 | containment, which is what keeps the textarea out of the row. The edit form is a |
| 215 | `<details>` on its own row below them and opens itself when an edit was refused. One |
| 216 | "New issue" button, in the toolbar; the empty panel does not repeat it. |
| 217 | |
| 218 | - **Import is the second half of the new-repository page, not a page.** Creating an |
| 219 | empty repository is the default; the alternative gets a hairline, a `text-sm` heading, |
| 220 | two fields and an outline button. **The importing panel stands where the file list |
| 221 | would**, inside the ordinary frame; the sidebar keeps its shape with every number an em |
| 222 | dash, so nothing jumps when the import lands. A listing row says "Importing" or |
| 223 | "Import failed", never the first when the second is true. A panel sentence holding a |
| 224 | long URL must be one flex child, or it breaks into columns at 800px. |
| 225 | |
| 226 | - **Repository settings has a section list**, `General · Webhooks`, a hairline nav under |
| 227 | the title with the active one underlined in the primary colour — the slot the next |
| 228 | settings page lands in. **A hook row's status dot has three states**: accepted, refused, |
| 229 | and muted for "no deliveries yet", because a hook added a minute ago has nothing wrong |
| 230 | with it. The delivery log is the page people actually open; one mono row per attempt, |
| 231 | response body in a `<details>`. Adding a hook does not redirect, like issuing a token: |
| 232 | the secret exists only in that response. A row's Delete is ghost and small so the dot |
| 233 | stays the only colour, and `token.rs`'s Revoke now matches it: a filled button per row |
| 234 | makes a list of ordinary things read as a list of warnings. |
| 235 | |
| 236 | - **A cross-reference is a plain link**, `text-primary` like every link, a commit |
| 237 | reference additionally mono and abbreviated to seven characters with the full id in |
| 238 | `title`. No badge, pill or icon: a coloured chip per `#12` makes prose read like a form. |
| 239 | |
| 240 | - **A token row states its absent facts** — "Never expires", "Never used" — on a muted |
| 241 | second line, and an expired row is dimmed with a Secondary "Expired" badge (a fact, not |
| 242 | an error) while Revoke stays at full strength: the expired row is the one a person came |
| 243 | to clear out. The Expiry select is `sm:w-48`; an enum of four is not a text field. |
| 244 | |
| 245 | - **A feed link is muted on purpose** — `feather:rss` plus "Feed", `text-xs |
| 246 | text-muted-foreground` — a way out of the page, not the live thing on it. On the log |
| 247 | it carries the revision being viewed, so subscribing from a branch subscribes to that |
| 248 | branch. Placement: left of the revision switcher on the log, left of "New issue" on the |
| 249 | issues toolbar, beside the home page's Repositories heading. |
| 250 | |
| 251 | - **Labels sit under the Issues tab**, reached while looking at issues, with a second |
| 252 | door in the settings section list (`General · Webhooks · Labels`). **A pill is always |
| 253 | a link** to the issues it is on, no underline — the fill says it is pressable. Pills go |
| 254 | after the title and before the meta line on a row, on their own line under the title |
| 255 | on an issue: part of what the issue *is*. The colour control is eight swatches and |
| 256 | never a hex field; gray leads because it is the default. The active filter is a pill |
| 257 | with an `×`, and the state links carry the filter so Open/Closed do not widen the list. |
| 258 | |
| 259 | - **The tags page's right-hand slot holds `zip · tar.gz`**, a fixed slot like Compare on |
| 260 | a branch row, hidden below `sm`. The blob header reads `<language> <size> Code · |
| 261 | Blame · Raw`, the language absent for plain files. A hook row is `dot · url · [Off] · |
| 262 | status · Turn off · Delete`, both actions ghost. A queued import gets a muted clock, not |
| 263 | the primary download-cloud: the primary colour marks the one live thing, and a queued |
| 264 | import is not live yet. The failed-import panel leads with `[Retry import]` and keeps |
| 265 | delete as a sentence. |
| 266 | |
| 267 | - **A file header is `Code · Blame · History · Raw`**, or `Rendered · Source · Blame · |
| 268 | History · Raw` for markdown; History is never active on a blob, it is a different page. |
| 269 | A tree panel's header carries History opposite the breadcrumb. A path's history is not |
| 270 | a panel: the log's own rows under a breadcrumb, with one muted followed-renames line |
| 271 | above a file's (absent for a directory). A symlink row is `name → target`, the target |
| 272 | hidden below `sm`; a submodule that links out carries an external-link icon, the only |
| 273 | link in a listing that leaves Steid. |
| 274 | |
| 275 | - **Pull requests is a tab after Issues**; a row's second line ends `source → target` |
| 276 | in mono. Merged is the one place a third state colour earns its keep (`--merged`, |
| 277 | purple): finished and abandoned are opposite outcomes. One request has three sub-tabs |
| 278 | as a hairline strip, never a second bordered tab row under the repository's. **The |
| 279 | merge box is one line of status, then the controls, only when there is something to |
| 280 | press**; the Merge button is the one primary control on the page; a merged request |
| 281 | replaces the box with `Merged <sha> into <target>`. Fast-forward leads the select when |
| 282 | available. The new-request form puts the two branches above the title, and a |
| 283 | one-commit source lends its subject as the title. Two ways in: the compare page's |
| 284 | button and a link beside Compare on a branch row. |
| 285 | |
| 286 | - **The settings page has a Backup section**: one outline "Download a backup" and one |
| 287 | sentence saying when the timer last ran or that none is configured. Not a card, not a |
| 288 | danger zone: a backup is routine. |
| 289 | |
| 290 | ### Where the next features go |
| 291 | |
| 292 | The slots matter as much as what fills them today. Written down so the next feature |
| 293 | lands in the frame rather than beside it: |
| 294 | |
| 295 | |
| 296 | |
| 297 | | Issues, Pull requests | done — a tab after Commits, and a tab after Issues | |
| 298 | | A commit page | done — the sha in the latest-commit bar and in the log | |
| 299 | | Branches, Tags | done — the counts beside the switcher and in the sidebar | |
| 300 | | Compare | done — a branch row on the branches page, or `/compare` directly | |
| 301 | | Blame | done — the toggle in the file header, both views | |
| 302 | | Archive download | done — two small links under the clone URL | |
| 303 | | Code search | done — the box on the right of the toolbar row | |
| 304 | | Per-file last commit | a column in the listing, once `cat-file --batch` is kept alive | |
| 305 | |
| 306 | **The cost is known and accepted.** The landing page makes **15 `git` processes** for a |
| 307 | repository with a README and a licence, 10 without them, and 1 for an empty one — up |
| 308 | from 7. Five of those are the sidebar's, run concurrently. That is the bill 0006 said |
| 309 | would come due; it comes due at a kept-alive `cat-file --batch`, not before. |
| 310 | |
| 311 | ## Paging |
| 312 | |
| 313 | Settled 2026-09-06, when every list that said "this list is not paged" was closed at |
| 314 | once. One pattern, everywhere, because a forge that paged three ways would make the |
| 315 | reader learn three. |
| 316 | |
| 317 | **Offset paging, `?page=N`, 1-based, with a page size that is a constant per list.** |
| 318 | The alternative considered and rejected was a keyset cursor for the git-backed lists — |
| 319 | "the commits before `<sha>`", which is `git log <sha>^`. It is the textbook answer and |
| 320 | it is wrong here: |
| 321 | |
| 322 | - **`git log` is not a chain.** It walks a date-interleaved history, so the commits |
| 323 | still to come after a sha are not the commits reachable *from* that sha. The moment a |
| 324 | merge is involved, a cursor page silently drops the other parent's line of history — |
| 325 | a list that is quietly missing commits, which is the worst kind of wrong for a log. |
| 326 | `--skip` is git's own answer to the same question and is exact. |
| 327 | - A cursor has no cheap way back. "Newer" needs the page *before* the cursor, which |
| 328 | means counting from the tip anyway — so the cursor saves nothing and costs a shape |
| 329 | the numbered control cannot render. |
| 330 | - Offset lets every list say "3 of 7", which is the thing a reader actually wants from |
| 331 | a control, and it makes one control serve both the git and the SQLite lists. |
| 332 | |
| 333 | The cost is one count per paged page — `rev-list --count` for a log, `count(*)` for a |
| 334 | table. It buys the total, which buys both the sentence and the page numbers; asking the |
| 335 | list for one row past its limit would only say whether *a* next page exists. |
| 336 | |
| 337 | **A page number is clamped, never refused.** `?page=0`, `?page=banana` and `?page=400` |
| 338 | on a four-page list are all things a stale bookmark or a rewritten branch produces, and |
| 339 | the answer to each is the nearest page that exists — never a 400, never a 500. The |
| 340 | clamp lives in `application::paging` beside the arithmetic, so a second transport |
| 341 | cannot answer differently. |
| 342 | |
| 343 | **The control** is one muted mono line at the foot of the list, right-aligned: |
| 344 | |
| 345 | ``` |
| 346 | ← Previous · 1 2 … 5 6 7 … 12 · Next → |
| 347 | ``` |
| 348 | |
| 349 | - Links, not buttons. Every page is a URL, and the reader may want it in a new tab. |
| 350 | - The current page is the only thing in the foreground colour. Nothing is coloured; |
| 351 | paging is furniture and the list is the page. |
| 352 | - **Disabled ends are absent, not greyed.** There is no page before the first, so |
| 353 | nothing renders there. |
| 354 | - **The whole line is absent when there is one page**, and so is the sentence above it. |
| 355 | A control that says "page 1 of 1" is noise, and a list short enough to fit was never |
| 356 | paged as far as the reader is concerned. |
| 357 | - Filters travel: the caller builds each link's URL, so a state or label filter is |
| 358 | still in the query string on page 2. |
| 359 | |
| 360 | **Above it, the sentence** — "Showing 51–100 of 312 commits" — replacing the "this list |
| 361 | is not paged" line the unpaged lists used to carry. A range rather than a bare count, |
| 362 | because "showing 50 of 312" says the same thing on every page and so says nothing on |
| 363 | the fifth. |
| 364 | |
| 365 | Sizes, chosen per list rather than shared, because what a row costs to read differs: |
| 366 | the log 50, a comparison's commits 100, branches and tags 100 each, issues 50, search |
| 367 | 200 matches, a hook's deliveries 50, the home page's repositories 50. |
| 368 | |
| 369 | ## The owner's home page |
| 370 | |
| 371 | Settled 2026-08-29, after looking at the built page with real data rather than |
| 372 | imagining it. Three sections of equal weight — Repositories, Writing, Projects — two of |
| 373 | them empty boxes, repositories sorted alphabetically so `dotfiles` outranked `steid`. |
| 374 | A third of the page was content and two thirds advertised incompleteness. |
| 375 | |
| 376 | **Flat, app-style navigation. No cards, no boxes.** |
| 377 | |
| 378 | ``` |
| 379 | James Gill |
| 380 | @jamesgill |
| 381 | <bio> |
| 382 | <links> |
| 383 | ───────────────────────────────────────────── |
| 384 | Overview Repositories 3 Writing |
| 385 | ───────────────────────────────────────────── |
| 386 | CURRENTLY BUILDING |
| 387 | steid Rust |
| 388 | A version control server that is entirely yours. |
| 389 | 421 tests · updated 2 hours ago |
| 390 | |
| 391 | REPOSITORIES All 3 → |
| 392 | ────────────────────────────────────────── |
| 393 | topcoat-notes 3d |
| 394 | Notes on building with Topcoat 0.5. |
| 395 | ────────────────────────────────────────── |
| 396 | dotfiles 2w |
| 397 | ``` |
| 398 | |
| 399 | - **A tab bar, not stacked sections.** Empty sections stop being visible failures and |
| 400 | become destinations that simply have nothing in them yet. It is also what makes |
| 401 | Writing shippable without redesigning the page around it. |
| 402 | - **Tabs are links.** No JavaScript, and each tab is a real URL that can be shared. |
| 403 | - **One lead item with genuine typographic weight**, then a compact list. Without it |
| 404 | the page has no opinion about what matters, and ordering alone cannot carry that. |
| 405 | - **Hairlines and hover states, never bordered containers.** The row is the unit. |
| 406 | - **Recency, not alphabetical.** Alphabetical is a filing rule; what the owner is |
| 407 | working on now is the more useful one. |
| 408 | - **Sections with nothing in them are hidden from visitors** and shown to the owner as |
| 409 | an affordance. |
| 410 | |
| 411 | ### One vibe. Hierarchy without scale. |
| 412 | |
| 413 | The first version of this design gave the lead item large type and justified it by |
| 414 | splitting the product into a "presentation surface" and a "tool surface" with |
| 415 | different rules. **That was wrong and is not what ships.** Two design languages in one product is |
| 416 | how a product stops feeling like one thing, and it contradicted this file's own |
| 417 | philosophy — quiet confidence, the UI disappears, small type throughout. |
| 418 | |
| 419 | Nothing exceeds 14px except the page title. The lead item is distinguished by |
| 420 | **everything except size**: |
| 421 | |
| 422 | |
| 423 | |
| 424 | | Eyebrow label | yes | no | |
| 425 | | Weight | 600 | 500 | |
| 426 | | Description | full width, roomy | compact | |
| 427 | | Space around it | generous | tight | |
| 428 | | Separator | hairline below | none | |
| 429 | |
| 430 | The cost, stated plainly: the distinction is **subtle**. One weight step is not much, |
| 431 | and the eyebrow and whitespace carry most of it. That is the right trade for a developer |
| 432 | tool — but it means the copy in the eyebrow is load-bearing, because it is the clearest |
| 433 | signal that this item is different. |
| 434 | |
| 435 | **The eyebrow was "Currently building"**, chosen over a neutral "Featured" because it |
| 436 | said something rather than labelling something. It was a claim about the present that |
| 437 | the page could not keep — the list is ordered by recent activity, and pinning a |
| 438 | finished project made the page lie — so as of 2026-09-27 it reads **"Recently active"**, |
| 439 | which is what the ordering actually means. |
| 440 | |
| 441 | The general rule this sets: **hierarchy comes from weight, colour and space. Reach for |
| 442 | size last, and outside a page title, probably not at all.** |
| 443 | |
| 444 | ### The front door |
| 445 | |
| 446 | An instance is meant to be reached at its owner's own domain — `jpgill.dev` or |
| 447 | `acme.com`, not `git.jpgill.dev`, because a `git.` subdomain announces a Gitea clone. |
| 448 | That makes the root a signpost rather than a page: unclaimed it sends you to setup, and |
| 449 | otherwise it forwards to a home page — your own when signed in, **the owner's when |
| 450 | not**. |
| 451 | |
| 452 | The last case is the one that matters. A stranger arriving at the apex came for the |
| 453 | owner's repositories and will never sign in, so a sign-in prompt there is the front |
| 454 | door answering the wrong question. It only applies when the owner is unambiguous: with |
| 455 | more than one user "the owner" has no answer today, so the root falls back to a generic |
| 456 | landing rather than electing someone by storage order. Once an instance has a recorded |
| 457 | owner as well as members — see |
| 458 | [0010](decisions/0010-single-tenant-vcs-not-portfolio.md) — that fallback should be |
| 459 | revisited. |
| 460 | |
| 461 | ### What it needs that does not exist yet |
| 462 | |
| 463 | - **`updated_at` on a repository.** The design promises recency and nothing stores it. |
| 464 | Asking git costs one fork per repository — a twelve-repo home page would be ~150ms of |
| 465 | `execve` before rendering. So it is a column, touched when a push is authorized. |
| 466 | Slightly wrong if a push then fails; the alternative is wrong more expensively. |
| 467 | - **A `/{handle}/repos` index.** The Repositories tab needs a destination; only |
| 468 | `/{handle}/repos/{name}` exists. |
| 469 | - **A way to choose the lead.** A `pinned` flag on the repository, set from the settings |
| 470 | page that now exists. No pin, no lead section — automatic "most recent" would put a |
| 471 | dotfiles tweak at the top of the page. |
| 472 | |
| 473 | ### Mocking is harder than it looks here |
| 474 | |
| 475 | **Tailwind classes the app does not already use are not in the built stylesheet.** |
| 476 | `build.rs` scans the real sources, so a mockup written against the served CSS silently |
| 477 | loses any new utility — `gap-7` and `tracking-widest` collapsed a nav into |
| 478 | `OverviewRepositories3WritingProjects` before this was understood. Iterate either in the |
| 479 | app itself or, for throwaway exploration, in plain CSS against the theme's custom |
| 480 | properties (`--background`, `--foreground`, `--muted-foreground`, `--border`, `--surface`). |
| 481 | |
| 482 | Dark mode is a `.dark` class on an ancestor, not `prefers-color-scheme`; a mockup |
| 483 | without it renders light. |
| 484 | |
| 485 | ## Stack |
| 486 | |
| 487 | Settled in [0005](decisions/0005-tailwind-and-copied-components.md). |
| 488 | |
| 489 | |
| 490 | |
| 491 | | Styling | Tailwind via Topcoat's build script — no Node | |
| 492 | | Theme | `styles.css` at the package root: design tokens, dark-first | |
| 493 | | Components | `topcoat ui add` for primitives, hand-written for Steid's own | |
| 494 | | Mono | IBM Plex Mono, for paths, hashes, branches, handles | |
| 495 | |
| 496 | ### Tokens |
| 497 | |
| 498 | Defined in `styles.css` on `:root` (light) and `.dark` (dark, the default): |
| 499 | |
| 500 | ``` |
| 501 | background surface foreground muted-foreground |
| 502 | primary primary-foreground |
| 503 | success success-foreground confirmations, git additions |
| 504 | warning warning-foreground caution, git modifications |
| 505 | destructive destructive-foreground errors, git deletions |
| 506 | border ring shadow-xs shadow-sm |
| 507 | ``` |
| 508 | |
| 509 | `surface`, `success` and `warning` are Steid's additions to Topcoat's `neutral` theme; |
| 510 | the rest were retuned to the palette below. |
| 511 | |
| 512 | **Components reference tokens, never raw colours.** A hardcoded colour will not follow |
| 513 | a palette change and will not adapt to the colour scheme. This is the convention to |
| 514 | enforce in review. |
| 515 | |
| 516 | ### Working on it |
| 517 | |
| 518 | ```bash |
| 519 | topcoat dev |
| 520 | topcoat asset bundle |
| 521 | topcoat ui list |
| 522 | topcoat ui add <name> |
| 523 | ``` |
| 524 | |
| 525 | `components.toml` is the record of what is installed; don't duplicate that list here. |
| 526 | |
| 527 | **A registry component can need more than a copy.** `select` draws its chevron with an |
| 528 | Iconify icon, which needs the `icon-iconify` feature on `topcoat` *and* the icon set |
| 529 | staged in `build.rs`: |
| 530 | |
| 531 | ```rust |
| 532 | topcoat::icon::iconify::BuildConfig::new().icon_set("feather").stage().unwrap(); |
| 533 | ``` |
| 534 | |
| 535 | The build fails with a message naming the missing set, so it is discoverable — but the |
| 536 | build.rs edit is easy not to expect from a command that only advertises copying a file. |
| 537 | Icons are embedded at build time; nothing is fetched at runtime. |
| 538 | |
| 539 | `topcoat ui add` also rewrites the module list in `src/components.rs` by appending, so |
| 540 | re-alphabetise it afterwards. |
| 541 | |
| 542 | ## Prior art |
| 543 | |
| 544 | Attempt #1 (`steid-backup/AGENTS/UI.md`) has a complete 643-line design system — |
| 545 | OKLCH light/dark palettes with concrete token values, a type scale, spacing scale, and |
| 546 | component markup for sidebar, file tree, commit bar, breadcrumbs, badges, empty |
| 547 | states. It was written for Tailwind + DaisyUI. |
| 548 | |
| 549 | Its palette has been mined already — the dark-first OKLCH values at hue 260 are what |
| 550 | `styles.css` was retuned to. Its component markup has not, and comes with two caveats: |
| 551 | it specifies DaisyUI, which is a separate choice from Tailwind and not bundled by |
| 552 | Topcoat; and it was written for a GitHub-shaped forge with many tenants rather than a |
| 553 | single-tenant one. |
| 554 | |
| 555 | It is also, on its own, longer than every other doc in this directory combined — for |
| 556 | an app that had about nine pages. Take the palette and the principles. Don't |
| 557 | re-specify components before there are components. |