Skip to content

设计模式入口搬到左上角应用名菜单;页头的「编辑应用」「在 Studio 中查看」两个按钮去掉,自建应用和安装来的应用一样 #36485

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #36359(运行界面的设计模式专题)。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。

维护者说过的(2026-11-22)

  • 「hotcrm 右上角的在 studio 中查看应该如何处理,设计布局模式应该在哪里进入」
  • 「你看右侧右上角有一个下拉菜单,可以设置对象,编辑布局是不是也可以放到哪里」(指 Attio 列表页右上角的「⋮」)
  • 「我们顶栏现在没有这个⋮,你具体看我们的页面。」
  • 「对象设置 已经包含字段,不需要管理字段。attio 是列表页可以设置对象,详情页下拉显示的是自定义布局。你具体测试一下。」
  • 协调席实测后建议三条:列表的「⋮」加「对象设置」;记录的「…」加「配置页面」;设计模式入口搬到左上角应用名菜单,页头的「编辑应用」和「在 Studio 中查看」两个按钮去掉。维护者:「立卡」。
  • 此前(同日):「Studio「界面」整栏作废」。

现状(主干 6a35635a33,本机环境浏览器实测,1440 宽,系统管理员)

HotCRM 列表页头:在 Studio 中查看 销售

应用名菜单

Attio(同日浏览器实测):

  • 列表页右上角「⋮」:Object settings、Manage attributes、Notifications。前两项都进「设置 › 对象 › 这个对象」,只是落在不同页签。
  • 记录页右上角「⋮」:Configure page、Copy page URL、Copy record ID、Add to favorites、Delete record。Configure page 原地进入记录页布局编辑。
  • 规律:每个页面一个菜单,放「配置这一页所属的东西」;页面菜单里没有全局的东西。

