Commit graph

497 commits

Author SHA1 Message Date
Alex Cabal
7aa610168d Resolve Google Groups URL redirects 2025-01-03 18:46:46 -06:00
Alex Cabal
9b959e3eda Don't show year for updated dates in current year of project table 2025-01-03 13:43:59 -06:00
Mike Colagrosso
0e7bff5d82 Rewrite MultiTableSelect queries with ON
Instead of `USING(EbookId)`, it would be easier to handle
`MultiTableSelect` queries in `FromMultiTableRow()` if the queries used

`ON Projects.EbookId = Ebooks.Ebooks`

This is because `USING` will return only one `EbookId` column, but `ON`
will return all columns from both tables.
2025-01-02 09:57:45 -06:00
Alex Cabal
bcba5c2192 Remove now-redundant PD placeholders code 2025-01-01 10:05:59 -06:00
Mike Colagrosso
f0bfa7a43b Rewrite DeleteUnused() queries using new indices 2024-12-31 22:31:00 -06:00
Alex Cabal
9abae874f6 Fix sort order of collection placeholders with no sequence 2024-12-31 14:21:59 -06:00
Alex Cabal
b8c4de4b20 Change order of collection sorting 2024-12-31 10:32:57 -06:00
Alex Cabal
616b9677a9 Fix donation progress bar 2024-12-30 22:04:09 -06:00
Alex Cabal
53fe66a364 Initialize empty values for some image URLs 2024-12-29 15:10:41 -06:00
Alex Cabal
c43c4fa2dd Tweak wanted list appearance 2024-12-28 19:14:04 -06:00
Mike Colagrosso
2d5cba0aaa Rename function to Ebook::GetByIsWantedAndDifficulty() 2024-12-28 14:18:08 -06:00
Mike Colagrosso
e25993b208 Add parameter to MarkdownToHtml for inline HTML 2024-12-28 14:18:08 -06:00
Mike Colagrosso
5b605a00b7 Populate the wanted list from DB placeholders 2024-12-28 14:18:08 -06:00
Mike Colagrosso
0359119a11 Add Formatter::MarkdownToInlineHtml()
HTML without the surrounding `<p>` tags will be useful to show
placeholder notes to admins on the wanted ebooks page.

Examples of generating block-level and inline HTML:

https://github.com/erusev/parsedown/wiki/Tutorial:-Get-Started
2024-12-28 14:18:08 -06:00
Alex Cabal
617d27ec92 Tweak comment 2024-12-27 21:21:57 -06:00
Mike Colagrosso
d6dd10be9c Clean up unused Tags, LocSubjects, and Collections
On `Ebook::Save()` and `Ebook::Delete()`, remove any unreferenced `Tag`,
`LocSubject`, and `Collection` records. These are analogous to these lines in
`Ebook::Create()`:

```
$this->CreateTags();
$this->CreateLocSubjects();
$this->CreateCollections();
```

`EbookPlaceholder`s can't have `Tags` or `LocSubjects` at the moment, but other
mistakes in production that are later corrected could leave unused `Tags` and
`LocSubjects`.

Context: https://github.com/standardebooks/web/pull/447#issuecomment-2555734692
2024-12-26 12:10:13 -06:00
Alex Cabal
d94c057e20 Don't send a new project email if the manager, reviewer, and producer are all the same 2024-12-23 12:10:49 -06:00
Alex Cabal
ac56d2d896 Don't allow the manager or reviewer to be the same as the ebook producer 2024-12-22 19:52:31 -06:00
Alex Cabal
ad4b5423db Don't send admin email for returning Patrons 2024-12-21 21:19:07 -06:00
Alex Cabal
b4003b30e2 Improve project sorting by title 2024-12-19 22:55:55 -06:00
Alex Cabal
8e8cbb0c5e Move delete form and more multi select fixes 2024-12-19 14:40:38 -06:00
Alex Cabal
93b8008c7e Add missing MultiTableSelect code 2024-12-19 14:25:48 -06:00
Mike Colagrosso
d0d79d637c Add form to delete placeholders 2024-12-19 14:21:25 -06:00
Alex Cabal
98e09f414e Allow creating new ebook placeholders when creating a new project 2024-12-18 22:23:57 -06:00
Alex Cabal
4596aeb007 Allow projects to auto-assign managers and reviewers 2024-12-18 20:57:21 -06:00
Alex Cabal
378555d131 Show improved project details on placeholder page 2024-12-18 15:54:06 -06:00
Alex Cabal
7a6a743295 Some type check fixes 2024-12-18 15:03:44 -06:00
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