57 Commits

Author SHA1 Message Date
InfiniteStash
c69ab88efb Deprecate fuzzy date types (#378) 2022-05-20 11:21:12 +02:00
InfiniteStash
f3212e3a96 Deprecate measurements type (#381) 2022-05-20 11:06:42 +02:00
InfiniteStash
6835007eeb Add support for updating entities from drafts (#368) 2022-05-15 21:28:06 +02:00
InfiniteStash
d4850d86ca Add findScenesBySceneFingerprints query that matches results to query (#357) 2022-05-10 18:51:39 +02:00
InfiniteStash
688a52abfd Add ability to amend edits (#365) 2022-05-10 17:47:46 +02:00
peolic
e9f3ef51fa Partial scene date (#314) 2022-04-14 23:12:47 +02:00
InfiniteStash
2eb35f8b2e Update go and libraries (#348) 2022-04-10 12:13:53 +02:00
peolic
1173e7e5f8 Fix version link & default scene sort (#321)
* Fix version link

* Fix default value for `SceneQueryInput.sort`
2022-02-18 20:59:48 +01:00
InfiniteStash
b5f0b56519 Add scene code field (#295) 2022-02-06 21:40:23 +01:00
InfiniteStash
d38241ba37 Refactor graphql query inputs (#292) 2022-02-06 21:28:50 +01:00
InfiniteStash
f613b8f3c7 Allow null images in edits to account for deleted images (#285) 2022-02-06 19:52:48 +01:00
peolic
60f4974c2f Various fixes (#264)
* Set UpdatedAt when edit is applied

* Add missing timestamp fields

* Limit scene images to 1

* Fix missing draft ID for draft-created performers
2022-01-24 23:57:31 +01:00
InfiniteStash
d594de9602 Add scene/performer draft submissions (#240) 2022-01-18 23:26:31 +01:00
InfiniteStash
c6ec6a80ad Favorite studios and performers (#242) 2022-01-18 15:15:45 +01:00
peolic
58ec5f8cd2 Fix Markdown footnotes (#244) 2022-01-18 12:26:06 +01:00
peolic
6573988d0b Fix edit expiration (#217)
* Add `Edit.IsDestructive()`

* Expose `destructive` field and fix UI

* Scenes filter style

* Show edit vote status to edit owner

* Add direction toggle to scene sort select

* Dedupe current vote and adjust style

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2021-12-18 13:08:56 +01:00
InfiniteStash
0e937cba10 Add customizable URL targets (#140)
* URL Sites WIP

* Fix site edit button positions

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Adjust studioForm width

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Remove superfluous admin check

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Remove superfluous admin check

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Remove superfluous admin check

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Use directive for mutation permissions check

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Fix performerForm link tab width

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Fix sceneForm link tab width

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Fix siteForm class/width

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Add `noopener` rel to site links

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Fix urlInput add button disable logic

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Review feedback

* Make generate

* Remove unnecessary code

* Refactor UrlInput to properly disable/enable add button

* Fix link editing error

* Tweak URLList rendering and add home URL to studio page

* Add target="_blank" to studio home link

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>
2021-12-18 11:22:09 +01:00
peolic
8314cacb7e Refactor edit diffing (#218)
* Update libs

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Use `URLFragment` and `ImageFragment`

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Remove bootstrap-4 classes

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* import order in api.integration_test

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Refactor edit diffing

- StudioSelect: change value shape
- StudioForm:
  - add tabs
  - add preview of changes on confirm tab
  - rename `name` field
  - add image upload warning
- PerformerForm:
  - fix auto breast type change on gender change
  - refactor preview of changes

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Add submission errors to edit pages

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Prevent empty tag edits

* Replace errors in edit manager

* Specify source/target where applicable

* Update vite react plugin

This seemed to fix Fast Refresh

* Add TagMerge submission error

not the best location, but better than nothing

* Split form schemas into separate files

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2021-12-09 19:59:35 +01:00
InfiniteStash
2b9f69df30 Add gql directives for modify/vote/edit/read (#200) 2021-12-06 22:49:49 +01:00
peolic
432f742efb Fix scenes fingerprints criterion (#216) 2021-12-06 20:16:33 +01:00
peolic
39518ac0b0 TagEdit category resolver (#202) 2021-11-30 21:41:29 +01:00
InfiniteStash
2a10c80a85 Add UUID graphql scalar (#199) 2021-11-30 21:23:03 +01:00
InfiniteStash
a4f19957c1 Add failing of edits with edit notes (#193) 2021-11-28 23:05:32 +01:00
InfiniteStash
9bc9d7386e Limit vote user details to users with vote role (#158) 2021-11-26 09:38:59 +01:00
InfiniteStash
913e500c79 User permission remediation (#185) 2021-11-26 09:09:12 +01:00
InfiniteStash
cc1839a272 Add version page (#190) 2021-11-26 08:53:02 +01:00
InfiniteStash
2f7f28e3c8 Various UI and permissions fixes (#159) 2021-11-02 22:54:08 +01:00
WithoutPants
913c10bbe3 Refactor user fingerprints (#115) 2021-10-31 08:29:47 +01:00
InfiniteStash
66198f8314 Add voting on edits (#129) 2021-10-29 21:17:05 +02:00
InfiniteStash
de507c86ed Cache user locally to optimize frontend bootstrapping (#143) 2021-10-26 08:52:33 +02:00
WithoutPants
7f6a0f63a0 Scene edit (#128)
* Initial changes

* Add integration tests

* Bug fixes

* Bug fixes

* Bug fixes

* UI support

* Add edits tab to scene view

* Add edits field to scene type

* Refactor scene form validation and changelog

* Set empty strings to null when submitting an edit

* Omit empty fields in scene edit

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2021-09-23 22:42:14 +02:00
WithoutPants
e4abf2fb92 Studio edits (#127)
* Refactor edit code
* Remove child studio mutations
* Studio edit processing
* Refactor/reduce boilerplate
* Add integration test
* Add studio to edit query
* Make Studio in list mandatory
* Exclude delete studios from query
* Add UI pages
* Add missing build directives
* Fix application of image/url studio edits
* Add diff of studio urls and edit target header link
* Fix validate error message
* Fix destroy edit target link

Co-authored-by: Infinite <infinitekittens@protonmail.com>
2021-09-02 09:23:18 +10:00
InfiniteStash
4b623915d0 Add studio filter to performer scene list (#91) 2021-05-28 15:11:17 +02:00
peolic
c1dca001e3 Fix missing GQL introspection extension (#87) 2021-05-24 17:41:43 +02:00
InfiniteStash
e90265a5c9 Add mergedIDs field to performers to track redirected ids (#85) 2021-05-24 00:11:22 +02:00
InfiniteStash
ad4be87e89 Add submissions count/time tracking to fingerprints (#72) 2021-05-21 16:22:00 +02:00
InfiniteStash
2b2231d549 Add distance matching for phashes (#81) 2021-05-21 16:04:41 +02:00
InfiniteStash
f532ade74a Make edit users nullable (#76) 2021-05-19 07:22:06 +02:00
peolic
41cb854082 Add basic sorting functionality to the edits page (#61) 2021-05-09 14:01:19 +02:00
InfiniteStash
5efb00c542 Fix roundup (#66)
* Prevent submission of fingerprints with 0s duration

* Escape email address in activation email link

* Sort edit comments by timestamp

* Use local timezone for edit/editnote timestamps

* Order user list ascending

* Disable submit buttons while edits are submitting.

* Fix performer/scene update triggers to concatenate and update correctly

* Add scene duration to scene page and search card

* Allow unsetting studio parent id

* Fix performer ordering by scene_count

* Add performer order by created_at

* Fix updating of column names with reserved names

* Allow users to cancel own edits

* Fix edit diff of partial performer birthdates

* Fix birthdate showing up in edit diffs when being removed

* Add career start ordering for performers

* Support searching by tag name with uuid

* Change edit diff checkboxes to icons for visibility

* Add markdown to edit comments

* Add scene filtering by fingerprint

* Switch markdown library to react-markdown

* Prevent generation of image uuids that start with ad

* Fix timestamp timezone

* Restore #60

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>

* Fix breasttype issues for male performers

* Fix breasttype issue for performers with null breasttype

* Add shortcut for changing performers in scenes

* Linting

* Coalesce breast type to Unknown rather than NA

* Fix breasttype diff logic

* Fix text truncation of performer name in scene form

Co-authored-by: peolic <66393006+peolic@users.noreply.github.com>
2021-05-09 13:38:38 +02:00
InfiniteStash
a76ab54571 Add support for PHash (#53) 2021-03-29 08:33:28 +02:00
InfiniteStash
3de242b3a3 Add performer edit options to control performance aliases (#50) 2021-03-09 21:38:45 +01:00
InfiniteStash
952fced6fa UI update (#45) 2021-02-24 18:38:27 +01:00
InfiniteStash
72474a4b44 Add Tag Categories (#28) 2021-01-29 22:27:59 +01:00
InfiniteStash
c8823957ad Add performer editing (#35) 2021-01-29 18:57:13 +01:00
InfiniteStash
19572a4f89 Add s3 image storage (#39)
* Make width/height/checksum non-nullable
* Add s3 image backend
* Change local to file
* Update golang version in travis from 1.11 => 1.13
2021-01-15 14:45:51 +11:00
WithoutPants
ef73f2ee8b Image local storage and editing (#33) 2021-01-12 18:31:52 +01:00
WithoutPants
5102bd8073 User registration (#31)
* Add configuration keys
* Move user stuff to separate package
* Add grant/repeal token implementation
* Invite key generation
* Initial new user implementation
* Send activation email
* Add new user activation implementation
* Allow resending activation email
* Return activation key if verification not required
* Implement reset password
* Add generate-ui make target
* Invite token and code management
* Restore original generated ts files
* Don't format generated files
* Add register page
* Add activate new user page
* Add reset password UI
* Add config documentation
2020-11-12 10:48:56 +11:00
InfiniteStash
3098ddece7 Add OSHASH algorithm type (#26) 2020-08-22 21:12:23 +10:00
InfiniteStash
9f100e4ebc Add batch fingerprint query endpoint (#23)
* Add batch fingerprint query endpoint
* Make sure duplicate scenes aren't returned.
2020-08-20 15:39:30 +10:00