Files
PaperClipAI/ui
DottaandClaude Opus 5.5 98fd412851 fix(apps): show readable Google Workspace action names on Review and Permissions (#22630)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - Connectors let agents use outside apps. The Google Workspace
connector gives agents Gmail, Calendar, Drive, Docs, Sheets and Slides
actions.
> - Each connection has a Review tab and a Permissions tab. People
approve actions and turn actions on or off there.
> - Google Workspace actions had no human title. These tabs showed the
internal tool name, for example `gmail__get_message` and
`calendar__list_events`.
> - Users must not see internal names. Google's app reviewers will also
look at these screens.
> - This pull request gives every Google Workspace action a readable
name, such as "Gmail: Read a message", for both tool transports.
> - The benefit is that people and reviewers see what each action does,
in plain words.

## Linked Issues or Issue Description

**What happened?**
On the Review tab and the Permissions tab of a Google Workspace
connection, action rows showed internal tool names. Examples:
`gmail__get_message` in the "Review new actions" list and the action
list, and "Calendar Create Event" in the "Waiting for your OK" list.

**Expected behavior**
Each row shows a readable action name, for example "Gmail: Read a
message" or "Calendar: List events". No row shows a `service__tool` name
or a raw ID.

**Steps to reproduce**
1. Connect Google Workspace.
2. Open Connectors, then the connection, then Permissions. Look at the
action list.
3. Open Review. Look at "Review new actions" and "Waiting for your OK".

**Paperclip version or commit**
master at 78e4f4f130.

## What Changed

- `server/src/google-workspace-rest-tools/`: each of the 36 Paperclip
REST tool definitions now has an MCP `title` (for example `get_message`
is "Read a message"). The change stays inside each tool's own file.
`allowlist.test.ts` now checks that every tool has a short title.
- `packages/shared`: new `googleWorkspaceToolTitle(name, title)`. For an
allowlisted Google tool it returns "<Service>: <action>". When no title
is known, it uses the action name in sentence case ("Gmail: Get
message").
- `server/src/services/google-workspace-rest-dispatch.ts`: new
`googleWorkspaceCatalogToolTitle`. For a Google Workspace connection it
uses the Paperclip REST title when one exists, then the upstream title.
It works the same for `google_mcp` and `paperclip_rest`.
`GOOGLE_WORKSPACE_TOOL_TRANSPORT` does not change.
- The server applies this title when it discovers the catalog, when it
reads the catalog, in the review queue list (`toolTitle`), and in the
gateway display name. The approval card text and preview use the display
name, so new requests show the readable name too. Rows saved before a
catalog refresh also get the readable name at read time.
- UI: the Permissions action list, the "Review new actions" list, the
agent access list, the action test dialog and the "Waiting for your OK"
list use one helper, `actionLabel`. It uses the readable Google name
when the server gives no title.
- No API field, route, permission check or company scope changes.
- `tests/runner-e2e/source-sdk-public-inputs.json`: refreshed, because a
pinned shared file changed.

## Verification

- Red, then green:
`ui/src/pages/apps/app-detail/GoogleWorkspaceActionLabels.test.tsx`
renders the Review tab and the Permissions action list with Google rows
as the server sent them before this change (no title, real UUIDs in
every ID field). It checks that no `service__tool` name and no UUID is
visible.
- Before: the test failed. The Review tab showed `gmail__get_message`
and "Calendar Create Event". The Permissions list showed
`calendar__list_events` and `gmail__create_draft`.
- After: the test passes. The tabs show "Gmail: Get message", "Calendar:
Create event", "Calendar: List events" and "Gmail: Create draft" with
this UI-only fallback. With the server change, the names are the REST
titles, for example "Gmail: Read a message".
- `server/src/services/google-workspace-rest-dispatch.test.ts`: every
allowlisted tool of every service gets a "<Service>: <Action>" title
with no underscores and no UUID, for both transports. Titles from other
connections do not change.
- `packages/shared/src/google-workspace-connectors.test.ts`: tests for
`googleWorkspaceToolTitle`.
- `server/src/google-workspace-rest-tools/allowlist.test.ts` and
`boundary.test.ts` pass.
- Focused runs: UI `src/pages/apps/app-detail`,
`ReviewQueueCard.test.tsx`, `AppDetail.test.tsx` (141 tests pass).
Server Google Workspace tests, review queue test,
`tool-access-service.test.ts`, `tool-gateway-service.test.ts`,
`connection-management.integration.test.ts` (2,212 tests pass).
- `pnpm --filter @paperclipai/shared typecheck`, `pnpm --filter
@paperclipai/ui typecheck` and `pnpm --filter @paperclipai/server
typecheck` pass.
- `pnpm verify` exits 2 because the pinned input registry is a global CI
input. Required CI gives the broad coverage.

## Risks

- Low risk. The change only affects display titles of Google Workspace
actions. Tool names, policies, grants and calls do not change.
- The gateway display name of a Google tool changes from its internal
name to the readable name. Agents see this text as the tool title only.
The tool name that agents call does not change.
- Approval previews saved before this change keep their old text until
the request is resolved.

## Model Used

- Claude Opus 5.5 (`claude-opus-5-5`), in Claude Code with tool use
(shell, file edit, test runs).

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 09:57:23 -06:00
..

@paperclipai/ui

Published static assets for the Paperclip board UI.

What gets published

The npm package contains the production build under dist/. It does not ship the UI source tree or workspace-only dependencies.

Storybook

Storybook config, stories, and fixtures live under ui/storybook/.

pnpm --filter @paperclipai/ui storybook
pnpm --filter @paperclipai/ui build-storybook

Typical use

Install the package, then serve or copy the built files from node_modules/@paperclipai/ui/dist.

Editor dependency identity

Keep the root and workspace overrides for @codemirror/state, @codemirror/view, and @lezer/common aligned. CodeMirror requires shared extension identity, while Lezer parsers and syntax highlighters require shared NodeProp IDs. Multiple Lezer copies can crash code-block highlighting with tags is not iterable. src/lib/codemirror-single-instance.test.ts checks the installed dependency graph and highlights sample code through the editor's real language dependencies. GitHub Actions owns regeneration of pnpm-lock.yaml.