Skip to content

fix: close the task view when the scope changes - #1

Merged
s3rgiosan merged 3 commits into
mainfrom
fix/close-task-view-on-scope-change
Nov 5, 2026
Merged

s3rgiosan merged 3 commits into
mainfrom
fix/close-task-view-on-scope-change

Conversation

@s3rgiosan

Copy link
Copy Markdown
Owner

Selecting another view, project, thread or assignee closes the open task view. This applies to the sidebar and to the view.* keyboard shortcuts. Selecting the current scope again keeps the task view open.

  • selectScope in src/state/store.ts calls close() when the new scope is different from the current scope.
  • sameScope moved to src/board/sidebar.ts, so that the store and the sidebar use the same function.
  • A test in src/components/Shell.test.tsx used a scope change only to get an open task that is not on the board. It now gets that state from a refresh.

Tests: npm test (477 passed) and npm run typecheck.

The open task belongs to the board that it was opened from. Selecting
another view, project, thread or assignee now closes it. Selecting the
current scope again keeps it open.
@s3rgiosan
s3rgiosan merged commit b26ce2e into main Nov 5, 2026
4 checks passed
@s3rgiosan
s3rgiosan deleted the fix/close-task-view-on-scope-change branch November 5, 2026 22:32
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