Repository navigation
fix(console): the Setup page behind 岗位成员 uses the navigation term - #39452
Draft
objectstack-fleet[bot] wants to merge 5 commits into
Draft
objectstack-fleet[bot] wants to merge 5 commits into
objectstack-fleet[bot] wants to merge 5 commits into
Conversation
Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude <noreply@anthropic.com>
…position strings Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude <noreply@anthropic.com>
…m pack Claude-Session: https://claude.ai/code/session_016WV4d1cnRvyiAqrarmDhZV Co-authored-by: Claude <noreply@anthropic.com>
This branch has not been deployed
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.
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 ofuseCopy()):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.tsreads the navigation label from the platform zh-CN pack and asserts: the zh-Hans page-frame title equals it, nosetupAssignments.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).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
needs_decision. Measured on origin/main 4eca9da: the desktop landing (resolveDesktopLandingPathinui/apps/console/src/components/RootLandingRedirect.tsx, mirrored byresolveDesktopHomePathinhomePath.ts) picks the last app, else anisDefaultapp, else the first visible product app, from the list narrowed byGET /me/apps. That endpoint only drops apps a permission set hides (tabPermissions: hidden) or whoserequiredPermissionsthe caller lacks. On the showcase, every member holds theeveryonebaseline 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/permissionsreturns 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 inapps/console, outside this card's file surface.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), thenzh-Hans.ts(setupAssignments).Generated by Claude Code