Skip to content

手机端:进入应用后底部放菜单栏(读用户固定的菜单项),完整菜单收进「更多」 #34594

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「手机端点开进入应用之后,菜单在左侧,会不会很多人不知道」

现状(读码,objectstack origin/main ed45eb9;界面实测在 staging os-4e4qa4)

  • 手机上应用菜单是侧栏的 Sheet(ui/packages/components/src/ui/sidebar.tsx:216),收在左上角一个无文字的图标后面。
  • ui/packages/app-shell、ui/apps/console、ui/packages/components 里没有任何底部导航组件。
  • packages/spec/src/ui/app.zod.ts 的菜单项上没有手机相关的键。
  • 已有可复用的机制:每个用户可以固定菜单项并排序(useNavPins,见 SidebarItemMenu.tsx、UnifiedSidebar.tsx)。

要做的

  1. 手机宽度下,应用内各列表 / 仪表盘页底部显示菜单栏:前 4 格是该用户在这个应用里固定的菜单项,没有固定时取菜单的前 4 项;最后一格「更多」。
  2. 「更多」打开完整菜单(保留分组、可搜索);每项带星标,点一下固定 / 取消固定,直接调用现有的 useNavPins,不加新的元数据键。
  3. 左上角由三条线改为返回环境首页。
  4. 记录详情页与表单页不显示底部菜单栏(底部留给记录操作和提交按钮)。
  5. 悬浮的新建按钮让到菜单栏上方。

不做的

  • 不改桌面端侧栏。
  • 不新增 spec 键。

验收

  1. 375 宽进入 Sales,不点任何图标就能看到底部 4 个菜单项和「更多」。
  2. 在「更多」里给某项点星标,回到列表,底部出现该项。
  3. 打开一条记录,底部是记录操作栏,没有菜单栏。

设计图(静态示意稿,标「新」的是改动;字段和文案以实际元数据为准)

图 11 手机列表(底部菜单栏)

图 11 手机列表(底部菜单栏)

图 18 手机全部菜单

图 18 手机全部菜单

Reader: domain:ui 车道,新组件挂在控制台布局(ConsoleLayout.tsx)并读 useNavPins。

Dedupe: repo:objectstack-ai/objectstack mobile bottom navigation useNavPins sidebar Sheet → 0。相邻:#27058(已关,手机端列表卡片化)。

