Name:
viin_brain: P3–P12 buildout + WI-14 UI panels (9 sprints — viindoo-brain v17 campaign)
State:
Killed
PR State:
merged
PR Author:
David Tran
PR Author Email:
PR:
#8
Committer:
David Tran
Committer Email:
david.tran@tvtmarine.com
Commit:
8dad54b9c25fd5ce866027d6cffd0c047c6b989d
Description:
feat(brain-p4): dynamic slash command registry for BrainSlashMenu
Two new files wire the Brain slash menu (viin_web_editor.commands) which
was previously empty for non-AI users.
native_commands.js (viin_web_editor)
- Single bridge file between OdooEditor native features and BrainSlashMenu
- Registers: Image (MediaDialog), Video (MediaDialog), Table 3×3,
2-column layout, 3-column layout
- Dynamic contract: future Odoo commands → add one entry here, all
downstream consumers pick it up automatically
brain_commands.js (viin_brain)
- Full set of Brain block commands into viin_web_editor.commands:
Text (H1/H2/H3, paragraph, quote, code), Lists (bullet, numbered),
Brain (wikilink, record mention, external link),
Embed (record, recordset, page, database)
BrainSlashMenu adapter enhanced
- Add insertHtml(html) — explicit name for insertHTML execCommand
- Add formatBlock(tag) — converts current block (h1-h6, p, pre, blockquote)
- Add execCommand(name, arg) for list toggles (insertUnorderedList, etc.)
Both files load in web.assets_backend (eager bundle). MediaDialog is
already in that bundle via web_editor.assets_media_dialog.
Branch:
17.0
Instance ID:
0
Age:
Up-time:
Not finished