Commit graph

505 commits

Author SHA1 Message Date
MareStare
3877be15c5 Refactor local autocompleter 2025-03-21 04:01:28 +00:00
liamwhite
8af67ab63a
Merge pull request #468 from MareStare/fix/abort-server-side-suggestions-when-popup-is-hidden
Abort the server-side completions when the autocomplete popup needs to be hidden
2025-03-19 08:13:28 -04:00
liamwhite
fa70d20943
Merge pull request #467 from MareStare/fix/burger-button-eating-click
Get rid of `stopPropagation` on `click` events to make autocomplete popup disappear
2025-03-19 08:13:08 -04:00
MareStare
11c9534dbc Fix grammar 2025-03-19 01:59:09 +00:00
MareStare
57781a1aa0 Add integration tests for server-side completions cancellation with Escape 2025-03-19 01:57:00 +00:00
MareStare
96d32d863d Add an integration test for aborting the completions on Escape 2025-03-19 01:37:52 +00:00
MareStare
dd7ee44e36 Abort the server-side completions when the autocomplete popup needs to be hidden 2025-03-19 01:20:31 +00:00
MareStare
ae17da5331 Merge ifs 2025-03-19 00:43:44 +00:00
MareStare
5d908b5142 Get rid of stopPropagation on click events to make autocomplete popup disappear 2025-03-19 00:41:08 +00:00
MareStare
e2c491088e Add assert as an function that "asserts" to eslint config 2025-03-18 23:11:13 +00:00
MareStare
79c611a6f9 Add a test for empty behavior 2025-03-18 23:09:37 +00:00
MareStare
9bdb3a334f Hide the popup entirely if there are no items to show 2025-03-18 23:03:52 +00:00
MareStare
b88131a439 Add DejaVu Sans Mono as a font that correctly renders an 2025-03-18 22:36:57 +00:00
MareStare
4f7a61382f Fix merge conflict 2025-03-18 12:57:25 +00:00
MareStare
719e883789 Remove empty line. Thanks stylelint for your care 2025-03-18 12:56:14 +00:00
MareStare
6da923f886 Fix light-yellow 2025-03-18 12:56:14 +00:00
MareStare
25989cc626 Remove "narrow no-break space" ignores 2025-03-18 12:56:12 +00:00
MareStare
2fe0243b6d Update test snapshots 2025-03-18 12:55:34 +00:00
MareStare
e30475d034 Hotfix the color styling and fonts for autocompletions 2025-03-18 12:55:34 +00:00
MareStare
ba02e3f1c9 Skip empty parts 2025-03-17 23:24:05 +00:00
MareStare
a6ae4d9422 Fix invalid highlighting of the prefix match for namespaced tags in autocomplete 2025-03-17 23:15:20 +00:00
liamwhite
25973857c5
Merge pull request #459 from MareStare/feat/remove-some-test-deps
Remove `chai`, `@types/chai-dom`, `jest-environment-jsdom`, `jsdom` from package.json
2025-03-16 19:11:41 -04:00
MareStare
4907e9dfec Remove chai, @types/chai-dom, jest-environment-jsdom, jsdom from package.json 2025-03-16 22:51:12 +00:00
MareStare
b671d0dc3d Remove redundant relative color leftover from experiments 2025-03-15 03:57:08 +00:00
MareStare
1e0def08db Fix and improve styling for different themes 2025-03-15 00:40:26 +00:00
MareStare
b51e2bc205 Remove temporary ignores for coverage 2025-03-14 23:32:05 +00:00
MareStare
caa2688c73 [Missing change] Adapt local autocompleter to the new API 2025-03-14 23:30:54 +00:00
MareStare
76f434b039 Revert back the event delegation suggestion because in this case we search the closest descendant, not the closest ancestor. 2025-03-14 23:19:41 +00:00
MareStare
4f50d0de3e Add integration tests for various parts of the autocompletion business logic, including history suggestions 2025-03-14 23:01:57 +00:00
MareStare
696a2fd74a Update the tagsinput.ts with the new 'autocomplete' event shape 2025-03-14 23:01:57 +00:00
MareStare
6b9b9d212f Update the format of LexResult to a more readable one (array to object conversion) 2025-03-14 23:01:57 +00:00
MareStare
7aa5562a21 Add the main Autocomplete ui binding glue 2025-03-14 23:01:57 +00:00
MareStare
6b615558af Delete the old autocomplete impl 2025-03-14 23:01:57 +00:00
MareStare
007a3e629a Add tests for hideIf 2025-03-14 23:01:36 +00:00
MareStare
c9f3677bd4 Move hideIf to utils and refactor a bit 2025-03-14 23:01:36 +00:00
MareStare
671e9deda2 Add user-facing autocomplete settings 2025-03-14 23:01:36 +00:00
MareStare
84b6ef74df Use Intl.NumberFormat with French style instead of a manual impl 2025-03-14 23:00:35 +00:00
MareStare
84ecf1ea4e Remove redundant comment from suggestions.ts 2025-03-14 23:00:35 +00:00
MareStare
7cf02793e1 Move some color definitions for autocomplete into dark/light.css 2025-03-14 23:00:35 +00:00
MareStare
cae4df68bc Remove the no-longer needed mouseMoveThenOver utility 2025-03-14 23:00:35 +00:00
MareStare
182bb0ef24 Indent comment 2025-03-14 23:00:35 +00:00
MareStare
b119660a54 Add new styles for the suggestions popup to CSS 2025-03-14 23:00:35 +00:00
MareStare
b9440e79cf Update tests for the suggestions popup 2025-03-14 23:00:35 +00:00
MareStare
4e43b59b99 Redesign the autocomplete suggestions popup 2025-03-14 23:00:35 +00:00
MareStare
6948aa5d1c Add AutocompleteClient wrapper over the HTTP API 2025-03-14 23:00:01 +00:00
MareStare
3c2a3e956a Use existing event delegation with submit subscription for history tracking 2025-03-14 22:59:33 +00:00
MareStare
c15e082b97 Add input history listener binding with UI 2025-03-14 22:59:33 +00:00
MareStare
e63899b91e Add AutocomplableInput model for UI binding 2025-03-14 22:58:32 +00:00
MareStare
aa2e5dd3af Simplify the listSuggestions with Array combinators 2025-03-14 22:57:31 +00:00
MareStare
d49b252eb1 Remove humor 2025-03-14 22:57:31 +00:00