Files
insomnia/packages
Curry YangandClaude Opus 5.5 49a8adfa23 refactor(landing): one way out of the empty project view
The empty project view already leaves through `MissingEntityRedirect` once
projects appear, but it kept two other ways out: a loader redirect when the
database had projects, and `useCreateInitialProject` (a mutation deduped
through the mutation cache, navigating on success). They go:

- No loader. Opening the view in an organization that has projects is
  handled like projects appearing later: `MissingEntityRedirect` re-reads,
  then lands through `/organization/:organizationId`.
- The first-landing "Drafts" project is created by the startup sync query
  once the team projects are synced (still checking the database, still only
  for an account's first landing). The view opens it through the same
  redirect, with `?isExpanded=true` as before.

The project route keeps its own fallback (first project of the
organization data): `/organization/:organizationId` restores the last
visited project without checking its organization, which could send a
project moved to another organization straight back to its old URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 16:25:22 +08:00
..