Repository navigation
feat(member-profile): orphan-adoption decision prompt in brand-identity form - #3185
Merged
Merged
Conversation
…ty form #3168 made adopt-vs-clear an explicit decision in the API (409 with code orphan_manifest_decision_required), but the dashboard form only surfaced that as a generic error message. A member trying to claim a previously-registered domain had no way to pick. This commit adds the inline prompt: * Hidden #orphan-decision-prompt panel above the brand-edit form, shown when the server returns 409 + the orphan code. * saveBrandIdentity captures the pending save context, pops the prompt with the prior owner id, and re-fires when adopt or fresh is clicked. Cancel dismisses without writing. * Success message now reads "adopted prior identity" or "started fresh" so members can confirm which path landed. Backend was already wired (#3168). This is the UX surface that makes the design usable. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
3 tasks done
…click Security-reviewer (Low/defense-in-depth): user-facing prompt no longer echoes prior_owner_org_id back. The 409 response still includes it for support diagnostics and tooling, but a member who has never seen that id has no way to act on it, and a screenshotted prompt won't leak the prior owner's id externally. Code-reviewer (style): switched orphan prompt buttons from DOMContentLoaded-wired listeners to inline onclick, matching the rest of the file's house style. Dropped the now-unused id attributes and DOMContentLoaded handler. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Surfaces the orphan-adoption decision in the dashboard. When the server returns 409 `orphan_manifest_decision_required` (the contract added in #3168), the brand-identity form now shows an inline prompt naming the prior owner and offering Adopt / Start fresh / Cancel buttons. The chosen action re-fires the save with `adopt_prior_manifest` set explicitly.
Why
#3168 forced the orphan decision to be explicit at the API. But `/member-profile` only showed a generic "failed to save" error when the 409 came back — a member trying to claim a previously-registered domain had no way to actually pick. The whole design was invisible to the people it was meant to serve.
What's in the diff
`server/public/member-profile.html`:
Test plan
Out of scope
🤖 Generated with Claude Code