Commit graph

31 commits

Author SHA1 Message Date
Alex Cabal
b7b63a4be5 Refactor functions out of Library 2024-11-10 23:05:31 -06:00
Alex Cabal
acb30b897c Add PropertyFromHttp trait and update codebase to use new pattern 2024-11-10 22:23:43 -06:00
Alex Cabal
f97539f399 Redirect an artwork if it's found under an artist's alternate name. 2024-11-03 15:15:07 -06:00
Alex Cabal
eec79712fc Use a NOW constant instead of new DateTimeImmutable objects, and tweak how some donation drive dates work 2024-10-15 22:21:12 -05:00
Alex Cabal
acb6b2949f Use static class names instead of strings when getting objects from the DB 2024-05-13 14:49:28 -05:00
Alex Cabal
703e1a7a03 Continue improving type hints 2024-05-10 23:38:57 -05:00
Alex Cabal
c4c8e7353f Enable strict exception type hint checking in PHPStan and add exception type hints 2024-05-10 20:47:36 -05:00
Alex Cabal
8cc661015c Add enum for view type and fix some type hints 2024-05-08 11:22:28 -05:00
Alex Cabal
a0dc70762d Fix types 2024-05-04 15:37:02 -05:00
Alex Cabal
41dd9db4aa Change Accessor from class to trait 2024-05-04 13:07:03 -05:00
Alex Cabal
50efeb05d1 Style tweaks for getters and add more type hinting 2024-04-30 22:45:20 -05:00
Alex Cabal
7eaa400ae3 Type tweaks for exceptions and some validation 2024-04-25 20:40:49 -05:00
Alex Cabal
5b3f8f7b77 Add support for filling backed enum types in the DB ORM layer, and cleanup some formatting issues 2024-04-25 11:57:02 -05:00
Alex Cabal
e55fecaaa2 Switch from DateTime to DateTimeImmutable across codebase 2024-04-13 14:05:14 -05:00
Alex Cabal
350f65532f Rename PropertiesBase to more accurate Accessor 2024-02-24 13:58:24 -06:00
Mike Colagrosso
e08dfab9da Set the death year to null for the Anonymous artist 2024-01-26 10:14:22 -06:00
Mike Colagrosso
cad2f5f730 List artwork by artist via /artworks/<artist-name> 2024-01-23 13:46:12 -06:00
Alex Cabal
ca3fc6dbfd Refactor HttpInput::Str and rename some exceptions for consistency 2024-01-18 11:21:05 -06:00
Alex Cabal
2b5f4f55a2 Style tweaks to artworks DB 2024-01-18 10:50:14 -06:00
Alex Cabal
f0bdd5596f Rename ArtistAlternateSpellings to ArtistAlternateNames 2024-01-17 16:32:57 -06:00
Mike Colagrosso
60c6142688 Delete unreferenced artists after updating artwork
Also clean up ArtistAlternateSpellings at the same time we delete an artist
2024-01-17 12:12:25 -06:00
Alex Cabal
d3bde7d195 Use @inputmode="number" instead of <input type="number"> 2024-01-16 00:19:43 -06:00
Mike Colagrosso
39db272cb1 Remove unused Artist::FindMatch
It was used by an obsolete script.
2024-01-15 22:59:45 -06:00
Alex Cabal
56ebdcab0f Fix broken SQL query when adding artwork for existing artist 2024-01-15 22:17:30 -06:00
Alex Cabal
51672e7177 Add support for alternate spellings in new artwork form 2024-01-15 11:42:47 -06:00
Alex Cabal
83e6637c84 Remove default default 2024-01-15 00:22:16 -06:00
Alex Cabal
531e3600ea Convert some constants to enums 2024-01-14 22:32:47 -06:00
Alex Cabal
ce8d5abe32 Increase max death year for artist 2024-01-12 11:42:51 -06:00
Alex Cabal
dd8134db6f Update wanted ebooks list 2024-01-08 16:18:09 -06:00
Alex Cabal
d7718218ad Add type hints to Artist class members 2024-01-08 14:08:26 -06:00
Mike Colagrosso
6a5c05511a Add cover art database
Co-authored-by: Job Curtis <job.curtis@gmail.com>
Co-authored-by: Alex Cabal <alex@standardebooks.org>
2024-01-03 19:14:04 -06:00