Skip to content

feat: remember last active organization across sessions#717

Merged
timbastin merged 2 commits intomainfrom
feat/remember-last-active-org
May 8, 2026
Merged

feat: remember last active organization across sessions#717
timbastin merged 2 commits intomainfrom
feat/remember-last-active-org

Conversation

@refoo0
Copy link
Copy Markdown
Member

@refoo0 refoo0 commented May 8, 2026

No description provided.

Signed-off-by: rafi <refaei.shikho@hotmail.com>
Copilot AI review requested due to automatic review settings May 8, 2026 08:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds persistence of the user’s last active organization across browser sessions by writing the active org slug to localStorage and using it on the root page (/) to decide which organization to open first.

Changes:

  • Store the currently active organization slug in localStorage when visiting an organization page.
  • Update the root page redirect logic to prefer the stored lastActiveOrg when it’s still present in the user’s org list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/app/page.tsx Reads lastActiveOrg from localStorage and redirects to the remembered org (fallback to first org or setup).
src/app/(loading-group)/[organizationSlug]/page.tsx Persists activeOrg.slug to localStorage whenever the active org changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/page.tsx Outdated
Comment thread src/app/page.tsx Outdated
Signed-off-by: rafi <refaei.shikho@hotmail.com>
@timbastin timbastin merged commit 3075407 into main May 8, 2026
16 of 18 checks passed
@timbastin timbastin deleted the feat/remember-last-active-org branch May 8, 2026 11:35
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.

3 participants