Repository navigation
feat(sales): reps land on My Deals by the app's landing; Sales Home and Account Workbench go (#2740) - #2800
Merged
objectstack-fleet[bot] merged 3 commits intoNov 26, 2026
Conversation
…nd Account Workbench go (#2740) Maintainer ruling 2026-11-26, 「1b、同意 landing、两点确认、W1」: the Sales Home page and its menu entry are deleted, and the Sales app declares its first `landing`, which opens a sales rep on My Work > My Deals. Managers, administrators and the marketing user still land on Home. Account Workbench, off the sidebar since #2286, is deleted with nothing moved. The navigation exemplar floor drops the `page` kind, and the tests that pinned either page now pin what replaces it. Docs (site in three locales, in-app manuals), the feature inventory and STATUS say what is true after the change. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
… cued (#2740) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
…no page authors a header (#2740) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Author
|
repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns 席位核对 — ACCEPT · repo:hotcrm#2 · head
|
Contributor
Author
|
repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns Landing. This is a reviewer-class PR. The seat record above accepts head
The seat flips it ready and arms auto-merge, and the merge queue squashes it. The PR says |
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.
Part of #2740
Clause-②: no
Metadata-protocol: none
Metadata-impact: reviewer — two pages deleted (Sales Home, Account Workbench), one menu entry removed, and the Sales app's first
landingentry added. No permission set, sharing rule, object, field, record or seed row changes. The landing moves where a sales rep OPENS the app, not what anyone may see or change: everyvisiblegate is byte-identical, the rep could already see and open My Deals, and Home stays gated away from reps exactly as before. The reviewer confirms or rejects this class.Ruling-ref: the maintainer, 「1b、同意 landing、两点确认、W1」 —
/pm-dispatch hotcrmsessionsession_017xRBcV3h25dAMNWki8e1ns, 2026-11-26T03:18Z, recorded on hotcrm#2740 comment 7181610829 (context: comments 7157755526 and 7091461603).维护者速读
What changes
src/sales/pages/home.page.ts) with itsnav_sales_homeentry insrc/sales/apps/crm.app.tsand its page and menu keys in all four locale packs.landing:landing: [{ item: 'nav_my_deals', visible: P`"crm_sales_rep" in current_user.positions` }](spec 18.6.0AppSchema.landing, read by the pinned 18.6.0 console). Everyone else has no entry, so they land where the order puts them: Home (Executive Overview) for the sales manager, the administrator and the marketing user; Service Overview in the Service app for service staff. The stale "there is no landing key" note incrm.app.tsis rewritten, and the comments that described Sales Home as the rep's landing now describelanding.src/sales/pages/account_workbench.page.ts, ruling W1). It had no menu entry since [Decision] Account Workbench shows the same nine rows and columns as Accounts: make it a real workbench, or drop the second nav entry #2286; nothing moves: its rows and columns are All Accounts, its three quick filters are on Enterprise Accounts.page(test/app-navigation-shape.test.ts; apageentry added later is unknown to the roster and goes red), and [Decision] Account Workbench shows the same nine rows and columns as Accounts: make it a real workbench, or drop the second nav entry #2286 ruling B (keep the workbench as a showcase).docs/feature-inventory.md(ACC-007, ADM-001, ADM-002),docs/STATUS.md(6 → 4 Pages, the build's own count),docs/developers/number-formats.md, and one dashboard comment..changeset/2740-sales-home-landing.md.Not in this PR, as ruled: the quote and contract shells (they wait for a platform release), the two print pages (they stay), the other five apps' landing.
Tests
Every test that pinned a deleted page now pins what replaces it; two files are deleted, each for a stated reason.
test/app-navigation-audience.test.ts(booted personas): alandsOnhelper models the console's choice (the firstlandingentry whosevisibleholds and whose item is shown, else the first entry shown). The ruled homes are now na_rep and eu_rep onnav_my_deals, sales_manager, admin and marketing_user onnav_home, and the service staff onnav_service_dashboard. A new Clean up 9 custom pages: 7 record detail pages return to the platform default, Sales Home and Account Workbench go; the quote and contract print pages stay #2740 block pins that a rep is not shown Home, would open on Leads by order alone, and lands on My Deals by the declaration; that the manager, the admin and the marketing user land on Home; and that service staff opening Sales by address still land on Leads. The "lands where it landed before" pins asklandsOn.test/app-navigation-shape.test.ts:REQUIRED_KINDSdropspage; the opportunity-gate roster drops the entry; "Sales Home second after Home" becomes "Home is first, and no entry opens a custom page"; a new pin checks that the app's single landing entry namesnav_my_deals(thecrm_opportunity/my_open_dealsview entry) for the rep position, in the authored and the served app.test/account-list-quick-filters.test.ts(new) replacestest/account-workbench-exhibit.test.ts. It pins W1's "nothing moves": All Accounts is the account's primary list; Enterprise Accounts carries the dropdown quick filters industry (with counts), type and owner; and no page is served over accounts.test/sales-home-header.test.tsdeleted: it pinned the deleted page's heading against its menu label. What replaces the page is a view entry, pinned above.test/i18n-references.test.ts: the Sales Home tab-label pin is removed (the app has no tab strip left); the public-form half stays.test/metadata-references.test.ts: the empty-tab rule's "tabs seen > 0" becomes a pin of the shipped page roster plustabsSeen == 0(the precedent of feat(record-pages): leads, cases and projects open on the default record page (#2740) #2795's roster pins), and the AI-card rule reads every page instead of Sales Home.test/action-references.test.ts(the page:header guard pins the page roster and no header, as above),test/docs-quick-tour-navigation.test.ts(one pinned entry),test/docs-sales-index-navigation.test.ts,test/record-page-default-2382.test.ts(no page over accounts),test/docs-zh-bold-ui-names.test.ts(drops the zh-Hant pin that only the deleted workbench paragraph cued). The comments inpersona-copyandupcoming-events-vieware corrected.Local readings (final head 07e6813)
Full suite, once, under the shared lock on 0773deb (
pnpm exec vitest run --maxWorkers=2, 33m50s):Test Files 1 failed | 336 passed (337),Tests 1 failed | 6481 passed | 58 skipped (6540). The one failure wasaction-references› "every page:header action id names an action reachable from the page object": its vacuity guard needed a header, and the deleted home page carried the last one. 07e6813 re-aims it the way the metadata-references pins are re-aimed: it pins the page roster and asserts that no header is left. On 07e6813,pnpm typecheck && pnpm lint && vitest action-references + metadata-referencesgaveVERDICT command-exit 0,Tests 49 passed (49). The full suite was not rerun on 07e6813, a test-only commit after it.Ablation (src, read directly by vitest, no dist):
ablation-replace.mjsset the landing entry'svisibletofalseincrm.app.ts(anchor 1→0, blob fbffa30b→6b9b0d10). Shape + audience wentTests 8 failed | 135 passed: the two declaration pins and the six rep-landing pins. Restored: blob == HEAD fbffa30b,git diff HEADempty.Under the shared lock, the chain
pnpm validate && pnpm typecheck && pnpm lint && pnpm hygiene && pnpm buildthen 45 files (all 36test/docs-*plus the touched set) at 9b71649:✓ Validation passed,✓ source hygiene clean,✓ Build complete,UI: 6 Apps 32 Views 4 Pages. One failure:docs-zh-bold-ui-names(the stale zh-Hant pin, fixed in 0773deb and green in its own run: 8/8).node scripts/check-docs-locale-parity.mjs --base origin/main: exit 0, "Every changed English docs file changed with its Chinese twins."Acceptance notes
sales_home|SalesHome|Sales Home|销售首页|销售主页|銷售主頁|home.page|営業ホーム|Inicio de Ventas, andaccount_workbench|AccountWorkbench|Account Workbench|客户工作台|客戶工作台|取引先ワークベンチ|Mesa de Trabajo de Cuentas). Sales Home: 36 files / 157 lines → 2 files (CHANGELOG.md47,docs/architecture/module-split-inventory.json2). Workbench: 17 files / 53 lines → 3 files (CHANGELOG.md8, the inventory json 1,docs/feature-inventory.md2, the ACC-007 "已移除" row). All left are dated records; the inventory json follows feat(record-pages): leads, cases and projects open on the default record page (#2740) #2795's precedent and is left. The analysis's 37 / 17: I count 36 for Sales Home with all four locale spellings, the 37th not identified. By kind (Sales Home before): tests 8, docs site 12, in-app manuals 4, locale packs 4. e2e: 0 both, before and after.landing: the 18.6.0 console bundle resolves the app root throughlanding, and the browser reading below agrees.visiblegate changed, and no entry anyone was shown is hidden, except the deleted one. The landing only picks which already-visible entry a rep opens on./_console/apps/app.objectstack.hotcrm/page/sales_home_pageand…/page/account_workbenchnow answer the console's "Page Not Found — The page … could not be found. It may have been removed or renamed." The changeset tells customers.Verification
Browser, objectstack dev server on this branch (port 4740, fresh seed,
pnpm demo:staff), Chromium at 1440×900, signed in per persona, then opening/_console/apps/app.objectstack.hotcrm:…/crm_opportunity/view/my_open_deals, active "My Deals", heading "Opportunities/My Open Deals"…/dashboard/executive_dashboard, active "Home", heading "Executive Overview"The marketing user has no demo account; their landing on Home is the booted pin in
app-navigation-audience.test.ts.Read first (by risk):
src/sales/apps/crm.app.ts(thelandinghunk and the removed entry),test/app-navigation-audience.test.ts(landsOnand the #2740 block),test/metadata-references.test.ts(the vacuity guard becomes a roster pin).Two-minute check: sign in as
na.rep@objectos.aiand open the Sales app. It opens on My Deals. Sign in assales.manager@objectos.ai: it opens on Home.Generated by Claude Code