Skip to content

Studio「新建自己的应用」最后要得到一个应用:一个「新建应用」对话框同时建包和应用;没有应用时页头显示包名 #36748

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

① product defect · Source: maintainer (Warren), 2026-11-23, UI review thread.

  • 14:23Z 「还有哪些元数据可能会有问题?同时全面的测试 studio的各项功能」
  • 15:09Z 「用fable 评审一下 studio的问题,提出修改方案」
  • 15:23Z, decision card 「Studio 评审的 9 张卡,按 fable 方案立卡吗?」 → 「9 张全立」

Evidence:

Paths are relative to ui/packages/app-shell/src/views/ unless they start with ui/ or packages/. SDS = studio-design/StudioDesignSurface.tsx. zh = ui/packages/i18n/src/namespaces/studio/zh.ts. Line numbers are on 9e0c0c2.

What (review r12, confirmed with a correction)

  • The dialog. The landing card 「新建自己的应用」 opens the package form unchanged (studio-design/BuilderLanding.tsx:733–751, title engine.packages.create.title, zh:1752). It creates a package and no app. The author then has to find 「创建应用」, which answers 「已存为草稿 — 发布后即可打开」 (zh:3110).
  • The header. The name slot is drawn only when a published app exists (studio-design/StudioBackToApp.tsx:61–70, 114–124). With a package and no app, the bar reads 「返回应用 · Studio」 and does not say which package is open.

Expected

Files: BuilderLanding.tsx, StudioBackToApp.tsx, and SDS (app create).

Acceptance

  • A test pins that the door creates a package plus an app in one confirm, and that the app opens.
  • A test pins the header naming the package when there is no app.
  • Browser screenshots of the dialog and of the header with and without an app.

Grading: area:ux · Bug · Impeded · builders, every new author ⇒ p2. Effort S (header) + M (door). Evidence: read (review r12) + measured (round2/ r12).

