You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f0750e0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(console): opening a dashboard's in-page edit writes nothing, and refuses where Studio's Customize would
Edit on an installed app's dashboard asked the ensure door at open, which
creates the app's customization package on first use, so Edit then Discard
left a new package behind. Opening now only reads: the pair is looked up in
the package list (listedCustomizationPairOf), and the ensure door is asked at
Save, the edit's first write. The edit state is also refused up front where
Studio's Customize is: the ensure door walled for this caller, and a base
listing no version to declare the override at (unless the item already
declares one).
Two things a live run showed: the not-filtered mark named the built-in date
filter by its reserved name ("dateRange") instead of "Date range", and the
edit state drew the stored document without the served _packageId, so its
cards' dataset queries no longer named the dashboard's package as their
reader. Both fixed and pinned.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUeSU9HhKxjcVsyprx
Copy file name to clipboardExpand all lines: .changeset/36372-dashboard-in-page-edit.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Metadata-protocol: none
12
12
13
13
A dashboard page draws an **Edit** button for a workspace admin who may author metadata, on a package Studio lists (the gate of the app's Studio entries). Edit opens the dashboard as stored (never the translated copy the page shows) in an edit state: the header says **Editing**, with **Add card**, **Discard** and **Save**; every card draws a dashed outline and can be dragged to move it, resized from its corner by whole grid tracks (or with the arrow keys on the corner handle) and clicked to select it. The panel at the right is Studio's own dashboard panels, as they stand: a selected card's (its data, its "follow page filters" switches, Remove) and otherwise the dashboard's (label, cards, filters, layout). The filter bar's **Add filter** opens the panel's Filters section. Add card appends a card at the end and selects it.
14
14
15
-
Save writes where Studio's Customize would and publishes that one item in the same act, so everyone sees the change at once without the app's package being published: into the owning package when it is writable, else into the app's customization package (`<base>.custom`, asked of the ensure door, declaring `overrides: { package, basedOn }`), so an installed app's dashboard is edited too. A dashboard with a draft already pending there (a Studio edit not yet published) is not opened for editing, and a save over one writes nothing: that draft is never published on its saver's behalf. Discard drops every change.
15
+
Save writes where Studio's Customize would and publishes that one item in the same act, so everyone sees the change at once without the app's package being published: into the owning package when it is writable, else into the app's customization package (`<base>.custom`, declaring `overrides: { package, basedOn }`), so an installed app's dashboard is edited too. Opening the edit state writes nothing: the pair is asked of the ensure door, which creates it on first use, at Save only. As with Studio's Customize, an installed app's dashboard is not opened where that door is walled for the caller or the package list gives no installed version to declare the override at. A dashboard with a draft already pending there (a Studio edit not yet published) is not opened for editing, and a save over one writes nothing: that draft is never published on its saver's behalf. Discard drops every change and writes nothing.
16
16
17
-
Every card, in every mode, carries a small mark naming the page filters that do not reach it ("Not filtered by Region"), asked of the same binding its query is built from (`dashboardFiltersNotApplied` over `resolveBoundField`): a filter the card opts out of, or one whose `targetWidgets` leaves it out. A card every filter reaches carries none.
17
+
Every card, in every mode, carries a small mark naming the page filters that do not reach it ("Not filtered by Region"), asked of the same binding its query is built from (`dashboardFiltersNotApplied` over `resolveBoundField`): a filter the card opts out of, or one whose `targetWidgets` leaves it out (an explicit string binding wins over `targetWidgets`). A card every filter reaches carries none.
0 commit comments