Skip to content

design mode 4/9: reports are designed in place inside design mode, gated like dashboards #39374

Backlog

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

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

Depends on children 0 and 2 (released after child 2 is verified).

Today

  • ui/packages/app-shell/src/views/ReportView.tsx has two editors: the builder that replaces the page (ReportBuilderHost) and a side panel for joined reports (ReportConfigPanel, around 134-137 and 741-823). Edits drive the preview, and Save writes (around 334-336).
  • It excludes design mode both ways (ReportView.tsx:374; ReportNewPage.tsx:106-108).
  • The gate is admin only (ReportView.tsx:129, AppReportIndexView.tsx:107, ReportNewPage.tsx:105). The dashboard and the mode use useStudioEntryGate (admin plus metadata authoring, hooks/useStudioDesignGate.ts:185-187).

Change

  1. Same model as child 2: drop the exclusion, buffer as a staged change, no editor-own save/discard inside the mode, and the header Edit enters the mode with the report selected.
  2. Both editors (builder and joined panel) stage through the mode.
  3. Gate tightened to the dashboard's (epic decision 1), at all three call sites.
  4. Creating a report keeps today's flow from the reports index (epic decision 3). Design mode: creating a report inside it shows two Save/Cancel sets and can silently detach. Make report editing its own entry, mutually exclusive with design mode (Twenty's model) #36692's two-step repro must stay impossible.

Acceptance

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:18Z. 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
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:uienhancementpm:blockedpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions