No reviewers
Labels
No labels
module:M0-setup
module:M1-stt
module:M1-stt
module:M2-ai
module:M2-ai
module:M3-rich
module:M3-rich
module:M4-bridge
module:M4-bridge
module:M5-bonus
module:M5-bonus
module:setup
priority:high
priority:high
priority:low
priority:low
priority:medium
priority:medium
type:chore
type:chore
type:feature
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/my-fractal!155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/43-46-rich-editor-prefs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements issues #43 and #46 in the
fractal-richcrate.Issue #43 — Rich editor block insertion palette (
editor.rs)BlockTypeenum with 12 variants:Chart,Quiz,Card,Carousel,Timeline,Math,Mermaid,Canvas,CodeRun,Progress,Accordion,TableSortBlockTypeInfostruct:block_type,display_name,description,icon_namefn all_block_types() -> &'static [BlockTypeInfo]— static list viaOnceLockRichEditorStatewithopen,selected_block,config_jsonfields and methods:toggle_palette()— opens/closes, clears selection on closeselect_block(BlockType)— sets selection and opens paletteupdate_config(String)— updates JSON configgenerate_html() -> String— emits<div data-fx-type="…" data-fx-config='…'>fallback</div>Issue #46 — Render preferences (
prefs.rs)RenderPreferenceswithlevel: RenderLevel,rich_editor_enabled: bool,code_run_enabled: boolDefault:Standard,rich_editor_enabled: true,code_run_enabled: falseto_toml_value() -> toml::Value/from_toml_value(v: &toml::Value) -> SelfRichEditorInsertionPalette { available_types, render_prefs }withfilter_by_prefs():rich_editor_enabledis falseCodeRununlesscode_run_enabledis trueCargo changes
serde,serde_json,toml(all workspace) tofractal-rich/Cargo.tomllib.rspub mod editorandpub mod prefsalongside existing modulesCloses #43
Closes #46
Pull request closed