Skip to content

feat(toHighlight): add new utility#222

Merged
johnleider merged 11 commits into
masterfrom
feat/to-highlight
May 19, 2026
Merged

feat(toHighlight): add new utility#222
johnleider merged 11 commits into
masterfrom
feat/to-highlight

Conversation

@J-Sek

@J-Sek J-Sek commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

new utility meant to replace VHighlight internal logic

Early draft, I have barely looked at the code

@J-Sek J-Sek self-assigned this Apr 29, 2026
@pkg-pr-new

pkg-pr-new Bot commented Apr 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

commit: 34b93f2

johnleider and others added 7 commits April 29, 2026 13:34
mergeRanges now sorts, merges, and drops invalid (zero-width or inverted)
ranges before chunking, applied to both the query and caller-supplied
matches paths so unsorted or overlapping input produces correct output.
Adds per-symbol @example JSDoc, the tree-shaking side-effects marker,
Architecture mermaid + Reactivity section in the docs page, README sync,
and tests covering unsorted, overlapping, zero-width, inverted, and
out-of-bounds ranges plus reactive query/matches and getter inputs.
ref('foo') for a string primitive violates PHILOSOPHY §4.1 — shallowRef
is the right primitive for booleans, numbers, strings. Examples are
the de facto template for downstream consumers, so the rule has to hold
there too. Codifies the convention in .claude/rules/docs.md so future
example authors see it without needing to read PHILOSOPHY first.
The shallowRef-in-examples rule belongs on master as a project-wide
docs convention, not bundled with the toHighlight feature work.
Re-landing on master separately.
- TS aligmnent for VHighlight in Vuetify
- `toLowerCase` » `toLocaleLowerCase`
@J-Sek

J-Sek commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

the change in live-search.vue example is totally optional

@J-Sek J-Sek marked this pull request as ready for review May 14, 2026 15:41
Replace three single-file examples with one real-world Inbox-search demo
that exercises all three input shapes through v0 components: Input.Root
search drives a single-term query, Toggle.Root chips extend it to a
string[] array, and a Switch.Root mode swaps the body to caller-supplied
MatchRange[] from a mock backend. Rename helper functions to single
words, switch docs category to Transformer, rename Questions to FAQ,
fix Mermaid labels.
@johnleider johnleider added this to the v0.2.x milestone May 19, 2026
@johnleider johnleider merged commit f7d5fd7 into master May 19, 2026
16 of 17 checks passed
@johnleider johnleider deleted the feat/to-highlight branch May 19, 2026 14:06
@johnleider johnleider modified the milestones: v0.2.x, v1.0.0 Jun 1, 2026
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.

2 participants