Skip to content

Keep the main page stable when selecting a space - #4040

Merged
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/preserve-page-on-space-select
Jul 31, 2026
Merged

Keep the main page stable when selecting a space#4040
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/preserve-page-on-space-select

Conversation

@k11kirky

Copy link
Copy Markdown
Contributor

Problem

Selecting a space immediately replaced the main window with that space’s feed.

Why: Space selection should scope the sidebar first, while navigation should happen only after the user chooses content within that space.

Changes

  • Keep the current main-window route when a space is selected in the Spaces layout.
  • Preserve the existing sidebar scoping and keyboard-selection behavior.

How did you test this?

  • pnpm exec vitest run src/features/canvas/components/ChannelsList.test.tsx (20 tests)
  • pnpm exec biome check src/features/canvas/components/ChannelsList.tsx src/features/canvas/components/ChannelsList.test.tsx

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: 0edeed54-a9e6-40c6-9ad3-73b989bd8db1
@trunk-io

trunk-io Bot commented Jul 31, 2026

Copy link
Copy Markdown

😎 Merged successfully - details.

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit d0cea09.

@k11kirky
k11kirky marked this pull request as ready for review July 31, 2026 12:00
@greptile-apps

greptile-apps Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix: preserve page when selecting a spac..." | Re-trigger Greptile

@tatoalo tatoalo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice

@k11kirky

Copy link
Copy Markdown
Contributor Author

/truck merge

@k11kirky

Copy link
Copy Markdown
Contributor Author

/trunk merge

@trunk-io
trunk-io Bot merged commit d117c82 into main Jul 31, 2026
35 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/preserve-page-on-space-select branch July 31, 2026 12:37
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.

2 participants