Skip to content

design mode 8/9: custom app pages link out to their Studio editor from design mode (no runtime canvas this round) #39378

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

Part of epic #39368 (rulings and invariants there).

Depends on child 0 only for the selection model. Epic decision 5: #36890 decision 3 stands (custom pages stay in Studio).

Today

  • In design mode, selecting a custom page (e.g. showcase 「我的工作」) shows it read-only.
  • Outside the mode, views/PageView.tsx (around 397-399, 548) offers 「Edit in App Studio」 behind useStudioDesignGate.

Change

When a custom page is selected in design mode, show a clear "design this page in Studio" affordance in the mode's inspector area. It opens the page's Studio item with a return address, and asks first if anything is staged. No runtime PageBlockCanvas this round. Revisit after children 2–7 land.

Acceptance

  • Selecting a page in design mode shows the affordance. It is absent for users who fail the Studio design gate.
  • With staged changes, it asks before leaving.

Activity

  1. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Feature · p2 · pm:blocked · size M, touched 2026-12-03T16:21Z. Rationale: The maintainer approved the epic's rulings, scope and card split on 2026-12-03 (「按建议整体通过,立专题卡」), so the feature is pre-authorised. Runtime design mode is how the app looks and is used in place (area:ux ①②), and the grade is the epic's p2. Per the epic, this child is released only after child 0 lands and child 2 is verified in the browser.
    Blocked-by: #39369, #39371
    Grade: area:ux · Feature · p2 · admins in design mode · read (epic #39368).

  2. added
    domain:ui
    pm:blocked
    priority:p2
    on Dec 3, 2026
  3. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T04:58Z · Unblocked: Blocked-by #39369 and #39371 are both merged (PRs #39433, #39487), and the dashboard browser verification that Elon's 00:56Z ruling kept as this card's gate passed on main 31a291aeb3 (record on #39371). Back to pm:queue for zone dm-39368.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Dec 4, 2026
  5. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    Claim: PM loop round 3
    Session: session_016WV4cypQd6ZDPDmXL5MaWR
    Account: os-elon-musk
    Area: dm-39368
    Branch: claude/issue-39378-wip
    Worktree: objectstack-issue-39378
    Domain: domain:ui
    Seat: repo:objectstack@os-elon-musk
    File surface: ui/packages/app-shell/src/layout/designMode.tsx or the mode's inspector module (affordance for a selected custom page), views/PageView.tsx (read only unless the gate hook needs sharing), new light modules beside them, ui/packages/i18n/src/locales/*.ts (new keys only, every pack, zh-Hant through gen:zh-hant), new tests *-39378.test.tsx, a changeset
    Container & model: S, mode:subagent, model: sonnet (floor; no path-derived mandate, link-out only), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7401856412
    Premise: holds (main 31a291aeb3: PageView.tsx:397 gates 「Edit in App Studio」 on useStudioDesignGate; the mode draws a custom page read-only)
    Serial constraints cleared: #39374 and #39375 (same zone, running now) may touch layout/designMode.tsx; first green lands first. No open PR touches this surface (read 04:59Z).
    Prior rulings read: check-prior-rulings.mjs --card 39378: keyword hits only (no ADR decision answers this card's question); epic #39368's rulings and invariants bind.
    Pre-claim lane: domain:ui (ui/**).
    Pre-claim deps: every Blocked-by is merged; the dashboard browser verification passed on main 31a291aeb3 (record on #39371).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR
    os-dev-report

    {
     "issue": 39378,
     "status": "done",
     "branch": "claude/issue-39378-wip",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39523",
     "session": "session_016WV4cypQd6ZDPDmXL5MaWR",
     "premise_still_valid": true,
     "summary": "A custom page in design mode now shows a strip with 'Design this page in Studio' (new views/PageDesignInStudio.tsx, +2 lines in PageView.tsx; designMode.tsx untouched). It reuses the Studio path from useStudioDesignGate (absent when the gate answers null), the shell's recorded app page is Studio's return address, and with staged changes it goes through confirmUnsavedLeave, i.e. the mode's existing leave prompt. Two i18n keys in all 11 packs, zh-Hant via gen:zh-hant; changeset added.",
     "tests": "PageDesignInStudio-39378.test.tsx 4 passed; designMode-36362.test.tsx 28 passed; packages/i18n 110 files 1874 passed; ui/scripts check-i18n-call-site-keys/en-drift/dead-keys exit 0. Ablation not run. app-shell type-check NOT MEASURED (workspace deps not built; only unresolved-module noise). ui scripts vitest: 1 failed of 5163 in a 466 s run, not attributed (re-run OOM-killed); i18n-named script tests pass.",
     "gates": "Head 20fced00ff. dispatch-gates --commands (30 derived + extras) all exit 0 except `pnpm --dir ui exec vitest run scripts/ --maxWorkers=2` exit 1 (1 failed test, unidentified, see tests); --ran reconciliation not executed separately. overlap-check: VERDICT clean. CI check-runs not yet read.",
     "mcp_calls": "0",
     "api_writes": "1 relay dispatch (pr_create PR 39523, assignee os-elon-musk) plus this comment via post-stamped; git push of claude/issue-39378-wip",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · the mode has no inspector panel; the strip sits at the top of the page body (noted in PR Acceptance notes)"
     ]
    }
  8. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T06:49Z · Claim amendment (same session, nothing else changes): File surface, as PR #39523 touches it.
    Added: new ui/packages/app-shell/src/views/PageDesignInStudio.tsx (the mode has no separate inspector panel, so the strip sits at the top of the page body) and 2 lines in views/PageView.tsx. layout/designMode.tsx is not touched.

  9. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T07:14Z · Final head for L1: 20fced00ff1e46c343e0d72e6deb2d63873d6eea (zone dm-39368, card #39378, PR #39523; claim 7401922787 + amendment, dev report 7403883573). Check runs: 45 success, 15 expected skip, 0 failure (CI's Test UI covers the ui scripts family the dev could not finish locally; app-shell type-check is green in CI). L1 requested from thread L1-a.

  10. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T07:42Z · Closed by PR #39523 (merged as 4868231d22, Fixes #39378).

  11. removed
    pm:dispatched
    on Dec 4, 2026
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:uxdomain:uienhancementpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions