Repository navigation
feat(sidebar): filter workspaces by status - #23
Merged
Merged
Conversation
Add a Status submenu under the workspace options menu's Show section with a checkbox per board status. Unchecked statuses are hidden from the sidebar list and the Cmd+J jump palette; the workspace board keeps showing them so a card can be dragged out of a hidden status into a visible lane. Workspaces with no status stay visible. The preference persists as hiddenWorkspaceStatusIds (empty = show all), and the options-menu filter badge counts hidden statuses.
nplez1
added a commit
that referenced
this pull request
Sep 22, 2026
Add a Status submenu under the workspace options menu's Show section with a checkbox per board status. Unchecked statuses are hidden from the sidebar list and the Cmd+J jump palette; the workspace board keeps showing them so a card can be dragged out of a hidden status into a visible lane. Workspaces with no status stay visible. The preference persists as hiddenWorkspaceStatusIds (empty = show all), and the options-menu filter badge counts hidden statuses.
nplez1
added a commit
that referenced
this pull request
Sep 22, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict marker, whose fixtures still describe the pre-sync shape: - `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing. Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState` and moved the fencing into the hook, so the field no longer exists. Dropped it; the projection behaviour it stood for is unchanged. - `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The other three literals in the file already carry it. - `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's type to `contentEnabled`, which is the field the panel writes and the resolver reads first. Both tests still passed at runtime through the legacy fallback in `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this. No production behaviour moves. `pnpm tc` is clean.
nplez1
added a commit
that referenced
this pull request
Sep 25, 2026
Add a Status submenu under the workspace options menu's Show section with a checkbox per board status. Unchecked statuses are hidden from the sidebar list and the Cmd+J jump palette; the workspace board keeps showing them so a card can be dragged out of a hidden status into a visible lane. Workspaces with no status stay visible. The preference persists as hiddenWorkspaceStatusIds (empty = show all), and the options-menu filter badge counts hidden statuses.
nplez1
added a commit
that referenced
this pull request
Sep 25, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict marker, whose fixtures still describe the pre-sync shape: - `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing. Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState` and moved the fencing into the hook, so the field no longer exists. Dropped it; the projection behaviour it stood for is unchanged. - `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The other three literals in the file already carry it. - `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's type to `contentEnabled`, which is the field the panel writes and the resolver reads first. Both tests still passed at runtime through the legacy fallback in `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this. No production behaviour moves. `pnpm tc` is clean.
nplez1
added a commit
that referenced
this pull request
Sep 27, 2026
Add a Status submenu under the workspace options menu's Show section with a checkbox per board status. Unchecked statuses are hidden from the sidebar list and the Cmd+J jump palette; the workspace board keeps showing them so a card can be dragged out of a hidden status into a visible lane. Workspaces with no status stay visible. The preference persists as hiddenWorkspaceStatusIds (empty = show all), and the options-menu filter badge counts hidden statuses.
nplez1
added a commit
that referenced
this pull request
Sep 27, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict marker, whose fixtures still describe the pre-sync shape: - `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing. Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState` and moved the fencing into the hook, so the field no longer exists. Dropped it; the projection behaviour it stood for is unchanged. - `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The other three literals in the file already carry it. - `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's type to `contentEnabled`, which is the field the panel writes and the resolver reads first. Both tests still passed at runtime through the legacy fallback in `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this. No production behaviour moves. `pnpm tc` is clean.
nplez1
added a commit
that referenced
this pull request
Sep 29, 2026
Add a Status submenu under the workspace options menu's Show section with a checkbox per board status. Unchecked statuses are hidden from the sidebar list and the Cmd+J jump palette; the workspace board keeps showing them so a card can be dragged out of a hidden status into a visible lane. Workspaces with no status stay visible. The preference persists as hiddenWorkspaceStatusIds (empty = show all), and the options-menu filter badge counts hidden statuses.
nplez1
added a commit
that referenced
this pull request
Sep 29, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict marker, whose fixtures still describe the pre-sync shape: - `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing. Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState` and moved the fencing into the hook, so the field no longer exists. Dropped it; the projection behaviour it stood for is unchanged. - `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The other three literals in the file already carry it. - `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's type to `contentEnabled`, which is the field the panel writes and the resolver reads first. Both tests still passed at runtime through the legacy fallback in `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this. No production behaviour moves. `pnpm tc` is clean.
nplez1
added a commit
that referenced
this pull request
Oct 1, 2026
Add a Status submenu under the workspace options menu's Show section with a checkbox per board status. Unchecked statuses are hidden from the sidebar list and the Cmd+J jump palette; the workspace board keeps showing them so a card can be dragged out of a hidden status into a visible lane. Workspaces with no status stay visible. The preference persists as hiddenWorkspaceStatusIds (empty = show all), and the options-menu filter badge counts hidden statuses.
nplez1
added a commit
that referenced
this pull request
Oct 1, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict marker, whose fixtures still describe the pre-sync shape: - `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing. Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState` and moved the fencing into the hook, so the field no longer exists. Dropped it; the projection behaviour it stood for is unchanged. - `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The other three literals in the file already carry it. - `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's type to `contentEnabled`, which is the field the panel writes and the resolver reads first. Both tests still passed at runtime through the legacy fallback in `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this. No production behaviour moves. `pnpm tc` is clean.
nplez1
added a commit
that referenced
this pull request
Oct 6, 2026
Add a Status submenu under the workspace options menu's Show section with a checkbox per board status. Unchecked statuses are hidden from the sidebar list and the Cmd+J jump palette; the workspace board keeps showing them so a card can be dragged out of a hidden status into a visible lane. Workspaces with no status stay visible. The preference persists as hiddenWorkspaceStatusIds (empty = show all), and the options-menu filter badge counts hidden statuses.
nplez1
added a commit
that referenced
this pull request
Oct 6, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict marker, whose fixtures still describe the pre-sync shape: - `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing. Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState` and moved the fencing into the hook, so the field no longer exists. Dropped it; the projection behaviour it stood for is unchanged. - `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The other three literals in the file already carry it. - `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's type to `contentEnabled`, which is the field the panel writes and the resolver reads first. Both tests still passed at runtime through the legacy fallback in `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this. No production behaviour moves. `pnpm tc` is clean.
nplez1
pushed a commit
that referenced
this pull request
Oct 19, 2026
…nce off the deprecated owner resolver (stablyai#30484) The eight mirroring callers (#23-#30) read the owner through runtimeEnvironmentIdWithLegacyFallbackUnlessTwin, so a twin is still not mirrored. Sort-order persistence (#2) leaves out ids that two hosts publish, and ids whose only server proof is a repo row (isUnprovenServerSshRoute), instead of writing them to this desktop's or a guessed server's meta. Deprecated importers 40 -> 31.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ELI5
Workspaces have a status (Todo, In progress, In review, Done — or whatever you have set up on the board). The sidebar options menu now has a Status item under Show. Uncheck a status and its workspaces disappear from the workspace list and from Cmd+J, so you can focus on one lane. The board still shows every workspace, so you can drag a card out of a hidden status into a visible one.
What Changed
Before: the workspace options menu could show/hide workspaces by host, by project, and by a fixed set of hide-* rules, but not by their board status. There was no way to say "hide the Done column from the sidebar".
After: the Show section has a
Statusrow (valueAll statuses/N hidden) that opens one checkbox per status plus aShow allreset. Unchecked statuses are filtered out of the left sidebar list and the Cmd+J jump palette, and the options-menu filter badge counts them. The workspace board is deliberately exempt: it keeps every card so a workspace in a hidden status can be dragged into a visible lane. Workspaces with no status are always shown, so unchecking everything cannot blank the list.Mechanism: a new persisted preference
hiddenWorkspaceStatusIds(empty = show all) is threaded throughPersistedUIState, theui.setschema, store defaults/actions, hydration, and the debounced writer's diff baseline. The sidebar list, the board and the jump palette all filter through the sharedapplyWorkspaceKindFiltershelper — the board passes an empty status list, the other two pass the preference. Revealing or activating a workspace whose status is hidden un-hides that status first, so the target is never invisible.Why
Host and project filters are include-style, and status is naturally a per-status checkbox, so it belongs next to them under Show rather than in the
Filters(hide-*) list at the bottom. Storing the hidden set rather than the visible set means a newly added status is visible by default and no migration is needed, and a status deleted on the board cannot leave an invisible filter behind (the badge and the checkbox state are derived from the liveworkspaceStatuses). The board exemption is a deliberate exception to "board visibility matches the sidebar": with the status filter applied there, emptying a lane would remove the only way to drag a card out of it.The alternative — a boolean "hide completed" style toggle — was rejected because statuses are user-defined; people add and rename them, so the control has to enumerate whatever exists.
Linked Issue
Issues are disabled in this fork, so there is no issue to link.
Visual Proof
N/A— no screenshot attached from this session, which only ran headless checks. The visible change is a newStatussubmenu row in the sidebar options menu's Show section (Status/All statuses, opening to one checkbox per status and aShow allreset) plus a matching filter-badge count. The new component test covers the submenu, the checkbox toggles, the hidden-count label andShow all; the filtering and badge plumbing are covered by unit tests. Before/after screenshots can be attached from a running window on request.Testing
pnpm tc:web,pnpm tc:node,pnpm tc:cli— clean.pnpm test src/renderer/src/components src/renderer/src/app-shell src/renderer/src/lib src/shared src/main/runtime/rpc— 4197 files / 37972 tests passed (1 expected fail).oxlint,pnpm run check:code-quality:changed, the localization catalog/extraction/runtime-catalog/coverage checks, the RPC-params catalog check and the max-lines ratchet all pass.Tests added/updated: sidebar-list filtering by hidden status, clear-filters and badge plumbing, the board exemption (and that the board still honours non-status filters), and the new submenu component.
Platforms: renderer-only; no platform-specific code, shortcuts or paths were added.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
N/A — internal contributor.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Security: no new inputs; the filter is a set membership check over already-loaded workspaces. Cross-platform: renderer-only state and UI, no new shortcuts or path handling. SSH/remote: status lives on the workspace row, which is host-independent, and the filter runs after the host-scope filter, so remote workspaces go through the same path. Mobile: the new key is optional on the wire, so older clients ignore it and new clients default to showing every status. Performance: one
Setmembership check per workspace per sidebar recompute, and the board passes a module-constant empty array. Backwards compatibility: a missing key means "show all", so existing profiles are unchanged until a status is unchecked.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)