Skip to content

refactor!: drop mark.js - #3253

Merged
JammingBen merged 3 commits into
mainfrom
refactor/drop-mark-js
Aug 31, 2026
Merged

refactor!: drop mark.js#3253
JammingBen merged 3 commits into
mainfrom
refactor/drop-mark-js

Conversation

@JammingBen

@JammingBen JammingBen commented Aug 28, 2026

Copy link
Copy Markdown
Member

Drop mark.js from the codebase and highlight via the new FilterHighlight component. This has several advantages:

  • Hardened highlighting; the old implementation had a few quirks where highlighting would not work reliably (e.g. when entering a filter term that yields results, then adding and removing random letters).
  • Less boilerplate when using marks in components.
  • Less external dependencies.

Breaking for developers

  • mark.js has been removed: use FilterHighlight.vue from design-system instead.
  • useFilterHighlight has been removed: use FilterHighlight.vue from design-system instead.

fixes #2966

Drop mark.js from the codebase and highlight via the new FilterHighlight
component. This has several advantages:

  - Hardened highlighting; the old implementation had a few quirks where
    highlighting would not work reliably (e.g. when entering a filter term
    that yields results, then adding and removing random letters).
  - Less boilerplate when using marks in components.
  - Less external dependencies.
@JammingBen
JammingBen force-pushed the refactor/drop-mark-js branch from ae4bc05 to 04a12b2 Compare August 28, 2026 07:37
@JammingBen
JammingBen marked this pull request as ready for review August 28, 2026 08:06
@AlexAndBear

AlexAndBear commented Aug 28, 2026

Copy link
Copy Markdown
Member

LGTM, we could possibly move the FilterHighlight component to the design-system, no ? 馃

@JammingBen
JammingBen merged commit 075c672 into main Aug 31, 2026
31 checks passed
@JammingBen
JammingBen deleted the refactor/drop-mark-js branch August 31, 2026 06:48
openclouders pushed a commit that referenced this pull request Aug 31, 2026
@openclouders openclouders mentioned this pull request Aug 31, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace mark.js with render-based filter highlighting

2 participants