Commit graph

470 commits

Author SHA1 Message Date
Alex Cabal
a46ff8e137 Fix Github URL validation in projects 2024-12-18 14:58:04 -06:00
Alex Cabal
a1da50fc1a Sort projects by ebook title 2024-12-18 14:28:07 -06:00
Alex Cabal
b2191d1219 Allow editing of projects 2024-12-18 14:20:28 -06:00
Alex Cabal
806939ca49 Replace Template::Emit...() functions with more generic function 2024-12-18 13:14:16 -06:00
Mike Colagrosso
f449c024ea Add /edit endpoint to update placeholders 2024-12-18 12:58:18 -06:00
Alex Cabal
28b7384769 Set ebook placeholders to not be in progress when a project is marked as abandoned 2024-12-16 23:54:40 -06:00
Alex Cabal
7a3c7ad503 Allow VCS URLs to be null in projects 2024-12-16 21:48:01 -06:00
Alex Cabal
d902074285 Add new project form, and allow projects to be created when attempting to create a placeholder that already exists. 2024-12-16 21:27:45 -06:00
Alex Cabal
8e6b05a150 Fix typos 2024-12-16 15:49:18 -06:00
Alex Cabal
051e286a6d Continue fleshing out project management system 2024-12-16 15:01:22 -06:00
Alex Cabal
5782d6ca7d Further refine projects system 2024-12-15 23:39:23 -06:00
Alex Cabal
2449de6f6c Also check discussion threads for freshness when marking projects as stalled 2024-12-15 21:59:01 -06:00
Alex Cabal
3b9ea27391 Refactor projects fetching commits from Github 2024-12-15 14:51:53 -06:00
Alex Cabal
9b9d93bc52 Automatically update in progress projects to stalled 2024-12-14 23:54:11 -06:00
Alex Cabal
c7a4e34e31 Add projects index page, and more detail on placeholder pages 2024-12-14 21:12:00 -06:00
Alex Cabal
adfe07aad9 Add beginning of a project management system to placeholders 2024-12-14 19:13:03 -06:00
Alex Cabal
e56de4b19d Switch from EbookPlaceholder.Status to EbookPlaceholder.IsInProgress, and some type tweaks 2024-12-14 13:39:28 -06:00
Alex Cabal
1a742baa51 Add CanEditEbooks benefit and clean up some PHPStan errors 2024-12-14 11:50:16 -06:00
Alex Cabal
23b5c8ef31 Allow admin to view collection metadata 2024-12-14 11:32:02 -06:00
Alex Cabal
cb1cfc8c21 Add accounting bit to Collections table 2024-12-14 00:02:21 -06:00
Alex Cabal
79fdc8c20f Some type check fixes 2024-12-13 23:21:04 -06:00
Alex Cabal
bbb25488e1 Add more detail to ebook placeholder page 2024-12-13 13:02:41 -06:00
Alex Cabal
89d0b2ea46 Replace ' with ’ in placeholder titles 2024-12-13 12:24:29 -06:00
Alex Cabal
b5f0f22fa7 Don't show works on the wanted list as not PD yet 2024-12-13 12:11:27 -06:00
Mike Colagrosso
1ab95df084 Add placeholders for ebooks 2024-12-13 11:46:36 -06:00
Alex Cabal
cf5f488cae Improve error message for people trying to log in to the Patrons Circle 2024-12-13 10:10:52 -06:00
Mike Colagrosso
cae8271ecb Set ReviewerUserId only if Status changed
For non-admin reviewers (i.e., without `CanReviewOwnArtwork`), the `PATCH` form
has a hidden element with the artwork's current `Status`. If the reviewer
updates the `EbookUrl` and not `Status`, then don't record the reviewer's
`ReviewerUserId` because they didn't review or change the `Status`.

Side note: Sending the `PATCH` form an invalid `Status` will result in a
validation error, but that validation error was hard to read because it was the
wrong exception type. This commit adds a new `InvalidArtworkStatusException` to
fix that.

Fixes #433
2024-12-13 09:06:57 -06:00
Alex Cabal
72615fe79a Fix logic errors 2024-12-06 11:36:11 -06:00
Alex Cabal
7ac427dad5 Add more information to user info page 2024-12-05 21:00:39 -06:00
Alex Cabal
9a2b095b70 Allow adjustment of Patrons Circle cost 2024-12-05 14:32:46 -06:00
Alex Cabal
77540dacbb Clarify comments 2024-12-05 11:22:53 -06:00
Alex Cabal
ab17e6af5d Allow getting users by name 2024-12-02 10:20:36 -06:00
Alex Cabal
75ef304824 Add more books to PD Day 2025 2024-12-01 18:35:48 -06:00
Alex Cabal
8cba20fbf5 Fix Patron logic in user detail page 2024-12-01 17:01:18 -06:00
Alex Cabal
9835e5cee0 Show payments on user detail page 2024-12-01 16:16:04 -06:00
Alex Cabal
f9b3d09c7d Code formatting 2024-11-28 12:12:00 -06:00
Alex Cabal
347f166e8a Catch rare exception when searching ebooks 2024-11-28 12:10:53 -06:00
Alex Cabal
3a3795bbbd Add Coolidge to PD Day 2025 2024-11-28 11:30:19 -06:00
Alex Cabal
c1d917ed8d Tweak donation target 2024-11-27 15:48:44 -06:00
Alex Cabal
5270891eb4 Update PD day banner and tweak blog post wording 2024-11-27 15:17:10 -06:00
Alex Cabal
c65035630f Add public domain day banner 2024-11-27 12:52:37 -06:00
Alex Cabal
c9e6454f51 Add site map 2024-11-26 13:28:44 -06:00
Alex Cabal
e6d4ea1ab6 Tweak how User::$Benefits getter 2024-11-25 13:56:31 -06:00
Alex Cabal
d149798154 Another attempt at fixing a reference error 2024-11-25 11:08:30 -06:00
Alex Cabal
bd058eb74e Fix donation drive start date calculation 2024-11-25 10:40:30 -06:00
Alex Cabal
9bfa8915f3 Fix reference error 2024-11-25 09:55:13 -06:00
Alex Cabal
8ad3291a35 Add admin form to view and edit users 2024-11-23 14:30:11 -06:00
Alex Cabal
3050ab7219 Use HTTP code enums instead of ints 2024-11-20 14:52:05 -06:00
Alex Cabal
3f822b85c3 Add PHPDocs and code formatting 2024-11-20 14:23:42 -06:00
Alex Cabal
05ac7884e9 Convert artwork filters to enums 2024-11-15 23:11:01 -06:00