summaryrefslogtreecommitdiff
path: root/elm/User/Edit.elm
AgeCommit message (Collapse)AuthorFilesLines
2023-06-04UserEdit rewrite part 10: delete the old Elm form \o/Yorhel1-739/+0
elm.min.js.gz shrunk by 9919 bytes. user.min.js.gz is now 9681 bytes. Not a totally fair comparison and those few bytes are completely irrelevant, but it at least shows that I'm not making things more bloated.
2023-05-11JS: Preparing for writing forms without Elm + minor CSS changesYorhel1-4/+3
2023-05-05CSS: Use <nav>/<menu> for maintabs + re-calibrate marginsYorhel1-2/+2
Previous solution relied on negative margins more than I liked. This solution is still surprisingly fiddly. This requires TUWF commit 4b0e2df89fe180bfa2f3da195a80684a46a649db
2023-05-05CSS: Use semantic tags + flexbox for global layoutYorhel1-5/+5
Hopefully without breaking anything. Switched to using flexbox for the homepage boxes instead of grid, in order to fix an overflow issue on Pale Moon. But I later fixed a similar issue with the relation graphs and history tables, so perhaps that switch wasn't necessary.
2023-04-15CSS: Use <b> as main "standout" elementYorhel1-3/+3
2023-04-15CSS: Use <strong>/<span> instead of <b> for bold/marker tagsYorhel1-2/+2
To reserve <b> for the standout styling.
2023-04-15CSS: Stop abusing <b> for grayedout, use <small> insteadYorhel1-4/+4
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-04-12User.Edit: Add note about @import statements to Custom CSS fieldYorhel1-1/+4
2023-02-21Users::Prefs: Separate highlighting from tag&trait overrides + custom color ↵Yorhel1-36/+52
support
2023-02-01Refactor: langpref -> titleprefs + use more strict schemaYorhel1-28/+28
This is in preparation for getting rid of the CREATE TEMPORARY VIEW commands in order to switch title preferences: https://dev.yorhel.nl/doc/vndbtitles The JSON storage approach ended up being quite as mess, too. Also "fixed" it so that selecting Chinese will automatically also select the scripts, if there's enough slots.
2023-01-17API2: Add listwrite permission & list management APIYorhel1-2/+8
2022-12-13Add timezone option to user preferencesYorhel1-1/+24
2022-12-03Switch to the HIBP password databaseYorhel1-0/+6
Currently has 851 million password hashes, taking about 8G of space with the current approach. It's simple and fast, so should be worth it. inb4 complains about "why can't I use my password anymore!?"
2022-11-29API2: Implement token-based authentication + GET /authinfoYorhel1-5/+103
+ update filters and APIs to respect the 'listread' permission.
2022-08-30Also add trait overridesYorhel1-12/+58
2022-08-30Rename users_prefs_tags.tag -> tid, add update scriptYorhel1-3/+3
2022-08-29User.Edit: Don't reload form on saveYorhel1-11/+14
2022-08-29Add tag spoiler & highlight preferencesYorhel1-1/+49
2022-08-25Staff editionsYorhel1-0/+14
As discussed in https://vndb.org/t13027 and from https://vndb.org/t6138.327 onwards.
2022-06-19Move & streamline VN release expanding settingsYorhel1-0/+14
Problems with the old implementation were that the setting wasn't an intentional user action, so there were a LOT of preference writes that were reverted a minute or so later. Wasting both server and visitor time. For regular visitors, the localstorage-based approach also caused a reflow if their preferences didn't match the default. Downside of the new implementation is that regular visitors can't change their preference at all anymore, this now requires an account. :/
2022-06-18Users/prefs: Move prodrelexpand setting from cookie to user settingsYorhel1-0/+4
For better consistency with other settings. This means it is not remembered for regular visitors anymore, and there's now an unused cookie in people's browser that should eventually be deleted.
2022-06-15User.Edit: Add live preview when changing skin selectionYorhel1-2/+7
2022-06-15User.Edit: Add tabs to separate account settings and display preferencesYorhel1-45/+72
Currently a bit of a regression for users who want to cycle through the skins, as you'll get directed back to the first tab upon saving. Let's see if I can improve that.
2022-04-01Add user traits featureYorhel1-0/+38
2022-03-31UserEdit: fix inserting multiple languages when "original language" is ↵Yorhel1-1/+1
selected multiple times
2022-02-22LangPref: Add "only if original title" option + expand fallback list to 5Yorhel1-5/+6
+ don't serialize boolean fields when they're false.
2022-02-12Update edit forms to warn/hide about the correct Chinese language optionsYorhel1-1/+1
Decided to stick with the generic "Chinese" option for staff and producers, while forcing a selection of either Simplified or Traditional for VNs and releases. This implementation is a bit ugly, the information should be generalized into VNDB::Types insteasd.
2022-02-12Add Traditional & Simplified Chinese languagesYorhel1-1/+1
The old 'Chinese' option should not be available for selection in new entries, but I'll have to fix that later.
2022-02-11User.Edit: Re-add "romanized" checkbox to original language preferenceYorhel1-1/+1
2022-02-11User.Edit: Only enable "romanized" option for languages in non-latin scriptsYorhel1-2/+5
2022-02-10Add title language user preferenceYorhel1-0/+51
2021-10-28Allow and log username changesYorhel1-5/+20
2021-07-30Add early test implementation of VN length votingYorhel1-0/+5
There's no way to list or aggregate the votes yet, and I'm not fully sure the data model is what it should be. Hence testing.
2021-07-28Users: remove "imgmod" permission flag, use "dbmod" for thatYorhel1-6/+1
2021-06-28User::Edit: Add admin option to more quickly change permsYorhel1-0/+29
2021-03-01SQL: vndbid data type conversion for most DB entriesYorhel1-2/+2
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.
2020-11-13Elm/forms: Fix reporting of validation errors for fields on hidden tabsYorhel1-1/+1
https://vndb.org/t950.830
2020-08-07reviews: Add initial SQL schema + "review" permission flagYorhel1-0/+3
The boardmod flag will also determine the review moderation permissions.
2020-07-09User::Edit: Remove "show_nsfw" setting from profile + deprecate NSFW flagsYorhel1-7/+2
2020-05-17Add option to hide all images by defaultYorhel1-2/+4
2020-05-11imgflag: Add sexual/violence user preferences + show/hide character imagesYorhel1-2/+21
2020-04-27User.Edit: Fix DOM update bug when opening password change formYorhel1-9/+12
Ugly fix for an ugly issue.
2020-04-26Ignore existing tag votes by users without perm_tagYorhel1-1/+1
Same idea as 00fbcdf96432efad85abdbc7392d493409a4c253. Not sure why it hadn't occurred to me before, seems like such an obvious thing to do.
2020-04-26User::Edit: Restructure form to allow non-usermods to edit some permissionsYorhel1-103/+131
dbmods can now change other users' "edit" permission, tagmods "tag", etc. As I hinted to from be5ee198129301d84912380ed8d1636ad32f68b3 This required the user edit form to be restructured a bit so only people with the proper permissions get to see the proper form sections.
2020-04-26imgflag: Add separate "imgmod" permission flagYorhel1-0/+3
2020-04-25imgflag: Ignore votes from users who do not have the imgvote permissionYorhel1-1/+1
Bug (kind of): deleting a user with !perm_imgvote will suddenly cause the votes to count again. Need to take care to delete the votes instead in that case.
2020-04-15SQL: Split "perm" column into multiple booleansYorhel1-5/+25
This simplifies several actions and makes permission checks more obvious. This is also yack shaving for another feature I've been planning to add: boardmods should be able to set other users' "board" permission, tagmods for tags, etc. So that partial user bans don't need the full "usermod" permission.
2020-01-05refactor: Combine json_api() & elm_form() + generate Elm function to msg API ↵Yorhel1-1/+1
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-20ulist: Remove deprecated hide_list user preferenceYorhel1-8/+0
Old VNDB::* code still uses that preference in a few places, that needs to be fixed.
2019-12-09Add SubscribeStar buttonYorhel1-1/+1