要做的

  1. 应用名菜单里加一项「编辑应用」,放在应用列表下面、和「添加应用」一组。点了进入当前应用的设计模式(就是 设计模式(一)模式本身:页头「编辑应用」进入,顶上一条栏只有「设计模式」和取消、保存,跨页面保持 #36362 的那个模式)。
  2. 只有系统管理员看得到这一项(沿用现在「编辑应用」按钮的显示条件)。
  3. 自建应用和安装来的应用都有这一项,行为相同。安装来的应用能进模式、能改菜单这件事本身在 设计模式(二)菜单编辑:添加已有的菜单项,上移下移、移到分组、移除、改名和图标 #36363 第 7 条里做;本卡只管入口。
  4. 页头第一行去掉「编辑应用」按钮,也去掉「在 Studio 中查看 某应用」按钮。去掉后第一行只剩 AI 助手、帮助,以及各页自己的按钮(评论、刷新、编辑等)。
  5. 已经在设计模式里时,菜单里这一项不显示或置灰。
  6. 手机宽度:不提供进入设计模式的入口(现在手机上也没有)。

不做的

  • 不改设计模式本身(栏、取消、保存)。
  • 不改应用名菜单里已有的项。
  • 不动 Studio。

验收

协调席自己加的

  • 「要做的」第 5 条(已在模式里时不显示)、第 6 条(手机不提供)。
  • 验收里的滑出侧栏和新手引导两条。
  • 「放在和『添加应用』一组」这个具体位置。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    通知记录 · 2026-11-22T14:03Z

    维护者 2026-11-22:「立卡」;此前:「后续 ux 专题立卡之后都通知 7号座位。」本卡按此通知席位 repo:objectstack#7,随后在它的信箱 #36199 里发一条。

  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · a child the coordinator filed under topic #36359 (设计模式) → p2 as set by the coordinator · size S.

  4. added
    pm:queue
    on Nov 22, 2026
  5. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm

    Claim: PM loop · area s2-B · 2026-11-23T02:59Z · routed to s2-B by the seat 2026-11-23T00:18Z (queue head after the p1 cards); the area's second dev slot
    Session: session_01ADHkmRB34k9WUWeGpRnVNm
    Account: os-steve
    Branch: claude/issue-36485-design-entry-app-menu
    Worktree: objectstack-issue-36485
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-B
    File surface: ui/packages/app-shell/src/layout/ShellPageActions.tsx (the page header's 「Edit app」 and 「Open {app} in Studio」 go), the app-name menu (SidebarAppMenu.tsx / AppSwitcher.tsx, whichever draws the app list with 「Add app」; the collapsed flyout included), the onboarding step that points at 「Edit app」 if one exists, card-named tests beside them, a changeset. Read-only: designMode.tsx (enter through useDesignMode; open PR #36606 edits it), RecordDetailView.tsx and objectViewPageHeader.tsx (the #36366 card thread's branch edits them). New i18n keys only if no existing key says 「Edit app」 (then Clause-②: yes (widening), keys only, area exception). ⛔ No docs/adr/**: ADR sentences go to carrier #36086 (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier at aff34baea3: no path-derived mandate), effort: medium
    Clause-②: no (unless a new key is needed, as above)
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (maintainer-directed entry move)
    Thread-read: 7080812800
    Premise: holds — read at origin/main aff34ba: ShellPageActions.tsx draws 「Edit app」 (design mode, #36362/#36363) and the app → Studio entry (useAppStudioEntry, ADR-0146 D5's 「Open {app} in Studio」) in the page header.
    Pre-claim lane: repo:objectstack whole-repo lane, area s2-B (seat 2 area order 2026-11-22); paths ui/** (domain:ui).
    Pre-claim deps: #36363 (installed apps entering design mode) — the card says land either way and state the installed-app behaviour in the PR; no Blocked-by: line.
    Prior rulings read: open in studio,edit app,design mode,app menu,studio entry → ADR-0146 D1, ADR-0027 Decision §13; plus ADR-0146 D5 read by hand ("the app switcher row and the app bar entry draw as 'Open {app} in Studio'"). The maintainer's 「立卡」 on this card removes the app bar half; the switcher row stays (the card leaves the app menu's existing items). The D5 sentence goes to carrier #36086 in the report; thread: none.
    Fold-or-serial: not folded; #36471 (collapsed flyout cut off) follows in the same menu files.
    Serial constraints cleared: open-PR file read at 2026-11-23T02:59Z: no open PR touches ShellPageActions.tsx, AppHeader.tsx, SidebarAppMenu.tsx or AppSwitcher.tsx; #36606 (s2-C, #36364) touches designMode.tsx (read-only here); the #36366 card thread's branch does not touch the header shell or app menu files (its thread confirmed 01:17Z and the branch file list was read).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm
    os-dev-report

    {
     "issue": 36485,
     "status": "done",
     "branch": "claude/issue-36485-design-entry-app-menu",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36621",
     "session": "session_01ADHkmRB34k9WUWeGpRnVNm",
     "premise_still_valid": true,
     "summary": "The app-name menu (SidebarAppMenu) gains an Edit app item under the app list, in one group with Add app, that calls useDesignMode().enter for the app on screen; it reuses the existing topbar.editApp key (no new i18n key, Clause-2 no). Its condition is the page header button's, carried over unchanged: useStudioEntryGate non-null (workspace admin AND manage_metadata capability AND the app's package listed by GET /api/v1/packages, so Setup/Studio/Account get none), and for a read-only package only where postureHasOrgWall is false or the caller is the platform operator; hidden while the mode is on and where no shell holds the mode; drawn from 768 px up only (docked or floated), so a phone has no entry. ShellPageActions drops EditAppButton entirely (no Edit app, no Open APP in Studio) and reads no Studio gate; useAppStudioEntry is kept because AppHeader reads it. Premise partly moved on main: #36363 already lets installed (read-only) apps enter the mode, so installed and self-built apps behave the same in this PR except the walled-deployment case, where the item is absent. No onboarding step points at Edit app (OnboardingWalkthrough is a stub).",
     "tests": "At 2b4666e3b4+test edits: pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/layout/__tests__/ + ObjectView.shellPageActions-36111 + RecordDetailView.topBar-27524 + PageView.consoleHeader-36111 -> lock VERDICT command-exit 0, Test Files 157 passed (157), Tests 1255 passed (1255). After the float pin and typing commit: SidebarAppMenu-36112 + UnifiedSidebar.hiddenCollapse-35062 -> 36/36. pnpm --filter @object-ui/app-shell type-check (tsc + tsconfig.test.json) -> VERDICT command-exit 0. Ablation 1 (scripts/ablation-replace.mjs, anchor the EditAppItem render line, 1->0, blob 367de8db->71946a69): 5 failed | 31 passed, every positive pin red, controls green; restored blob 367de8db = HEAD. Ablation 2 (ShellPageActions.tsx swapped for base text under an EXIT trap): 3 failed | 5 passed; restored blob 2e640646 = HEAD, git status clean. Browser (own CRM --fresh backend + console dev server, 1440 px): admin on read-only CRM app and on a writable self-built app: header group = help only on list, accounts and dashboard routes, menu shows Edit app, choosing it draws the design-mode bar, absent while in mode, present and working in the collapsed float; member: no Edit app; 390 px: no entry. Screenshots /mnt/project-files/objectstack-seat2/36485-*.png.",
     "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at f7d907a09e: 38 derived, each run with stdin from /dev/null, exit captured before any pipe, all 38 exit 0 (record /mnt/project-files/objectstack-seat2/36485-gates-ran.txt); --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check: VERDICT clean exit 0. PR check-runs at report time: in_progress (Lint, Type Check, Check Changeset, Governed Surface Queue Guard, PR-body guards, Check PR Size running; opt-in and queue-only jobs skipped); UI test jobs not yet listed.",
     "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
     "mcp_calls": "3 — mcp__github__issue_read (get, get_comments), mcp__github__pull_request_read (get_check_runs); reads only",
     "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/36621/assignees os-steve); post-stamped.mjs comment POST /repos/objectstack-ai/objectstack/issues/36485/comments",
     "open_questions": [
      {
       "question": "The top bar still drawn from 640 to 767 px and on an app's docs pages (AppHeader, outside this card's file surface) keeps its Studio pencil / eye; should it also lose them or turn into the design-mode door?",
       "options": [
        "A leave it: the card names the page header row only, and the mode is never on below 768 px",
        "B a follow-up card removes the AppHeader Studio entry too"
       ],
       "recommendation": "A, because the design mode is off below 768 px by design and the docs-page bar is not an editing surface; revisit only if the maintainer reads the card as every Studio button"
      },
      {
       "question": "Hide or grey the menu item while the mode is on?",
       "options": [
        "A hide (implemented, as the header button did)",
        "B draw it disabled"
       ],
       "recommendation": "A, because the card allows either and hiding matches the button it replaces"
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: #36086 · ADR-0146 D5 sentence 'For a read-only package the app switcher row and the app bar entry draw as \"Open {app} in Studio\"' no longer holds for the page header group (removed here); the app switcher row and the AppHeader top bar still draw it · noted, not filed",
      "carrier: #36606 · designMode.tsx docblock says the mode is entered from the page header's Edit app and that the gate is read in ShellPageActions; both now live in SidebarAppMenu (file read-only here) · noted, not filed",
      "carrier: none · ui/packages/app-shell/README.md 'App to Studio reverse bridge' describes the top bar only and does not mention the design-mode door; outside the file surface · noted in Acceptance notes"
     ]
    }
  8. removed
    pm:dispatched
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions