Skip to content

Yesterday's UI polish, brought back to the design system: field edges, a Badge, three dialogs made screens, Apps, Routines and the sign-in tab - #2792

Draft
guidovizoso wants to merge 10 commits into
mainfrom
guido/design-guideline-fixes
Draft

guidovizoso wants to merge 10 commits into
mainfrom
guido/design-guideline-fixes

Conversation

@guidovizoso

Copy link
Copy Markdown
Collaborator

What this changes

This fixes the places where yesterday's UI polish PRs broke docs/design-system.md, docs/app-guidelines.md and the openbot-screen-layout skill. What those PRs added stays: the sign-in tab's card, the Apps filters and grid, routines with switches, the trial warning, and a skill opening on its own page. Only how they are drawn changes.

One PR on purpose, at Guido's request. The design-system doc asks for system changes in a PR of their own; here the two system changes (a field's edge, the Badge) come first, each in its own commit.

System

  • A field's edge is back at 20% in light and 16% in dark. Lines stay at 10% and 12% (Lighter lines: borders and dividers at 10% in light, 12% in dark #2689). A field is filled in the card's own color, so at 1.25:1 its edge was all but gone. --input gets its own strength again. The docs and ui-look-theme.test.ts say so.
  • shadcn's Badge (components/ui/badge.tsx), Base UI flavor, rounded-full, with no dark: overrides. Two variants of ours sit beside shadcn's: muted and warning.
  • PageSection's count is drawn with thousands separators.

Screens

Left for later, on purpose

  • Everything from the flat lists (Lighter lists: flat rows, label section titles, one-sentence intros #2701), including the Teach-a-Bot steps' leftover shadow-lg and the What-if dialog's square boxes. They go in a separate PR.
  • The trial dialog's admin rows keep px-0. The fix is an inset-free Item size, which is a primitive change of its own.
  • Approvals' "Ask before" select is two named modes, not on/off.
  • Memory's Add fact is a single field, so it stays a dialog.

Where it runs

Front end only: the web app and OpenBot Desktop's sign-in tab.

  • New state that outlives a request? None.
  • What happens on the second replica? Nothing different.
  • Anything serialised? No.
  • Anything fanned out to a browser? No.
  • New listener, port, or schedule? No.

Boundary and audit

  • Every acting call still goes through the gateway: resolve, decide, audit, then act.
  • New refusals and new failures each write a row. (None added.)
  • Nothing new is trusted from the client that the server can resolve itself.

API and database

  • This changes nothing under api/, no app's requests, no database change and no release-policy.json. The three new screens call the same queries and mutations their dialogs did.

Changelog

Web app.

  • Changed: a field's edge is easier to see. Text fields, text areas and selects draw their edge at 20% in light and 16% in dark again. Other lines stay light.
  • Changed: adding an identity provider, adding a GitHub repository and editing a routine each open a screen of their own, with an address and Back, instead of a dialog.

OpenBot Desktop.

  • Changed: the tab a sign-in ends on draws with the app's colors and corners, without the glow.

Proof

  • bun run format:check, bun run lint and bun run typecheck (every workspace) are clean.
  • Design-rule tests pass: ui-look-guard, ui-look-theme, ui-primitives-look, color-scheme, design-tokens, and tokens/tests. No allowlist got longer.
  • Tests covering each changed screen pass. The new tests drive the three new screens. The old dialog tests now drive the screens.
  • Apps browser layout tests (Chromium): 50 pass.
  • Desktop: bun test desktop, 1444 pass. cargo test --lib connected::sign_in, 33 pass.
  • Full bun test: fails only in places this doesn't touch.
    • management-agent, extension, a LangGraph Python probe in tests/compose.test.ts, and a Mastra package not installed locally.
    • Four app files timed out under load and pass alone: 66 of 66.
  • Not yet looked at in the running app. Screenshots in light, dark and each skin are still owed.

This branch has not been deployed

No deployments
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