Migrate remaining computeCommandScore call sites to Fuse #318
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#318
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Follow-up to #314: several menus and search lists still used bits-ui
computeCommandScore.Problem
Menu filtering, tags view, metadata autocomplete, and all-properties search used
computeCommandScoreinstead of the shared Fuse scorer.Goal
Use
fuzzyMatchScorefrom@lapis-notes/uieverywhere per-item fuzzy ranking is needed.Scope
All remaining
computeCommandScorecall sites in api, plugin-markdown, and workspace.Non-goals
Changing batch
fuzzySearchconsumers or Command wrapper defaults from #314.Acceptance Criteria
computeCommandScoreimports remain in implementation code.fuzzyMatchScoreexported as the canonical per-item scorer;commandFuzzyFilterremains an alias.fuzzyMatchScore.Implementation Notes
Rename factory to
createFuzzyMatchScore, aliascommandFuzzyFilter, migrate five call sites, update test mocks.Suggested Files or Specs To Inspect
packages/ui/src/lib/command-fuzzy-filter.tspackages/api/src/lib/menu.svelte.tspackages/workspace/src/lib/views/tags/tags.sveltepackages/plugins/plugin-markdown/.../widgets.ts,PillListEditor.svelte,all-properties.svelteValidation Commands
pnpm --filter @lapis-notes/ui check:allpnpm --filter @lapis-notes/api check:sveltepnpm --filter @lapis-notes/workspace check:sveltevitest runfor plugin-markdown frontmatter testsRelated Issues
Follow-up Tasks
Implementation Summary
Exported fuzzyMatchScore/createFuzzyMatchScore as the canonical per-item Fuse scorer (commandFuzzyFilter remains an alias). Replaced all computeCommandScore call sites in menu.svelte.ts, tags.svelte, PillListEditor, widgets.ts, and all-properties.svelte. Updated frontmatter test mocks. Validated with ui vitest, api/workspace svelte-check, and plugin-markdown frontmatter tests.