Repository navigation
feat(email): the Email Actions screens and a Home card (EA-7) - #641
Open
privatejoel wants to merge 1 commit into
Open
privatejoel wants to merge 1 commit into
privatejoel wants to merge 1 commit into
Conversation
One screen under Comms & Security: a dashboard (critical, high, overdue, awaiting verification, awaiting external, escalated, recently performed), my queue, review, a manager view (unassigned critical, workload and completion by owner, escalation history), mailboxes (connect, health, resume, disconnect) and rules. The action detail shows facts and inferences apart, evidence and history, with state, correction, reassignment and evidence controls. Filters ride on the hash. A Home card lists the caller's open email actions. The OAuth callback returns to the mailboxes view. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 26, 2026
This branch was successfully deployed
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.
Summary
EA-7 of the email accountability plan (#634, section 6.10). This PR adds the screens for the module in the existing design system and navigation. It adds no new API, only two small read fields.
Stacked on #640 (EA-6) ← #639 ← #638 ← #637 ← #636 ← #635 ← #619.
screens/email-actions.tsx, under nav idemail-actionsin the Comms & Security group. Its tabs are on the hash (?sub=):scope=mine) and Review (awaiting_review).email.view_all. It shows unassigned critical actions, workload and completion by owner (open, overdue, escalated, performed in 7 days), and the escalation history.?id=) shows:email.verify.version. The server decides each permission (403 or 404). The screen only hides what a role cannot use.customerandordercome from links and show as removable chips.routes.ts,nav.ts.rbac.tsMATRIX row: writers yes, viewer no (the rows carry mail subjects).AnvilBackend.emailActionsclient namespace.#/email-actions?sub=mailboxes&mailbox=<result>.GET /api/email/connectionsreturnsactions_mode.Deploy notes
npm run buildmakes the assets in the Vercel build. The built assets are not committed.Tests
src/v3-app/screens/email-actions.test.tsx(12 tests):email.verifyshows confirm on evidence, and confirm sends the evidence ID and the reason.src/v3-app/screens/home-email-actions.test.tsx(2 tests): the card lists the caller's actions (scope=mine) with the overdue count and opens one. A viewer gets no card and no call.api-email-connections.test.js:actions_modereads as observe when the setting is missing.api-email-actions-api.test.js: closed actions come with the latest first.lib/nav.test.ts: the nav count is now 57. The test name said 52 and asserted 56, so I corrected both.Mutation check: I broke each screen rule, ran the two screen test files, and restored the code. All 9 mutations failed the tests:
Gates:
npm run check, includingtsc: pass.npm run lint: 0 errors. The repo's ESLint config does not lint.tsxfiles.npm run build: pass.npm run verify: pass.failandFiltersare declared in this screen and used by other screens, so I renamed them tofailNoticeandActionFilters.npm run eval:golden: pass.NODE_OPTIONS=--no-experimental-webstorage npx vitest run: 639 files, 7,676 tests, all pass.Not covered
window.prompt, as the stock-exceptions screen does. A modal form is a later polish.PUT /api/email/policyexists, and EA-8 adds a read-only view.GET /api/admin/members. A user who may not reassign gets a 403 message from the server.🤖 Generated with Claude Code