GeezerVison is showing github.com — feat(app): redesign the goal pill by arvsrn · Pull Request #60001 · anomalyco/opencode
Conversation
arvsrn
commented
Oct 28, 2026
•
edited by opencodejr
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
None. It follows #64577, the icon registry, and takes over the two parts of #60000 that are still needed: the pill's own popover has no host heading, and a pill's leading icon sits tighter. #60000 is closed.
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Redesigns the goal plugin's composer pill and popover.
Pill
- Labels read Following goal, Goal paused and Goal reached.
- The goal draws its own glyphs. They are three SVG files the plugin declares (
Plugin.define({ icons }), feat(plugin): let GUI plugins declare their own icons #64577) and names with ctx.icons:
- active: an accent ring whose center dot sends out a ripple that fades as it spreads, then grows back (a 2.4s loop)
- paused: a ring with a faded dot, in
--v2-state-fg-warning (tone: "warning")
- reached: a ring with a check, in
--v2-state-fg-success (tone: "success")
- The ripple is SVG animation inside
icons/active.svg. The host keeps it running while the pill renders again.
- Under reduced motion, the host holds the active glyph still on its ring and dot.
Popover
- It leads with the objective. Long objectives scroll.
- Once the goal has a reason, a full-width divider follows, then the colored status (Active, Paused or Finished) with the reason under it. Before the first review there's no reason, so the popover is just the objective and the actions.
- Left-aligned buttons: Pause or Resume beside a red Clear. A reached goal offers only Dismiss, which clears it. They stay disabled while a command is in flight, as before.
- The content adds 4px at the top and 8px elsewhere to the host's 4px inset, so it sits 8/12/12 from the edges.
The popover layout ships as plugin CSS through ctx.add(Style, …). The plugin's strings title and met are replaced.
Host changes carried over from #60000
- For pills with
menu, the host no longer draws title (or label) as a heading above the plugin's content. The host keeps the popover's frame, and title still names the popover for assistive technology.
- A pill that starts with an icon sits it 8px from the edge with a 6px gap to the label, through one rule on the shared pill. This covers the activity, todo and plugin pills.
The goal itself still comes from the plugin's state machine (machine.ts); this PR only changes what the pill and popover draw.
How did you verify your code works?
bun typecheck in packages/gui-plugins and packages/app
- oxlint, prettier and the gui-plugins ast-grep rules
- In the app against this branch's server, with real
/goal runs in a scratch session: active before the first review, paused with "Paused by the user", and reached with the reviewer's evidence and only Dismiss
Visual
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="none">
<style>
.r{animation:r 2.4s infinite;transform-box:fill-box;transform-origin:center}
.c{animation:c 2.4s infinite;transform-box:fill-box;transform-origin:center}
.p{animation:p 4.8s ease-out infinite;transform-origin:60px 34px}
@keyframes r{0%,16.7%{transform:scale(1);opacity:1;animation-timing-function:cubic-bezier(.2,.6,.35,1)}91.7%,100%{transform:scale(2.8);opacity:0}}
@keyframes c{0%,16.6%{transform:scale(1);opacity:1}16.7%,33.3%{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.33,0,.2,1)}75%,100%{transform:scale(1);opacity:1}}
@keyframes p{0%,10%{opacity:0;transform:translateY(4px) scale(.97)}22%,84%{opacity:1;transform:none}96%,100%{opacity:0;transform:translateY(4px) scale(.97)}}
@media (prefers-reduced-motion:reduce){.r,.c,.p{animation:none}}
</style>
<rect x="6" y="44" width="92" height="24" rx="6" stroke="currentColor" stroke-opacity=".35" stroke-width=".75"/>
<circle cx="19" cy="56" r="5" stroke="currentColor"/>
<circle class="r" cx="19" cy="56" r="1.6" fill="currentColor"/>
<circle class="c" cx="19" cy="56" r="1.6" fill="currentColor"/>
<rect x="30" y="54" width="58" height="4" rx="2" fill="currentColor" opacity=".7"/>
<g class="p">
<rect x="6" y="2" width="160" height="38" rx="6" fill="currentColor" fill-opacity=".05" stroke="currentColor" stroke-opacity=".3" stroke-width=".75"/>
<rect x="14" y="8" width="128" height="3" rx="1.5" fill="currentColor" opacity=".7"/>
<rect x="14" y="14" width="96" height="3" rx="1.5" fill="currentColor" opacity=".7"/>
<line x1="6" y1="21" x2="166" y2="21" stroke="currentColor" stroke-opacity=".2" stroke-width=".5"/>
<rect x="14" y="25" width="26" height="9" rx="2" stroke="currentColor" stroke-opacity=".4" stroke-width=".75"/>
<rect x="44" y="25" width="24" height="9" rx="2" stroke="currentColor" stroke-opacity=".4" stroke-width=".75"/>
<rect x="18" y="28.5" width="18" height="2" rx="1" fill="currentColor" opacity=".7"/>
<rect x="48" y="28.5" width="16" height="2" rx="1" fill="currentColor" opacity=".45"/>
</g>
</svg>
Screenshots / recordings
Captured in the app against this branch's server: reached (objective, Finished, the reviewer's evidence, Dismiss), active before the first review (objective, Pause, Clear) and paused (objective, Paused, "Paused by the user", Resume, Clear). The pill uses the shared 32px composer pill from #59979.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Update: rebased onto the icon registry (#64577)
- This branch was
596b614131f on top of pill-icon-render. It is now on dev, and the PR targets dev.
- The inset commit and the redesign commit are unchanged. The popover heading removal is carried over from feat(plugin): let composer pills render their own icon #60000 as its own commit.
- One commit on top moves the glyphs from the
ComposerPill.icon render to declared icons. The plugin's glyph CSS and keyframes are gone.
- Each glyph is framed to its 14px ring (
viewBox="1 1 14 14"), so the pill's 14px icon draws it at the size the 16px glyph had. Rasterized in Chromium at 12x, the three glyphs at rest match the earlier ones pixel for pixel, colors included.
- The active glyph sets the accent color in its own SVG, because no
tone gives the accent.
- Not checked: the ripple in motion in the running app. The registry's component test covers motion, re-render and reduced motion with a similar glyph.
Added by the opencode bot (AI-generated).
Related: #61333
Public API: ComposerPill.menu popovers no longer get a host-drawn heading; title/label only names them for screen readers (types unchanged; plugins that relied on the heading must draw their own)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
A pill that starts with an icon now sits it 8px from the edge with a 6px gap to its
label, through one rule on the shared pill instead of the todo pill's own override.
Pills without an icon keep 10px on both sides. The activity menu's rows follow the
capsule's new inset and gap.
The goal plugin's pill gets its own glyph through the composer pill icon: a ripple
for an active goal, a faded dot when paused and a check once reached. The labels
now read Following goal, Goal paused and Goal reached.
The popover leads with the objective. Once the goal has a reason, a divider and
the colored status follow with the reason under it. Pause or Resume sit beside a
red Clear, and a reached goal offers only Dismiss.
A pill's own popover (menu) no longer gets a host heading. The host keeps the popover's
frame, and everything inside belongs to the plugin; the view's title names the popover
for assistive technology.
Carried over from #60000 without its icon render, which the icon registry of #64577 replaces.
The glyphs are now three SVG files the goal plugin declares, named through ctx.icons, instead of a render function on the pill. The host draws them like any icon: it colors a paused and a reached goal by tone, keeps the ripple running while the pill renders again, and holds it under reduced motion, so the plugin's glyph CSS and keyframes go.
Each glyph is framed to its 14px ring, so the pill's 14px icon draws it at the size the 16px glyph had. The goal plugin no longer ships the steer icon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks sound. I couldn't see it running: it's in the web/desktop app and not the TUI, and this environment has no Playwright browser, so I took no screenshots and didn't run the component tests. Type checks for packages/gui-plugins and packages/app pass (with tsc, since bun check isn't available here). oxlint on the changed files, script/sdk-docs.ts (the README blocks match their source) and check-greys also pass. The reduced-motion behaviour holds: the active glyph uses SVG animation elements, and the icon registry pauses those on their first frame, which is the still ring and dot.
Public API: the plugin API changes what ComposerPill.menu and ComposerPillView.title mean, but no types change. The host no longer draws a heading over a pill's own popover. title (else label) now only names that popover for screen readers; it still heads rows menus. This mostly stays compatible. A third-party plugin whose popover relied on the host heading would lose it and has to draw its own. In this repo, the goal plugin is the only pill with a menu.
No blocking concerns.
Related: #61333
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Each row is a subgrid of the menu's table, and a menu row's own 8px gap replaced the table's 6px gap inside it, so row text sat 2px after the capsule's label. The rows now take the table's gap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit looks fine, and I have no new concerns. It sets the activity menu's rows to the table's 6px gap, so their columns stay on the capsule's grid. I read the CSS but couldn't see it running: it's in the app, not the TUI, and there's no browser here. The public API is unchanged by this commit; the plugin API note from my earlier review still applies.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
Hona
Awaiting requested review from Hona
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|