Commit Graph

1167 Commits

Author SHA1 Message Date
Sebastian Jeltsch
8566b9ba96 Update JavaScript dependencies. 2025-11-03 10:59:06 +01:00
Sebastian Jeltsch
68ea3b5b0a Fix admin UIs uncaught error handling - catch uncaught rejections as well.
We previously removed toasts from `adminFetch` relying on us displaying uncaught exceptions, however async rejections are not caught by the browsers uncaught error handler. This is fixed now. Also install/uninstall handlers as part of ErrorBoundary rather than relying on global handlers.
2025-11-03 10:25:33 +01:00
Sebastian Jeltsch
6daf392c9d Fix regression: the stricter schema reload surfaced a orchestration issue in the drop/alter table admin handlers. Now first fix up the config and then reload. 2025-11-03 10:00:18 +01:00
Sebastian Jeltsch
a1ebc1258e Prepare new release v0.20.7. v0.20.7 2025-11-02 21:12:06 +01:00
Sebastian Jeltsch
a04ec5295c Update Rust dependencies. 2025-11-02 20:57:23 +01:00
Sebastian Jeltsch
c0981c01af Make config validation rely only on SQLite schemas, rather than metadata. This avoids initialization order issue, where config loading depends on JSON Schema metadata and loading custom JSON schemas depends on the config. Now we can avoid double metadata init and more importantly propagate errors when JSON schemas referenced by the SQLite schemas are missing. 2025-11-02 20:54:16 +01:00
Sebastian Jeltsch
09cd490b8d Remove unecessary calls to .except(), eventhough they shouldn't happen. 2025-11-02 20:43:09 +01:00
Sebastian Jeltsch
962da98901 Preserve all oauth settings when converting map of OAuthProviders to proxy list of OAuthProviders and back. 2025-11-02 19:21:02 +01:00
Sebastian Jeltsch
8fb341026d Fix OIDC OAuth provider config validation, i.e. don't consider validate missing urls as ok. 2025-11-02 18:52:46 +01:00
Sebastian Jeltsch
224ec74b58 Use bigint to represent longs in config proto for admin UI. Also use consistent patterns for float/real values. 2025-11-02 18:36:43 +01:00
Sebastian Jeltsch
3a785f99c0 Add support for literals to column/type inference logic for VIEWs. 2025-11-02 15:13:47 +01:00
Sebastian Jeltsch
5715f2d512 Update JSON schema registry when config is updated and re-validate config when rebuilding DB schemas (e.g. after a schema change). 2025-11-01 23:49:23 +01:00
Sebastian Jeltsch
232a984bba Minor: have trail --version also display SQLite version. 2025-11-01 09:14:50 +01:00
Sebastian Jeltsch
c27bef47b8 Prepare new release v0.20.6. v0.20.6 2025-11-01 02:04:38 +01:00
Sebastian Jeltsch
ebb24d022f Overhaul DB schema and JSON schema abstractions. Inject JSON schems registry explicitly, making our initialization order challenges more explicit too. 2025-11-01 01:47:52 +01:00
Sebastian Jeltsch
531a159da0 Fix out broken insert/update record form input validation in admin UI :hide: 2025-11-01 01:38:54 +01:00
Sebastian Jeltsch
7f325e8b3e Prepare new release v0.20.5. v0.20.5 2025-10-31 16:03:38 +01:00
Sebastian Jeltsch
fada5578d2 More consistently validate JSON inputs. 2025-10-31 16:00:47 +01:00
Sebastian Jeltsch
b9762f1d63 Fix initialization order issue for custom schemas (#170) and return client error for inputs rejected by SQLite CHECK constraint.
Also add both integration and end-to-end tests to ensure stability.
2025-10-31 14:44:09 +01:00
Sebastian Jeltsch
675330667d Minor: print some info with what to do when instantiating WASM component fails. 2025-10-30 20:24:14 +01:00
Sebastian Jeltsch
0ee62bab62 Prepare new release v0.20.4. v0.20.4 2025-10-30 15:24:05 +01:00
Sebastian Jeltsch
5d4cc4ce25 Address overflowing UI elements for column presets in admin UI. 2025-10-30 15:11:34 +01:00
Sebastian Jeltsch
8996d5ec2b Minor: drive by code de-nesting. 2025-10-30 14:46:17 +01:00
Sebastian Jeltsch
feb59a3532 Responsively move admin UI's main nav to the top on small screens. 2025-10-30 14:26:57 +01:00
Sebastian Jeltsch
f4dc44554e Switch to more actively maintained aes-gcm-siv crate (from aes-gcm) and clean-up cursor encryption code. 2025-10-30 12:42:12 +01:00
Sebastian Jeltsch
387f8ab9ab Update Rust dependencies, remove js-runtime from default crates, and address clippy issues. 2025-10-30 11:11:22 +01:00
Sebastian Jeltsch
be98526619 Add missing (but unused) metadata.proto ts bindings. 2025-10-29 12:04:37 +01:00
Sebastian Jeltsch
7437614f44 Build static MUSL version for docker image. The "static" GLibc builds have known issues and we critically rely on not looking up hostnames. 2025-10-29 07:49:00 +01:00
Sebastian Jeltsch
ab5dc6b2e1 Prepare new release v0.20.3. v0.20.3 2025-10-27 18:48:38 +01:00
Sebastian Jeltsch
3353182e59 Update Rust dependencies. 2025-10-27 18:48:38 +01:00
Sebastian Jeltsch
801d691768 Add untested Apple (or "Sign-in with Apple) OAuth provider.
I do not like adding untested code unstream, however apple makes it very hard to test, e.g. you cannot have a dev-service that accepts localhost callback addresses... . If you know of a way of testing "Sign-in with Apple" locally, please let me know 🙏.
2025-10-27 18:48:33 +01:00
Sebastian Jeltsch
d6ca41ae03 Prepare new release v0.20.2. v0.20.2 2025-10-25 12:49:56 +02:00
Sebastian Jeltsch
5b1159d037 Update Rust dependencies. 2025-10-24 22:52:23 +02:00
Sebastian Jeltsch
27e582621d Simplify static asset handling and remove caching from index.html for all client-side routed SPA paths. 2025-10-24 20:38:06 +02:00
Sebastian Jeltsch
b45ae6875f Prepare new release v0.20.1. v0.20.1 2025-10-23 13:40:03 +02:00
Sebastian Jeltsch
59360759cf Disable caching for static index.html assets. 2025-10-23 13:39:08 +02:00
Sebastian Jeltsch
3b5beb8fc9 Update Rust dependencies. 2025-10-23 10:32:03 +02:00
Sebastian Jeltsch
00896f2676 Fix issue with stale cached query results in admin SQL editor.
With v0.20.0 the internal representation of SQL values changed, which meant that the UI can no longer render the old format. Because the editor caches results, this lead to an error that could only be recovered from by deleting the browser's respective local storage. This change introduces an error boundary that informs the user and simply lets them re-execute the script to re-fetch data in the new format. This only affected existing users with pre-existing cached query results.
2025-10-23 10:25:05 +02:00
Sebastian Jeltsch
3aa0d208fe Prepare new release v0.20.0. v0.20.0 2025-10-22 11:20:16 +02:00
Sebastian Jeltsch
117bbcce82 Move trailbase-common to trailbase-sqlvalue.
Note that both trailbase-sqlvalue and trailbase-wasm-common should probably go away with WASIp3 using WASI for for all guest-host interactions.
2025-10-22 09:50:31 +02:00
Sebastian Jeltsch
3cebb7fa67 Minor: streamline some WASM Rust guest dependencies. 2025-10-22 09:50:08 +02:00
Sebastian Jeltsch
2b27613f38 Update Rust dependencies. 2025-10-22 00:44:01 +02:00
Sebastian Jeltsch
6b7c678934 Add a switch to change blob encoding in admin UI. 2025-10-22 00:30:58 +02:00
Sebastian Jeltsch
b29d5b9cc3 Fix admin image url construction after changing to SqlValue. 2025-10-21 22:13:26 +02:00
Sebastian Jeltsch
a245b458e6 More straight forward encoding APIs in TS client and remove non-url-safe public encoders. 2025-10-21 16:41:29 +02:00
Sebastian Jeltsch
9e46a099d0 Stop encoding SQL values as generic JSON values (outside the context of the record API), i.e. for admin APIs and between WASM host/guest.
This lets us simplify the parsing and add back a lot of type-safety (including int64). As a side-effect, we basically had to complete reqrite the record insert/update handling in the admin UI.

Note, however, that this is a breaking change, since it touches serialization between WASM guests and host. Guest will need to be built against an updated guest runtime.
2025-10-21 16:40:45 +02:00
Sebastian Jeltsch
a94650056f Fix blog for stricter SQL type parsing, i.e. change BOOLEAN to INTEGER. 2025-10-21 16:26:31 +02:00
Bilux
c0f896f621 Provide a base64_url_safe modeled based on SQLite's own base64() extension. 2025-10-21 10:18:37 +02:00
Sebastian Jeltsch
dc1978ff2e Update Rust dependencies. 2025-10-18 22:17:22 +02:00
Sebastian Jeltsch
605843b1c0 Model parsed column type information more closely after SQLite's. 2025-10-18 00:40:32 +02:00