openpencil/crates/op-editor-core
Kayshen-X 194c7d0157 feat(editor): gate preview mode and widget config behind experimental toggle
The canvas Preview (Play) button and the property-panel Widget section are
unfinished surfaces. Add an opt-in "Experimental features" switch in
Settings → System (default off) that gates both:

- TopBar: a `preview_button_visible()` predicate (host capability AND the
  opt-in) drives paint, hit-test, and the globe-anchored locale picker so
  the right cluster never drifts.
- Property panel: the snapshot's `widget` is cleared when off, hiding the
  section (rows + height) with no layout change.

Disabling the toggle exits any live preview (host-owned session on native,
core flag on web) and clears stale Widget property focus so a hidden field
can't commit. Persisted via AgentSettings on desktop (settings.json) and web
(web_settings). Adds settings.experimental(+Desc) to all 15 locales.
2026-06-19 16:42:07 +08:00
..
assets Merge remote-tracking branch 'origin/codex/jian-widgets-plan' into v0.8.0-new 2026-06-14 13:56:56 +08:00
src feat(editor): gate preview mode and widget config behind experimental toggle 2026-06-19 16:42:07 +08:00
tests fix(ai): stop streaming chat turns 2026-05-31 18:34:37 +08:00
Cargo.toml refactor(editor): re-export painter contract from jian-widgets 2026-06-14 00:56:08 +08:00