Skip to content

polish(security): inline ⧉N blast badge + unify the ignore icon#330

Merged
graydawnc merged 1 commit into
mainfrom
polish/security-blast-inline-badge
May 27, 2026
Merged

polish(security): inline ⧉N blast badge + unify the ignore icon#330
graydawnc merged 1 commit into
mainfrom
polish/security-blast-inline-badge

Conversation

@graydawnc
Copy link
Copy Markdown
Collaborator

What

Two consistency passes on the Security finding rows:

  1. Cross-session radius → inline ⧉N badge. The standalone "Also in N other sessions" line under each credential value is replaced by a compact ⧉N badge on the value row itself (Layers glyph + count; the label lives in the tooltip). Clicking it expands the per-session list (source dot + session title + Purge everywhere). A collapsed radius now costs zero extra rows.
  2. One ignore icon everywhere. "ignore / dismiss" now uses CircleSlash across every surface:
    • The per-row Dismiss trigger (SecurityPage and the session FindingsStrip) becomes an icon-only button (tooltip + scope menu) instead of a "Dismiss" text label.
    • The "Dismiss all" bulk menu item swaps its mis-leading ✓ Check for CircleSlash.
    • The hairline between the per-row Dismiss and Purge icons is dropped, so the two read as a clean icon pair (⊘ ◇).
    • Check stays only on genuine "resolved" status badges.

Why

  • The "Also in N…" line — even muted — added a full row of vertical noise under every credential finding. A tiny inline badge keeps the signal discoverable without the resting line.
  • "Ignore" was represented three different ways (text label, ✓, ⊘). One glyph (CircleSlash, already used by the meta-row Ignored entry) makes the action read consistently and matches the icon-only Purge.

How it connects

  • BlastRadius is now controlled: it reports the other-session count up (drives the badge) and renders the list only when expanded. SecurityPage owns blastExpanded / blastCount and renders the badge in the value cell (clear of the right-edge hover-action cluster).
  • Icon-only Dismiss keeps its data-testid + scope menu, so behaviour is unchanged — only the trigger's chrome.

Test plan

  • security-blast-radius e2e updated to drive the ⧉N badge (blast-badge) instead of the removed toggle line; asserts the badge's data-sessions, expand → 1 session row + source dot, and that the badge disappears after purge-everywhere (otherCount → 0).
  • security-findings-actions green — per-row + bulk Dismiss/Purge and the Dismiss-all → meta-row refresh regression still pass with the icon-only trigger + CircleSlash menu.
  • security-ignored-entry green. app typecheck clean; full app unit suite (329) green.

🤖 Generated with Claude Code

- Cross-session radius: replace the standalone "Also in N other sessions"
  line under each credential value with a compact ⧉N badge on the value
  row (Layers glyph + count, tooltip carries the label). Clicking expands
  the per-session list. BlastRadius is now controlled — it reports the
  other-session count up (drives the badge) and renders the list only when
  expanded — so a collapsed radius costs zero extra rows.
- Ignore icon consistency: "ignore/dismiss" now uses CircleSlash
  everywhere — the per-row Dismiss trigger (SecurityPage + FindingsStrip)
  becomes an icon-only button (tooltip + scope menu) instead of a text
  label, and the "Dismiss all" bulk menu item swaps its mis-leading ✓
  Check for CircleSlash. Check stays only on true "resolved" status
  badges. The hairline between the per-row Dismiss and Purge icons is
  dropped so the two read as a clean icon pair.

Tests: security-blast-radius e2e updated to drive the ⧉N badge
(`blast-badge`) instead of the old toggle line; after purge-everywhere the
badge disappears (otherCount → 0). app typecheck clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@graydawnc graydawnc force-pushed the polish/security-blast-inline-badge branch from c19a4dd to 55286b2 Compare May 27, 2026 06:51
@graydawnc graydawnc added this pull request to the merge queue May 27, 2026
Merged via the queue into main with commit 28414a3 May 27, 2026
6 checks passed
@graydawnc graydawnc deleted the polish/security-blast-inline-badge branch May 27, 2026 06:56
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