Skip to content

feat(v2): Activity — categories are marks, only the deciding act is a word (direction A) - #1671

Merged
lilyshen0722 merged 7 commits into
mainfrom
wave/quiet-activity
Sep 12, 2026
Merged

lilyshen0722 merged 7 commits into
mainfrom
wave/quiet-activity

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Sam's ruling (2026-09-11) on the canvas Signal, quieter: direction A. First screen of the re-cut; Connectors + Tools, Your Team, Artifacts and the inspector follow the same three rules in their own PRs.

The rules (now in docs/design/signal-identity.md §4 Marks and acts + README iconography):

  1. Categories are glyphs — kind, mode, status, platform, outcome render as a 16px 2px-stroke mark, word in title + accessible name, never a word in the row and never a unicode character.
  2. Only the deciding act is a word — Approve, Reply, the cobalt option, a row's single act keep their label; Mark handled, Deny, Open pod become 32px square icon buttons (44 under 760). Nothing moves into a menu.
  3. Meta is mono chips — kicker is pod · time; titles and detail sentences untouched.

What changed on Activity: frontend/src/v2/icons/glyphs.tsx (KindGlyph ×5, ActGlyph ×3, rail style); the row's mark renders the kind glyph (actor colouring unchanged: agent = cobalt); kicker drops the kind word; three secondary acts become icon buttons with the word in title/aria-label, so every existing test that finds them by accessible name still passes. Late-block CSS: mark svg 16px, .v2-activity__queue-action--icon 32px square, 44 under 760, plus an override for the decision footer's full-width rule.

Measured (fixture build, real v2.css — pw/shot-pair.js): 108 → 91 words, 15 → 10 worded buttons, icon acts [Mark handled 32×32, Open 32×32, Open pod 32×32, Deny 32×32, Open pod 32×32] at 1440 and all 44×44 at 390, marks mention/decision/approval with an svg at 28px, kickers ops · 40m / launch pod · 20m / launch pod · 5m, scrollWidth 1440/390. Before/after PNGs sent to Sam.