Activity

  1. added
    priority:p1
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → pm:queue · 2026-11-17T03:25Z

    ⛔ Not a claim.

  3. added
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim: PM loop round 1 · 2026-11-17T03:35Z
    Session: session_01WGufzgh1zkZzDXL36ckWAG
    Thread session: session_01WGufzimyx6JQRaukBK3z17
    Account: os-support-ai
    Branch: claude/project-thread-46c9ut (card-thread pinned branch: the harness lets the thread push only this name)
    Worktree: objectstack-issue-34594
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/layout/** (ConsoleLayout, new PhoneAppNavBar, menu sheet), ui/packages/layout/src/NavigationRenderer.tsx + AppSchemaRenderer.tsx (one exported drawn-order helper shared with the private MobileBottomNav), useNavPins.ts read-only, ui/packages/i18n/src/locales/* (new keys only), root .changeset/
    Container & model: L, mode:thread (large card; hands its head back to area o3-D), model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: yes (widening — one @object-ui/layout export + new @object-ui/i18n locale keys; no metadata key)
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6937165981
    Premise: holds for the console (no bottom nav in ConsoleLayout; layout's MobileBottomNav is unused by the console and differs: no pins, no More, 640 px)
    Serial constraints cleared: phone neighbours #34596 (o3-D, FAB/top bar) and #34595 (o3-A, record bottom bar): overlap-check before each push

    Lease o3-D (seat post #34584); child of epic #34571.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzimyx6JQRaukBK3z17
    os-dev-report

    {
      "status": "done",
      "branch": "claude/project-thread-46c9ut",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34628",
      "head": "5dd2d1dbc6816ac28b474fdc5bbaa7759f59bc0d",
      "session": "session_01WGufzimyx6JQRaukBK3z17",
      "premise_still_valid": true,
      "summary": "Below 768 px, inside an app, the Console draws a bottom menu bar: up to four entries (the user's pins this app's menu draws, in pinned order, then the app's own entries in menu order) plus More, which opens the existing phone drawer with a search box and a star (useNavPins.togglePin) on every entry. The top-left control on a phone links back to the environment home; the record page, create form and edit form draw no bar. Pins keep their stored shape: they are read per app by intersecting with the app's drawn menu. Surface widened by the seat (route A) with one @object-ui/layout export, drawnNavigationEntries, now shared by AppSchemaRenderer's MobileBottomNav. Fill reading (pins first, then fill to four) is stated in the PR's acceptance notes.",
      "tests": "New UnifiedSidebar.phoneNavBar-34594.test.tsx 11/11; added describes in ConsoleLayout.phoneRecordOneBar-28483 and AppHeader.sidebarTrigger-12429; the 3 files 28/28. vitest packages/layout/ packages/i18n/ packages/app-shell/src/layout/: 292 files / 3258 tests, one red first (zh-hant-generated; regenerated with gen-zh-hant.mjs), failed file + new file re-run green 21/21. Ablation: pinned-ids loop emptied -> 4/11 new tests red, restored (git diff HEAD empty). ui e2e chromium (CI=1, preview): 109 passed, 1 skipped, 1 failed locally (console-rendering SPA fallback: local dist was built without VITE_BASE_PATH=/console/, assets 404 on a deep route); after a /console/ rebuild console-rendering + record-header-title-width 17/17.",
      "gates": "Local: type-check layout/i18n/app-shell exit 0; eslint on changed files 0 errors; check:new-line-citations 0 new; dispatch-gates --commands 40/40 run, 39 exit 0 first pass, check:test-source-alias exit 1 then 0 after a module-top `import '@objectstack/lint';` in the edited 28483 harness; --ran reconciled 40/40; pnpm build 119 tasks exit 0. CI on 5dd2d1db: every check-run success or skipped, incl. Build & E2E UI, Test UI (16/16 shards + rollup), Live E2E UI, Lint UI, Type Check UI, Lint & Repo Gates, TypeScript Type Check, Check Changeset, PR-body guards, Governed Surface Queue Guard. CI red on 4a9adeb3 (Build & E2E UI: record-header-title-width.spec.ts read ConsoleLayout's AppShell className with a literal-only regex and threw at collection once the prop became cn(...)) fixed in 5dd2d1db by widening that extraction.",
      "browser": "Live CRM boot (objectstack dev --seed-admin --fresh, console vite proxied), 375x812, mobile context: list crm_opportunity -> bar present, back link 1, sidebar trigger 0, cells [Leads, Accounts, Contacts, Opportunities, More], bar y=763 h=49, create FAB y=620 h=48 (clears the bar); More -> 6 stars + search; star Activities -> aria-pressed true, cells [Activities, Leads, Accounts, Contacts, More]; record page bar count 0; new form bar count 0. Servers torn down by recorded PIDs, ports 4317/5317 answer 000.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "read-only only: pull_request_read (get_check_runs), get_job_logs; 0 write tools",
      "api_writes": "4 — git push (x3 over the round), relay pr_create (draft, assignee os-support-ai), this comment via post-stamped",
      "deviations": "Two files outside the order's listed surface: ui/packages/layout/src/navOrder.ts (comment only, names the new walk site) and ui/e2e/record-header-title-width.spec.ts (source-text extraction widened to read cn(...) as well as a literal; required by the ConsoleLayout change). No reviewer requested, per order.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: PR #34628 acceptance notes · assistant FAB at bottom-20 overlaps the bar's top edge by 2 px on a 34 px safe-area device · noted, not filed"]
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment · 2026-11-17T04:53Z

    File surface adds two paths measured on PR #34628:

    • ui/e2e/record-header-title-width.spec.ts: test-only; its extraction of ConsoleLayout's AppShell className was a literal-only regex that the new layout broke; widened to read the same class.
    • ui/packages/layout/src/navOrder.ts: comment-only edit beside the route-A helper.

    Clause-②: unchanged (yes, widening: one @object-ui/layout export plus new i18n keys)
    Metadata-protocol: none

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz

    Closed by merge · 2026-11-17T07:08Z

    PR #34628 merged at 2026-11-17T06:48Z (Fixes #34594). Delivered: a phone app menu bar (below 768 px, app routes only, never on record pages or forms) with pinned entries and a starred entry, wired through the sidebar's navigation. L1 ACCEPT 6938828222 plus delta reads 6939577685 and 6940277113. Nothing left on this card; pm:dispatched and lease:o3-D removed.

  9. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uipriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions