Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(skills): apply review fixes (ViewModel, editor.locale)
Elian Doranb9fb15208f63
diff --git a/.claude/skills/ckeditor5-plugin-development/references/recipes.md b/.claude/skills/ckeditor5-plugin-development/references/recipes.mdindex 5e23568802..c2a00cfd11 100644--- a/.claude/skills/ckeditor5-plugin-development/references/recipes.md+++ b/.claude/skills/ckeditor5-plugin-development/references/recipes.md@@ -133,7 +133,7 @@ class InternalLink extends Plugin {const balloon = this.editor.plugins.get( 'ContextualBalloon' );this.listenTo( balloon, 'change:visibleView', ( evt, name, visibleView ) => {if ( visibleView === linkUI.formView ) {- const button = new ButtonView( this.locale );+ const button = new ButtonView( this.editor.locale );button.set( { label: 'Internal link', withText: true, tooltip: true } );button.bind( 'isEnabled' ).to( this.editor.commands.get( 'link' ) );button.render();diff --git a/.claude/skills/ckeditor5-plugin-development/references/ui-and-localization.md b/.claude/skills/ckeditor5-plugin-development/references/ui-and-localization.mdindex f200b957c2..2538297fc1 100644--- a/.claude/skills/ckeditor5-plugin-development/references/ui-and-localization.md+++ b/.claude/skills/ckeditor5-plugin-development/references/ui-and-localization.md@@ -164,14 +164,14 @@ content for keyboard nav.```jsimport { createDropdown, addListToDropdown, addToolbarToDropdown, addMenuToDropdown,- SplitButtonView, UIModel, Collection } from 'ckeditor5';+ SplitButtonView, ViewModel, Collection } from 'ckeditor5';const dropdown = createDropdown( locale );dropdown.buttonView.set( { label: 'Label', withText: true, tooltip: true, icon } );// List dropdownconst items = new Collection();-items.add( { type: 'button', model: new UIModel( { label: 'Foo', withText: true, commandParam: 'foo' } ) } );+items.add( { type: 'button', model: new ViewModel( { label: 'Foo', withText: true, commandParam: 'foo' } ) } );addListToDropdown( dropdown, items );dropdown.on( 'execute', evt => editor.execute( 'cmd', { value: evt.source.commandParam } ) );diff --git a/.claude/skills/ckeditor5-reviewing/references/defect-patterns.md b/.claude/skills/ckeditor5-reviewing/references/defect-patterns.mdindex 49222617c9..d69b9e5b63 100644--- a/.claude/skills/ckeditor5-reviewing/references/defect-patterns.md+++ b/.claude/skills/ckeditor5-reviewing/references/defect-patterns.md@@ -141,7 +141,8 @@ group covers the monorepo wiring/convention defects. For the idiomatic "how it s**Outdated / mixed imports (Trilium pins ckeditor5 48.2.0).**- Spot: deep imports `@ckeditor/ckeditor5-*/src/...`; any `@ckeditor/*` package import instead of the`ckeditor5` aggregate; a `ckeditor5`/`@triliumnext/...` import *missing the file extension*;- removed/renamed symbols (`Model`/`ViewModel` → `UIModel`; `icons.check` → `IconCheck`).+ removed/renamed symbols (the UI model class is `ViewModel` — what Trilium's plugins use — not the+ old `Model`; `icons.check` → `IconCheck`).- Why: Trilium always imports from the `ckeditor5` aggregate (pinned 48.2.0) or cross-plugin`@triliumnext/ckeditor5-<x>`, **with explicit file extensions** — `eslint-config-ckeditor5`(`require-file-extensions-in-imports`, `allow-imports-only-from-main-package-entry-point`,diff --git a/.claude/skills/ckeditor5-testing/references/running-and-config.md b/.claude/skills/ckeditor5-testing/references/running-and-config.mdindex 1bb7e6ccbd..b50a7e09d4 100644--- a/.claude/skills/ckeditor5-testing/references/running-and-config.md+++ b/.claude/skills/ckeditor5-testing/references/running-and-config.md@@ -121,7 +121,9 @@ pnpm test:all # test:parallel && test:sequential````math` and `mermaid` **must** run sequentially — running multiple headless Chrome instances at-once exhausts resources. Light (happy-dom) packages run in parallel.+once exhausts resources. The aggregator (`ckeditor5`) is also in the sequential group (its+`src/**/*.spec.ts` includes browser-mode specs); `server` is there for a different reason (shared+test DB, per `CLAUDE.md`), not browser limits. Light (happy-dom) packages run in parallel.## Notes