Skip to content

One filled main button on list pages - #2713

Merged
samjulien merged 6 commits into
mainfrom
claude/one-filled-add-button
Dec 2, 2026
Merged

samjulien merged 6 commits into
mainfrom
claude/one-filled-add-button

Conversation

@samjulien

@samjulien samjulien commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • New PageAddButton, beside PageShell in layout/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 in page-parts.tsx because that file imports nothing from the router, so the extension can draw the same column.
  • Pages that use it: Bots, Skills, Memory, the Vault (personal edition), Teams, a Bot's Routines, the Routines connection page, API keys, and Admin's Skills, Apps, Vault, Teams, Boundaries and Identity providers.
  • Empty states keep their outlined button, so a page has one filled button. Row actions can still be filled.
  • Memory: the button moves from its section to the header. Button and dialog both say Add fact. The page has one section, so the "Your memories" title is gone, and the empty state drops "Add one with Remember a fact."
  • The OpenDots skin keeps its own ghost Add fact.
  • The layout skill (openbot-screen-layout) keeps lg as 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).
  • New test app/tests/page-add-button.test.tsx. It checks what PageAddButton draws and reads every PageShell and BotSubpage header action under app/src. A page that draws its add button by hand fails.

Not in this PR:

Where it runs

Only in the browser: the web app and OpenBot Desktop draw these buttons. No server change.

  • New state that outlives a request? None.
  • What happens on the second replica? Nothing changes: no server code.
  • 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. (No acting call changed.)
  • 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.

Changelog

The look.

  • One filled add button beside the page title. Bots, Skills, Memory, the Vault, Teams, a Bot's Routines, API keys, and Admin's Skills, Apps, Vault, Teams, Boundaries and Identity providers each drew their add button their own way: plain, outlined, large, or in a section lower down. Each is now the same filled button with a plus, beside the page title. Empty states keep their outlined button.
  • Memory says Add fact on its button and its dialog, and no longer has a "Your memories" heading under the page title.

Proof

Checks on the merged head (after #2710 and #2646):

  • tsc --noEmit (app): passes.
  • bunx biome format . and bunx biome lint --error-on-warnings .: clean.
  • 72 affected test files: 696 pass, 0 fail. These include 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.

Page Before After
bots
skills
memory
vault
teams
api-keys
admin-skills
admin-apps
admin-credentials
admin-teams
admin-boundaries
admin-identity
bots (dark)

Memory, dark, after:

Bots in the web app (browser host), after:

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@samjulien
samjulien force-pushed the claude/one-filled-add-button branch from 2c0478d to e797da4 Compare December 2, 2026 01:07
davidmckayv
davidmckayv previously approved these changes Dec 2, 2026

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed at e797da4: the default arguments are gone (that test passes), one shared PageAddButton at lg, Apps left to #2646. Holds.

davidmckayv
davidmckayv previously approved these changes Dec 2, 2026

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
@samjulien
samjulien removed this pull request from the merge queue due to a manual request Dec 2, 2026
…ude/one-filled-add-button

# Conflicts:
#	app/src/components/skills/skills-settings-page.tsx
#	app/src/components/vault/vault-page.tsx

@davidmckayv davidmckayv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approved at 060b211. Now that #2646 has landed, the hand-drawn-add guard drops its NOT_YET exception for Apps and expects none. Otherwise it's only the conflict merge.

@samjulien
samjulien enabled auto-merge December 2, 2026 05:08
@samjulien
samjulien added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 46934d3 Dec 2, 2026
37 checks passed
@samjulien
samjulien deleted the claude/one-filled-add-button branch December 2, 2026 06:12
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.

2 participants