Skip to content

feat(client): one-time notice for self-provisioned sign-in (#797 P4) - #86

Merged
PMQ9 merged 3 commits into
wiki-v2from
feat/797-jit-notice-v2
Nov 10, 2026
Merged

PMQ9 merged 3 commits into
wiki-v2from
feat/797-jit-notice-v2

Conversation

@PMQ9

@PMQ9 PMQ9 commented Nov 10, 2026 •

Copy link
Copy Markdown

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/verify now reports provisioned: true only 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/verify pages) sees the flag, it shows one sticky notification before it navigates:

Your account is ready. You have basic access for now. To see a space, ask one of its administrators to add you.

  • public-service.ts: IPasswordlessVerifyResponse.provisioned?: boolean (additive; older platforms never send it, so nothing shows).
  • Neutral text only: no institution strings (brand guard).
  • No server change, no upstream-owned file touched (check-upstream-boundary.sh is green against the super's UPSTREAM_MODIFICATIONS.md after the P2 PR).

Test evidence

  • apps/client: vitest run src/features/public src/pages/public: 11 files, 61 tests pass. use-passwordless.test.tsx pins: one sticky notice on provisioned: true, after the bridge and before navigation, with neutral text (no address, domain or institution); no notice for undefined/false; no notice when the bridge fails and the sign-in is rolled back.
  • eslint on the three touched files: clean.
  • scripts/check-upstream-boundary.sh (super repo): boundary intact, brand guard clean.

Based on wiki-v2 after #85 (merge of 05be0c4, no rebase).

Super PR: cccvu/wiki-v2#805. Tracking: cccvu/wiki-v2#797.

🤖 Generated with Claude Code

PMQ9 and others added 3 commits November 9, 2026 21:42
…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]>
…#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]>
@PMQ9
PMQ9 merged commit 5e038ba into wiki-v2 Nov 10, 2026
@PMQ9
PMQ9 deleted the feat/797-jit-notice-v2 branch November 10, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant