Skip to content

design mode 2/9: dashboards are designed in place inside design mode, with the bar as the only Save/Cancel #39371

Backlog

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

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

Depends on child 0. It is the first content type in the mode and validates the staging model. Land it and verify it in the browser before children 3–8.

Today

  • ui/packages/app-shell/src/views/DashboardInPageEditor.tsx keeps its buffer in useDashboardInPageEdit component state (around lines 459-465) and clears it when the dashboard changes (around 476-480).
  • Save publishes the single item (around 499-520).
  • The editor and design mode exclude each other (DashboardInPageEditor.tsx:254,474; designMode.tsx:53-64). In design mode, selecting a dashboard in the menu shows it read-only.

Change

  1. Drop the mutual exclusion. In design mode, a selected dashboard renders its canvas and inspector in place.
  2. The buffer becomes a staged change, useDesignModeChange('dashboard:<name>'), whose commit is today's save function. Switching to another page and back keeps the edits.
  3. Inside the mode, the editor's own save/discard is not drawn. Cancel on the bar returns the dashboard to read-only.
  4. Outside the mode, the header's Edit enters design mode with this dashboard selected (epic decision 2). This needs a new DesignModeOpening shape; today it is only column: 'dashboard' (designMode.tsx:108-111). Coordinate with child 4, which needs the same shape.
  5. 「New dashboard…」 keeps today's flow (epic decision 3).

Acceptance

  • In design mode exactly one Save/Cancel is on screen.
  • Edit dashboard A, open dashboard B, return to A: A's edits are still there. One bar Save publishes both.
  • Cancel on the bar discards both, and no editor stays open.
  • Header Edit outside the mode lands in the mode with the dashboard selected.
  • Browser screenshots at 1280 width show the menu editor and the dashboard inspector side by side without overlap (not yet measured).

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:16Z. 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. Child 2 (dashboards designed in place) depends on child 0.
    Blocked-by: #39369
    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