Repository navigation
One filled main button on list pages - #2713
Conversation
davidmckayv
left a comment
There was a problem hiding this comment.
Works on screen, but one red test blocks it. organization-address.test.ts reads any "default" passed as an argument as a hard-coded organization id (default is the single org's id). Three call sites pass the button style that way: skills-page.tsx:63 newSkill("default"), api-keys.tsx:114 createButton("default") and teams-page.tsx:65 newTeam("default"). Drop the argument at all three, since default is the default style. Not blocking: a Bot's refusal still says to press Add custom MCP on Apps, which now sits inside the Add app menu.
Each list page's main add action now sits in PageShell's action slot as one filled Button (default variant, size sm) with a plus: Bots, Skills, Memory, Vault, Teams, a Bot's Routines, API keys, and Admin's Skills, Apps, Vault, Teams, Boundaries and Identity providers. Apps names the button for what most people do: Add app. It opens a menu with Browse apps and Add custom MCP, or links to Browse apps for somebody who can't add a custom server. The new AddAppButton serves both Apps pages. Memory's button moves from its section to the header as Add fact. The Vault's Add key and the Skills page's New skill move up the same way. Empty states keep their outlined button, so a page has one filled button.
organization-address.test.ts reads a "default" first argument as a hard-coded organization id. newSkill, createButton and newTeam now take the style as an optional argument that defaults to filled.
PageAddButton, beside PageShell, is a list page's main add action: filled, the page-action size, a plus and a short label, as a link or a press. The list pages use it instead of each dropping a variant by hand, and page-add-button.test.tsx reads every page's header action under app/src. Apps keeps its header as on main: #2646 puts its add in the page's toolbar. Memory says Add fact on its button and dialog, has no section title, and its empty state drops the "Add one with" sentence. The layout skill keeps lg as the page-action size and states the rule.
2c0478d to
e797da4
Compare
davidmckayv
left a comment
There was a problem hiding this comment.
Re-approved: since my last approval this push only merges main and drops the CHANGELOG.md edit (the note is in the description). Nothing else changed.
…ude/one-filled-add-button # Conflicts: # app/src/components/skills/skills-settings-page.tsx # app/src/components/vault/vault-page.tsx
What this changes
Each list page now has one filled add button beside its title. Before, every page drew it its own way: plain, outlined, large, or in a section lower down. ChatGPT ("Create") and Claude ("+ Add") put one filled button in the same place.
PageAddButton, besidePageShellinlayout/page-shell.tsx. It is the page's main add action: filled, the layout skill's page-action size (lg), a plus and a short label. It is a link, or a press for a page that opens its own dialog. It is not inpage-parts.tsxbecause that file imports nothing from the router, so the extension can draw the same column.openbot-screen-layout) keepslgas the page-action size and states the rule: the page's main add action is one filled button, in the header or in the page's sticky toolbar where one exists (Apps).app/tests/page-add-button.test.tsx. It checks whatPageAddButtondraws and reads everyPageShellandBotSubpageheader action underapp/src. A page that draws its add button by hand fails.Not in this PR:
/connections) is unchanged: since Make apps easier to discover and connect #2646 its add is in the page's own toolbar.Where it runs
Only in the browser: the web app and OpenBot Desktop draw these buttons. No server change.
Boundary and audit
API and database
api/, no app's requests, no database change and norelease-policy.json.Changelog
The look.
Proof
Checks on the merged head (after #2710 and #2646):
tsc --noEmit(app): passes.bunx biome format .andbunx biome lint --error-on-warnings .: clean.page-add-button,organization-address,ui-look-guard, Memory, the Vault, Teams, API keys, Boundaries, Skills and Admin's Apps.Screenshots: desktop workbench, 1280 × 820, top of each page. Light unless marked dark.
Memory, dark, after:
Bots in the web app (browser host), after: