Skip to content

feat: land on most recently used project#1883

Merged
adaam2 merged 1 commit intomainfrom
fix/sticky-project
Mar 13, 2026
Merged

feat: land on most recently used project#1883
adaam2 merged 1 commit intomainfrom
fix/sticky-project

Conversation

@adaam2
Copy link
Member

@adaam2 adaam2 commented Mar 13, 2026

Summary

  • When returning to the app at the root URL (/), redirect to the user's last-visited project instead of the org home page
  • Uses the existing preferredProject localStorage key that was already being written on every project visit
  • Also uses the preferred project as the default fallback in ProjectProvider (instead of always picking projects[0])
  • Validates the stored slug against the user's current project list, falling back gracefully if the project no longer exists

Closes AGE-1582

Test plan

  • Open the app, visit a specific project (e.g. "my-project")
  • Navigate away or close the tab, then reopen the app at the root URL /
  • Verify you land on "my-project" instead of the org home
  • Delete the preferredProject key from localStorage, reload at / — should fall back to org home
  • Visit /:orgSlug directly — should still show the org home page (no forced redirect)
  • Switch orgs — verify the preferred project is validated against the new org's project list

🤖 Generated with Claude Code


Open with Devin

When returning to the app at the root URL, redirect to the user's
last-visited project (stored in localStorage) instead of the org home.
Also use the preferred project as the default fallback in ProjectProvider.

Closes AGE-1582

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@adaam2 adaam2 requested a review from a team as a code owner March 13, 2026 17:37
@linear
Copy link

linear bot commented Mar 13, 2026

@changeset-bot
Copy link

changeset-bot bot commented Mar 13, 2026

⚠️ No Changeset found

Latest commit: af0b55b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gram-docs-redirect Ready Ready Preview, Comment Mar 13, 2026 5:37pm

Request Review

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@adaam2 adaam2 merged commit 9ec6b25 into main Mar 13, 2026
31 checks passed
@adaam2 adaam2 deleted the fix/sticky-project branch March 13, 2026 17:43
@github-actions github-actions bot locked and limited conversation to collaborators Mar 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants