Skip to content

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 into
mainfrom
claude/issue-2740-sales-home-landing
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-2740-sales-home-landing

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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 landing entry 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: every visible gate 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 hotcrm session session_017xRBcV3h25dAMNWki8e1ns, 2026-11-26T03:18Z, recorded on hotcrm#2740 comment 7181610829 (context: comments 7157755526 and 7091461603).

维护者速读

  • 销售代表打开销售应用时,不再进入销售主页,而是直接进入「我的工作」下的「我的商机」;销售经理、管理员和营销用户照旧进入首页(高管总览)。客户工作台页面同时删除。
  • 这是 HotCRM 自定义页面清理的第二批(维护者 11 月 22 日的清理决定),也是 HotCRM 第一次用平台的「按角色指定落地页」能力。
  • 如果出错,销售代表会落在线索列表而不是我的商机,数据和权限不受影响;这个改动可以整体撤回。旧的销售主页和客户工作台书签会显示「页面不存在」。
  • 无

What changes

  • Sales Home is deleted (src/sales/pages/home.page.ts) with its nav_sales_home entry in src/sales/apps/crm.app.ts and its page and menu keys in all four locale packs.
  • Reps land on My Deals by the app's landing: landing: [{ item: 'nav_my_deals', visible: P`"crm_sales_rep" in current_user.positions` }] (spec 18.6.0 AppSchema.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 in crm.app.ts is rewritten, and the comments that described Sales Home as the rep's landing now describe landing.
  • Account Workbench is deleted (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.
  • Two older rules are superseded, as ruled: Slim the nav: one exemplar per nav-item type, view variants return to in-page tabs (7 groups / 31 items → 6 / ~24) #1259's "one exemplar of each nav-item kind" drops page (test/app-navigation-shape.test.ts; a page entry 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 say what is true now: the quick tour, dashboards, activities, meetings-and-calls and the sales index (site, en / zh-Hans / zh-Hant), the in-app Getting Started and Activities manuals (en, zh), 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.
  • Customer changeset: .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): a landsOn helper models the console's choice (the first landing entry whose visible holds and whose item is shown, else the first entry shown). The ruled homes are now na_rep and eu_rep on nav_my_deals, sales_manager, admin and marketing_user on nav_home, and the service staff on nav_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 ask landsOn.
  • test/app-navigation-shape.test.ts: REQUIRED_KINDS drops page; 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 names nav_my_deals (the crm_opportunity / my_open_deals view entry) for the rep position, in the authored and the served app.
  • test/account-list-quick-filters.test.ts (new) replaces test/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.ts deleted: 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 plus tabsSeen == 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.
  • Re-aimed: 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 in persona-copy and upcoming-events-view are 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 was action-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-references gave VERDICT 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.mjs set the landing entry's visible to false in crm.app.ts (anchor 1→0, blob fbffa30b→6b9b0d10). Shape + audience went Tests 8 failed | 135 passed: the two declaration pins and the six rep-landing pins. Restored: blob == HEAD fbffa30b, git diff HEAD empty.

  • Under the shared lock, the chain pnpm validate && pnpm typecheck && pnpm lint && pnpm hygiene && pnpm build then 45 files (all 36 test/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

  • References, before → after (case-insensitive, every locale spelling: sales_home|SalesHome|Sales Home|销售首页|销售主页|銷售主頁|home.page|営業ホーム|Inicio de Ventas, and account_workbench|AccountWorkbench|Account Workbench|客户工作台|客戶工作台|取引先ワークベンチ|Mesa de Trabajo de Cuentas). Sales Home: 36 files / 157 lines → 2 files (CHANGELOG.md 47, docs/architecture/module-split-inventory.json 2). Workbench: 17 files / 53 lines → 3 files (CHANGELOG.md 8, the inventory json 1, docs/feature-inventory.md 2, 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.
  • The pinned console honours landing: the 18.6.0 console bundle resolves the app root through landing, and the browser reading below agrees.
  • A visibility change? No. No visible gate 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.
  • Old addresses: /_console/apps/app.objectstack.hotcrm/page/sales_home_page and …/page/account_workbench now answer the console's "Page Not Found — The page … could not be found. It may have been removed or renamed." The changeset tells customers.
  • Not filed, noted: the rep's landing shows the sidebar label My Deals over the list heading "Opportunities / My Open Deals" (the view's own label). The two names predate this PR; the landing only makes the pair the first screen a rep sees.
  • Screenshots: taken locally (rep and manager, en and zh-CN, plus the two old addresses); the relay cannot upload images.

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:

Persona en zh-CN
na.rep …/crm_opportunity/view/my_open_deals, active "My Deals", heading "Opportunities/My Open Deals" same URL, active「我的商机」, heading「商机/我的进行中商机」
eu.rep same as na.rep same as na.rep
sales.manager …/dashboard/executive_dashboard, active "Home", heading "Executive Overview" same URL, active「首页」, heading「高管总览」
admin same as sales.manager same as sales.manager

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 (the landing hunk and the removed entry), test/app-navigation-audience.test.ts (landsOn and the #2740 block), test/metadata-references.test.ts (the vacuity guard becomes a roster pin).

Two-minute check: sign in as na.rep@objectos.ai and open the Sales app. It opens on My Deals. Sign in as sales.manager@objectos.ai: it opens on Home.


Generated by Claude Code

…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
…no page authors a header (#2740)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
hotcrm Ignored Ignored Nov 26, 2026 4:16am UTC

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation ci/cd CI plumbing and the verification pipeline metadata Declarative metadata — schema, security posture, UI surfaces labels Nov 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

席位核对 — ACCEPT · repo:hotcrm#2 · head 07e6813b

  • 形态: head 07e6813b5820f76f2beeb0a90c4b891ad12e2bc3,base fb0b8792,+388/−973,1361 行。
    • 不碰受管路径,类别 reviewer:评审同意 Metadata-impact: reviewer。
    • landing 只决定打开应用时落在哪一页,不改变谁能看到或改动什么;所有 visible 门控逐字未变。
    • Ruling-ref: 引的是维护者原话「1b、同意 landing、两点确认、W1」(7181610829)。逐行核对过,没有超出原话的改动。
    • PR 写 Part of #2740,卡上还留着报价和合同的外壳。
  • 评审: 独立评审(只读子代理,未参与改动)结论 ACCEPT-WITH-NITS。
    • 销售首页和它的菜单项已删除,客户工作台已删除。
    • Sales 应用声明 landing: [{ item: 'nav_my_deals', visible: "crm_sales_rep" in current_user.positions }]:代表落在「我的商机」,经理、管理员、营销仍落在 Home。
    • 对照 18.6.0 的 spec 和控制台源码核过:条目存在且可以作落地页,谓词写法正确,控制台按显示的导航树解析。
    • 同时有代表和经理岗位的人落在「我的商机」,和改动前一样按代表处理。
    • 两个页面的全部引用都已清除,只剩带日期的历史记录。
    • 12 个目标测试文件在本地全部通过。
  • 前提实测(dev 在浏览器里测,1440×900,en 和 zh-CN):
    • 代表 na.rep 和 eu.rep 落在「我的商机」。
    • sales.manager 和 admin 落在 Home。
    • 旧的 /page/sales_home_page 和 /page/account_workbench 返回 Page Not Found。
    • 消融测试:把 visible 改成 false,8 个测试变红。
  • 门禁 check-runs: 20 个检查全部 success。
  • 接受的偏差(nit,不开修复轮):
    • 「lands where it landed before」测试的标题对代表已经不成立,真正的断言在下一行。
    • 两处空循环由页面名单锁住。
    • 没有测试覆盖同时有代表和经理岗位的人,演示数据里没有这样的人。
    • dashboards 文档里「own work」的说法偏宽。
    • 全量测试套件跑在倒数第二个 head 上,最后一个提交只改测试,已重跑相关文件。
  • 范围外去向: 侧栏写「My Deals」、列表标题写「My Open Deals」,这个不一致早于本 PR,记录在 PR 的 Acceptance notes 里。
  • 落地条款: reviewer 类,所有检查完成且无失败,席位现在转 ready、挂 auto-merge。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

Landing. This is a reviewer-class PR. The seat record above accepts head 07e6813b, and the head is unchanged.

reading value
head 07e6813b5820f76f2beeb0a90c4b891ad12e2bc3
check-runs on head 20/20 completed, none failed
governed / size not governed; 1361 changed lines

The seat flips it ready and arms auto-merge, and the merge queue squashes it. The PR says Part of #2740, so the card stays open for the quote and contract shells.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 26, 2026 04:26
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 99a4279 Nov 26, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd CI plumbing and the verification pipeline documentation Improvements or additions to documentation metadata Declarative metadata — schema, security posture, UI surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants