Persist cell view state and add clear output action#52
Conversation
0c78992 to
fac8e7b
Compare
|
Rebased this branch onto current |
|
Hi @eosfor, when you get the chance, could you sync up your branch? This is the next PR I'll be reviewing and testing. Thanks! |
fac8e7b to
28ce201
Compare
|
Synced this branch with current I also fixed the CI failure by updating the built-in extension count test for the new Manual F5 verification passed for input collapse/output visibility persistence and clear output behavior. CI is now green on the latest run. |
|
Hi @eosfor. After testing the PR this feels like the right direction. With that said, for the UI, I'd rather route the new settings through A few asks if you're up for the rework:
The chevron change, the persistence, the tests, and And if you'd rather hand off the rework, no problem. I can pick it up from your branch and credit your contribution. The persistence groundwork is solid either way. Note: the In case you or anyone else reading this wants to see what the built-in properties pane field types look like, here's a self contained verso notebook that adds cell properties after creating an extension (through cell): |
|
Thanks for taking the time to rework this. I appreciate the contribution. |

Problem
The notebook UI could collapse inputs or change output visibility, but those view choices were not persisted through the notebook model/host round trip. Clearing output also lacked a first-class built-in toolbar action with host-level coverage.
Approach
Persist per-cell view state in cell metadata and expose service methods for updating that state. The host protocol round-trips metadata changes so the UI state survives reloads. This PR also adds a built-in clear output toolbar action and tests the host behavior.
Notable changes
CellViewStateMetadatakeys for input collapse and output visibility.Validation
dotnet test tests/Verso.Host.Tests/Verso.Host.Tests.csproj --no-restoredotnet build Verso.sln --no-restoreManual check
Collapse a cell input or change output visibility, save/reopen the notebook, and verify the view state is restored. Trigger the clear output toolbar action and verify the selected cell output is removed.
Review notes
The
BuiltInExtensionDiscoveryTestscount adjustment from the original branch was not needed on the current upstream base, so the PR contains only the active implementation/test changes required onmain.