Repository navigation
fix(app-shell,console): the invitation inbox's accept routes an unverified address to verification, and the verify screen says a link was sent only when one was - #34929
Conversation
…cept-invitation-followups
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d) · 2026-11-17T16:58ZL1: REWORK Read against claim 6951290353 and report 6954290964 on #34706. Merge base
This is paper only. Once the claim is amended, this head is ACCEPT with no push. What holds
Must-fix
Should-fixNone. Notes
Landing: not governed, and all checks are green on this exact head. After the M1 amendment, area o3-H lands it. A later push owes a delta read. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d), same-head re-read · 2026-11-17T16:59ZL1: ACCEPT The head is unchanged since REWORK 6954916178, so the diff, the body and the check-runs read there still stand: 58 success, 10 skipped, 0 failed. Must-fixNone. M1 is closed by claim amendment 6954932254 on #34706. It adds:
Every path in the PR's 24-file list is now inside the claim as amended. Should-fixNone. NotesN1 to N4 from 6954916178 stand:
Landing: not governed (0 of 24 paths, 423 lines), all checks green. Area o3-H lands it. A later push owes a delta read. |
…cept-invitation-followups
|
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa Red check read (area o3-H) · 2026-11-17T17:20Z
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d), delta read · 2026-11-17T17:53ZL1: ACCEPT The new head is merge-only.
Landing: not governed, and all checks are green on this exact head. Area o3-H lands it. #34925 is not armed, so this PR takes the eager-budget headroom first. A later push owes a delta read. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa Landing (area o3-H) · 2026-11-17T17:54Z
State change: ready + auto-merge enabled. |
Requested by Yibo Wang · project thread
Fixes #34706
repo:objectstack#3 · os-support-ai · session_01WGufzfrh8TiPJf1i2kMSoa
Clause-②: no
Metadata-protocol: none
维护者速读
/verify-email-prompt路由。ui/packages/app-shell/src/hooks/useConsoleActionRuntime.tsx的refused(新增的错误码分支);ui/packages/app-shell/src/views/RecordDetailView.tsx的refused;ui/apps/console/src/pages/auth/VerifyEmailPromptPage.tsx的sentOnArrival。pnpm --dir ui exec vitest run packages/app-shell/src/hooks/__tests__/useConsoleActionRuntime.apiActionDoor-27611.test.tsx apps/console/src/pages/auth/__tests__/verificationCallback-10893.test.tsx,预期两个文件全绿(含 objectstack#34706 的 6 个用例)。What changes
Item 1 — the invitation inbox's Accept (
sys_invitation.accept_invitation).type: 'api'action: both api handlers,useConsoleActionRuntime'sapiHandler(list rows) andRecordDetailView's (record header), each reading a non-2xx through onerefusedstep that already had one per-code rule (the entitlement dialog,entitlementDialogFromError). A second rule now sits beside it: a body whosecodeisEMAIL_VERIFICATION_REQUIRED_BEFORE_ACCEPTING_OR_REJECTING_INVITATION(read with the existingisAcceptNeedsVerifiedEmail) navigates to/verify-email-prompt?email=ADDRESS&redirect=/accept-invitation/INVITATION_IDand answers{ success: false }with noerror, which the runner reads as "no toast". It applies through the action door and through the direct call alike (the door relays the target's flat vendor body as-is). The redirect is the accept page for that invitation (the subject row's id), so after verifying the person lands where the accept page's own refusal lands. Every other refusal reads exactly as before. No action metadata key, nopackages/specchange, no server change.ai.descriptionnow states the server rule onmain: while the deployment delivers email, the caller's address must be verified; an unverified caller is refused with that code and nothing is written. No translated bundle carriesai.description(check:i18nin sync).orgErrorMessage.ts:verifyEmailPromptPath(email, redirect)andinvitationVerifyEmailPromptPath(email, invitationId).AcceptInvitationPage.tsxis left asmainhas it (see Acceptance notes).Item 2 —
/verify-email-promptcopy. Measured which arrivals send a mail before reaching the page:/register(verification required)sign-up: sends whenemailVerification.sendOnSignUp ?? requireEmailVerification/login(EMAIL_NOT_VERIFIED)emailVerification.sendOnSignIn(plugin-auth forwards it only when set; unset by default)sign-in: the send is insideif (emailVerification.sendOnSignIn)The old page said "We sent a verification link…" and "Sent to:" on every arrival. Now
RegisterPageadds?sent=1(VERIFICATION_SENT_PARAM,verifyEmailPromptQuery.ts) and keeps today's copy. Every other arrival reads "Your email address has not been verified yet. Send a verification link to ADDRESS, then click the link to verify your account." with a "Send verification email" button, and shows "Sent to:" and the spam hint only after the button has sent the mail. With nosentkey the page says nothing about a sent mail. New keysauth.verifyEmail.sendDescriptionandauth.verifyEmail.sendButtonin all 11 built-in locales (key-parity tests green).Item 3 — the embedding host's route.
@object-ui/app-shellREADME gains "Hosting the invitation pages: declare/verify-email-prompt": the accept page and the action handlers navigate there withemailandredirect; a host that mounts either one must declare the route. The changeset says the same.Changeset
.changeset/34706-accept-invitation-followups.md:@objectstack/platform-objects,@object-ui/app-shell,@object-ui/console,@object-ui/i18n, allpatch.Tests
useConsoleActionRuntime.apiActionDoor-27611.test.tsx: new top-level describe (objectstack#34706): the refusal through the door, and through the direct call, navigates to the prompt with the account's address and the invitation's accept page, returns{ success: false }, no refresh. CONTROL:YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATIONkeeps its sentence and navigates nowhere. The file'sreact-router-dommock now hands back a navigate spy; the mocked user gains an email.RecordDetailView.apiActionDoor-27611.test.tsx: the same three cases on the record page, reading the navigation from auseLocationprobe under theMemoryRouter.verificationCallback-10893.test.tsx: new describe: an arrival with nosentasks to send and claims no mail (no "We sent", no "Sent to:", no spam hint, no request made); pressing the button sends to the address and only then shows "Sent to:" and the spam hint. CONTROL:sent=1keeps the "we sent" copy and "Resend". The sign-up redirect test also assertssent=1.sent=1(verificationCallback-10893,handoffVerificationMail-30157);handoffVerificationMail-30157'spromptAttakes thesentflag for the/registerhops.Acceptance notes
ai.descriptionsentence "While this deployment delivers email" then needs its condition dropped, andreject_invitationwould answer the same code. The console routing here is keyed on the code, not the action, so a refused decline from the inbox already goes to verification too. This branch first refactoredAcceptInvitationPage.tsxonto the new helper;overlap-checkreported a textual conflict with fix(plugin-auth)!: accepting, declining and listing an invitation need a verified email address on every deployment #34883 on that file, so the page is left asmainhas it (overlap-checkexit 0 on the final head).i18n-locale-enmeasures 61,857 gzipped bytes against the 62,000 ceiling (headroom 143). Removing the two new strings from the built chunk and re-gzipping gives 61,818, so they cost about 39 bytes. Other open PRs that add English keys (feat(ui): a timesheet list view, an editable row × weekday entry grid #34925 shares the locale files) draw on the same 143 bytes.sent=1assumes the vendor default (sendOnSignUpfollowsrequireEmailVerification). A deployment that setssendOnSignUp: falsewhile requiring verification would see "We sent" after sign-up although nothing was sent. That was already the case before this PR; noted, not changed.resendFailed("Cannot resend verification email") still says "resend" when the first send fails on an arrival that sent nothing. It only appears after the button is pressed.content/docs/**page documents the default auth pages; the package README is where the host-route rule lives.Verification
All readings on
3c8835f8c(branch merged withmainatfc5913e11).Touched-area suites and type-checks
pnpm --dir ui exec vitest run packages/i18n/ apps/console/src/pages/auth/ packages/app-shell/src/console/organizations/: Test Files 157 passed (157), Tests 2445 passed, 13 skipped; lock VERDICT command-exit 0.useConsoleActionRuntime*.test.tsxandRecordDetailView*.test.tsx(120 files): Test Files 120 passed (120), Tests 925 passed (925); VERDICT command-exit 0.pnpm --filter @objectstack/platform-objects exec vitest run: Test Files 123 passed (123), Tests 2046 passed.type-check:@object-ui/app-shellexit 0,@object-ui/consoleexit 0,@object-ui/i18nexit 0;@objectstack/platform-objects typecheckexit 0.Lint UIruns it, on every changed ui file: app-shell 0 errors, console 0 errors (warnings only, all in lines this diff does not touch).Ablation: each core change mutated, red, restored
Each through
node scripts/ablation-replace.mjs(anchor hit once, blob changed, restored to theHEADblob,git diff HEADempty):useConsoleActionRuntime.tsxrouting branch disabled: the two hand-over cases red (2 failed, 12 passed); restored.RecordDetailView.tsxrouting branch disabled: the two hand-over cases red (2 failed, 8 passed); restored.VerifyEmailPromptPage.tsxsentOnArrivalforced true: the two no-mail cases red (2 failed, 10 passed); restored.RegisterPage.tsxsent=1deleted: three cases red acrossverificationCallback-10893andhandoffVerificationMail-30157(3 failed, 20 passed); restored.Eager closure and locale catalogues (console built on this head)
pnpm --dir ui run check:eager-closure: exit 0; "chunki18n-locale-en60.4 KB measured / 60.5 KB ceiling (headroom 0.1 KB)";eager-closure.json: 61,857 gzipped bytes; ceilingPER_CHUNK_GZIP_CEILINGS['i18n-locale-en']62,000, not edited.pnpm --dir ui run check:eager-locale-catalogues: exit 0 (en the one eager catalogue).Derived gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 71 families. 70 ran with exit 0.check:i18nandcheck-plugin-teardown-shape --self-testfirst answered exit 3 (CLI closure not built; a pinned commit missing from the shallow clone) and exit 0 once the prerequisite was met.check:dual-build-cjs-loadsanswered exit 3 (it needs every package'sdist, i.e. a fullpnpm build): NOT MEASURED locally, CI runs it.--ranreconciliation: 71 derived, 70 run, 1 NOT-MEASURED, 0 UNRUN. Alsopnpm --dir ui run check:new-line-citations: 0 new citations.node scripts/pm/overlap-check.mjs: exit 0.Generated by Claude Code