mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #193] [MERGED] Generalized frontend model store #118
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/193
Author: @gschier
Created: 3/26/2025
Status: ✅ Merged
Merged: 3/31/2025
Merged by: @gschier
Base:
master← Head:frontend-model-store📝 Commits (10+)
02660aeA great start to generalized store4a0a7e3Migrate the rest of the modelsbbf68a1Fewer re-renders28e581fRemove some upsert/create hooks8e4e375Port delete operations too51bc503Model duplication5b4e96cRemove unused Tauri commands2d81569Fix key values and websocket request cloning7259348Fix key value watchingbf5078eWebsocket and GRPC event handling📊 Changes
201 files changed (+2177 additions, -2857 deletions)
View changed files
📝
package-lock.json(+6 -4)📝
package.json(+3 -0)📝
src-tauri/gen/schemas/acl-manifests.json(+1 -1)📝
src-tauri/gen/schemas/desktop-schema.json(+50 -0)📝
src-tauri/gen/schemas/macOS-schema.json(+50 -0)➕
src-tauri/migrations/20250326193143_key-value-id.sql(+43 -0)📝
src-tauri/src/http_request.rs(+2 -3)📝
src-tauri/src/lib.rs(+13 -466)📝
src-tauri/src/updates.rs(+1 -2)📝
src-tauri/yaak-license/src/license.rs(+1 -1)📝
src-tauri/yaak-models/bindings/gen_models.ts(+1 -1)📝
src-tauri/yaak-models/build.rs(+9 -1)➕
src-tauri/yaak-models/guest-js/atoms.ts(+80 -0)➕
src-tauri/yaak-models/guest-js/index.ts(+10 -0)➕
src-tauri/yaak-models/guest-js/store.ts(+199 -0)➕
src-tauri/yaak-models/guest-js/types.ts(+8 -0)➕
src-tauri/yaak-models/guest-js/util.ts(+23 -0)➖
src-tauri/yaak-models/index.ts(+0 -8)📝
src-tauri/yaak-models/package.json(+1 -1)➕
src-tauri/yaak-models/permissions/autogenerated/commands/duplicate.toml(+13 -0)...and 80 more files
📄 Description
This PR removes all the bespoke frontend model handling, replacing it with some generalized helpers for upsert/list/get/delete/duplicate.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.