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 0b1ca27
Browse filesBrowse the repository at this point in the historyBrowse files
fix(app-shell): the draft bar publishes the reloaded draft after a conflict "reload" (#37648)
After a view settings Save was refused and the author chose "reload" in the
draft-conflict dialog, ViewConfigPanel re-read the stored view but
RuntimeDraftBar kept the draft version it read before the reload, so its
Publish was refused until the panel was reopened. The panel's reload read now
hands the bar the version it found (`reloadedSignal`, `reloadedDraftVersion`,
`reloadedHasDraft`); the bar never re-reads for it.
Also: `meta.publishItem`'s `parentVersion` JSDoc says an empty string pins
nothing, and the client SDK page shows a publish pinned with `draftVersion`
and `parentVersion` (review N1, N2 of PR #37637).
Claude-Session: https://claude.ai/code/session_01L6bhgUuauSMJu1nVSQRQri
Co-authored-by: Claude <noreply@anthropic.com>
fix(app-shell): the view settings draft bar publishes the reloaded draft after a conflict is resolved with "reload"
7
+
8
+
When a view settings Save was refused because the draft moved and the author chose "reload" in the conflict dialog, the panel re-read the stored view but the draft bar kept the draft version it had read before the reload. Its Publish was then pinned to a draft that no longer existed and was refused until the panel was reopened. The panel now hands the bar the version its reload read found (`RuntimeDraftBar`'s new `reloadedSignal`, `reloadedDraftVersion` and `reloadedHasDraft`), so the Publish promotes the draft now shown, and a reload that found no pending draft takes the bar's indicator down. A reload whose read fails hands the bar nothing, so its Publish stays pinned and is refused rather than sent unpinned.
9
+
10
+
`client.meta.publishItem`'s `parentVersion` JSDoc now says an empty string pins nothing and is not sent, as `draftVersion`'s does, and the client SDK page shows a publish pinned with `draftVersion` and `parentVersion`.
0 commit comments