fix(app): a failed account load no longer leaves own grants loading

Delta verifier: when the profile or roles read failed, the grant read never ran and the creation page waited forever; the catch now marks the grants failed (form shown, server decides). Store transition tests (ready, loading on change and sign-out, failed), red without the fix. Contract clarification states the failed-read behaviour for the owner.
This commit is contained in:
bchanot committed 2026-11-02 18:41:32 +01:00
1 parent f04bfdd040
commit e39f69ee6d
3 files changed
+30 -3

No files matched your search

+2
View File
@@ -210,6 +210,8 @@ function applyAuthEvent(
profile: null,
roles: [],
workspace: { status: 'error', failure: classifyRecordError(error) },
// The grant read never ran: no page waits on it forever.
catalogGrantsStatus: 'failed',
})
})
}, 0)