Repository navigation
Conversation
Observer joins the roles the Members page assigns, so the invite and role pickers offer it and the role change prompt says what it can do. Member stays the default for a new invite. A role key the page does not know now shows as Observer, matching how the API reads it. The role has to exist on the auth instance before it can be assigned.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Maple review🟢 Confidence 10/10 · safe to merge. Only an info note on a positional lookup; the role list, picker and prompt text are pinned by new tests. Moves the observer role into
Before merge
Findings🔵 Note · F1 ·
|
Fourth layer of the Observer role, on top of #2547. The Members page now offers it.
What changed
Screenshots
Role picker, before and after:
The confirm strip says what the role is for:
Verified
packages/domain: policy tests, 16 passed.apps/web:org-membership.test.tsand the members page tests, 17 passed. New cases: an unknown role key shows as Observer, root still shows as Member, and the role change prompt names the observer role./lab/memberspage driven in a headless browser for the screenshots above.org:observerin its default role set, created through the provider's API.Before merge
Create
org:observer(name "Observer", no system permissions, in the default role set) on the production auth instance. Until it exists, assigning Observer there fails. Also confirm production has no role keys beyond admin, member and engineer: any other key now reads as observer.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.