Skip to content

feat(sidebar): filter workspaces by status - #23

Merged
nplez1 merged 1 commit into
nplez1/mainfrom
nplez1/Status-Filters
Sep 22, 2026
Merged

nplez1 merged 1 commit into
nplez1/mainfrom
nplez1/Status-Filters

Conversation

@nplez1

@nplez1 nplez1 commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner
Files Added Deleted Net
Test 15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​291 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​288
Prod 23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​302 $\color{#cf222e}{\Huge{\mathbf{−}}}$​57 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​245

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 Status row (value All statuses / N hidden) that opens one checkbox per status plus a Show all reset. 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 through PersistedUIState, the ui.set schema, store defaults/actions, hydration, and the debounced writer's diff baseline. The sidebar list, the board and the jump palette all filter through the shared applyWorkspaceKindFilters helper — 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 live workspaceStatuses). 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 new Status submenu row in the sidebar options menu's Show section (Status / All statuses, opening to one checkbox per status and a Show all reset) plus a matching filter-badge count. The new component test covers the submenu, the checkbox toggles, the hidden-count label and Show 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

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and 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 Set membership 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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

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
nplez1 merged commit 11165b8 into nplez1/main Sep 22, 2026
32 checks passed
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.
@nplez1
nplez1 deleted the nplez1/Status-Filters branch October 24, 2026 03:23
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