Skip to content

pm-stack/console: one shared copy button for Agents and Sign-in (#14433 slice) - #16776

Merged
dezren39 merged 1 commit into
mainfrom
xaltha/14433-surface-audit
Nov 29, 2026
Merged

dezren39 merged 1 commit into
mainfrom
xaltha/14433-surface-audit

Conversation

@dezren39

@dezren39 dezren39 commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Refs #14433 — one bounded slice of the PM app surface audit: the Agents screen (more/agents) audited end-to-end in source against the theme-variable system (#14379) and the shared builders, with the concrete defect found fixed here.

Audit of the Agents surface (source, this PR's evidence)

  • Theme system: the view sets no inline styles, no literal colours, no pixel spacing/radius — everything is drawn with classes whose rules live in app.css, which the feat(pm-stack): the app's look is the owner's to choose: themes, typefaces, size and spacing #14379 guard tests (test/look.test.ts) already hold to --space / --round / --edge and theme colours only. No bypass found on this surface.
  • Shared builders: cards via card(), chips via chip(), confirmations via ask(), notices via empty()/notices(), messages via toast() — consistent with the other screens. The two shown-once cards (minted token, shared enroll command) are one-off presentations by necessity: their contents must never enter the screen's state or the outbox, and both say so in comments.
  • Defect found — one-off element, three copies: the copy-to-clipboard button was implemented three times — twice on this one screen (the shown-once card's copy and the handed-command card's copyShared) and once on Sign-in, whose failure wording diverged from the other two ("Could not copy. Select the text and copy it." vs "Copying failed — select the text and copy it by hand").

Fix

  • One shared copyButton(text, label, cls) beside the other shared builders in public/app.js; all three call sites use it (Sign-in keeps its small ghost styling and "Copy" label; only the failure wording is unified).
  • The Components page census (public/pages/components.js ELEMENTS) now names the copy button with the app frame's own elements, as it does toast and sheet.

Follow-ons (recorded on #14433, not in this PR)

Verification: remote dispatch of the console guard + affected suites (bun test test/look.test.ts test/app.test.ts test/pages.test.ts) at this PR's exact head; result linked below when concluded.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T12:56:21Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "aa5a503c40005914ca3676c21a1da732e7aeb3d7"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…Sign-in

The Agents screen built the copy-to-clipboard button twice (the
shown-once mint card and the shared enroll-command card) and Sign-in
built it a third time, with a different failure wording ("Could not
copy. Select the text and copy it." vs "Copying failed — select the
text and copy it by hand"). All three now use one copyButton() helper
beside the other shared builders in app.js, and the Components page
census names it with the app frame's own elements.

Slice of the #14433 surface audit (Agents audited end-to-end in
source against the theme-variable system and the shared builders).
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8dd7df3a-1d28-4296-b2ce-9e5adafbc45c
Commits

Reviewing files that changed from the base of the PR and between 5b48d26 and 957b7aa.

Files selected for processing: 2

  • pm-stack/console/public/app.js
  • pm-stack/console/public/pages/components.js
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Verification dispatched at exact head 957b7aa3d: fleet-command run 46264851701 — bun test test/look.test.ts test/app.test.ts test/pages.test.ts in pm-stack/console (guard tests + the suites covering the touched builders and the Components census). Lane 0647-L02R.

@dezren39

Copy link
Copy Markdown
Member Author

Run 46264851701 concluded FAILURE — but in the harness, not the code: the fleet-command executor's own cache step died with python3: command not found (exit 127) inside the oven/bun:1 container, before the test command ran. Re-dispatching on the standard Fleet image with bun installed in the command. Lane 0647-L02R.

@dezren39

Copy link
Copy Markdown
Member Author

Verification status (lane 0647-L02R): run 46265902968 is the live verification dispatch at exact head 957b7aa3d (bun test test/look.test.ts test/app.test.ts test/pages.test.ts, node:22-bookworm container, bun via npm). It has been QUEUED since 13:11Z in a fleet-wide runner stall — at last check only one fleet-command run was in progress across the fleet and every recent dispatch was queued behind it.

Wake condition: when run 46265902968 concludes — if SUCCESS and this PR is still CLEAN/MERGEABLE at 957b7aa3d, merge it (merge commit). If FAILURE, read its log (CI-log reading is cleared) and fix forward here. Do not merge on the earlier run 46264851701: it failed in the harness (python3 missing in oven/bun:1) before any test ran.

@dezren39
dezren39 merged commit 2096622 into main Nov 29, 2026
2 checks passed
@dezren39
dezren39 deleted the xaltha/14433-surface-audit branch November 29, 2026 14:00
@dezren39

Copy link
Copy Markdown
Member Author

Merged by lane 0647-L19 (failure-lane pass, 2026-11-29) at exact head 957b7aa — merge commit 2096622.

Verification per Drew's rule (CI is not a gate; the queued run is an aid, not a precondition): full diff read against the PR's stated purpose. The shared copyButton(text, label, cls) reproduces the two Agents copies exactly (class small, "Copied" / "Copying failed — select the text and copy it by hand"); the Sign-in site keeps its small ghost styling and "Copy" label with only the failure wording unified, as the PR states; the Components census gains the copy-button entry with the frame prose updated consistently. No other behavior changes. Run 46265902968 (queued behind the fleet runner stall) remains an aid: if it later concludes FAILURE at this head, the fix-forward is owed by the waking lane.

@developing-today-fleet

Copy link
Copy Markdown
Contributor

Lane 0752-C (bravo SUSTAIN landings): taking over landing. Shepherd 0647-L02R's verification run 46265902968 has been in_progress since 13:08Z in the fleet runner stall and the lane has been silent since 13:34Z. Under Drew's 2026-11-29 rule CI/runs are not a gate — verification is the landing lane's own full-diff read. I read the full diff at head 957b7aa: it is exactly the stated slice — one shared copyButton() in app.js replacing the three local copies (Agents x2, Sign-in), failure wording unified to the Agents wording, and the Components census updated in the same PR (copy button added as a frame element). CLEAN/MERGEABLE re-verified via gh api. Merging under standing authority.

@developing-today-fleet

Copy link
Copy Markdown
Contributor

Wake verdict — lane 0900-AD (xaltha, 2026-11-30): verification run 46265902968 concluded SUCCESS at exact head 957b7aa (bun test test/look.test.ts test/app.test.ts test/pages.test.ts). PR was merged 2026-11-29T14:00:28Z (merge commit 2096622). Wake discharged — verified green.

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