Skip to content

「新建包」对话框加一个「同时创建应用」勾选项(默认勾上),勾上时建包的同时建好它的应用;取消勾选只建包 #37134

Description

@objectstack-fleet

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

③ maintainer direct order · Source: maintainer (Yibo Wang), 2026-11-24.

  • 09:36Z 「是否建议界面上创建包时,自动创建应用?」
  • Seat 3 recommended (09:37Z, restated 11:22Z): 「建议做,但做成『新建包』对话框里的一个勾选项『同时创建应用』,默认勾上,而不是强制创建」.
  • 22:05Z: 「立卡」.

Follow-up of the Studio redesign epic #36890 (hand-off §4, comment 7133810009).

维护者速读

What is on main

Expected

  1. In create mode, PackageFormDialog shows a checkbox 「同时创建应用」 / "Also create an app", ticked by default. Ticked runs the existing newApp step (same reserve, create, publish and error handling as Studio「新建自己的应用」最后要得到一个应用:一个「新建应用」对话框同时建包和应用;没有应用时页头显示包名 #36748). Unticked creates only the package, exactly as today.
  2. Every CreatePackageDialog call site gets it. Where the dialog lands afterwards does not change, and with an app the Studio header shows the app's name.
  3. The Studio landing door (Studio「新建自己的应用」最后要得到一个应用:一个「新建应用」对话框同时建包和应用;没有应用时页头显示包名 #36748) keeps its app-worded dialog until Studio 重构(决定 9):去掉 Studio 首页(/studio 的包卡片页),逐项搬走它承载的入口 #36908 removes it. Studio 重构(决定 9):去掉 Studio 首页(/studio 的包卡片页),逐项搬走它承载的入口 #36908 then points its replacement entry at this dialog with the box ticked.
  4. Tests: ticked creates a package and an app; unticked creates only a package; a name already taken surfaces as in Studio「新建自己的应用」最后要得到一个应用:一个「新建应用」对话框同时建包和应用;没有应用时页头显示包名 #36748. Add the zh-CN and en strings. Translation keys only means Clause-② no, unless a published type gains a member.

Not in scope

Dedupe (gh api search/issues, is:issue, open and closed): 同时创建应用 (none), create package also create app (closest is #36748, closed by #36764, which covers the Studio landing door only).

Part of #36890 (follow-up; related #36908, #36748, #36834). Likely domain:ui, area:ux, size S–M. The grade is triage's to set.


Generated by Claude Code

Activity

  1. added
    domain:ui
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: first touch 2026-11-24T22:09Z (repo:objectstack#3's request 7145862748)

  3. added
    pm:queue
    priority:p2
    on Nov 24, 2026
  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Held behind #36908 · 2026-11-25T02:28Z · zone a4-S hot-file serial

    Blocked-by: #36908

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Claim: PM loop round 3
    Session: session_01QSeKYkkwuF6UuFtu85Yd5H
    Account: os-justin
    Branch: claude/issue-37134-create-package-also-app
    Worktree: cloud session (its own container)
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-S
    File surface: ui/packages/app-shell/src/views/metadata-admin/PackageFormDialog.tsx, PackagesPage.tsx (CreatePackageDialog) and its call sites (Settings Packages, ResourceListPage, the Studio package switcher, and the new-package doors #36908 routed to Setup), studio-design/newAppDoor.ts (reuse only), tests, the studio/console en+zh catalogues (additive keys only), a changeset. ⛔ No server change; no change to the decision-5 fallback (#36899) (stop on breach; explain in the report)
    Container & model: M, mode:cloud, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7150768924
    Premise: holds (re-read on origin/main fbb62e1c after #37166 landed). #36908 removed the Studio home and BuilderLanding, so every package create now goes through PackageFormDialog mode="create" without newApp. PackageFormDialog already carries the newApp?: NewAppStep step (#36748), now pinned in PackageFormDialog.newAppStep-36748.
    Pre-claim lane: repo:objectstack seat 4 zone a4-S (③ maintainer order 「立卡」; Blocked-by #36908, now landed; seat 4 asked for it first after #37166 merged; cap 3)
    Pre-claim deps: none open.
    Prior rulings read: seat 3's recommendation, a checkbox ticked by default (not forced); #36908 N1 (a) door routing; #37166's merged useNewPackageDoorPath.
    Serial constraints cleared: #37201 (running) touches the Studio menu, not the package dialog. #37261 (running) touches ReportNewPage only. #37139 (next) adds the Studio header 「⋯」 package menu, a different surface.
    Size: M.

  7. added
    pm:dispatched
    and removed
    pm:blocked
    on Nov 25, 2026
  8. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H
    os-dev-report

    {
      "issue": 37134,
      "status": "done",
      "branch": "claude/issue-37134-create-package-also-app",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37338",
      "session": "session_01QSeKYmaapyPFdBwrb3SfFp",
      "premise_still_valid": true,
      "summary": "PackageFormDialog in create mode with a newApp step now shows 「同时创建应用」 / 'Also create an app', ticked on every opening. Ticked runs the #36748 step unchanged (reserve, then package POST, then app draft and publish; a taken name refuses with nothing written). Unticked posts only the package. CreatePackageDialog builds newAppStep(client, locale) and passes it, so every door gets the box: Setup > Packages (button on both faces, and the ?new=package door #36908 routes to) and ResourceListPage's create-a-package-first prompt. Where each door lands is unchanged. The dialog's app-worded variant (title, ids and help rows reworded when newApp was set) had no host after #36908, so it was removed and the dialog keeps its package face. Its catalogue rows stay unread (no key removed). 3 additive keys in en and zh. One premise drift: the card's 'Studio package switcher' call site no longer exists (removed by #36501). No server change, and no change to the decision-5 fallback. Card assignee was not touched.",
      "tests": "Head 97fa2d83. PackageFormDialog.newAppStep-36748 (shared harness: real dialog, newAppStep, metadata client and StudioDesignSurface over a stateful fetch stub), 11/11: box ticked by default and on reopen (en and zh); ticked = POST package, PUT app draft, POST publish, header names the app; unticked = only POST package, header names the package; taken name = refusal names the holding app, Advanced opens, writes []; unticking then posts the package; source pins: CreatePackageDialog mounted only in PackagesPage and ResourceListPage, no other create-mode PackageFormDialog, and the wrapper passes newAppStep. The three #36748 cases had survived #36908 whole. Case 1 (app-worded face) was rewritten to the package face with the box plus a CONTROL, and case 2's toast assertion was updated. PackagesPage.installedAppsUpdates-34722: the stub reports the step, 3 new cases (admin button, ?new=package, dev-face button). Wider: PackageFormDialog*, 34722, CreatePackageDialog* at 4179e152 gave 17 files / 195 tests passed; PackagesPage*, ResourceListPage*, EditPackageDialog*, StudioDesignSurface.createApp* gave 36 files / 313 passed. app-shell type-check (src + tsconfig.test.json) after building the closure: VERDICT command-exit 0, 0 TS errors. Ablations via ablation-replace.mjs, each restored with git checkout HEAD and verified by blob hash plus an empty git diff HEAD; app-shell imports the subject relatively, so no dist in the path. A1 appStep always undefined: 4 red. A2 box ignored: 2 red. A3 taken arm off: 2 red. A4 box resets unticked: 8 red. A5 wrapper passes newApp={undefined}: 9 red. A6 ResourceListPage mounts PackageFormDialog mode=create: 2 red. A5's first leg was a no-op (empty replacement refused, nothing landed) and was re-run with a real replacement. A4's grep anchor count reads 2 because the multi-line anchor is counted per line by grep -F; the tool's own on-disk check passed.",
      "gates": "Local, all at 97fa2d83, exit captured before any pipe: check:test-source-alias exit 0; ui check:i18n-keys exit 0; scripts/pm/overlap-check.mjs VERDICT clean exit 0 (merges with main and #37315, which shares the studio catalogues); check:nul-bytes 0; check:cross-package-test-inputs 0; dispatch-gates --commands derived 39 families, all run, all exit 0; --ran reconciliation 39 derived / 39 run / 0 NOT-MEASURED (derived zero, every row carries an exit code). The first ui scripts/ vitest run at 28a9d57a failed check-test-path-roots on the new test: a local named `path` was read as the fetch stub's URL path. Fixed by renaming it in 97fa2d83; the re-run gave 172 files passed, 2 skipped, 5130 tests. eslint --no-inline-config on the 6 touched files: exit 0, warnings all on pre-existing lines. CI on PR head 97fa2d83: 58 check-runs, 45 success, 13 skipped, 0 failed. These include Test Core, Test UI 1-16/16, Type Check UI, Type Check workspace/source/consumer/debt ledger, TypeScript Type Check, Lint UI, Lint ESLint and every scoped lint, Lint PM dispatch-gates, Check Changeset, Governed Surface Queue Guard, PR-body guards, Dogfood Regression Gate, Build & E2E UI, Live E2E UI and Check PR Size.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "3 — read-only: issue_read get #37134, issue_read get_comments #37134, pull_request_read get_check_runs #37338. No write tool used.",
      "api_writes": "2 relay strokes. (1) pr_create: POST /repos/objectstack-ai/objectstack/dispatches, which the run executed as POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/37338/assignees (os-justin); the read-back was byte-identical, 9055/9055. (2) This os-dev-report comment via post-stamped.mjs on #37134. Plus 2 git pushes (not REST).",
      "open_questions": [
        {
          "question": "The app-worded catalogue rows (engine.studio.newApp.title, description, advancedHint, id, help.*, nsDerived, exists, failed) have no reader after this PR. Retire them?",
          "options": [
            "A Leave them; retire them in a later key-retirement card under that process",
            "B Keep the app-worded variant as an opt-in prop, with no host"
          ],
          "recommendation": "A, because no door shows the app-worded face any more, and keeping a prop with no host is dead surface. Removing released keys is its own decision."
        },
        {
          "question": "With the box ticked the submit button still reads 'Create package' / 「创建软件包」. Should it switch to something like 'Create package and app'?",
          "options": [
            "A Keep it as is; the checkbox and its hint say an app comes too",
            "B Add a ticked-state submit label (one more additive key)"
          ],
          "recommendation": "A, because the card asked only for the checkbox and its default, and the success toast already names both."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #37139 · noted, not filed: a Studio-only author who cannot open Setup > Packages still has no New Package door (#36908's own note); unchanged here and recorded in the PR's Acceptance notes."
      ]
    }

    Generated by Claude Code

  9. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Finalized head for L1 · 2026-11-25T19:44Z · 97fa2d83 · zone a4-S (#37134)

  10. removed
    pm:dispatched
    on Nov 25, 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:uipriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions