You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4026c44
Browse filesBrowse the repository at this point in the historyBrowse files
fix(platform-objects): no-mail invite outcome states the verified-address rule; Import Users says "Already pending" (#35274)
Fixes#34889Fixes#35164
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Clause-②: no
Metadata-protocol: none
## 维护者速读
-
改了什么:未配置邮件的部署上,邀请用户与重新发送邀请的结果提示不再叫管理员去用「复制邀请链接」,改为说明规则:接受邀请需要已验证邮箱,无邮件时只有通过社交或
SSO 登录且地址被验证的受邀人能接受,其他人由平台管理员直接建账号;导入用户结果里 `alreadyPending`
的统计与列标题从「Already pending, told again」改为「Already pending」。十种语言翻译同步。
- 为什么改:#34883
落地后未验证邮箱不能接受邀请,旧提示把管理员引向一条走不通的路;被停用的待激活人员重新导入时并未通知托管组织,旧标题却写「已再次通知」,与旁边「Why
not told: deactivated」矛盾。
- 风险与回滚:只改文案与列标题,无行为、接口或数据变化;回滚即回退本 PR。
-
先看:`packages/platform-objects/src/identity/invite-outcome-messages.ts`(两条
`link_only`
文案)、`packages/platform-objects/src/identity/sys-user.object.ts`(`import_sso_users`
结果的两个标题)、`packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts`(译文样本)。
- 两分钟验证:`pnpm --filter @objectstack/platform-objects exec vitest run
--maxWorkers=2 src/identity/invitation-delivery-copy.test.ts
src/identity/cloud-managed-visibility.test.ts`,预期两个文件全绿。
- 需要你做的:无,席位落地。
## What changes
- **#34889, no-mail invite outcome.**
`INVITE_USER_OUTCOME_MESSAGES.link_only` (the four `invite_user`
mirrors: Users, Members, Invitations, the organization page) and
`RESEND_INVITATION_OUTCOME_MESSAGES.link_only` stop telling the admin to
"Use Copy Invite Link on the invitation to share it." Accepting,
declining and listing an invitation need a verified address, so on a
deployment without live mail a copied link admits the sign-up and
nothing more. The copy now states the rule, the one exception (an
invitee whose social or SSO sign-in verifies the address) and the
operator path (a platform administrator creates the account), matching
`content/docs/deployment/self-hosting.mdx`. The file header records the
rule; a comment on `sys_invitation.copy_invitation_link` says what the
link admits. No behaviour change: the outcome, the action and Copy
Invite Link behave as before.
- **#35164, Import Users labels.** `sys_user.import_sso_users`'s
`summary.alreadyPending` field and `alreadyPending` column read "Already
pending" instead of "Already pending, told again", as Add User's
`pendingAgain` already does. A deactivated pending person is re-added
with `host.notified: false, reason: 'deactivated'`; whether the host was
told stays the "Hosting organization told" and "Why not told" columns'
answer.
- **Translations.** `en` regenerated from the source with `node
scripts/check-i18n-bundles.mjs --write`; the ten translated locales
carry hand-written translations of the new leaves (the generator keeps
translated values; AGENTS.md Documentation Guardrails).
- **Changeset.** `.changeset/34889-identity-outcome-copy.md`, `patch` on
`@objectstack/platform-objects`.
- **The released 18.5.0 CHANGELOG sentence** (comment 6974439913 on
#35164) is amended in its own docs-only PR,
`claude/issue-35164-changelog-18-5-0`, because AGENTS.md makes
`packages/*/CHANGELOG.md` release-owned: never edited in a code PR.
## Tests
- `invitation-delivery-copy.test.ts`: the `link_only` copy of
`invite_user` and `resend_invitation` does not contain the Copy Invite
Link label, in English and in each translated bundle's own label for
every mirror.
- `cloud-managed-visibility.test.ts`: `import_sso_users` labels
`summary.alreadyPending` and the `alreadyPending` column "Already
pending", and the host column keeps "told".
- Ablation, one per new assertion (`scripts/ablation-replace.mjs`,
mutation proven on disk, restore proven by blob and empty `git diff
HEAD`): putting the old "Use Copy Invite Link" sentence back into both
`link_only` copies turns the 2 new `link_only` cases red (2 failed / 38
passed); putting "Already pending, told again" back on the column turns
the label case red (1 failed / 62 passed). The pre-change bundles at
`cdb327fd` hold each locale's translated label 6 times (the label plus
the five `link_only` copies), so the translated leg was red on them too.
## Acceptance notes
-
`ui/packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsx`
keeps its own fixture copy of the old `link_only` tail
(`LINK_ONLY_TAIL`). It is a test-local fixture that feeds the console a
declared message and asserts the toast relays it; it does not read the
producer, so it stays green and is not a pin on this text. Noted, not
changed (outside this card's file surface).
- `docs/qa/platform-checklist/areas/ux-conventions.json` (the
invite-outcome regression row) quotes the old `link_only` sentence
verbatim as the expected toast. A checklist run of that row on a no-mail
deployment will now read the new text. Noted for the checklist owner,
not changed here (outside this card's file surface).
- `content/docs/releases/v18/18-3.mdx` names Copy Invite Link for the
expired-invitation gate, which is still true; left as released.
`self-hosting.mdx` already states the rule and the operator path;
unchanged.
- "told again" elsewhere: `plugin-auth/src/auth-route-ledger.ts`
describes the add-sso-user route's behaviour ("the host is told again,
unless the person is deactivated"), which is accurate and does not quote
this label; the plugin-audit mention test, a cli test and a ui data test
use the phrase in unrelated senses.
## Verification
All readings at head `ffa2ad230c` (branch base `origin/main`
`e8a78c4bd`).
<details><summary>Build and tests: platform-objects</summary>
- `pnpm --workspace-concurrency=2 --filter
'@objectstack/platform-objects^...' build` under `os-verify-lock.sh`:
`VERDICT command-exit 0`.
- `pnpm --filter @objectstack/platform-objects test && pnpm --filter
@objectstack/platform-objects typecheck` under the lock: `Test Files 123
passed (123)`, `Tests 2050 passed (2050)`, `check:test-typecheck: OK`,
`VERDICT command-exit 0`.
- Ablation runs as in Tests above: `abl1` 2 failed / 38 passed then
restored (blob == HEAD, `git diff HEAD` empty); `abl2` 1 failed / 62
passed then restored.
</details>
<details><summary>Derived gate families (dispatch-gates --commands,
67)</summary>
- 66 exit 0, among them `pnpm check:i18n` ("all bundles in sync, no
undeclared authoring keys"), `pnpm check:i18n-stale-fill`, `pnpm
check:nul-bytes`, `pnpm check:doc-authoring`, `pnpm
check:published-files`, `pnpm check:issue-citations`, `pnpm
check:type-check-coverage`, `node scripts/check-empty-changeset.mjs
--base origin/main`, `node scripts/check-adr-0087-registration.mjs
--base origin/main`.
- NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3 PREREQUISITE
NOT MET (reads every package's `dist/`; only the platform-objects
closure was built locally). CI runs it.
- `dispatch-gates --ran`: "67 derived famil(ies) accounted for — 66 run,
1 NOT-MEASURED", exit 0.
- `overlap-check --branch=claude/issue-34889-identity-outcome-copy`:
`VERDICT clean exit 0` against `origin/main` and #34717 (shares
`sys-user.object.ts` and the eleven translation bundles, merges
cleanly).
- `test:repo`, the full farm and the type-check lanes are CI's.
</details>
---
_Generated by [Claude
Code](https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me)_
---------
Co-authored-by: Claude <noreply@anthropic.com>
fix(identity): two Setup outcome texts say only what is true
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
- On a deployment without live mail, Invite User (Users, Members, Invitations, the organization page) and Resend Invitation no longer tell the admin to use Copy Invite Link. Accepting an invitation needs a verified email address, and without mail a password account cannot verify one, so a copied link only admits the sign-up. The message now says so: only an invitee whose social or SSO sign-in verifies the address can accept, and for anyone else a platform administrator creates the account (the operator path in the self-hosting guide). The translations carry the same text. Nothing else changes: the outcome, the action and Copy Invite Link behave as before.
11
+
- Import Users (cloud-managed environments) labels its `alreadyPending` count and column "Already pending" instead of "Already pending, told again". A deactivated pending person is re-added without the hosting organisation being told, so the old label contradicted the "Why not told: deactivated" cell beside it; whether the host was told is the "Hosting organization told" and "Why not told" columns' answer, as on Add User.
successMessage: "أُرسلت الدعوة إلى {{ result.email }}",
156
156
outcomeMessages: {
157
157
sent: "أُرسلت الدعوة إلى {{ result.email }}",
158
-
link_only: "أُنشئت دعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. استخدم «نسخ رابط الدعوة» في الدعوة لمشاركتها."
158
+
link_only: "أُنشئت دعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. يتطلب قبول الدعوة عنوان بريد إلكتروني موثَّقًا: من دون البريد، لا يستطيع القبول إلا مدعو يوثّق تسجيلُ دخوله الاجتماعي أو عبر SSO عنوانَه. لأي شخص آخر، ينشئ مسؤول المنصة الحساب."
successMessage: "أُرسلت الدعوة إلى {{ result.email }}",
706
706
outcomeMessages: {
707
707
sent: "أُرسلت الدعوة إلى {{ result.email }}",
708
-
link_only: "أُنشئت دعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. استخدم «نسخ رابط الدعوة» في الدعوة لمشاركتها."
708
+
link_only: "أُنشئت دعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. يتطلب قبول الدعوة عنوان بريد إلكتروني موثَّقًا: من دون البريد، لا يستطيع القبول إلا مدعو يوثّق تسجيلُ دخوله الاجتماعي أو عبر SSO عنوانَه. لأي شخص آخر، ينشئ مسؤول المنصة الحساب."
successMessage: "أُرسلت الدعوة إلى {{ result.email }}",
812
812
outcomeMessages: {
813
813
sent: "أُرسلت الدعوة إلى {{ result.email }}",
814
-
link_only: "أُنشئت دعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. استخدم «نسخ رابط الدعوة» في الدعوة لمشاركتها."
814
+
link_only: "أُنشئت دعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. يتطلب قبول الدعوة عنوان بريد إلكتروني موثَّقًا: من دون البريد، لا يستطيع القبول إلا مدعو يوثّق تسجيلُ دخوله الاجتماعي أو عبر SSO عنوانَه. لأي شخص آخر، ينشئ مسؤول المنصة الحساب."
successMessage: "أُرسلت الدعوة إلى {{ result.email }}",
964
964
outcomeMessages: {
965
965
sent: "أُرسلت الدعوة إلى {{ result.email }}",
966
-
link_only: "أُنشئت دعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. استخدم «نسخ رابط الدعوة» في الدعوة لمشاركتها."
966
+
link_only: "أُنشئت دعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. يتطلب قبول الدعوة عنوان بريد إلكتروني موثَّقًا: من دون البريد، لا يستطيع القبول إلا مدعو يوثّق تسجيلُ دخوله الاجتماعي أو عبر SSO عنوانَه. لأي شخص آخر، ينشئ مسؤول المنصة الحساب."
sent: "أُعيد إرسال الدعوة إلى {{ result.email }}",
993
-
link_only: "جُدِّدت الدعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. استخدم «نسخ رابط الدعوة» في الدعوة لمشاركتها."
993
+
link_only: "جُدِّدت الدعوة لـ {{ result.email }}. البريد غير مُهيَّأ على هذا الخادم، لذا لم تُرسَل أي رسالة. يتطلب قبول الدعوة عنوان بريد إلكتروني موثَّقًا: من دون البريد، لا يستطيع القبول إلا مدعو يوثّق تسجيلُ دخوله الاجتماعي أو عبر SSO عنوانَه. لأي شخص آخر، ينشئ مسؤول المنصة الحساب."
successMessage: "Einladung an {{ result.email }} gesendet",
156
156
outcomeMessages: {
157
157
sent: "Einladung an {{ result.email }} gesendet",
158
-
link_only: "Einladung für {{ result.email }} erstellt. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Verwenden Sie „Einladungslink kopieren“ an der Einladung, um sie zu teilen."
158
+
link_only: "Einladung für {{ result.email }} erstellt. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Zum Annehmen ist eine bestätigte E-Mail-Adresse nötig: Ohne E-Mail-Versand kann nur eine eingeladene Person annehmen, deren Social- oder SSO-Anmeldung die Adresse bestätigt. Für alle anderen legt ein Plattformadministrator das Konto an."
successMessage: "Einladung an {{ result.email }} gesendet",
706
706
outcomeMessages: {
707
707
sent: "Einladung an {{ result.email }} gesendet",
708
-
link_only: "Einladung für {{ result.email }} erstellt. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Verwenden Sie „Einladungslink kopieren“ an der Einladung, um sie zu teilen."
708
+
link_only: "Einladung für {{ result.email }} erstellt. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Zum Annehmen ist eine bestätigte E-Mail-Adresse nötig: Ohne E-Mail-Versand kann nur eine eingeladene Person annehmen, deren Social- oder SSO-Anmeldung die Adresse bestätigt. Für alle anderen legt ein Plattformadministrator das Konto an."
successMessage: "Einladung an {{ result.email }} gesendet",
812
812
outcomeMessages: {
813
813
sent: "Einladung an {{ result.email }} gesendet",
814
-
link_only: "Einladung für {{ result.email }} erstellt. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Verwenden Sie „Einladungslink kopieren“ an der Einladung, um sie zu teilen."
814
+
link_only: "Einladung für {{ result.email }} erstellt. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Zum Annehmen ist eine bestätigte E-Mail-Adresse nötig: Ohne E-Mail-Versand kann nur eine eingeladene Person annehmen, deren Social- oder SSO-Anmeldung die Adresse bestätigt. Für alle anderen legt ein Plattformadministrator das Konto an."
successMessage: "Einladung an {{ result.email }} gesendet",
964
964
outcomeMessages: {
965
965
sent: "Einladung an {{ result.email }} gesendet",
966
-
link_only: "Einladung für {{ result.email }} erstellt. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Verwenden Sie „Einladungslink kopieren“ an der Einladung, um sie zu teilen."
966
+
link_only: "Einladung für {{ result.email }} erstellt. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Zum Annehmen ist eine bestätigte E-Mail-Adresse nötig: Ohne E-Mail-Versand kann nur eine eingeladene Person annehmen, deren Social- oder SSO-Anmeldung die Adresse bestätigt. Für alle anderen legt ein Plattformadministrator das Konto an."
sent: "Einladung erneut an {{ result.email }} gesendet",
993
-
link_only: "Einladung für {{ result.email }} verlängert. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Verwenden Sie „Einladungslink kopieren“ an der Einladung, um sie zu teilen."
993
+
link_only: "Einladung für {{ result.email }} verlängert. Auf diesem Server ist kein E-Mail-Versand konfiguriert, daher wurde keine E-Mail gesendet. Zum Annehmen ist eine bestätigte E-Mail-Adresse nötig: Ohne E-Mail-Versand kann nur eine eingeladene Person annehmen, deren Social- oder SSO-Anmeldung die Adresse bestätigt. Für alle anderen legt ein Plattformadministrator das Konto an."
successMessage: "Invitation sent to {{ result.email }}",
156
156
outcomeMessages: {
157
157
sent: "Invitation sent to {{ result.email }}",
158
-
link_only: "Invitation created for {{ result.email }}. Mail is not configured on this server, so no email went out. Use Copy Invite Link on the invitation to share it."
158
+
link_only: "Invitation created for {{ result.email }}. Mail is not configured on this server, so no email went out. Accepting needs a verified email address: without mail, only an invitee whose social or SSO sign-in verifies the address can accept. For anyone else, a platform administrator creates the account."
successMessage: "Invitation sent to {{ result.email }}",
706
706
outcomeMessages: {
707
707
sent: "Invitation sent to {{ result.email }}",
708
-
link_only: "Invitation created for {{ result.email }}. Mail is not configured on this server, so no email went out. Use Copy Invite Link on the invitation to share it."
708
+
link_only: "Invitation created for {{ result.email }}. Mail is not configured on this server, so no email went out. Accepting needs a verified email address: without mail, only an invitee whose social or SSO sign-in verifies the address can accept. For anyone else, a platform administrator creates the account."
successMessage: "Invitation sent to {{ result.email }}",
812
812
outcomeMessages: {
813
813
sent: "Invitation sent to {{ result.email }}",
814
-
link_only: "Invitation created for {{ result.email }}. Mail is not configured on this server, so no email went out. Use Copy Invite Link on the invitation to share it."
814
+
link_only: "Invitation created for {{ result.email }}. Mail is not configured on this server, so no email went out. Accepting needs a verified email address: without mail, only an invitee whose social or SSO sign-in verifies the address can accept. For anyone else, a platform administrator creates the account."
successMessage: "Invitation sent to {{ result.email }}",
964
964
outcomeMessages: {
965
965
sent: "Invitation sent to {{ result.email }}",
966
-
link_only: "Invitation created for {{ result.email }}. Mail is not configured on this server, so no email went out. Use Copy Invite Link on the invitation to share it."
966
+
link_only: "Invitation created for {{ result.email }}. Mail is not configured on this server, so no email went out. Accepting needs a verified email address: without mail, only an invitee whose social or SSO sign-in verifies the address can accept. For anyone else, a platform administrator creates the account."
link_only: "Invitation renewed for {{ result.email }}. Mail is not configured on this server, so no email went out. Use Copy Invite Link on the invitation to share it."
993
+
link_only: "Invitation renewed for {{ result.email }}. Mail is not configured on this server, so no email went out. Accepting needs a verified email address: without mail, only an invitee whose social or SSO sign-in verifies the address can accept. For anyone else, a platform administrator creates the account."
0 commit comments