Dan Brown
a70c733f27
Permissions: Cleanup after review of enum implementation PR
2025-09-10 11:36:54 +01:00
Dan Brown
419dbadcfd
Permissions: Updated use of helpers to use enums
...
Also added middlware method to Permission enum to allow easier usage
with controller middleware.
2025-09-09 09:48:19 +01:00
Dan Brown
cee23de6c5
Maintenance: Reached PHPstan level 2
...
Reworked some stuff around slugs to use interface in a better way.
Also standardised phpdoc to use @return instead of @returns
2025-09-02 16:02:52 +01:00
Dan Brown
1e34954554
Maintenance: Continued work towards PHPstan level 2
...
Updated html description code to be behind a proper interface.
Set new convention for mode traits/interfaces.
2025-09-02 11:10:47 +01:00
Dan Brown
13a79b3f96
Shelves: Addressed book edits removing non-visible books
...
Tracks the non-visible existing books on change, to retain as part of
the assigned books sync.
Added test to cover.
For #5728
2025-08-25 14:17:55 +01:00
Dan Brown
35a51197ce
Perms: Fixed some issues made when adding transactions
2025-07-06 22:52:06 +01:00
Dan Brown
47fd578edb
Perms: Added transactions around permission effecting actions
2025-07-02 22:25:59 +01:00
Dan Brown
add091305c
Perms: Removed entity perm regen on general update
...
Should not be needed here as this is not directly used for information
which should impact permissions.
Been through uses to ensure that this is the case.
2025-07-02 12:15:25 +01:00
Dan Brown
5508c171db
PHP: Addressed 8.4 deprecations within app itself
2025-02-17 12:45:37 +00:00
Dan Brown
b9306a9029
Sorting: Renamed sort set to sort rule
...
Renamed based on feedback from Tim and Script on Discord.
Also fixed flaky test
2025-02-11 14:36:25 +00:00
Dan Brown
c13ce18837
Sorting: Added book autosort logic
2025-02-05 16:52:20 +00:00
Dan Brown
7093daa49d
Sorting: Connected up default sort setting for books
2025-02-05 14:33:46 +00:00
Dan Brown
378f0d595f
ZIP Imports: Built out reference parsing/updating logic
2024-11-10 16:03:50 +00:00
Dan Brown
89f84c9a95
Pages: Updated editor field to always be set
...
- Migration for setting on existing pages
- Added test to cover simple new page scenario
For #5117
2024-09-29 14:36:41 +01:00
Dan Brown
b35b62d59f
Merge branch 'lexical' into development
2024-09-27 12:04:01 +01:00
Dan Brown
8b32e6c15a
Page Editors: Added switching/options for new lexical editor
2024-09-22 20:06:55 +01:00
Dan Brown
a8ce199e0d
Pages: Fixed unused changelog on first page publish
...
Included test to cover.
For #5056
2024-06-09 17:18:23 +01:00
Dan Brown
b77ab6f3af
Queries: Moved out or removed some class-level items
...
Also ran auto-removal of unused imports across app folder.
2024-02-07 22:41:45 +00:00
Dan Brown
546cfb0dcc
Queries: Extracted static page,chapter,shelf queries to classes
2024-02-07 21:58:27 +00:00
Dan Brown
483410749b
Queries: Updated all app book static query uses
2024-02-07 16:37:36 +00:00
Dan Brown
c95f4ca40f
Queries: Migrated revision repo queries to new class
2024-02-07 15:09:16 +00:00
Dan Brown
222c665018
Queries: Extracted PageRepo queries to own class
...
Started new class for PageRevisions too as part of these changes
2024-02-05 17:35:49 +00:00
Dan Brown
8e78b4c43e
Queries: Extracted chapter repo queries to class
...
Updated query classes to align to interface for common aligned
operations.
Extracted repeated string-identifier-based finding from page/chapter
repos to shared higher-level entity queries.
2024-02-05 15:59:20 +00:00
Dan Brown
3886aedf54
Queries: Migrated bookshelf repo queries to new class
2024-02-04 19:32:19 +00:00
Dan Brown
1559b0acd1
Queries: Migrated BookRepo queries to new query class
...
Also moved to a non-static approach, and added a high-level class to
allow easy access to all other entity queries, for use in mixed-entity
scenarios and easier/simpler injection.
2024-02-04 17:35:16 +00:00
Dan Brown
43a72fb9a5
Default chapter templates: Added tests, extracted repo logic
...
- Updated existing book tests to be generic to all default templates,
and updated with chapter testing.
- Extracted repeated logic in the Book/Chapter repos to be shared in the
BaseRepo.
Review of #4750
2024-02-01 12:51:47 +00:00
Dan Brown
4137cf9c8f
Default chapter templates: Updated api docs and tests
...
Also applied minor tweaks to some wording and logic.
During review of #4750
2024-02-01 12:22:16 +00:00
Sascha
0fc02a2532
fixed error from phpcs
2024-01-23 22:37:15 +01:00
Sascha
70bfebcd7c
Added Default Templates for Chapters
2024-01-01 21:58:49 +01:00
Dan Brown
2a7a81e749
Input WYSIWYG: Updated API testing, fixed description set issue
...
Fixed issue where an existing description_html field would not be
updated via 'description' input.
2023-12-22 13:17:23 +00:00
Dan Brown
7fd6d5b2cc
Input WYSIWYG: Updated tests, Added simple html limiting
2023-12-19 15:10:29 +00:00
Dan Brown
bc354e8b12
Input WYSIWYG: Updated reference link updating for descriptions
2023-12-18 18:12:36 +00:00
Dan Brown
307fae39c4
Input WYSIWYG: Added reference store & fetch handling
...
For book, shelves and chapters.
Made much of the existing handling generic to entity types.
Added new MixedEntityListLoader to help load lists somewhat efficiently.
Only manually tested so far.
2023-12-18 16:23:40 +00:00
Dan Brown
c622b785a9
Input WYSIWYG: Added description_html field, added store logic
...
Rolled out HTML editor field and store logic across all target entity
types. Cleaned up WYSIWYG input logic and design.
Cleaned up some injected classes while there.
2023-12-17 15:02:15 +00:00
Dan Brown
4017048555
Page Templates: Changed template field name, added API support
2023-12-12 12:14:00 +00:00
Dan Brown
7ebe7d4e58
Default templates: Added page picker and working forms
...
- Adapted existing page picker to be usable elsewhere.
- Added endpoint for getting templates for entity picker.
- Added search template filter to support above.
- Updated book save handling to check/validate submitted template.
- Allows non-visible pages to flow through the save process, if not
being changed.
- Updated page deletes to handle removal of default usage on books.
- Tweaked wording and form styles to suit.
- Updated migration to explicity reflect default value.
2023-12-11 15:58:27 +00:00
Dan Brown
d61f42a377
Default Templates: Started review and updates from PR code
2023-12-11 12:33:20 +00:00
Dan Brown
968bc8cdf3
Merge branch 'development' into default-templates
2023-12-11 11:41:43 +00:00
Dan Brown
15d7161428
Images: Prevented base64 extraction without permission
...
Also added content sniffing as an extra check.
Added tests to cover.
2023-11-20 13:32:31 +00:00
Dan Brown
9ca1139ab0
API: Reviewed changes for API priority control
...
Review of #4313
- Made constructor changes while reviewing some classes.
- Updated API examples for consistency.
- Tweaked formatting for some array changes.
- Simplified added tests.
- Tweaked chapter/page repo priority handling to be simpler.
Performed manual API endpoint testing of page/chapter create/update.
2023-08-21 15:42:47 +01:00
Jean-René ROUET
4d399f6ba7
add priority on page and chapter create
2023-07-11 13:28:20 +02:00
Dan Brown
295cd01605
Played around with a new app structure
2023-05-17 17:56:55 +01:00
Lennert Daniels
99ae759eff
Prefill new pages with book's default template
2022-12-02 18:42:58 +01:00
Dan Brown
2a65331573
Worked towards phpstan level 2, 13 errors remain
2022-10-24 12:12:48 +01:00
Dan Brown
bf591765c1
Reorgranised permission routes into their own controller
...
Also introduced helpers for getting entities by slugs since we do it in
so many places.
2022-10-09 16:36:03 +01:00
Dan Brown
aee0e16194
Started code update for new entity permission format
2022-10-08 13:52:59 +01:00
Dan Brown
f28ed0ef0b
Fixed shelf covers being stored as 'cover_book'
...
Are now stored as 'cover_bookshelf' as expected.
Added a migrate to alter existing shelf cover image types.
2022-09-02 12:54:54 +01:00
Dan Brown
34c63e1c30
Added test & update to prevent page creation w/ empty slug
...
Caused by changes to page repo in reference work,
This adds back in the slug generate although at a more central place.
Adds a test case to cover the problematic scenario.
2022-09-01 12:53:34 +01:00
Dan Brown
1cc7c649dc
Applied StyleCi changes, updated php deps
2022-08-29 17:46:41 +01:00
Dan Brown
b86ee6d252
Rolled out reference link updating logic usage
...
Added test to cover updating of content on reference url change
2022-08-21 18:05:19 +01:00