Skip to content

fix(console): the Setup page behind 岗位成员 uses the navigation term - #39452

Draft
objectstack-fleet[bot] wants to merge 5 commits into
mainfrom
claude/issue-39408-wip
Draft

objectstack-fleet[bot] wants to merge 5 commits into
mainfrom
claude/issue-39408-wip

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Refs #39408 (item 1)

Clause-②: no
Metadata-protocol: none

维护者速读

  • 管理员在设置里点「岗位成员」后,打开的页面标题、说明、按钮和提示现在都叫「岗位成员」,不再叫「岗位持有人」;英文界面不变。
  • 属于新公司上手体验:同一个概念用两个名字,新管理员会怀疑点错了地方。
  • 只改了中文文案,出错也只是措辞不对,可以直接撤回。
  • 新员工首次登录落到演示应用的问题(这张卡的第二项)没有在这里改,等你决定用哪种方式判断“员工被授权的应用”。

What changes

Item 1 of the card only. The Setup navigation names the entry 岗位成员 (the platform zh-CN pack, nav_position_holders, which keeps 岗位持有人 as a search keyword). The page it opens now uses the same term:

  • ui/packages/i18n/src/locales/zh-Hans.ts: setupAssignments.positionsTitle, positionsSubtitle, positionsPick.
  • ui/packages/app-shell/src/views/metadata-admin/PositionHoldersSection.tsx (zh copy of useCopy()): title, add, empty, removeBody, loadFailed.

The picker title (选择要分配此岗位的组织成员) and the organization-member lines are unchanged: they name organization members, a different concept. English copy is unchanged. The navigation pack is not touched: the page follows the menu.

Item 2 (a new employee lands in the demo app) is NOT in this PR. It is returned to the seat as a decision; see Acceptance notes.

Tests

New ui/packages/app-shell/src/views/setup/positionsMenuTerm-39408.test.ts reads the navigation label from the platform zh-CN pack and asserts: the zh-Hans page-frame title equals it, no setupAssignments.positions* string uses the retired term, and the holder list's zh copy is titled with it and uses no retired term.

Reverse check: with both edited files restored to the merge base, the new file goes red on 3 of its 4 cases; restored to the branch, green.

Readings (head 16e6dcf)
  • pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/setup/positionsMenuTerm-39408.test.ts packages/app-shell/src/views/metadata-admin/PositionHoldersSection.confirmAndMembers-13337.test.tsx packages/i18n/src/__tests__/all-locales-key-parity.test.ts: Test Files 3 passed (3), Tests 61 passed (61).
  • Ablation (edited files at the merge base): Tests 3 failed, 1 passed (4).
  • pnpm turbo run type-check --filter=@object-ui/i18n --filter=@object-ui/app-shell: 74 successful, app-shell type-check a cache miss (ran on this tree), exit 0.
  • node scripts/pm/overlap-check.mjs: clean against origin/main and the three open PRs that share zh-Hans.ts.

Acceptance notes

  • Item 2 is returned as needs_decision. Measured on origin/main 4eca9da: the desktop landing (resolveDesktopLandingPath in ui/apps/console/src/components/RootLandingRedirect.tsx, mirrored by resolveDesktopHomePath in homePath.ts) picks the last app, else an isDefault app, else the first visible product app, from the list narrowed by GET /me/apps. That endpoint only drops apps a permission set hides (tabPermissions: hidden) or whose requiredPermissions the caller lacks. On the showcase, every member holds the everyone baseline set, which grants read on the showcase app's navigation objects by design, so "can read one of the app's objects" is true for the demo app as well as the work app. /auth/me/permissions returns the merged object map with no per-set source. The client therefore has no signal that tells the position-granted work app from the baseline-granted demo app. Also, the landing on first sign-in is decided in apps/console, outside this card's file surface.
  • The zh-Hant pack has the same mismatch (menu 職位成員, page 崗位持有人) and the Studio position list column says 持有人数. Both are outside this card's file surface and are reported to the seat, not changed here.

Verification

Two-minute check: switch the console to 简体中文, open Setup, click 岗位成员 under 人员与组织. Expected: the page title reads 岗位成员, and the selected position's list shows 岗位成员 and an 添加成员 button.

Read first: PositionHoldersSection.tsx (the zh copy block), then zh-Hans.ts (setupAssignments).


Generated by Claude Code

@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 4, 2026
@github-actions github-actions Bot added size/s and removed size/m labels Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants