fzt: status indicators on item selection (success / error / neutral + repeat feedback) #2

Closed
opened 2026-04-17 19:04:46 -07:00 by nelsong6 · 3 comments
nelsong6 commented 2026-04-17 19:04:46 -07:00 (Migrated from github.com)

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

  1. Green check — success (action completed)
  2. Red X — error (action failed)
  3. Neutral — selected item has no wired action. Distinct from success; conveys "registered but nothing happened" vs "it worked."

Repeat-feedback challenge

If the same status fires twice in a row, the indicator mustn't look static. Every SetTitle call 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 titleStyleHint in fzt-terminal's drawBorderTopWithTitle). Add a third neutral style, force a fade/pulse on every call, wire selection handlers to emit SetTitle with the right style + icon. Upstream once, cascades to fzt-automate / fzt-browser / fzt-picker.

**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 1. Green check — success (action completed) 2. Red X — error (action failed) 3. Neutral — selected item has no wired action. Distinct from success; conveys "registered but nothing happened" vs "it worked." ## Repeat-feedback challenge If the same status fires twice in a row, the indicator mustn't look static. Every `SetTitle` call 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 `titleStyleHint` in fzt-terminal's `drawBorderTopWithTitle`). Add a third neutral style, force a fade/pulse on every call, wire selection handlers to emit `SetTitle` with the right style + icon. Upstream once, cascades to fzt-automate / fzt-browser / fzt-picker.
nelsong6 commented 2026-04-17 21:40:44 -07:00 (Migrated from github.com)

Resolution

Shipped across the fzt ecosystem in a 4-repo cascade:

  • fzt@v0.2.55, commit 07e17e9 — added State.PulseUntil + State.IsPulsing(); SetTitle bumps the pulse deadline to now+350ms so every call triggers a visible flash.
  • fzt-frontend@v0.1.9, commit 44a8fa2 — sync command now emits a green success SetTitle (synced N items @ vX) so the brief moment before exit shows confirmation rather than nothing.
  • fzt-terminal@v0.1.51, commit 54bd90a — drawBorderTopWithTitle renders title cells with Reverse(true) while IsPulsing(); added TitleNeutralFg (slate) for titleStyleHint=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).
  • fzt-automate@v0.1.16 — auto-dep-bump, no direct code change.

What the user sees

  • Success (style 1, green): e.g. synced 42 items @ v17 after :sync.
  • Error (style 2, red): unchanged — existing failure paths already emit these.
  • Neutral (style 3, slate): new — ready for wiring up "no action attached" scenarios. Not used yet in any handler.
  • Every SetTitle pulses (reverse video for 350ms): guarantees repeat identical messages still produce visible feedback. check-ci PASS 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 processAction or fzt-frontend's HandleCommandAction — 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/fzt inherit amber from downstream cascade activity and contradict their own success badge. Not the same bug but surfaced while observing the cascade.

## Resolution Shipped across the fzt ecosystem in a 4-repo cascade: - [fzt@v0.2.55](https://github.com/nelsong6/fzt/releases/tag/v0.2.55), commit [07e17e9](https://github.com/nelsong6/fzt/commit/07e17e9) — added `State.PulseUntil` + `State.IsPulsing()`; `SetTitle` bumps the pulse deadline to now+350ms so every call triggers a visible flash. - [fzt-frontend@v0.1.9](https://github.com/nelsong6/fzt-frontend/releases/tag/v0.1.9), commit [44a8fa2](https://github.com/nelsong6/fzt-frontend/commit/44a8fa2) — `sync` command now emits a green success SetTitle (`synced N items @ vX`) so the brief moment before exit shows confirmation rather than nothing. - [fzt-terminal@v0.1.51](https://github.com/nelsong6/fzt-terminal/releases/tag/v0.1.51), commit [54bd90a](https://github.com/nelsong6/fzt-terminal/commit/54bd90a) — `drawBorderTopWithTitle` renders title cells with `Reverse(true)` while `IsPulsing()`; added `TitleNeutralFg` (slate) for `titleStyleHint=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). - [fzt-automate@v0.1.16](https://github.com/nelsong6/fzt-automate/releases/tag/v0.1.16) — auto-dep-bump, no direct code change. ## What the user sees - **Success** (style 1, green): e.g. `synced 42 items @ v17` after `:sync`. - **Error** (style 2, red): unchanged — existing failure paths already emit these. - **Neutral** (style 3, slate): new — ready for wiring up "no action attached" scenarios. Not used yet in any handler. - **Every SetTitle pulses** (reverse video for 350ms): guarantees repeat identical messages still produce visible feedback. `check-ci` PASS 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 `processAction` or fzt-frontend's `HandleCommandAction` — but that's a follow-up, not in scope here. Let me know if you want it surfaced anywhere specific. Separately, issue [diagrams#7](https://github.com/nelsong6/diagrams/issues/7) filed during this work: producer nodes on `/ci/fzt` inherit amber from downstream cascade activity and contradict their own `success` badge. Not the same bug but surfaced while observing the cascade.
nelsong6 commented 2026-04-17 22:18:04 -07:00 (Migrated from github.com)

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, select sync — 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.

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, select `sync` — 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.
nelsong6 commented 2026-04-18 11:48:31 -07:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/fzt-terminal#2
No description provided.