Skip to content

feat: add a status bar with segments and notices - #3

Merged
autoantohaki merged 1 commit into
feat/panesfrom
feat/status-bar
Oct 21, 2026
Merged

autoantohaki merged 1 commit into
feat/panesfrom
feat/status-bar

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Requested by mau

Before: there was no place for an application to show state such as the selected item, counts, or the result of an action.

After: StatusBar draws one row with a label for the focused view, segments that any component publishes with useStatusSegment (left or right, with a tone), and notices from useNotify that briefly replace the left side ("Refreshed 5 hosts"). StatusStore lets code outside React publish status too. The demo shows the selected host's health and a host count, and r shows a refresh notice.

This also adds hint: false to bindings, which keeps a binding in help but out of the one-line hints so the hints fit in 80 columns.

How: the store keeps segments in order and mount order, skips updates that change nothing, and owns one notice timer that a newer notice replaces. Guide in docs/status-bar.md, with tests.

Stacked on the panes PR; merge that first.

@autoantohaki
autoantohaki merged commit b1e4e0d into feat/panes Oct 21, 2026
12 checks passed
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