Dan Brown
3fd25bd03e
Search: Added pagination, updated other search uses
...
Also updated hydrator to be created via injection.
2025-10-28 20:37:41 +00:00
Dan Brown
f0303de2e5
Search: Improved result hydration performance
2025-10-27 18:02:54 +00:00
Dan Brown
0b26573314
Search: Started work to make search result size consistent
2025-10-27 17:23:15 +00:00
Dan Brown
9c4a9225af
Comments API: Addressed failing tests and static testing
2025-10-24 14:22:53 +01:00
Dan Brown
4627dfd4f7
API: Added comment tree to pages-read endpoint
...
Includes tests to cover
2025-10-24 10:18:52 +01:00
Dan Brown
3ad1e31fcc
API: Added comment-read endpoint, added api docs section descriptions
2025-10-22 18:44:49 +01:00
Dan Brown
082dbc9944
API: Started building comments API endpoints
2025-10-22 14:58:29 +01:00
Dan Brown
ea6344898f
Images: Added nulling of image page relation on page delete
2025-10-21 14:12:55 +01:00
Dan Brown
5754acf2fb
DB: Updated handling of deleted user ID handling in DB
...
Updated uses of user ID to nullify on delete.
Added testing to cover deletion of user relations.
Added model factories to support changes and potential other tests.
Cleans existing ID references in the DB via migration.
2025-10-19 19:10:15 +01:00
Dan Brown
4c7d6420ee
DB: Aligned entity structure to a common table
...
As per PR #5800
* DB: Planned out new entity table format via migrations
* DB: Created entity migration logic
Made some other tweaks/fixes while testing.
* DB: Added change of entity relation columns to suit new entities table
* DB: Got most view queries working for new structure
* Entities: Started logic change to new structure
Updated base entity class, and worked through BaseRepo.
Need to go through other repos next.
Removed a couple of redundant interfaces as part of this since we can
move the logic onto the shared ContainerData model as needed.
* Entities: Been through repos to update for new format
* Entities: Updated repos to act on refreshed clones
Changes to core entity models are now done on clones to ensure clean
state before save, and those clones are returned back if changes are
needed after that action.
* Entities: Updated model classes & relations for changes
* Entities: Changed from *Data to a common "contents" system
Added smart loading from builder instances which should hydrate with
"contents()" loaded via join, while keeping the core model original.
* Entities: Moved entity description/covers to own non-model classes
Added back some interfaces.
* Entities: Removed use of contents system for data access
* Entities: Got most queries back to working order
* Entities: Reverted back to data from contents, fixed various issues
* Entities: Started addressing issues from tests
* Entities: Addressed further tests/issues
* Entities: Been through tests to get all passing in dev
Fixed issues and needed test changes along the way.
* Entities: Addressed phpstan errors
* Entities: Reviewed TODO notes
* Entities: Ensured book/shelf relation data removed on destroy
* Entities: Been through API responses & adjusted field visibility
* Entities: Added type index to massively improve query speed
2025-10-18 13:14:30 +01:00
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
33a0237f87
Permissions: Updated usage of controller methods to use enum
2025-09-08 18:14:38 +01:00
Dan Brown
c8716df284
Permissions: Removed unused role-perm columns, added permission enum
...
Updated main permission check methods to support our new enum.
2025-09-08 15:59:25 +01:00
Dan Brown
36cb243d5e
Timezones: Updated date displays to use consistent formats
2025-09-04 16:11:35 +01:00
Dan Brown
7d1c316202
Maintenance: Updated larastan target level, fixed issues from tests
2025-09-03 15:42:50 +01:00
Dan Brown
318b486e0b
Maintenance: Finished changes to meet phpstan level 3
2025-09-03 15:18:49 +01:00
Dan Brown
e05ec7da36
Maintenance: Addressed a range of phpstan level 3 issues
2025-09-03 10:47:45 +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
bd966ef99e
phpstan: Address a range of level 2 issues
2025-08-09 11:09:50 +01:00
Dan Brown
32ba3a591f
ZIP Imports: Added API examples, finished testing
...
Also updated some types on a couple of controllers.
2025-07-18 16:19:14 +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
454b152b95
Pages: Redirect user to view if they can't edit
...
For #5568
2025-05-24 12:05:17 +01:00
Dan Brown
dfbc78947f
Revisions: Hid changes link for oldest revision
...
Just as a UX improvement to help avoid confusion, as the whole content
will be changes for this revision.
For #5454
2025-03-16 12:00:54 +00: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
ac0cd9995d
Sorting: Reorganised book sort code to its own directory
2025-01-29 16:40:11 +00:00
Dan Brown
7e1a8e5ec6
API: Added cover to book/shelf list endpoints
...
Aligns with what we provide in the UI.
Added/updated tests to cover, and updated API examples.
For 5180.
2024-12-13 14:21:04 +00:00
Dan Brown
fdbbcf2b8a
Merge branch 'portazips' into development
2024-12-01 13:06:43 +00:00
Dan Brown
415cd6a360
Includes: Workaround for PHP 8.3.14 bug
...
Changed DOMText creation to be done via document so its document
reference is correct to avoid a bug in PHP 8.3.14.
Ref: https://github.com/php/php-src/issues/16967
Fixes #5341
2024-11-28 16:30:59 +00:00
Dan Brown
378f0d595f
ZIP Imports: Built out reference parsing/updating logic
2024-11-10 16:03:50 +00:00
Dan Brown
d13e4d2eef
ZIP imports: Started actual import logic
2024-11-09 14:01:24 +00:00
Dan Brown
42ada66fdd
ZIP Exports: Added core logic for books/chapters
2024-10-23 11:30:32 +01:00
Dan Brown
42b9700673
ZIP Exports: Finished up format doc, move files, started builder
...
Moved all existing export related app files into their new own dir.
2024-10-15 16:14:11 +01: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
6103a22feb
Exports: Made pdf command timeout configurable
...
Added test to cover.
For #5119
2024-09-27 16:33:58 +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
9aa3442a17
API: Fixed lacking permission enforcement on book contents
2024-08-29 14:43:21 +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
3946158e88
API: Added audit log list endpoint
...
Not yested covered with testing.
Changes database columns for more presentable names and for future use
to connect additional model types.
For #4316
2024-05-04 16:28:18 +01:00
Dan Brown
f0dd33c1b4
PDF: Added tests for pdf command, fixed old tests for changes
2024-04-26 15:39:40 +01:00
Dan Brown
1c7128c2cb
PDF: Added implmentation of command PDF option
...
Tested quickly manually but not yet covered by PHPUnit tests.
2024-04-24 16:09:53 +01:00
Dan Brown
40200856af
PDF: Removed barryvdh snappy to use snappy direct
...
Also simplifies config format, and updates snappy implmentation to use
the new config file.
Not yet tested.
2024-04-24 15:13:44 +01:00