fg-devkit 1.17.1 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,6 +49,14 @@ alwaysApply: true
|
|
|
49
49
|
- Centralize HTTP and endpoint wiring in a dedicated API layer (for example `src/api/endpoints/*` or the convention used in the repo).
|
|
50
50
|
- Consume server state through query/mutation hooks (for example `src/queries/*` or equivalent), not ad-hoc fetches in UI code.
|
|
51
51
|
|
|
52
|
+
## Query strings
|
|
53
|
+
|
|
54
|
+
- Build query strings with `URLSearchParams` (or a shared helper that wraps it).
|
|
55
|
+
- Do not concatenate `key=value` fragments with `&`.
|
|
56
|
+
- Let `URLSearchParams` encode values. Do not interpolate untrusted or user-entered values into URLs.
|
|
57
|
+
- `toString()` has no leading `?`. Prefix it when appending to a path, and skip empty values instead of emitting empty keys.
|
|
58
|
+
- For list views, derive the query string in the view from route filter state (`requestQueryParams` computed). The API layer should accept the query string, not reconstruct filters.
|
|
59
|
+
|
|
52
60
|
## State-management boundaries
|
|
53
61
|
|
|
54
62
|
- Use TanStack Query for server state and caching. Do not add Vuex for new work.
|
|
@@ -85,6 +93,11 @@ alwaysApply: true
|
|
|
85
93
|
- Prefer named-route navigation for internal flows (`{ name, params, query }`) and reserve raw path pushes for simple/static redirects.
|
|
86
94
|
- Preserve existing query params intentionally when updating filters, pagination, or tab state.
|
|
87
95
|
- Lazy-load route components with dynamic imports to keep initial bundles smaller.
|
|
96
|
+
- Name organisation route params by domain meaning, not generic `id`:
|
|
97
|
+
- top org: `:topClientNumber`
|
|
98
|
+
- unit/sub-org: `:unitClientNumber`
|
|
99
|
+
- Prefer `/organisations/:topClientNumber/units/:unitClientNumber` over `:id` / `:clino`.
|
|
100
|
+
- Keep route param names aligned with component props when using `props: true`.
|
|
88
101
|
|
|
89
102
|
## Vue and UI expectations
|
|
90
103
|
|
package/package.json
CHANGED
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"@intlify/unplugin-vue-i18n": "11.2.5",
|
|
33
33
|
"@tanstack/vue-query-devtools": "6.1.48",
|
|
34
34
|
"@types/node": "22.16.5",
|
|
35
|
-
"fg-devkit": "1.17.
|
|
35
|
+
"fg-devkit": "1.17.2",
|
|
36
36
|
"@vitejs/plugin-vue": "6.0.9",
|
|
37
37
|
"tailwindcss": "4.3.3",
|
|
38
38
|
"tsx": "4.23.13",
|
|
39
39
|
"vite": "7.3.5",
|
|
40
40
|
"vite-plugin-vue-inspector": "7.0.0"
|
|
41
41
|
},
|
|
42
|
-
"packageManager": "pnpm@
|
|
42
|
+
"packageManager": "pnpm@12.4.2",
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=22.13.0"
|
|
45
45
|
}
|