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
5508c171db
PHP: Addressed 8.4 deprecations within app itself
2025-02-17 12:45:37 +00:00
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
c13ce18837
Sorting: Added book autosort logic
2025-02-05 16:52:20 +00:00
7093daa49d
Sorting: Connected up default sort setting for books
2025-02-05 14:33:46 +00:00
ac0cd9995d
Sorting: Reorganised book sort code to its own directory
2025-01-29 16:40:11 +00:00
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
fdbbcf2b8a
Merge branch 'portazips' into development
2024-12-01 13:06:43 +00:00
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
378f0d595f
ZIP Imports: Built out reference parsing/updating logic
2024-11-10 16:03:50 +00:00
d13e4d2eef
ZIP imports: Started actual import logic
2024-11-09 14:01:24 +00:00
42ada66fdd
ZIP Exports: Added core logic for books/chapters
2024-10-23 11:30:32 +01:00
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
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
6103a22feb
Exports: Made pdf command timeout configurable
...
Added test to cover.
For #5119
2024-09-27 16:33:58 +01:00
b35b62d59f
Merge branch 'lexical' into development
2024-09-27 12:04:01 +01:00
8b32e6c15a
Page Editors: Added switching/options for new lexical editor
2024-09-22 20:06:55 +01:00
9aa3442a17
API: Fixed lacking permission enforcement on book contents
2024-08-29 14:43:21 +01:00
a8ce199e0d
Pages: Fixed unused changelog on first page publish
...
Included test to cover.
For #5056
2024-06-09 17:18:23 +01:00
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
f0dd33c1b4
PDF: Added tests for pdf command, fixed old tests for changes
2024-04-26 15:39:40 +01:00
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
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
bb6670d395
PDF: Started new command option, merged options, simplified dompdf
...
- Updated DOMPDF to direcly use library instead of depending on barry
wrapper.
- Merged existing export options file into single exports file.
- Defined option for new command option.
Related to #4732
2024-04-22 16:40:42 +01:00
77f125208e
Page nav: Fixed nbsp being represented as nothing
...
Now represented in page nav using a normal space to avoid complete
removal of space.
Added test to cover.
For #4836
2024-03-09 15:52:09 +00:00
b7d4bd5bce
Breadcrumbs: Set book/shelf lists to use name ordering
...
Previously in database order (id) which is not predictable
nor parsable for users.
For #4876
2024-03-09 15:24:44 +00:00
8e01345f14
Entity popular queriy: Loaded parents for selector breadcrumbs
2024-02-28 13:20:24 +00:00
f5f96f84e7
404: Fixed entity list issue with entity with non-visible parent
...
Adds our mixed entity list loader to popular queries for more efficient
loading.
2024-02-28 13:08:06 +00:00
1ea2ac864a
Queries: Update API to align data with previous versions
...
Ensures fields returned match API docs and previous versions of
BookStack where we were accidentally returning more fields than
expected.
Updates tests to cover many of these.
Also updated clockwork to ignore image requests for less noisy
debugging.
Also updated chapter page query to not be loading all page data, via new
query in PageQueries.
2024-02-11 15:42:37 +00:00
ed9c013f6e
Queries: Addressed failing test cases from recent changes
2024-02-08 17:18:03 +00:00
ed21a6d798
Queries: Updated old use-specific entity query classes
...
- Updated name to align, and differentate from new 'XQueries' clases.
- Removed old sketchy base class with app resolving workarounds, to a
proper injection-based approach.
- Also fixed wrong translation text used in PageQueries.
2024-02-08 16:39:59 +00:00
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
546cfb0dcc
Queries: Extracted static page,chapter,shelf queries to classes
2024-02-07 21:58:27 +00:00
483410749b
Queries: Updated all app book static query uses
2024-02-07 16:37:36 +00:00
c95f4ca40f
Queries: Migrated revision repo queries to new class
2024-02-07 15:09:16 +00:00
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
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
3886aedf54
Queries: Migrated bookshelf repo queries to new class
2024-02-04 19:32:19 +00:00
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
a70ed81908
DB: Started update of entity loading to avoid global selects
...
Removes page/chpater addSelect global query, to load book slug, and
instead extracts base queries to be managed in new static class, while
updating specific entitiy relation loading to use our more efficient
MixedEntityListLoader where appropriate.
Related to #4823
2024-02-04 14:39:36 +00:00
779f09bff6
Merge branch 'chapter-templates' into development
2024-02-01 12:55:38 +00:00
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
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
4a8f70240f
added template to chapter API controller
2024-01-29 19:59:03 +01:00
0fc02a2532
fixed error from phpcs
2024-01-23 22:37:15 +01:00
8c6b116472
Update TrashCan.php
...
remove duplicate call of $page->forceDelete();
2024-01-23 21:37:00 +01:00
adf1806fea
Chapters API: Added missing book_slug field
...
Was removed during previous changes, but reflected in response examples.
This adds into all standard single chapter responses.
For #4765
2024-01-16 12:06:13 +00:00
70bfebcd7c
Added Default Templates for Chapters
2024-01-01 21:58:49 +01:00
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
00ae04e0bd
Input WYSIWYG: Updated API to show/accept html descriptions
...
Also aligned books, shelves and chapters to return description content
and some relations (where not breaking API) in create/update responses
also so that information can be seen direct from that input in a
request.
API docs and tests not yet updated to match.
2023-12-21 13:23:52 +00:00