summaryrefslogtreecommitdiff
path: root/elm/Lib/Autocomplete.elm
AgeCommit message (Collapse)AuthorFilesLines
2023-10-14DRM: Initial implementationYorhel1-0/+15
Unfinished, primarily for testing. https://vndb.org/t20399.36
2023-04-15CSS: Stop abusing <b> for grayedout, use <small> insteadYorhel1-16/+16
Which is also kind of an abuse, but at least the semantics are much closer. (Next up: the standout class. Slowly working towards a "font: inherit" and "color: inherit" reset, which'll remove the need for a bunch of ugly workarounds)
2023-03-24Exclude unnecessary hidden DB entries from search cacheYorhel1-1/+1
It was possible to search for deleted producers, but I didn't really see the value in that. Checking for deleted VNs is still important, likewise for tags & traits. This reduces the size of the cache a bit, but more importantly also improves accuracy of the search result counts for other DB entries.
2023-03-09TitlePrefs: Also apply prefs to character namesYorhel1-2/+2
2023-02-20Also apply title preferences to staff namesYorhel1-2/+2
2022-07-30Add duplicate entry check when creating new staff entryYorhel1-1/+1
2022-07-29Display staff original name and primary language flag in autocompleteYorhel1-2/+5
2021-03-23Traits: Convert to vndbids + add edit historyYorhel1-14/+4
Much the same as the previous conversion of tags.
2021-03-11Tags: Convert to vndbids + add edit historiesYorhel1-10/+20
Another commit with changes all across the tree. But at least we have a tangible improvement now: edit histories for tags.
2021-03-01SQL: vndbid data type conversion for most DB entriesYorhel1-9/+9
I had wanted to split this up into multiple commits and roll out in stages, but couldn't really find a natural way to do so. There are several places that take a generic identifier and expect it to work the same for all entries they support, so changing one entry at a time wasn't going to be any easier. Only the tags & traits haven't been updated yet, I'll convert those later. While this is a major change and affects a lot of code, the individual changes are all pretty simple. I'm surprised how much code did not have to be updated at all. No doubt I've missed a few places, though, so this commit will almost certainly break something.
2021-01-03AdvSearch: Only autocomplete referenced animeYorhel1-3/+3
Fixes https://vndb.org/t14995.53 point 1
2020-11-28Releases::Edit: Use lazy-loaded autocompletion for resolutions and enginesYorhel1-0/+15
Seems more efficient - no need to fetch and transfer those lists when they won't be needed in the majority of cases.
2020-11-28AdvSearch: Add resolution autocompleteYorhel1-7/+34
Using a lazily loaded static list
2020-11-28AdvSearch: Autofocus autocompletion field on opening dropdownYorhel1-9/+10
2020-11-21elm/Autocomplete: Wrap search input in its own formYorhel1-1/+1
This prevents the input from being counted as part of the parent form element, which in turn prevents pointless "advsearch_" parameters from being included in the URL when submitting the advanced search form while an autompletion input is still open.
2020-10-28Fix Autocomplete dropdown stylingYorhel1-1/+1
Broken in 960946ac90a8da32953a4a21128d993f2049f8d1 https://vndb.org/t2520.506
2020-07-19Producers::Edit: v2rw rewrite producer add/edit formYorhel1-1/+1
The copy-pasting here is ridiculous. But at the same time, that did allow me to quickly rewrite the form in a single commit. Here's hoping I didn't introduce too many copy-paste errors.
2020-07-08VN::Edit: Support adding new VNsYorhel1-1/+1
2020-07-07VN::Edit: Add staff editingYorhel1-0/+15
2020-06-29VN::Edit: Add length/wikidata/renai/anime fieldsYorhel1-0/+15
Completing the "General info" tab. This makes use of the new anime titles import for validation and autocomplete. It does have a bug, though, as it also autocompletes deleted AniDB entries that happen to have been linked to old VN revisions. Need to find a way to mark those for exclusion.
2020-05-14Chars::Edit: Add traits editingYorhel1-8/+28
2020-05-12Chars::Edit: Add instance editingYorhel1-0/+19
2020-03-14Lib.Autocomplete: Disable browser-based autocompletionYorhel1-1/+2
https://vndb.org/t950.697
2020-02-28v2rw/RelEdit: Add producers relation editingYorhel1-0/+15
Lots of copy-pasting going on here. Meh. Also added a couple of overdue server-side validations.
2020-02-28v2rw/RelEdit: Add visual novel relation editingYorhel1-0/+15
And a few minor styling fixes.
2020-02-23v2rw/RelEdit: Instant autocompletion for the engine fieldYorhel1-31/+27
So much more convenient. \o/
2020-02-23v2rw/RelEdit: Add engine field with autocompletionYorhel1-9/+25
2020-02-13Lib.Autocomplete: Don't try to autocomplete whitespaceYorhel1-1/+1
2020-01-28v2rw: Convert the VN tagmod interfaceYorhel1-0/+22
This also changes the voting interface a little bit: - Spoiler options are a bit more concise - Mouse-over a button indicates what it does - The -1 and -2 options are not available anymore - Downvoted tags are hidden by default - Moderators can now vote-and-overrule in a single go
2020-01-05refactor: Combine json_api() & elm_form() + generate Elm function to msg API ↵Yorhel1-5/+5
endpoint The new elm_api() function now creates an API endpoint (like json_api()) and generates a corresponding Elm module to interact with that API (like elm_form()). The API endpoint URL is now derived from the name of the Elm module, so there's no need to think of a separate URL and less prone to making typos when using that URL from Elm. Reduces the boilerplace a bit as well.
2019-12-12v2rw: Discussion board editing & thread creationYorhel1-0/+212
Now with BBCode preview, interactive board search, client-side error reporting and lots of new bugs. This took me far too long, turns out it wasn't such a trivial rewrite.