Repository navigation
feat(nav): open Marketing and Insights on load; Reports stays collapsed (#2295) - #2305
Merged
objectstack-fleet[bot] merged 1 commit intoOct 26, 2026
Merged
Conversation
Marketing and Insights had no `expanded` key, and the spec defaults it to false, so Campaigns, CRM Overview and Forecasts sat behind a click. Both groups now open on load. Reports stays collapsed: opened it lists one row per report, and the console's own All reports row reaches every report without a click (measured on the 18.1.0 console). The stale "no report index" and "collapsed like Marketing and Insights" comments now say what the console does. Docs that called these groups collapsed are updated in three locales; the Marketing guide stops listing Products. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016AYFEQGMzwZqJxBYr2AKWr
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Author
席位核对Verdict: ACCEPT ·
Generated by Claude Code |
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.
Requested by Leehom · project thread
Fixes #2295
Clause-②: no
Metadata-protocol: none
What changes
The seat chose route A (ruling: comment 6410069046).
src/sales/apps/crm.app.ts:group_marketingandgroup_insightsnow setexpanded: true. Before, they had no key, andGroupNavItemSchema.expandeddefaults tofalsein@objectstack/spec18.1.0, so both rendered closed.group_reportsstaysexpanded: false. Two comments were stale and now say what the console does: "The console has no report index or picker" (18.1.0 has a report index at the app'sreportsroute, and the console links it as its own All reports row after the navigation tree), and "Collapsed on load, like Marketing and Insights" (Reports is now the only collapsed group). Thegroup_marketinganchor comment is unchanged, so the group is still the contribution anchor that Slim the nav: one exemplar per nav-item type, view variants return to in-page tabs (7 groups / 31 items → 6 / ~24) #1259 ruled must exist.test/docs-quick-tour-navigation.test.ts: two source pins move.COLLAPSEDis now['Reports'],EXPANDEDgains Marketing and Insights, and Insights is pinned open.test/app-navigation-shape.test.ts: only a stale "no report index" comment changes. Itsgroup_reportsexpanded: falsepin still holds. I did not add a second copy of the group-state pin there, because the quick-tour file already holds it and the shape file's header asks for one pin per fact..changeset/2295-sidebar-groups-expanded.md.Measured in a browser (headless Chromium, 1440×900, zh-CN,
objectstack devon this branch at bdf36c0, afterpnpm demo:staff)Sidebar rows by top–bottom px on first open, no clicks:
Before this change (same box, main 382ba4b): 市场营销, 数据洞察 and 报表 were all
aria-expanded=false, and opening 报表 listed ten rows for the admin and seven for the rep. So the ten-row reason for keeping Reports collapsed still holds. 全部报表 is not a child of 报表: it is the console'ssidebar-report-indexrow.The seat amended the Done-when (comment 6410069046): at 1440×900 the admin's viewport ends inside 我的工作 (about 872 px) and the rep's inside 互动, so these entries are reached by scrolling, not on the first screen. They are all visible without a click for both personas.
Verification record
pnpm verify(validate, typecheck, lint, hygiene, hygiene:tokens, build, test) was run throughos-verify-lock.sh(slot hotcrm-2295) on HEADbdf36c0. The lock printed:VERDICT command-exit 0. Test Files 223 passed (223), Tests 4374 passed, 1 skipped (4375).vitest run test/app-navigation-shape.test.tspassed (24/24).maingained fix(service): time the demo cases by status so a fresh seed keeps most SLAs #2302 and fix: put what you scan by on the first screen of the account, case and quote screens #2304 after this branch was cut. They touch no file in this diff, so I did not merge main.Acceptance notes
AppReportIndexView) labels each entry throughreportLabel, which looks up the translation keyreports.NAME.label(consoledist/assets/i18n-runtime-DS6Dh9ZK.js, byte 10568 for the key builder and byte 11771 forreportLabel;appReportIndex-qVZKRoBI.jsbyte 1475). But@objectstack/spec18.1.0 has noreportstranslation group:TRANSLATION_KEY_GUIDANCE.reportssays "reports have no translation group, omit them" (spec/dist/system/index.js:18322), and the top-level slots of the translation data schema do not include it. So HotCRM has nowhere legal to put the key. This belongs on the platform (spec plus console), not in a HotCRM pack, and is handed to the seat.Generated by Claude Code