Dedupe: #35513 (an installed package's English name on the landing) is a different defect; no open card names this door.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 23, 2026
  2. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 9 · 2026-11-23T15:40Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: opened by the coordinator; the thread names itself in its first report
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat records it then
    Worktree: objectstack-issue-36748
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36748 (w9-36748)
    Dispatch: p2 area:ux, filed by the seat on the maintainer's 「9 张全立」 2026-11-23T15:23Z; ux p2 allowed by the ruling 2026-11-23T12:25Z; one in for one out under the 15-thread cap
    File surface: studio-design/BuilderLanding.tsx, studio-design/StudioBackToApp.tsx, StudioDesignSurface.tsx (app create), the i18n studio namespace, tests, a changeset (stop on breach; the thread's first report states the real surface and the seat amends this line)
    Container & model: S, mode:thread, model: opus — default tier; the thread's first report states the served tier, effort: high
    Clause-②: no. A new route, contract, spec key or export is amended to yes before its code
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: none
    Premise: read from the card; the thread re-reads it on its base before code
    Serial constraints cleared: no open PR names the card

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: branch record · 2026-11-23T15:42Z · same session as claim 7105961454, which it completes
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbXT7Mhxfq3Zqk9Vbt2
    Account: os-warren
    Branch: claude/project-thread-b4zdh8
    Worktree: objectstack-issue-36748
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36748 (w9-36748)
    File surface: ui/packages/app-shell/src/views/studio-design/ BuilderLanding.tsx, StudioBackToApp.tsx, StudioDesignSurface.tsx (passes the package label to the header only), a new newAppDoor.ts with tests; metadata-admin/PackageFormDialog.tsx (an app-door wording variant plus an app step after the package POST); ui/packages/i18n/src/namespaces/studio/{en,zh}.ts; one changeset
    Container & model: S, mode:thread, served opus, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: none
    Premise: read on base 0e83fe0 by the thread: the landing card opens PackageFormDialog unchanged (BuilderLanding.tsx:733-751); StudioBackToApp draws the name only for a remembered page or a published app. The landing door creates the package, then saves and publishes the app through publishSavedItem (#36511). The header's own 「创建应用」 button is unchanged.
    Serial constraints cleared: no open PR names the card

  5. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size M; type set to Bug (was none).
    Rationale: 「新建自己的应用」 ends with a package and no app, and the header does not say which package is open. The path can be finished but misleads the author ⇒ UX rule p2. No new capability: it reuses the package and app create paths.

  6. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbXT7Mhxfq3Zqk9Vbt2
    os-dev-report

    {
      "issue": 36748,
      "status": "done",
      "branch": "claude/project-thread-b4zdh8",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36764",
      "session": "session_01JQwxbXT7Mhxfq3Zqk9Vbt2",
      "premise_still_valid": true,
      "summary": "Premise held on main 0e83fe03. The landing's 「新建自己的应用」 (and the /studio?new=package deep link, same dialog) passes PackageFormDialog a newApp step (studio-design/newAppDoor.ts): the dialog is worded for an app throughout (no 「软件包」 even with Advanced open), reserves a free app name (namespace, else NAMESPACE_app) before any write, POSTs the package, then saves the app draft under the first-write pin and publishes that one item via publishSavedItem, so the app is live at once. StudioBackToApp names the open package (data-names=package) when there is no app to name. Live on the showcase stack: dialog → 「已创建应用「客户回访」。」, header 「返回应用 · 客户回访 · Studio」, back link opens /apps/com.default.kehu-hui-fang; a bare package reads 「返回应用 · 仅有软件包 · Studio」.",
      "tests": "New BuilderLanding.newAppDoor-36748.test.tsx (3 tests, real landing + dialog + client + StudioDesignSurface over a stateful fetch stub); StudioDesignSurface.backToApp-36501.test.tsx no-app cases now expect the package label. Ablation via ablation-replace.mjs, fix committed: header fallback removed ⇒ 2/12 fail; app create skipped ⇒ 1/3 fail; taken-name check disabled ⇒ 1/3 fail; each restored, git diff HEAD empty. vitest PackageFormDialog*, BuilderLanding*, StudioDesignSurface.backToApp*, StudioDesignSurface.createApp*, PackagesPage* ⇒ Test Files 50 passed, Tests 429 passed. app-shell type-check under lock VERDICT command-exit 0. Full app-shell suite left to CI.",
      "gates": "dispatch-gates --commands derived 38 at 82e04d41; all 38 exit 0 locally (tsv /mnt/project-files/issue-36748/gate-results-82e04d41.tsv). PR check-runs: in_progress at report time. Served tier via get_session: claude-opus-5-5, effort high.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "get_session, subscribe_pr_activity; no MCP GitHub write",
      "api_writes": "2 — fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls → #36764, POST /issues/36764/assignees os-warren); this os-dev-report comment via post-stamped.mjs",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: Studio landing 「新建自己的应用」 → 新建对象 「回访记录」 → open the app: GET /api/v1/meta/app/kehu_hui_fang answers navigation: [] and the app shows 「客户回访 中暂时没有你可以使用的内容」 · evidence: /mnt/project-files/issue-36748/5-object-created.png, 6-app-after-object.png · nothing adds a new object to the package's existing app menu (only Create app seeds it, from objects that already exist); this door now creates the app first, so the first-time author meets it by default. A fix is a new capability ⇒ Feature card for the maintainer's pick · dedupe: app navigation new object, auto add object to app menu, empty app menu, Studio new app",
        "class: a · reach: same screen · the empty-app page tells an admin to grant access in Setup (「你可以在 Setup 中授予访问权限」) when the cause is an empty menu · evidence: 6-app-after-object.png · dedupe: no content you can use, empty app menu message, grant access Setup",
        "carrier: none · noted: entered from an app page, the header keeps naming that app, not the new package (#36501 design)"
      ]
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim amendment · 2026-11-23T16:46Z: completes claim 7105961454 and branch record 7105982078.
    Scope widened by the maintainer's decision 2026-11-23T16:45Z (「这张卡里一起做」): the thread's out-of-scope finding (a new object never joins the new app's menu, so the app opens empty and the empty page blames permissions) is folded into this card and its PR #36764.
    Branch: claude/project-thread-b4zdh8.
    Surface: studio-design/BuilderLanding.tsx, studio-design/newAppDoor.ts, studio-design/StudioBackToApp.tsx, StudioDesignSurface.tsx (app create; and doCreateObject, which adds the new object to the package's single published app menu through designModeMenuSave saveAppMenu, with a warning toast on failure), PackageFormDialog (newApp step), AppNoAccessEmptyState (an empty-menu reason), the i18n studio and app-shell namespaces, tests, a changeset.
    Clause-②: amended to yes (widening) if the fold-in adds i18n keys or an export; the PR body states it before merge. Metadata-protocol: none.

  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbXT7Mhxfq3Zqk9Vbt2
    os-dev-report

    {
      "issue": 36748,
      "status": "done",
      "branch": "claude/project-thread-b4zdh8",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36764",
      "session": "session_01JQwxbXT7Mhxfq3Zqk9Vbt2",
      "premise_still_valid": true,
      "summary": "Premise held on main 0e83fe03. The landing's 「新建自己的应用」 (and the /studio?new=package deep link, same dialog) passes PackageFormDialog a newApp step (studio-design/newAppDoor.ts): the dialog is worded for an app throughout (no 「软件包」 even with Advanced open), reserves a free app name (namespace, else NAMESPACE_app) before any write, POSTs the package, then saves the app draft under the first-write pin and publishes that one item via publishSavedItem, so the app is live at once. StudioBackToApp names the open package (data-names=package) when there is no app to name. Live on the showcase stack: dialog → 「已创建应用「客户回访」。」, header 「返回应用 · 客户回访 · Studio」, back link opens /apps/com.default.kehu-hui-fang; a bare package reads 「返回应用 · 仅有软件包 · Studio」. FOLD-IN (maintainer 「这张卡里一起做」 16:45Z, head ffa87516): (1) doCreateObject, once the object is live, calls addNewObjectToAppMenu (studio-design/newObjectJoinsAppMenu.ts): when the package has exactly one published app and no entry already opens the object, the stored menu (/layers) plus one label-less object entry goes through designModeMenuSave.saveAppMenu (draft under the first-write pin, then the app's publish; a pending draft is refused, never overwritten); a failure keeps the object and shows toast.warning with the reason. (2) AppNoAccessEmptyState: for no-navigation and a caller who can grant, it reads the stored menu; empty there ⇒ data-reason=empty-menu, 「{app} 的菜单还是空的」 + 「在 Studio 中打开」 → /studio/PKG/data; entries filtered away, a failed read, or a caller who cannot grant keep the access answer. Live at ffa87516: the empty app shows the empty-menu screen (7-empty-menu-says-empty.png); after 新建对象 「回访记录」 the app menu holds it and the app opens on it (9-app-menu-has-object.png).",
      "tests": "New BuilderLanding.newAppDoor-36748.test.tsx (3 tests, real landing + dialog + client + StudioDesignSurface over a stateful fetch stub); StudioDesignSurface.backToApp-36501.test.tsx no-app cases now expect the package label. Ablation via ablation-replace.mjs, fix committed: header fallback removed ⇒ 2/12 fail; app create skipped ⇒ 1/3 fail; taken-name check disabled ⇒ 1/3 fail; each restored, git diff HEAD empty. vitest PackageFormDialog*, BuilderLanding*, StudioDesignSurface.backToApp*, StudioDesignSurface.createApp*, PackagesPage* ⇒ Test Files 50 passed, Tests 429 passed. app-shell type-check under lock VERDICT command-exit 0. Full app-shell suite left to CI. FOLD-IN: new newObjectJoinsAppMenu-36748.test.ts (5), DataPillar.newObjectJoinsAppMenu-36748.test.tsx (3, real DataPillar), console/__tests__/AppNoAccessEmptyState.emptyMenu-36748.test.tsx (5); AppContent.emptyNavigationLanding-12079 admin case now stubs a non-empty stored menu. Ablation: call site disabled ⇒ 3/3 fail; empty-menu branch disabled ⇒ 1/5 fail; several-apps guard deleted ⇒ 1/5 fail; each restored, git diff HEAD empty. At ffa87516: app-shell type-check under lock VERDICT command-exit 0; i18n type-check+test 106 files / 1978 tests passed; the 4 new/changed files 20 tests passed. a572abee: affordanceGrantMap-12082 census entry for PackageFormDialog > submit :: create (outOfFamily: app metadata through the metadata client).",
      "gates": "dispatch-gates --commands derived 41 at ffa87516 (identical list at a572abee); all 41 exit 0 locally (tsv /mnt/project-files/issue-36748/gate-results-ffa87516.tsv). CI red at 82e04d41: Test UI 15/16, plugin-form affordanceGrantMap-12082 write census read the newApp.create(…) member call as an unlisted write site → entered as outOfFamily in a572abee (55/55 locally). ffa87516's type-check/lint aggregator reds were cancellations by the newer push. PR check-runs at a572abee: in progress at report time. Served tier via get_session: claude-opus-5-5, effort high.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "get_session, subscribe_pr_activity; no MCP GitHub write",
      "api_writes": "2 at the first report (fleet-write pr_create #36764 + assignee os-warren; os-dev-report comment). This update: fleet-write issue_patch on #36764 (PR body: Clause-② yes (widening), fold-in sections) and this os-dev-report comment via post-stamped.mjs",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "folded in (was finding 1 and 2 of the first report): new object joins its app menu; empty menu no longer blamed on access — per maintainer ruling 16:45Z, claim amended 7107657300",
        "carrier: none · noted: with several apps in one package a new object joins no menu (author's call in design mode, by design)",
        "carrier: none · noted: entered from an app page, the header keeps naming that app, not the new package (#36501 design)"
      ],
      "clause_2": "yes (widening) — new i18n keys (studio namespace engine.studio.newApp.*, engine.studio.data.appMenu.*; 11 locale packs empty.appMenuEmpty/appMenuEmptyDescription/openInStudio) and new exports storedMenuIsEmpty, addNewObjectToAppMenu, objectMenuEntry; set in PR body and changeset"
    }

    Generated by Claude Code

  9. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbXT7Mhxfq3Zqk9Vbt2
    os-dev-report

    {
      "issue": 36748,
      "status": "done",
      "round": "L1 round 2 (contract review 7109243522, FAIL)",
      "branch": "claude/project-thread-b4zdh8",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36764",
      "head": "72d0cc2d94168fb7221a0435e6a60350873733ff",
      "session": "session_01JQwxbXT7Mhxfq3Zqk9Vbt2",
      "M1": "fixed in f5e4dca5: AppNoAccessEmptyState ANDs useCanAuthorMetadata() into the stored-menu ask, so an organization admin without manage_metadata is never read for and keeps no-navigation + the Setup link. New test 'an administrator who cannot author (no manage_metadata) is never read for' (no fetch, Setup link, no Studio link). Ablation: `&& canAuthor` dropped ⇒ that case fails (1 of 6); restored, git diff HEAD empty.",
      "S1": "fixed in f5e4dca5: addNewObjectToAppMenu reads the package's apps inside a guard; a rejected list answers {kind:'failed', app:null, error}; the call site warns with the new sentence engine.studio.data.appMenu.failedNoApp (en+zh) and never reaches doCreateObject's refusal strip. New tests: unit (rejected list ⇒ failed, app null, no save/publish) and DataPillar (warning, object open, no studio-refusal / role=alert). Ablation: catch → `throw error` ⇒ both fail (2 of 10); restored.",
      "clause_2_note": "accepted: Clause-② now names only the published @object-ui/i18n keys (export names dropped), in the changeset (72d0cc2d) and the PR body.",
      "tests": "app-shell type-check + i18n type-check + i18n test under the lock: VERDICT command-exit 0 (i18n 106 files, 1978 passed). The 4 files (36748 ×3 + 12079): 24 passed. Changeset gates (empty-changeset, adr-0087-registration, changeset-no-major) exit 0 at 72d0cc2d.",
      "api_writes": "fleet-write issue_patch on #36764 (PR body, read-back identical); this comment via post-stamped.mjs",
      "gates": "CI at 72d0cc2d: in progress at report time.",
      "open_questions": [],
      "security_findings": "none"
    }

    Generated by Claude Code

  10. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Cleared · 2026-11-23T19:46Z: closed by the merge of #36764. The seat takes pm:dispatched and its assignee off.

  11. removed
    pm:dispatched
    on Nov 23, 2026
  12. added 2 commits that reference this issue on Dec 1, 2026
    0d727b7
    f339060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions