fzt: status indicators on item selection (success / error / neutral + repeat feedback) #2
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-verification
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-terminal#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Repo affected: fzt-terminal (issues disabled there; filed here).
Problem
Selecting an item in fzt gives no visible feedback — the picker returns a result but the user can't tell whether anything registered.
Required states
Repeat-feedback challenge
If the same status fires twice in a row, the indicator mustn't look static. Every
SetTitlecall should produce a visible animation/pulse so the user sees "something updated," even when content is unchanged.Implementation
Title bar / dynamic status area already supports style hints (0/1/2 via
titleStyleHintin fzt-terminal'sdrawBorderTopWithTitle). Add a third neutral style, force a fade/pulse on every call, wire selection handlers to emitSetTitlewith the right style + icon. Upstream once, cascades to fzt-automate / fzt-browser / fzt-picker.Resolution
Shipped across the fzt ecosystem in a 4-repo cascade:
State.PulseUntil+State.IsPulsing();SetTitlebumps the pulse deadline to now+350ms so every call triggers a visible flash.synccommand now emits a green success SetTitle (synced N items @ vX) so the brief moment before exit shows confirmation rather than nothing.drawBorderTopWithTitlerenders title cells withReverse(true)whileIsPulsing(); addedTitleNeutralFg(slate) fortitleStyleHint=3("registered but no action"); bumped ticker from 1s → 200ms so the pulse settles within its 350ms window. Applies to full-screen, inline, and WASM renderers uniformly (no code in fzt-browser needed — Reverse-video travels through the ANSI serialization).What the user sees
synced 42 items @ v17after:sync.check-ciPASS confirms the cascade is intact.Remaining work
The neutral style (hint=3) is wired but no action yet emits it. The natural trigger is a future handler for "selected a leaf with no Action" — probably in fzt-terminal's
processActionor fzt-frontend'sHandleCommandAction— but that's a follow-up, not in scope here. Let me know if you want it surfaced anywhere specific.Separately, issue diagrams#7 filed during this work: producer nodes on
/ci/fztinherit amber from downstream cascade activity and contradict their ownsuccessbadge. Not the same bug but surfaced while observing the cascade.Note: shipped end-to-end (fzt@v0.2.55 → fzt-frontend@v0.1.9 → fzt-terminal@v0.1.51 → fzt-automate@v0.1.16, check-ci PASS) but not yet user-tested in any frontend. To verify: run fzt-automate, open the
:palette, selectsync— the title bar should briefly flash (reverse-video) and show a green "synced N items @ vX" message. Also: any SetTitle — including rapid repeats of the same status — should visibly pulse rather than look static. For homepage.romaine.life (fzt-browser), the pulse appears on the immediate render but won't actively settle without a key event; acceptable limitation for v0. Neutral style (titleStyleHint=3, slate) is wired but no handler emits it yet — follow-up if a concrete trigger is identified.Verified working — pulse triggers on exact-repeat SetTitle calls (tested via ::version in fzt-automate v0.1.24). First post does not pulse (distinct message is self-evidently new). Label cleared.