Skip to content

[#205 #206] Web: dashboard and sign-in from the design - #249

Merged
samuelmbabhazi merged 5 commits into
mainfrom
feat/design-port
Nov 7, 2026
Merged

samuelmbabhazi merged 5 commits into
mainfrom
feat/design-port

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

What changed

The web UI now follows the owner's Claude Design mockups (Shipkeep Dashboard.dc.html, Shipkeep Auth.dc.html and the 17 generic screens), screen by screen.

  • Foundations: design tokens in styles.css, self-hosted Outfit, Geist and Geist Mono fonts, every Tabler icon and Simple Icons brand mark of the design as path data, and English/French texts (ui/i18n.ts, ui/fr.ts, FR/EN switch, browser language by default).
  • Frame: sidebar with counts, projects and profile; top bar with breadcrumb and connected agents; mobile drawer; Cmd+K palette; refusal message when an organization is not the account's. Organization chooser and account pages get the sign-in header.
  • Sign-in: the design's card, inner-icon fields, password meter, the six-box second-factor step, recovery code, and the GitHub and GitLab buttons (they say sign-in with them is coming).
  • Screens on real data: overview, applications, servers (join token, removal by name), members and access (roles per project, API tokens), audit log (filters, export), projects, project, environment, application (16 configuration sections read from shipkeep.yml, deployments with the pipeline), organization and profile.
  • Screens without a backend yet: previews, databases, observability, new-resource catalogue, integrations, shared variables, terminal, vulnerabilities, notifications, tags, settings, first start, and the server, database, service and deployment detail screens. They show the design's sample data under a Preview · sample data label, and their buttons say the feature is not built yet.
  • Navigation state: open tabs and sections are kept in the URL (?tab=, ?section=).

Why

The previous UI did not follow the design and missed most of its screens (#204, #205, #206). The design is the product's own identity, not Coolify's: no text, markup, asset or code comes from Coolify. A check against Coolify's Blade views found no shared sentence.

Deliberate differences from the mockups

  • The three dimmest grays fail WCAG AA contrast as text. They are raised to #7e7e87 and #7b7b84, and checkboxes are 24 px, so the accessibility gate passes.
  • Two-factor sign-in: the API answers a missing code like a wrong password, on purpose. After a refusal, the screen asks for the code and explains both causes.
  • Email codes: the verification and reset codes are 43-character tokens, not the design's six digits.
  • Sign-up name: the Name field is collected but not stored yet.

How it was tested

  • pnpm lint, pnpm format:check
  • Web unit tests: 126/126.
  • Browser suite (vitest.browser.config.mts, Chromium, real API and PostgreSQL): 17/17. It covers CSP, axe WCAG 2.2 AA on every workspace screen, keyboard paths, MFA, tokens, tenant isolation and live deployments.
  • Side-by-side screenshots against the mockups at 1440 px and 390 px.

CI is paused (billing), so the gate ran locally.

Security considerations

  • No inline styles or scripts: the production CSP is unchanged, and the browser suite checks it on every screen.
  • The fonts are bundled, not loaded from a CDN.
  • Only the email address is handed from one sign-in screen to the next, never a password or a code.
  • localStorage holds only the language, and only after the user picks one.
  • Sample data is labelled as such and never mixed with live data.
  • New licenses, approved in ADR 0014: OFL-1.1 for the fonts, CC0-1.0 for the brand marks.

Size

About 8,300 lines added, excluding generated data (icons, brand marks, French texts, sample screens). That is above the 500-line guideline: a design port touches every screen at once.

Closes #204
Closes #205
Closes #206

Checklist

review added 5 commits November 7, 2026 23:36
Self-hosted Outfit, Geist and Geist Mono (OFL-1.1, pending approval in
ADR 0014), every Tabler icon and Simple Icons brand mark the design uses
as path data, the design's colors as Tailwind tokens, and an English/French
interface with the design's French copy.

Signed-off-by: review <[email protected]>
Ports the Claude Design dashboard and auth screens: the frame (sidebar with
counts and projects, top bar, mobile drawer, Cmd+K palette), the overview,
servers, members and access, audit log, projects, project, environment and
application pages, and sign-in with the second-factor step and the GitHub and
GitLab buttons. Pages read the real API; features the control plane does not
have yet (logs, metrics, terminal, databases, previews, integrations…) show
the design's sample data under a Preview label, and their buttons say they are
not available yet. Open tabs and sections live in the URL.

Signed-off-by: review <[email protected]>
…WCAG AA

The organization chooser and the account page get the sign-in header and a
skip link. Text grays rise to WCAG AA contrast, checkboxes to 24 px, table rows
open through a stretched link, and the frame says when an organization is
refused. DESIGN.md describes the ported design system; ADR 0014 records the
approved font and brand-mark licenses.

Signed-off-by: review <[email protected]>
Sign-in with the second-factor step, the reset screen that follows the request,
profile sections, the members Invite panel, project and application tabs, and
axe once entrance animations are over.

Signed-off-by: review <[email protected]>
@samuelmbabhazi
samuelmbabhazi merged commit 6437fcc into main Nov 7, 2026
9 of 10 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the feat/design-port branch November 7, 2026 22:17
samuelmbabhazi added a commit that referenced this pull request Nov 28, 2026
…epository (closes #214) (#560)

Closes #214 (M3.2, shipkeep.yml sync), last of four pull requests. **UI
change: waits for the maintainer's validation before merging.** It is
stacked on #559, which is stacked on #558: until they merge, their
commits show here too. This PR's commits start at "the preview of a
change says how it is written".

#214's acceptance criterion is "editing replicas in the UI opens a PR
with the exact YAML change". It is tested in Chromium on the production
build.

## What changed

- **Web, `RepositoryConfigEditor`.** The Configuration section of a Git
application (`?tab=config&section=yml`) no longer shows the stored
configuration read-only: it edits the repository's file.
- The draft starts from the file's text, comments included (`GET
…/repository-config`).
  - The card says which file the application runs:
    - this file, at a given commit;
    - an older commit, when the branch has moved on (drift);
- or that the file is not a valid configuration for this application.
- **Review changes** checks the draft here (YAML, schema, same name),
then shows the control plane's preview: the exact lines written, with
three around each and `⋯ N unchanged lines` for the rest.
- The button names what happens: **Open a pull request**, with "It goes
to a branch of its own, in a pull request into main", or **Commit to
main**, with "If main is protected, a pull request is opened instead".
It sends the document reviewed, with the blob it was reviewed against.
- **Once written,** the card says "Pull request #12 opened. Merging it
into main deploys the change." or "Committed to main…", with **Open on
GitHub**. The draft starts again from the branch's file, so the change
is not written twice.
- **A file changed in the repository meanwhile** (409
`config_file_changed`) keeps the draft and offers **Load the latest
file**; the draft is then reviewed against it.
- New strings are translated in `fr.ts`. The read-only notice they
replace is removed.
- **API:** the preview also answers `writeMode` (the project's
`gitWriteMode`), for the button.
- **Fix: new projects defaulted to `commit`.** The dashboard's **New
project** dialog sent `gitWriteMode: 'commit'` since the design port
(#249). That goes against ADR 0031, which makes a change from the
interface a pull request unless the project says otherwise. With this
editor, every project created there would have committed straight to its
branch. It now sends `pull_request`, the database's default; the project
settings still change it. The Chromium test is what found this.
- **Docs:** SPEC describes the editor and the default.

## How it was tested

- **Web unit** (`repository-config-editor.spec.ts`, 7 tests):
- the file's text, comments included, as the draft, and the state shown
when the application runs it;
  - drift with both commits, and an invalid file;
- a review sending the parsed document and the blob, with the diff shown
(skipped run, added lines) and the pull request sentence;
- writing that sends the document reviewed, shows "Pull request #12" and
its link, then reloads the branch's file;
  - commit mode's text and button;
- a conflict that keeps the draft, loads the latest file and reviews
against its new blob;
- invalid YAML, a renamed application and an unchanged draft, refused
here with no call;
  - an unreadable file, read again.
- **Web unit, overall:** 411/411, including the New project body, now
`pull_request`.
- **Chromium, production build and CSP** (`github.browser.spec.ts`, new
test):
- an application created from a repository through the fake GitHub, its
file shown with comments;
- `scale.replicas: 3` added, then reviewed, with `+ replicas: 3` in the
diff;
- **Open a pull request** answers 201. GitHub received, on a
`shipkeep/config-<12 hex>` branch, **exactly the file with those lines
added**, and a pull request into `main` titled "Change the configuration
of billing";
- the link points to the pull request, the editor holds the branch's
file again, axe passes, and there are no console or CSP errors.
  - The whole browser suite passes, 31/31.
- **API:** unit 1016/1016; integration for the repository config (with
`writeMode`), the route matrix, and project resources. Lint, typecheck
and format clean.

Screenshots (desktop and mobile) are on the validation page linked in
the conversation with the maintainer.

## Security considerations

- The interface only calls the routes of #558 and #559: the document is
validated again there, written over the blob it was reviewed against,
with a token for one repository, and audited.
- The new-project fix restores the more reversible default, a pull
request, for every project created from the dashboard.
- The external link to GitHub is the URL the control plane validated
(`https://github.com` only), opened with `rel="noopener"`.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* View and edit an application’s repository configuration in the
dashboard, with validation and a preview of the exact changes.
* Submit reviewed changes as a commit or pull request, based on project
settings. Concurrent file changes are detected so you can reload and
review before writing.
* New projects use pull requests as the default for repository
configuration changes. Changes take effect after they’re pushed and
applied.
* **Documentation**
* Added guidance for repository configuration editing, previews, write
options, and request limits.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: samuel mbabhazi <[email protected]>
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.

Dashboard shell and overview from the design Auth screens from the design Apply the brand kit to the web app

1 participant