Tests: V2ActivityPage 54/54 (one lookup moved from kicker text to the mark's accessible name), v2-layout-invariants 108/108 (+5 pins), tsc 0. UX-lead gate still applies once the pod is reachable.

🤖 Generated with Claude Code

https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5

… word (direction A)

Sam's ruling on the "Signal, quieter" canvas (2026-09-11): measured at 1440
with three asks open, Activity carried 120 words, 17 worded buttons and no
icons. The sentences stay — an ask is something someone wrote — the labels
around them go:

- the ask kind is a 16px glyph in the mark (mention, approval, decision,
  handoff, press), its word in `title` and the accessible name; the mark's
  colour still says who is asking. The row no longer prints `@`, `!`, `↗`.
- the kicker is `pod · time`; the kind word is gone from it.
- Mark handled (mention), Deny and Open / Open pod are 32px square icon
  buttons (44 under 760), word in `title` and aria-label. Approve, Reply, the
  decision options, Other… and a handoff's single act keep their word.
  Nothing moves into a menu.

Measured on the fixture build: 108 → 91 words, 15 → 10 worded buttons, five
32×32 icon acts at 1440 (44×44 at 390, including the decision footer's, which
needed its own override under the footer's full-width rule). Rule written
into docs/design/signal-identity.md §4 "Marks and acts" and the README's
iconography section; pinned in v2-layout-invariants. `glyphs.tsx` is the set
every row-like surface reuses next (Connectors, Tools, Your Team).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5
samxu01 pushed a commit that referenced this pull request Sep 11, 2026
… from the catalogue (#1670), with direction-A marks

The seam closes on Wren's catalogue: GET /api/installables now lists the
GitHub tool Installable (list: 'tools') with its projected allow-list and the
caller's Connections, so the page draws what the server enforces:

- not-yet row per tool Installable with no live grant — dashed dot, muted name,
  what it does, `read, or read and write`, `not granted`, Add (ink); without a
  Connection or on an unconfigured instance the row says so and offers no Add.
- Add opens in the aside: room, connection (when more than one), a writeMode
  segment, the allow-list the mode admits (read → read tools; write modes →
  all), what asks first (the catalogue's irreversible tools under `write`),
  every non-internal seat in the room checked, expiry 7/30/90 days, Grant (ink).
  The mint body is the server's: connectionId, installationId, target, tools,
  writeMode, audience, expiresAt — never a brokerId (Vera 67728).
- Change access pre-fills from the grant (effectiveAudience, not the raw
  snapshot — Vera 67568) and is a new grant plus a revoke of the old one;
  Grant again on an expired/revoked row only mints.
- "what asks first" under `write` lists the catalogue's irreversible tools.
- direction A (Sam 2026-09-11): the grant's mode and a trail line's outcome
  carry a 14px mark with the word in `title`; the granted row no longer repeats
  the tool's description sentence.

glyphs.tsx is the same file #1671 adds (identical content, merges clean).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5
samxu01 pushed a commit that referenced this pull request Sep 12, 2026
… from the catalogue (#1670), with direction-A marks

The seam closes on Wren's catalogue: GET /api/installables now lists the
GitHub tool Installable (list: 'tools') with its projected allow-list and the
caller's Connections, so the page draws what the server enforces:

- not-yet row per tool Installable with no live grant — dashed dot, muted name,
  what it does, `read, or read and write`, `not granted`, Add (ink); without a
  Connection or on an unconfigured instance the row says so and offers no Add.
- Add opens in the aside: room, connection (when more than one), a writeMode
  segment, the allow-list the mode admits (read → read tools; write modes →
  all), what asks first (the catalogue's irreversible tools under `write`),
  every non-internal seat in the room checked, expiry 7/30/90 days, Grant (ink).
  The mint body is the server's: connectionId, installationId, target, tools,
  writeMode, audience, expiresAt — never a brokerId (Vera 67728).
- Change access pre-fills from the grant (effectiveAudience, not the raw
  snapshot — Vera 67568) and is a new grant plus a revoke of the old one;
  Grant again on an expired/revoked row only mints.
- "what asks first" under `write` lists the catalogue's irreversible tools.
- direction A (Sam 2026-09-11): the grant's mode and a trail line's outcome
  carry a 14px mark with the word in `title`; the granted row no longer repeats
  the tool's description sentence.

glyphs.tsx is the same file #1671 adds (identical content, merges clean).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5
lilyshen0722 added a commit that referenced this pull request Sep 12, 2026
…ption A) (#1669)

* feat(v2): Tools on the Connectors page — the granted half (piece 4, option A)

Tools plan §6: a second list under the channels in the same row grammar, one
row per RoomGrant the person can see (live · pulsing when used in the last
10 min · hollow when revoked or expired), the aside from the projected grant
(who granted it and when it ends, the agents allowed, the allow-list under its
write mode, what asks a person first, budget, two-click Revoke) and the trail
from the broker's rows — one muted mono line per ToolCall with the three
COUNT(*) numbers in display 22 / mono 11. Heading with the mono count, a
search field and a segment on the same line. 390 as the channels list.

SEAM (Wren 67724/67725): the not-yet row, the Add form and Change access wait
on the builtin GitHub Installable landing in GET /api/installables with its
McpServer.enabledTools; the server derives brokerId. Until then `catalog` is
empty and those controls do not render — nothing pretends to grant.

Reads only /api/pods/:podId/grants, /api/grants/:id/calls,
/api/registry/pods/:podId/agents (#1668). GitHub glyph added to the platform
set. Layout invariants: trail line is muted mono with no semantic colour;
counts are 22/11; the display titles reset under :lang(zh).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5

* feat(v2): Tools — the not-yet row, Add, Change access and Grant again from the catalogue (#1670), with direction-A marks

The seam closes on Wren's catalogue: GET /api/installables now lists the
GitHub tool Installable (list: 'tools') with its projected allow-list and the
caller's Connections, so the page draws what the server enforces:

- not-yet row per tool Installable with no live grant — dashed dot, muted name,
  what it does, `read, or read and write`, `not granted`, Add (ink); without a
  Connection or on an unconfigured instance the row says so and offers no Add.
- Add opens in the aside: room, connection (when more than one), a writeMode
  segment, the allow-list the mode admits (read → read tools; write modes →
  all), what asks first (the catalogue's irreversible tools under `write`),
  every non-internal seat in the room checked, expiry 7/30/90 days, Grant (ink).
  The mint body is the server's: connectionId, installationId, target, tools,
  writeMode, audience, expiresAt — never a brokerId (Vera 67728).
- Change access pre-fills from the grant (effectiveAudience, not the raw
  snapshot — Vera 67568) and is a new grant plus a revoke of the old one;
  Grant again on an expired/revoked row only mints.
- "what asks first" under `write` lists the catalogue's irreversible tools.
- direction A (Sam 2026-09-11): the grant's mode and a trail line's outcome
  carry a 14px mark with the word in `title`; the granted row no longer repeats
  the tool's description sentence.

glyphs.tsx is the same file #1671 adds (identical content, merges clean).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5

* fix(v2): the Add form sends no installationId — the mint takes it from the Connection (#1677)

Vera 67821 via #1677: a grant on connection A must not be able to name
installation B, so the mint derives installationId from the Connection and
refuses a client-supplied one. The body is now exactly the six keys the route
takes — audience, connectionId, expiresAt, target, tools, writeMode — pinned
by key list, with brokerId and installationId both asserted absent.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5

* fix(v2): Tools — Revoke and Change access are the granter's; a failed revoke after Change access is retried alone; the trail says "awaiting a person"

Vera 67912 / Wren 67913 on 0368992:
- Revoke and Change access render only when grant.grantedBy is the viewer —
  the route 403s anyone else, so the page never draws a control the server
  would refuse. A member still reads the grant and its trail.
- Change access keeps the minted grant whatever happens next. If the revoke
  of the old grant fails, the aside says the old one is still live and offers
  "Revoke the old grant", which retries only the revoke — never a third mint.
- A trail line's outcome reads like the count: pending_approval → "awaiting a
  person" (the mark's title too).

Tests: "Revoke renders only for the granter"; the failed-revoke retry pins the
three POSTs as mint, revoke, revoke.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Mutation pass at 7b3d173c40d1c6ecb9173a756e4ad8512bafd735. One layout defect, and the invariant meant to catch it is vacuous.

641–760px: the icon acts are full-width bars, not 44 squares. The 44px icon-act rule landed in the ≤640 block (v2.css:11643), not ≤760. Between 641 and 760, only the top-level width: 32px and the ≤760 .v2-root .v2-activity__queue-actions > button { flex: 1 1 100%; min-height: 44px; } apply, and the flex basis beats the width. I measured it in a real browser: head v2.css served over http, Playwright iframes per width, harness .v2-root .v2-activity__queue-row .v2-activity__queue-actions plus a decision-row footer. Values are rendered width×height and computed flex:

width Approve Deny (icon) Open (icon) footer Other… footer icon mark glyph
1440 77×32 32×32 32×32 80×32 32×32 16×16
700 674×44 674×44, 1 1 100% 674×44 674×44 44×44 16×16
390 364×44 44×44 44×44 364×44 44×44 16×16

So a tablet-width reader gets a 674px bar holding a 16px glyph and no word. The footer icon act is correct at 700 only because its override is in the ≤760 block. Fix: move the queue-actions icon rule into the ≤760 block, beside the footer override.

Invariant 4 passes on the wrong block, and would pass on any block. /@media \(max-width: 760px\)[\s\S]*?…--icon \{ width: 44px; min-width: 44px; flex: none; \}/ matches today by starting at an earlier 760 query and running on into the 640 block. I moved the rule into @media (max-width: 9999px), which makes the icon acts 44 wide at desktop, and the suite stays 108/108. Scope the assertion to the body of the ≤760 block (slice from its { to the matching }) and assert the rule inside it.

The other invariants (v2-layout-invariants.test.ts 108/108 at head; V2ActivityPage.test.tsx passes, 162 across the two):

  • mark svg 16 → 18: 1 red; icon act width 32 → 30: 1 red; drop padding: 0: 1 red
  • drop the ≤640 44 rule: 1 red; drop the footer override: 1 red
  • move the footer override out of its media block to top level: 108/108 green. The ordering regex checks it comes after the full-width rule, never that it is still inside ≤760, so the move would make every desktop footer icon 44 wide, unnoticed. Same fix: scope it to the block.
  • act glyph svg 16 → 20: green; that rule has no invariant. Minor.

Each mutation changes one rule (git diff --numstat 1+1-, 0+1- for drops, 2+1- / 4+1- for moves). The sheet parses to 1710 rules before and after.

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

UX-GATE: CHANGES_REQUESTED @ 7b3d173 — one miss, at 720. Fixture build of this head, measured with Playwright at 1440 / 720 / 390 (.dev/signal/1671-7b3d-acts-*.png).

Miss — icon acts between 641 and 760 are full-width bars, not 44 squares. At 720 every --icon button (Mark handled ✓, Deny ×, Open ↗) measures 694×44: a lone 16px glyph centred in a full-width bordered bar. Cause: the 44-square rule sits in the ≤640 block, while the ≤760 block's .v2-activity__queue-actions > button { flex: 1 1 100% } still owns 641–760. The ruling says "32px square icon buttons (44 under 760)". Fix: move the --icon { width:44px; min-width:44px; flex:none } override into the ≤760 block (the decision-footer override at 11726 already lives there and measures 44×44 at 720 — do the same for the row acts), and make the invariant test's @media (max-width: 760px) regex anchor on the block that actually holds the rule (its non-greedy [\s\S]*? currently matches either block).

Passes at 1440 and 390 (measured):

  • Marks: 28 box, 16×16 svg stroke 2, role=img + aria-label + title = the kind word, no text; agent rows cobalt fill #1d3fd1, the human mention (Sam) tint #f2f4f7 + ink. No unicode @ ! ↗ ✓ × anywhere in the rows.
  • Acts: Approve / Reply / Mark-handled-as-single-act / cobalt option / Other… keep words (9 worded buttons for 7 rows, was 17 for 3). Mark handled, Deny, Open are 32×32 at 1440 (padding 0, svg 16) and 44×44 side by side at 390, each with aria-label + title. Deny keeps the tint, Open bordered white, radius 4.
  • Meta: connectors v2 · 2d in Plex Mono 11 lowercase; the kicker no longer names the kind. Note the build renders the chip above the title while §4.3 says pod and time "follow the title" — the screen reads fine and the canvas shot had it above, so I'm treating the doc wording as the thing to align, not the build.
  • Frame: head 32 / muted 13, segments 30 in a 38 group at every width, count 7 = badge 7 = rows 7, rings 2px cobalt, nothing under 11px, scrollWidth = viewport at all three widths, settled-decision footer Open is 44×44 at 390.

Re-request when the ≤760 rule moves; I'll re-measure 720 on the new head.

…riant reads the block that encloses it

sprint-review on 7b3d173: the rule had landed in the ≤640 block, so between
641 and 760 the full-width `> button { flex: 1 1 100% }` won and Deny / Open
rendered as 674×44 bars holding a 16px glyph; and the regex meant to catch it
matched from an earlier 760 query into the 640 block, staying green even with
the rule at top level. The rule now sits beside the decision footer's override
inside ≤760, and the invariant resolves the media block that actually encloses
each of the three rules (icon act, footer override, the full-width rule it
beats) and asserts it is ≤760 — moving any of them to top level or into ≤640
goes red (3 mutations, 1 red each). The act glyph's 16px is pinned too.

Measured: icon acts 32×32 at 1440, 44×44 at 700 and 390.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Re-gate at 0070e79f8e4dfc4287b6681d2d2dbdcfb7e7c6e1: passes. The defect is fixed and the guard now discriminates.

Since 7b3d173c only v2.css (the 44px icon rule moved from ≤640 into ≤760) and the invariants file changed.

Real browser. Head v2.css served over http, Playwright iframes per width; rendered width×height and computed flex:

width Approve Deny (icon) Open (icon) footer Other… footer icon mark
1440 77×32 32×32 32×32 80×32 32×32 16×16
700 674×44 44×44, 0 0 auto 44×44 674×44 44×44 16×16
390 364×44 44×44 44×44 364×44 44×44 16×16

The 674px bars at 700 are gone; the icon acts are 44 squares across the whole ≤760 band. The sheet parses to 1710 rules. (My bare harness reads scrollWidth +8, which is the missing app shell; your fixture's 1440/700/390 is the real number.)

Mutations (v2-layout-invariants.test.ts 108/108 at head). Each is one rule moved or changed (git diff --numstat):

  • icon 44 rule → top level: 1 red
  • icon 44 rule → the ≤640 block: 1 red
  • icon 44 rule → @media (max-width: 9999px) (the move that passed at 7b3d173c): 1 red
  • icon 44 rule dropped: 1 red
  • footer override → top level: 1 red
  • footer override placed before the full-width rule it beats: 1 red
  • act glyph svg 16 → 20: 1 red (was green)

enclosingMedia closes the gap the lazy regex left: it resolves the nearest preceding @media and requires that block's first column-0 } to fall after the rule. One limit, noted so nobody over-reads it: it reads the first occurrence (indexOf). A duplicate appended later at top level would slip past it. Today that case is still caught, but only because the top-level lastRuleBody width-32 assertion picks up the duplicate. Nothing blocking.

@lilyshen0722 lilyshen0722 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

UX-GATE: PASS @ 0070e79 — the 720 miss is closed; 1440 and 390 unchanged. Fixture build of this head, measured with Playwright at 1440 / 720 / 390 (.dev/signal/1671-0070-acts-*.png).

  • 720: Mark handled ✓, Deny ×, Open ↗ are 44×44 squares side by side (x 13 and 63) under a full-width 694×44 worded act; svg 16. Worded acts stay full width. scrollWidth 720.
  • 1440: icon acts 32×32, worded acts 32 tall (Mark handled 107, Reply 60, Approve 75, Narrow now 99 cobalt, Keep broad 160, Other… 52).
  • 390: icon acts 44×44 side by side (x 25 and 75), worded acts 340×44.
  • Unchanged from the 7b3d173 read: marks 16×16 stroke 2 with the kind word in title + aria-label, agent cobalt / human tint; mono 11 chips; segments 30 in a 38 group; count 7 = badge 7 = rows 7; nothing under 11px; no unicode marks.

Still open for the canvas, not this PR: §4.3 says pod and time "follow the title" while the build (and the canvas shot) put the chip above it — align the sentence to the shot.

@lilyshen0722
lilyshen0722 merged commit cd91e2e into main Sep 12, 2026
14 checks passed
samxu01 pushed a commit that referenced this pull request Sep 16, 2026
…d draws it

ux-lead's nit on #1671 (67979): §4 "Marks and acts" rule 3 said pod and time
"follow the title" while the Activity build and the canvas put the mono chip
above it. The sentence now matches the pixels.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5
samxu01 pushed a commit that referenced this pull request Sep 16, 2026
…d draws it

ux-lead's nit on #1671 (67979): §4 "Marks and acts" rule 3 said pod and time
"follow the title" while the Activity build and the canvas put the mono chip
above it. The sentence now matches the pixels.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5
lilyshen0722 added a commit that referenced this pull request Sep 16, 2026
…d draws it (#1681)

ux-lead's nit on #1671 (67979): §4 "Marks and acts" rule 3 said pod and time
"follow the title" while the Activity build and the canvas put the mono chip
above it. The sentence now matches the pixels.


Claude-Session: https://claude.ai/code/session_016DspLEe1mFV94dPGCqA1u5

Co-authored-by: Claude Fable 5.1 <[email protected]>
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.

1 participant