From e88dc898b3c9c30099d56bdb0efe74ad3bee5a30 Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 4 Sep 2026 14:41:26 +0200 Subject: [PATCH] stash --- frontend/src/components/BaseLayout.vue | 2 +- frontend/src/components/Sidebar.vue | 22 +- frontend/src/components/UserDropdown.vue | 4 +- frontend/src/router.js | 67 ++++-- frontend/src/views/Dashboard.vue | 203 ++++++++++++++++++- frontend/src/views/Groups.vue | 4 +- frontend/src/views/Inventory.vue | 22 +- frontend/src/views/InventoryDetail.vue | 4 +- frontend/src/views/Login.vue | 4 +- frontend/src/views/Pairing.vue | 4 +- frontend/src/views/Register.vue | 4 +- frontend/src/views/Scan.vue | 4 +- frontend/src/views/Search.vue | 2 +- frontend/src/views/StorageLocation.vue | 24 ++- frontend/src/views/StorageLocationDetail.vue | 4 +- frontend/src/views/StorageLocationNew.vue | 2 +- frontend/src/views/WorkflowDetail.vue | 2 +- frontend/src/workflows.js | 4 +- 18 files changed, 298 insertions(+), 84 deletions(-) diff --git a/frontend/src/components/BaseLayout.vue b/frontend/src/components/BaseLayout.vue index 3ffe9a7..17b5ad0 100644 --- a/frontend/src/components/BaseLayout.vue +++ b/frontend/src/components/BaseLayout.vue @@ -9,7 +9,7 @@
- @@ -51,7 +51,7 @@ Delete diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue index 31bd515..b53830c 100644 --- a/frontend/src/views/Login.vue +++ b/frontend/src/views/Login.vue @@ -53,11 +53,11 @@

Don’t have an account? - Sign up + Sign up

Connect with existing account? - Pairing + Pairing

diff --git a/frontend/src/views/Pairing.vue b/frontend/src/views/Pairing.vue index f57d2ce..8a88e36 100644 --- a/frontend/src/views/Pairing.vue +++ b/frontend/src/views/Pairing.vue @@ -97,11 +97,11 @@

Already have an account? - Login + Login

Don’t have an account? - Sign up + Sign up

diff --git a/frontend/src/views/Register.vue b/frontend/src/views/Register.vue index ef4cfb2..cb8f164 100644 --- a/frontend/src/views/Register.vue +++ b/frontend/src/views/Register.vue @@ -77,11 +77,11 @@

Already have an account? - Login + Login

Connect with existing account? - Pairing + Pairing

diff --git a/frontend/src/views/Scan.vue b/frontend/src/views/Scan.vue index 66d6a5f..7524968 100644 --- a/frontend/src/views/Scan.vue +++ b/frontend/src/views/Scan.vue @@ -101,8 +101,8 @@ function classifyScanText(text) { const [, handle, kindLetter, id] = ownerMatch; const kind = kindLetter === "s" ? "storage_location" : "item"; const to = kind === "storage_location" - ? `/storage-locations/${encodeHandleForUrl(handle)}/${id}` - : `/inventory/${encodeHandleForUrl(handle)}/${id}`; + ? {name: 'locations-detail', params: {handle: encodeHandleForUrl(handle), id}} + : {name: 'inventory-detail', params: {handle: encodeHandleForUrl(handle), id}}; return {to, ownerQualifiedId: {handle, kind, id}}; } return null; diff --git a/frontend/src/views/Search.vue b/frontend/src/views/Search.vue index 701b3d2..c922b5a 100644 --- a/frontend/src/views/Search.vue +++ b/frontend/src/views/Search.vue @@ -112,7 +112,7 @@ export default { // user handle - one route shape, no owner-is-me special case. this.fetchSearchResults({query: this.query}).then((results) => { this.search_results = results.map(e => ( - {...e, route: `/inventory/${encodeHandleForUrl(e.owner)}/${e.id}`})) + {...e, route: {name: 'inventory-detail', params: {handle: encodeHandleForUrl(e.owner), id: e.id}}})) }); } }, diff --git a/frontend/src/views/StorageLocation.vue b/frontend/src/views/StorageLocation.vue index 27c98b2..496b2e3 100644 --- a/frontend/src/views/StorageLocation.vue +++ b/frontend/src/views/StorageLocation.vue @@ -55,10 +55,10 @@ {{ location.visibility_policy }} - + - + @@ -94,7 +94,7 @@ - Edit
- @@ -44,7 +44,7 @@ Delete diff --git a/frontend/src/views/StorageLocationNew.vue b/frontend/src/views/StorageLocationNew.vue index f004bb1..5c2f040 100644 --- a/frontend/src/views/StorageLocationNew.vue +++ b/frontend/src/views/StorageLocationNew.vue @@ -81,7 +81,7 @@ export default { ...BIcons }, props: { - // Matches /storage-locations/new/:group?. See docs/implementation.md#owner-filtered-overview-routes-use-path-segments-not-query-strings. + // Matches /locations/new/:group?. See docs/implementation.md#owner-filtered-overview-routes-use-path-segments-not-query-strings. group: { type: String, default: null diff --git a/frontend/src/views/WorkflowDetail.vue b/frontend/src/views/WorkflowDetail.vue index c8b5a44..9d9596f 100644 --- a/frontend/src/views/WorkflowDetail.vue +++ b/frontend/src/views/WorkflowDetail.vue @@ -8,7 +8,7 @@