Skip to content

feat(tui): hide archive-status beans by default with a toggle#1

Merged
chrisjkuch merged 1 commit into
mainfrom
feat/tui-hide-archive-default
May 17, 2026
Merged

feat(tui): hide archive-status beans by default with a toggle#1
chrisjkuch merged 1 commit into
mainfrom
feat/tui-hide-archive-default

Conversation

@chrisjkuch
Copy link
Copy Markdown
Owner

  • Hide completed/scrapped (any status with Archive: true) on launch.
  • New a keybind toggles showAll; footer label flips between "show all" and "hide done"; title gains [all] indicator when on.
  • Derive the status set from (*Config).ArchiveStatusNames() (new helper) instead of hardcoding ["completed", "scrapped"].
  • Refactor title/filter into buildTitle/buildFilter helpers and cover them with unit tests for every tag/showAll combination.

Builds on the mechanics of upstream PR hmans#76 but flips the default (hide on launch) and sources the status set from config.

Refs: beans-jsud

- Hide completed/scrapped (any status with `Archive: true`) on launch.
- New `a` keybind toggles showAll; footer label flips between
  "show all" and "hide done"; title gains `[all]` indicator when on.
- Derive the status set from `(*Config).ArchiveStatusNames()` (new
  helper) instead of hardcoding `["completed", "scrapped"]`.
- Refactor title/filter into `buildTitle`/`buildFilter` helpers and
  cover them with unit tests for every tag/showAll combination.

Builds on the mechanics of upstream PR hmans#76 but flips the
default (hide on launch) and sources the status set from config.

Refs: beans-jsud

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@chrisjkuch chrisjkuch merged commit 7f07101 into main May 17, 2026
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