Repository navigation
feat(client): one-time notice for self-provisioned sign-in (#797 P4) - #86
Merged
Merged
Conversation
…t#797) The platform's passwordless verify reports provisioned: true only on the sign-in that created or first activated an account. The shared CCC-owned passwordless hook (used by the login and /login/verify pages) then shows one sticky, neutral notice before navigating. No institution strings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…#797 P4, review round 1) The first self-service email carries only a sign-in link, so the sign-in page no longer promises a code: it asks for the link and offers the code box for an email that has one. Co-Authored-By: Claude Opus 5.5 <[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
Fork half of wiki-v2 docmost#797 P4 (self-service accounts for eligible domains). Client only, CCC-owned files only.
The platform's
POST /auth/passwordless/verifynow reportsprovisioned: trueonly on the sign-in that created or first activated an account through self-service sign-up. That account is never "provisioned" again, so the notice is one-time by construction. When the shared CCC passwordless hook (features/public/hooks/use-passwordless.ts, used by the login and/login/verifypages) sees the flag, it shows one sticky notification before it navigates:public-service.ts:IPasswordlessVerifyResponse.provisioned?: boolean(additive; older platforms never send it, so nothing shows).check-upstream-boundary.shis green against the super'sUPSTREAM_MODIFICATIONS.mdafter the P2 PR).Test evidence
apps/client:vitest run src/features/public src/pages/public: 11 files, 61 tests pass.use-passwordless.test.tsxpins: one sticky notice onprovisioned: true, after the bridge and before navigation, with neutral text (no address, domain or institution); no notice forundefined/false; no notice when the bridge fails and the sign-in is rolled back.eslinton the three touched files: clean.scripts/check-upstream-boundary.sh(super repo): boundary intact, brand guard clean.Based on
wiki-v2after #85 (merge of 05be0c4, no rebase).Super PR: cccvu/wiki-v2#805. Tracking: cccvu/wiki-v2#797.
🤖 Generated with Claude Code