Repository navigation
feat(automations): the Approvals page, its badge, and Home's row - #459
Merged
Merged
Conversation
/approvals lists what waits for the person's pick, each automation's together and the assistant's by conversation: what it would do, why, its effect and expiry, with the first in focus so Enter approves it, Edit in place, Always allow where it can be, and Decline with Undo instead of a question. A badge in the top bar and the nav count what waits, and Home's Needs attention has a row for them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VF3LK1DBx3dXX2b8c5T3cQ
A new nav item pushed the ones below it off a phone's screen, so adding a person and a namespace took a swipe more. With nothing waiting the nav is as it was; the top bar's badge, Home's row and ⌘K still lead there. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VF3LK1DBx3dXX2b8c5T3cQ
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VF3LK1DBx3dXX2b8c5T3cQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: approvals waited with nowhere to see them together. The link in the chat message (
/approvals?id=12) led to no page, and nothing in the app said something was waiting.After: workflow studio M8, part 5 of 5. The new Approvals page (
/approvals, or ⌘K → Approvals) lists what waits for your pick: each automation's actions together, and the assistant's by conversation. Each card shows what it would do, why (a link to the activity that caused it), whether it reaches outside Lens, when it expires, and its params.While anything waits, a badge in the top bar counts it, the nav gets an Approvals item under Automate with the same count, and Home's Needs attention gets a row ("2 actions wait for your approval · from automations", Review). With nothing waiting none of them shows, so the nav stays as short as it was: an always-there item pushed People and Namespaces off a phone's screen, a swipe more in the clicks survey.
How:
components/approvals/holds the page, the card, the badge, a shared count query (useApprovalCount, read every minute) and pure helpers inmodel.ts, tested on their own. Nav items can bewhileCounted. The assistant's own proposals reuse the chat'sApprovalCard, which gains anonDecidedcallback.Motivation and Context
Adeel's workflow studio, module M8 (approvals inbox), brief in the project's
workflow-studio/briefs/M8.md: "the/approvalspage: Enter approves, decline has undo, a top-bar badge, and a Home 'Needs attention' row". Parts 1 to 4 were #447, #455, #457 and #458; this completes M8.Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md. (n/a: studio modules land under one release note)Done questions (AGENTS.md)
__tests__/approvals-model.test.ts,__tests__/approvals-page.test.tsx,__tests__/nav-groups.test.tsx), docs (automations.md); no schema change.docs/automations.md(keys for decline and edit, live updates instead of reading each minute, the assistant's proposals shown with their estimates).🤖 Generated with Claude Code
https://claude.ai/code/session_01VF3LK1DBx3dXX2b8c5T3cQ