Dan Brown
083fb1a600
Maintenance: Updated $request->get instance to use input
2026-04-18 20:43:27 +01:00
Dan Brown
208629ee1f
API: Some changes to tag API endpoints
...
- Updated tag values endpoint to use query param instead of path
argument, so a better range of values can be provided (including those
with slashes).
- Updated image gallery example request to align with docs use changes.
2026-04-14 12:03:29 +01:00
Dan Brown
1c1ad1d1b7
Tags API: Reviewed docs and added examples
2026-04-12 20:45:18 +01:00
Dan Brown
f14fc68b66
API: Added new tags API endpoints
2026-04-12 18:26:00 +01:00
Dan Brown
93f84a81b2
Merge pull request #6083 from BookStackApp/better_plain_text
...
New HTML to Plaintext handling
2026-04-12 17:01:45 +01:00
Dan Brown
5e78dc6ed5
Maintenance: Updated PHPStan to Level 4 ( #6085 )
2026-04-08 21:03:20 +01:00
Dan Brown
c7d3775bb9
Plain text: Created a new HTML to plain text converter
...
To centralise logic to be more consistent, and to have smarter logic
which avoids just following newline format from input, preventing
smushing HTML elements (like list elements) next to eachother
2026-04-05 00:05:10 +01:00
Dan Brown
10ebe53bd9
Page Content: Added more complex & configurable content filtering
...
- Added new option to control parts of the filter.
- Added whitelist filtering pass via HTMLPurifier.
2026-02-13 14:14:28 +00:00
Dan Brown
c77a0fdff3
Page Content: Added form elements to filtering
...
Added and updated tests to cover.
Also updated API auth to a narrower focus of existing session instead of also existing user auth.
This is mainly for tests, to ensure they're following the session
process we'd see for activity in the UI.
2026-01-29 14:54:08 +00:00
Dan Brown
3d9aba7b1f
Mentions: Added coverage for mentions search endpoint
2025-12-17 13:48:20 +00:00
Dan Brown
48cdaab690
Comment Mentions: Added tests to cover back-end functionality
2025-12-17 10:49:12 +00:00
Dan Brown
4f760479c3
Merge branch 'development' into comment_mentions
2025-12-17 09:58:27 +00:00
Dan Brown
221c6c7e9f
Comment Mentions: Added core back-end logic
...
- Added new user notification preference, opt-in by default
- Added parser to extract mentions from comment HTML, with tests to
cover.
- Added notification and notification handling
Not yet tested, needs testing coverage.
2025-12-17 09:57:14 +00:00
Dan Brown
9de294343d
Notifications: Fixed error on comment notification
...
Fixes an error where a used relation (entity) on the comment was
resulting in null due to eager loading the notification when
deserializing from the queue, where Laravel was then mis-matching the
names when performing the eager loading.
For #5918
2025-11-25 21:08:45 +00:00
Dan Brown
5bf2d801cf
Notifications: Fixed attempted null usage issue where int expected
2025-11-09 11:39:38 +00:00
Dan Brown
a949900570
API: Added examples for comments
...
Tweaked comment repo to avoid returning a lot of extra data on API
update responses.
2025-10-24 15:14:25 +01: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
fcacf7cacb
API: Built out tests for comment API endpoints
2025-10-23 16:52:29 +01:00
Dan Brown
cbf27d70c8
API: Added comment CUD endpoints, drafted tests
...
Move some checks and made some tweaks to the repo to support consistency
between API and UI.
2025-10-23 10:21:33 +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
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
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
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
bd966ef99e
phpstan: Address a range of level 2 issues
2025-08-09 11:09:50 +01:00
Dan Brown
dca9765d5d
Customization: Added parent tag classes
...
For #5217
2025-06-28 22:27:28 +01:00
Dan Brown
8f92b6f21b
Comments: Fixed a range of TS errors + other
...
- Migrated toolbox component to TS
- Aligned how custom event types are managed
- Fixed PHP use of content_ref where not provided
2025-05-12 15:31:55 +01:00
Dan Brown
62f78f1c6d
Comments: Split tests, added extra archive/reference tests
2025-05-12 14:26:09 +01:00
Dan Brown
e7dcc2dcdf
Comments: Moved to tab UI, Converted tabs component to ts
2025-04-30 17:42:09 +01:00
Dan Brown
099f6104d0
Comments: Started archive display, created mode for tree node
2025-04-28 20:09:18 +01:00
Dan Brown
8bdf948743
Comments: Added archive endpoints, messages, Js actions and tests
2025-04-28 15:37:09 +01:00
Dan Brown
5e3c3ad634
Comments: Added back-end content reference handling
...
Also added archived property, to be added.
2025-04-18 21:13:49 +01: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
b897af2ed0
Sorting: Finished main sort set CRUD work
2025-02-04 20:11:35 +00:00
Dan Brown
5b0cb3dd50
Sorting: Extracted URL sort helper to own class
...
Was only used in one place, so didn't make sense to have extra global
helper clutter.
2025-01-29 17:02:34 +00:00
Dan Brown
5bf75786c6
Framework: Fixed Laravel 11 upgrade test issues, updated phpstan
...
- Fixed failing tests due to Laravel 11 changes
- Updated phpstan to 3.x branch
- Removed some seemingly redundant comment code, which was triggering
phpstan.
2025-01-11 13:22:49 +00:00
Dan Brown
19ee1c9be7
Notifications: Logged errors and prevented them blocking user
...
Failed notification sends could block the user action, whereas it's
probably more important that the user action takes places uninteruupted
than showing an error screen for the user to debug.
Logs notification errors so issues can still be debugged by admins.
Closes #5315
2024-12-12 21:47:39 +00:00
Dan Brown
c6109c7087
ZIP Imports: Added listing, show view, delete, activity
2024-11-03 14:13:05 +00:00
Angelo Geant Gaviola
79f5be4170
Fixed notification preferences URL in email
2024-05-14 17:04:23 +08:00
Dan Brown
67df127c26
API: Added to, and updated, testing to cover audit log additions
2024-05-05 15:44:58 +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
f05ec4cc26
Tags: Stopped recycle bin tags being counted on index
...
For #4892
Added test to cover.
2024-04-15 18:44:59 +01:00
Dan Brown
ed9c013f6e
Queries: Addressed failing test cases from recent changes
2024-02-08 17:18:03 +00:00
Dan Brown
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
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