Commit graph

2479 commits

Author SHA1 Message Date
liamwhite
e72adf3d34
Merge pull request #457 from tantabus-oneiros/master
Add CivitAI post scraper
2025-03-16 14:20:34 -04:00
liamwhite
28cd6ad987
Merge pull request #458 from MareStare/feat/autocomplete-history-full
Full autocomplete history feature
2025-03-16 14:20:21 -04:00
MareStare
b671d0dc3d Remove redundant relative color leftover from experiments 2025-03-15 03:57:08 +00:00
tantabus-oneiros
91b3baee34 Update civitai.ex
If mix is lying I will cry
2025-03-15 03:05:29 +01: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
tantabus-oneiros
66020ce8ac Update civitai.ex
Clean empty lines
2025-03-15 00:15:13 +01: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
b8b3ed5982 Update the slime HTML templates with new data attributes 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
MareStare
e884da9b62 Add InputHistory high level API for history suggestions 2025-03-14 22:57:31 +00:00
MareStare
1dac0ef3f2 Add an empty line after the import statement 2025-03-14 22:56:31 +00:00
MareStare
99e597d94d Add autocomplete history store 2025-03-14 22:56:31 +00:00
MareStare
a77b8dd81c Remove the extraneous require 2025-03-14 22:55:40 +00:00
MareStare
2ae5832ae7 Add search history settings to cookies handling on backend 2025-03-14 22:55:40 +00:00
tantabus-oneiros
1a90f8cdc4 Add CivitAI post scraper
Added a scraper for CivitAI posts. Only supports post URLs (not single images) due to API limitations. API also does not provide the "description" visible on the site itself. Meta information like model, prompt, seed, etc. not used as we do not (yet) has a way to store or show this neatly.
2025-03-14 21:26:25 +01:00
Liam
088b958718 Fix deprecation warning 2025-03-12 15:11:03 -04:00
Liam
eb525cc341 Req backend is now upstreamed 2025-03-12 12:15:01 -04:00
Liam
8a864bd176 Dependency update 2025-03-12 12:12:13 -04:00
liamwhite
b96679ef6b
Merge pull request #444 from MareStare/feat/send-events-about-store-update
[Part 7] Emit `'storage-update'` events on local storage update
2025-03-11 20:33:03 -04:00
liamwhite
6cb3783914
Merge pull request #440 from MareStare/feat/frontend-http-client-utility
[Part 5] Add HttpClient utility for frontend
2025-03-11 20:29:46 -04:00
MareStare
5525f46d1e Ignore non-100% coverage for store.ts until 453 PR is merged 2025-03-12 00:28:53 +00:00
MareStare
39b2a3a1c0 Ignore non-100% coverage for HttpClient until 453 PR is merged 2025-03-12 00:25:52 +00:00
MareStare
c6bc3b3798 Add tests for the HttpClient 2025-03-12 00:16:04 +00:00
MareStare
a3007a3a81 Add HttpClient utility for frontend 2025-03-12 00:16:04 +00:00
liamwhite
bd53311e4b
Merge pull request #443 from MareStare/feat/add-debounced-cache-utility
[Part 6] Add a DebouncedCache utility for frontend
2025-03-11 20:14:58 -04:00
liamwhite
35eee293c0
Merge pull request #439 from MareStare/feat/frontend-retry-utility
[Part 4] Add a retry utility for frontend
2025-03-11 20:14:30 -04:00
MareStare
7fa5563054 Emit 'storage-update' events on local storage update 2025-03-12 00:12:09 +00:00