path: root/elm
AgeCommit message (Collapse)AuthorFilesLines
7 daysnotifications: Add subscribing for (un)applications of traitsYorhel1-2/+8
12 daysnotifications: Add subscription management UI + finalize DB migrationYorhel2-1/+94
Seems to be working so far. I'll find the actual bugs in production.
2020-10-03Tagmod: Remove title attribute of comment buttonYorhel1-1/+0
No need when it's repeated right next to the button, anyway.
2020-10-01VNEdit: Upload screenshots one-by-one to preserve id orderYorhel1-10/+25
Attempt to fix
2020-09-29TagEdit/TraitEdit: Bump "added" date on approvalYorhel1-3/+1
This functionality was also present in the old forms. (+ irrelevant cleanup in TagEdit.elm)
2020-09-29v2rw/TraitEdit: Rewrite trait edit form + cleanup bunch of old codeYorhel1-0/+209
This was the last form in the old v2 code, so this allowed me to get rid of the old form validation and generation abstractions. The form is mostly a duplicate of the tag editing form, as expected. It's really annoying to have to maintain pretty much duplicate code for tags and traits, but there are just enough differences that the complexity of sharing code or creating a new abstraction outweigh the benefits. :(
2020-09-27Report: Add option to report NSFW imageYorhel1-1/+6
Images can't be reported directly, yet, but this ought to help as well.
2020-09-27v2rw/TagEdit: Add vote wiping/merging and audit loggingYorhel1-0/+41
Only feature missing from the new form is to recursively edit the tag category, but that's rarely used and going to be a pain when we get edit histories for tags, so let's not.
2020-09-27v2rw/TagEdit: Rewrite tag edit form to elmYorhel3-1/+201
It's still missing a few mod features, will add those later.
2020-09-21Report: Fix display of edit-yourself messageYorhel1-1/+1
It was being displayed for entries users could not edit themselves but hidden for users that could...
2020-09-20Reviews: Add mod option to lock reviews for commentsYorhel1-0/+9
2020-09-14JS: Add hoverable previous/next to image viewer.xy2_1-2/+20
Adds previous/next hoverable panes, right above the image, to the text viever. These previous/next buttons have the same behavior as the current previous/next, but are easier to click than the small text, making it useful for large images, large screens, or on mobile. Change the JS behavior around the image to only delete the image instead of the entire div, so that the buttons could be positionned absolutely on top, in the same div as the image.
2020-09-03Reviews.Edit: Increase size of textareaYorhel1-1/+1
2020-09-03Reviews: Hide downvoted reviews & allow moderator overrulingYorhel1-3/+10
Seems like a better moderation tool than outright deleting reviews.
2020-09-03Reviews: increase max character counts a bit for mini-reviewsYorhel1-3/+3
2020-09-03Reviews.Edit: Add minimum length requirementYorhel1-9/+16
2020-09-01Reviews: Hide up/down vote countsYorhel1-16/+6
Experimenting a bit.
2020-08-31Reviews.Edit: Add some guidelines/rulesYorhel1-1/+10
2020-08-25UList.VNPage: Add link to review submit/edit form when votedYorhel1-3/+5
2020-08-25UList.VNPage: Use schema to normalize data + disallow undef schemaYorhel1-22/+3
Mistyping a namespaced variable results in undef, which was interpreted to mean "don't use a schema", which is rarely what you want. Throwing a hard error makes such typos a lot more visible.
2020-08-24reviews: Get rid of summary field & split mini/full reviewsYorhel1-25/+13
Much to my disappointment, people don't write proper summaries and, as such, summaries are not useful to be considered a "short review" on their own right. This necessitates splitting the reviews onto different pages.
2020-08-24reviews: Disallow voting on competing reviews + only use Elm when necessaryYorhel1-7/+2
i.e. no need to spawn Elm when the user can't vote anyway.
2020-08-16Reports: Get rid of report_type, split vndbid/num + allow reporting reviews ↵Yorhel1-20/+22
and comments rtype is not necessary, the DB identifier is sufficient. The separate type column was supposed to simplify DB lookups (but that's all consolidated in a single function anyway, so it didn't help much) and easy filtering depending on what mods have access to (but there is no such filter, and even with vndbids that should be easy enough). Converting the object ID into a vndbid + num should make it easier to correlate reports if necessary.
2020-08-16reviews: Add comment formYorhel1-0/+52
2020-08-16Discussions: Split post editing out of Discussions::Edit + support editing ↵Yorhel2-22/+116
review comments This split simplifies Discussions::Edit a little bit and allows Discussions::PostEdit to be generic enough to handle editing review comments as well.
2020-08-07reviews: Implement review deletion and audit loggingYorhel1-1/+36
2020-08-07reviews: Add up/down voting on reviewsYorhel1-0/+78
2020-08-07reviews: Add submit/edit formsYorhel1-0/+147
2020-08-07reviews: Add initial SQL schema + "review" permission flagYorhel1-0/+3
The boardmod flag will also determine the review moderation permissions.
2020-08-06Discussions: Fix emulation of location.hashYorhel1-2/+8
Setting location.hash directly has the downside of adding an entry to the browser's history, which is annoying.
2020-08-06Discussions: Don't show deletion button when creating a new threadYorhel1-1/+1
Both pointless and wrong.
2020-08-06Discussions: Make /t#.# load the correct page without redirectYorhel1-0/+2
This removes the need for the post_url() function. This is a small step towards supporting non-continuous post numbers.
2020-08-06SQL: Use vndbid for thread identifiersYorhel2-3/+3
Also drop the thread_poll_votes.tid column, as it's not really necessary. And add ON DELETE CASCADEs to threads_posts and threads_boards to simplify thread deletion. Relatively invasive change, prolly broke something.
2020-08-05Reports: Give the "Other" reason a warning message, tooYorhel1-1/+11
Still getting rather many reports for issues that do not require moderator action.
2020-08-03VNEdit: Check for release titles added as aliasYorhel1-2/+18
2020-08-03Elm: Fix focus when adding autocompleted elements with mouse clickYorhel3-7/+7
I wasn't being consistent with propagating the Cmd returned by the autocompletion module.
2020-07-26Reports: Add a "Missing information" optionYorhel1-0/+12
2020-07-25Reports: Allow reporting DB entriesYorhel1-9/+93
2020-07-25Reports: Nicer formatting of the reporting subjectYorhel1-1/+2
2020-07-23Add new reporting featureYorhel1-0/+75
So that users can bring up problems to the moderators. Only used for forum posts for now, but I intend to extend it to other parts of the site as well.
2020-07-21Add explanatory note to the edit summary fieldYorhel1-1/+4
Considering it's often misused or not well understood.
2020-07-19Producers::Edit: v2rw rewrite producer add/edit formYorhel2-1/+232
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-15UList::Export: Add initial list export functionalityYorhel3-15/+17
2020-07-13VNEdit: Fix flagging of new screenshotsYorhel2-5/+8
Two bugs: The lack of Html.Keyed caused the 'checked' value of subsequent radio buttons to not update correctly & the name of the radio buttons was the same everywhere, resulting in
2020-07-13Elm: Require newly uploaded images to be flaggedYorhel1-6/+14
By setting the 'required' paramater on the radio boxes.
2020-07-12VN::Edit: Allow screenshot editing if there are screens but no releasesYorhel1-1/+1
To allow deletion of screenshots after all releases have been removed. The cast edit function already has a similar check.
2020-07-11VN::Edit: Add screenshot resolution warning if inconsistent for same releaseYorhel1-4/+10
This way we can throw a warning even when no resolution is known for the selected release.
2020-07-10iv.js/CSS: Use flexbox to keep next/prev buttons aligned at the centerYorhel1-6/+9
2020-07-09iv.js: Fix silly JS errorYorhel1-1/+1
2020-07-09User::Edit: Remove "show_nsfw" setting from profile + deprecate NSFW flagsYorhel1-7/+2