Skip to content

feat(goal): redesign goal pill, icons, and popover - #256

Merged
Hona merged 1 commit into
devfrom
ws6/goal-pill-redesign
Nov 20, 2026
Merged

Hona merged 1 commit into
devfrom
ws6/goal-pill-redesign

Conversation

@Hona

@Hona Hona commented Nov 20, 2026

Copy link
Copy Markdown
Member

Ports #60001 (UP-069: redesign the goal pill).

Summary

  • Goal plugin (plugins/goal/):
    • Bumped to contract 1.6 (version = "0.3.0"), replaced icons/steer.svg with upstream's three plugin-declared SVG glyphs (icons/active.svg with SMIL ripple, icons/paused.svg, icons/complete.svg), tinted via tone = "accent" | "warning" | "success".
    • Updated labels (Following goal, Goal paused, Goal reached) and added status labels (Active, Paused, Finished) + Dismiss in plugins/goal/locales/en.json.
    • Parsed and propagated goal.reason in plugins/goal/machine.luau and plugins/goal/init.luau.
    • Rebuilt renderMenu: scrollable objective (maxH = 160), conditional full-bleed 0.5px divider + colored status line + reason when reason is present, neutral Pause/Resume beside danger Clear, and single neutral Dismiss button once reached.
  • Host pill & popover geometry (apps/desktop/src/plugin_host/ui/{surfaces,nodes}.rs, features/subagents/src/{lib,shells/view}.rs):
    • Removed the host popover heading above plugin pill menus while keeping view.title ?? view.label as the dialog's accessible label.
    • Applied the shared leading-icon pill inset (pl = 8, gap = 6, 16x16 centered glyph box) to plugin composer pills, ui.pill, and the activity capsule, and updated activity menu rows (px = 4, gap = 6).

Proof (proof/ws6/pr3-goal/)

  • Live mock-server captures matching proof/reference/e51247f626/ws6/: active (without and with reason), paused, and reached popovers in dark and light at 1x and 1.5x.
  • Driven interaction checks: clicking Pause, Resume, Clear, and Dismiss fires /api/session/:id/command ({ name: "goal", text: "pause" | "resume" | "clear" }), closes the popover, and updates/clears the pill on rpc.opencode.goal.changed.
  • Static SVG resting frame renders cleanly today; live SMIL ripple activates automatically once anomalyco/rune#1291 is merged and pinned.
  • scripts/guardrails.ps1 (5/5), cargo check --workspace, scripts/web.ps1 -Check, luau-lsp, and selene all green.

- Port UP-069 (#60001) to plugins/goal (contract 1.6): replace steer.svg with plugin-declared icons/{active,paused,complete}.svg, rename pill labels to Following goal / Goal paused / Goal reached, and track goal.reason through machine.luau and init.luau.
- Redesign goal popover inside renderMenu with full-bleed hairline divider, colored status line (Active / Paused / Finished) and reason when present, neutral Pause/Resume alongside danger Clear, and Dismiss-only for reached goals.
- Remove the host-drawn popover heading in apps/desktop/src/plugin_host/ui/surfaces.rs (keeping view.title ?? view.label as the dialog accessible name).
- Apply the shared leading-icon pill geometry (8px start inset, 6px icon-label gap, 16px icon box) across plugin composer pills, ui.pill, and the activity capsule, and align activity menu rows (4px horizontal padding, 6px column gap).
@Hona
Hona merged commit 757edba into dev Nov 20, 2026
@Hona
Hona deleted the ws6/goal-pill-redesign branch November 20, 2026 08:20
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

Hona added a commit that referenced this pull request Nov 20, 2026
…ing (#266)

- Fold verified fleet PRs #247, #251, #252, #253, #254, #255, #256, #257,
  #258, #260, #261, #262, #263, #264, and #265 (Rune #1290 PRE-11 / #1296)
  into docs/upstream-sync/ledger.{json,md}
- Audit upstream anomalyco/opencode through 92d35f8e18 (+9 commits past
  bf683129fa), adding UP-107..UP-113 and assigning UP-106/UP-108/UP-111 to
  BROWSER-UI
- Update scripts/upstream-sync-check.ts to skip pure *.fixture.* test files
  and route browser UI/history vs extensions commits to BROWSER-UI and WS-9
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