Commit graph

157 commits

Author SHA1 Message Date
6d68a83003
pinakes-core: fix subtitle i32 overflow in postgres
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I3b43f97c96905953fd58f051667c59096a6a6964
2026-03-12 20:49:41 +03:00
raf
60452dcb5a
Merge pull request 'GUI plugins' (#9) from notashelf/push-mytsqvppsvxu into main
Reviewed-on: #9
2026-03-12 20:49:40 +03:00
be72b6a7ed
docs/plugins: detail GUI plugin usage; separate server & GUI plugins
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2060db637209655390a86facd004bc646a6a6964
2026-03-12 20:49:39 +03:00
ad6d0b646f
chore: fix clippy lints; format
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib3d98a81c7e41054d27e617394bef63c6a6a6964
2026-03-12 20:49:38 +03:00
489e55d0b4
examples/media-stats-ui: fix Transform source key; add file_name column
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I4c741e4b36708f2078fed8154d7341de6a6a6964
2026-03-12 20:49:38 +03:00
ba01acf271
pinakes-ui: integrate plugin pages into sidebar navigation; sanitize theme-extension CSS eval
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie87e39c66253a7071f029d52dd5979716a6a6964
2026-03-12 20:49:37 +03:00
90504609e9
pinakes-ui: supply local_state to Conditional and Progress; remove last_refresh
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib513b5846d6c74bfe821da195b7080af6a6a6964
2026-03-12 20:49:36 +03:00
071ea19c8f
pinakes-ui: add plugin component stylesheet
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I05de526f0cea5df269b0fee226ef1edf6a6a6964
2026-03-12 20:49:35 +03:00
dccaff2481
pinakes-plugin-api: add reserved-route and required-endpoint validation
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id85a7e729b26af8eb028e19418a5a1706a6a6964
2026-03-12 20:49:34 +03:00
91123fc90e
pinakes-core: use InvalidOperation for nil media_id in upsert_book_metadata
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I72a80731d926b79660abf20c2c766e8c6a6a6964
2026-03-12 19:41:16 +03:00
185e3b562a
treewide: cleanup
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia01590cdeed872cc8ebd16f6ca95f3cc6a6a6964
2026-03-12 19:41:15 +03:00
0ba898c881
pinakes-core: check file existence before removal in TempFileGuard drop
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I800825f5dc3b526d350931ff8f1ed0da6a6a6964
2026-03-12 19:41:14 +03:00
0c9b71346d
pinakes-core: map serde_json errors to Serialization variant in export
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I77c27639ea1aca03d54702e38fc3ef576a6a6964
2026-03-12 19:41:13 +03:00
15b005cef0
pinakes-core: expose required_endpoints alongside UI pages in plugin manager
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I32c95a03f106db8fef7eedd0362756a46a6a6964
2026-03-12 19:41:12 +03:00
dc4dc41670
pinakes-plugin-api: consolidate reserved-route check; reject widget data-source refs
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I042ee31e95822f46520a618de8dcaf786a6a6964
2026-03-12 19:41:11 +03:00
3678edd355
meta: prefer std's OnceLock and LazyLock over once_cell
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I35d51abfa9a790206391dca891799d956a6a6964
2026-03-12 19:41:10 +03:00
119f6d2e06
examples: add media-stats-ui plugin
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I7c9ccac175440d278fd129dbd53f04d66a6a6964
2026-03-12 19:41:09 +03:00
cf76d42c33
pinakes-core: add integration tests for batch_update_media
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0787bec99f7c1d098c1c1168560a43266a6a6964
2026-03-12 19:41:08 +03:00
592a9bcc47
pinakes-core: add error context to tag and collection writes; map serde_json errors to Serialization variant
pinakes-core: distinguish task panics from cancellations in import error
  handling
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Icf5686f34144630ebf1935c47b3979156a6a6964
2026-03-12 19:41:07 +03:00
8f2b44b50c
pinakes-core: unify book metadata extraction; remove ExtractedBookMetadata
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ifd6e66515b9ff78a4bb13eba47b9b2cf6a6a6964
2026-03-12 19:41:06 +03:00
9c67c81a79
pinakes-server: relativize media paths against configured root directories
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9f113e6402030c46ad97f636985b5d6c6a6a6964
2026-03-12 19:41:05 +03:00
5077e9f117
pinakes-ui: extract expression evaluation into dedicated module
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I4d4901c4701e8ae446dbc76b457c058d6a6a6964
2026-03-11 21:30:47 +03:00
0baa57d48d
pinakes-ui: add SettingsSection widget target; align location strings with schema constants
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9a5b91457136254fdf5fa582899079e46a6a6964
2026-03-11 21:30:46 +03:00
5d7076426c
pinakes-ui: add special actions; add modal control to action executor
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: If2e94d303e1e86f5e6cd7589c9ff58356a6a6964
2026-03-11 21:30:45 +03:00
9389af9fda
pinakes-ui: enforce plugin endpoint allowlist; replace inline styles with CSS custom properties
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I751e5c7ec66f045ee1f0bad6c72759416a6a6964
2026-03-11 21:30:44 +03:00
ada1c07f66
pinakes-server: add widget, theme-extension, and event plugin routes; expose allowed_endpoints in UI page DTO
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia7efa6db85da2d44b59e0e2e57f6e45b6a6a6964
2026-03-11 21:30:43 +03:00
4834208f9f
pinakes-core: use checked_sub for Instant arithmetic in pipeline tests
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I785a8e5e521581c78024252fc5baf5616a6a6964
2026-03-11 21:30:42 +03:00
7a6d602eed
pinakes-plugin-api: add integration and sample plugin tests
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0de4c3e1e5b49579ae42983f93a2332e6a6a6964
2026-03-11 21:30:41 +03:00
5a0901ba95
pinakes-plugin-api: add required_endpoints and theme_extensions to manifest UI section
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I203fabfe07548106abb5bac760bbfec06a6a6964
2026-03-11 21:30:40 +03:00
6e442065b1
pinakes-ui: integrate plugin registry into app navigation and routing
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I7c4593d93693bf08555a0b5f89a67aea6a6a6964
2026-03-11 21:30:39 +03:00
de913e54bc
pinakes-ui: rewrite renderer with interactive tabs; correct data context; per-item loop binding
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iebe4945e1fcb7c28ff74a76e9d0717276a6a6964
2026-03-11 21:30:38 +03:00
188f9a7b8d
pinakes-ui: fix action param precedence and non-JSON 2xx handling
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iac5d1f3d2ed5c85c3e1f3d0f259235056a6a6964
2026-03-11 21:30:37 +03:00
e55fd5cc98
pinakes-ui: fix plugin page data loading; add as_json helper
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6d80eff06e9ca46f916e643d5d8bb6c86a6a6964
2026-03-11 21:30:36 +03:00
1acff0227c
pinakes-ui: add WidgetContainer; basic widget injection system
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I7ca9a47e9b085b8c49869586c90034816a6a6964
2026-03-11 21:30:35 +03:00
62058a7c4d
pinakes-ui: fix ApiClient clone to preserve auth token
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2009ce790b3864105082997be12fe5b56a6a6964
2026-03-11 21:30:34 +03:00
ed8ad73497
pinakes-core: fix `list_ui_pages\' doc comment
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I5f82a35656aa536effe6a159b0cdd2066a6a6964
2026-03-11 21:30:33 +03:00
21572541c3
pinakes-plugin-api: schema validation for page and widget schemas
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I70480786fc8e4a86731560aaca6993ce6a6a6964
2026-03-11 21:30:32 +03:00
aa2a81e354
pinakes-plugin-api: add widgets field to manifest UI section
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6fae2dc3c09702aa5a54d1e17a8175516a6a6964
2026-03-11 21:30:31 +03:00
7ad068b930
pinakes-plugin-api: new UI widget types
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I83a72f3441e5370875239431123b0bbc6a6a6964
2026-03-11 21:30:19 +03:00
a4bc48214f
meta: ignore test configuration
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id16794aa7425950097f9a20500148c216a6a6964
2026-03-09 22:04:46 +03:00
be4305f46e
pinakes-ui: add plugin page registry
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie83791e82c68f757173e5dc53a646b356a6a6964
2026-03-09 22:04:45 +03:00
901adcb2f0
pinakes-ui: add plugin schema renderer
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2c2d99c21a3fdf04dd720286635b98a26a6a6964
2026-03-09 22:04:44 +03:00
307375a348
pinakes-ui: add plugin action executor
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ic6dc2c6e3ef58dacad4829037226b0cf6a6a6964
2026-03-09 22:04:43 +03:00
e46a8943cb
pinakes-ui: add plugin data fetching
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie28a544cf0df1a23b905e89b69db19c06a6a6964
2026-03-09 22:04:42 +03:00
5b204dceb5
pinakes-ui: add ApiClient plugin methods; depend on plugin API
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ica7f913a22d18e59e85f1959a5b336df6a6a6964
2026-03-09 22:04:41 +03:00
29ba24ae01
pinakes-server: add GET /plugins/ui-pages endpoint
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id09d4dce060e0a79586251a16fb6bdbc6a6a6964
2026-03-09 22:04:40 +03:00
0525ea6c60
pinakes-core: expose plugin UI pages via PluginManager
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ic58a0174e6592303e863f51fb237220e6a6a6964
2026-03-09 22:04:39 +03:00
c86d9399ac
pinakes-plugin-api: initial UI schema types; manifest extension for GUI plugins
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I508f94798a6eaa800672bd95fa8127d86a6a6964
2026-03-09 22:04:36 +03:00
1accc202bc
chore: force explicit ABI in rustfmt
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I3cba9aa27b26c89403f82211d7dd0c476a6a6964
2026-03-08 15:48:03 +03:00
c6697e7c6f
docs: update plugin documentation to reflect new isolation model
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0102be6731db2770408e8a0b445064926a6a6964
2026-03-08 15:45:55 +03:00