@abgov/nx-adsp 13.31.0 → 13.31.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.
Files changed (69) hide show
  1. package/README.md +41 -32
  2. package/package.json +1 -1
  3. package/src/generators/angular-app/angular-app.js +2 -2
  4. package/src/generators/angular-app/files/AGENTS.md__tmpl__ +16 -0
  5. package/src/generators/express-service/express-service.spec.ts +26 -13
  6. package/src/generators/express-service/schema.json +1 -1
  7. package/src/generators/react-app/files/AGENTS.md__tmpl__ +16 -0
  8. package/src/generators/react-app/react-app.js +2 -2
  9. package/src/generators/vue-admin-crud/files/src/views/__editViewFileName__.vue__tmpl__ +3 -5
  10. package/src/generators/vue-admin-crud/files/src/views/__listViewFileName__.vue__tmpl__ +33 -4
  11. package/src/generators/vue-admin-crud/schema.d.ts +2 -0
  12. package/src/generators/vue-admin-crud/schema.json +7 -8
  13. package/src/generators/vue-admin-crud/vue-admin-crud.js +6 -1
  14. package/src/generators/vue-admin-crud/vue-admin-crud.js.map +1 -1
  15. package/src/generators/vue-admin-crud/vue-admin-crud.spec.ts +96 -13
  16. package/src/generators/vue-app/files/AGENTS.md__tmpl__ +56 -11
  17. package/src/generators/vue-app/files/src/App.vue__tmpl__ +2 -1
  18. package/src/generators/vue-app/files/src/composables/useApi.spec.ts__tmpl__ +5 -3
  19. package/src/generators/vue-app/files/src/composables/useApi.ts__tmpl__ +14 -2
  20. package/src/generators/vue-app/vue-app.js +33 -6
  21. package/src/generators/vue-app/vue-app.js.map +1 -1
  22. package/src/generators/vue-app/vue-app.spec.ts +133 -13
  23. package/src/generators/vue-components/files/AGENTS.md__tmpl__ +36 -17
  24. package/src/generators/vue-components/files/src/index.ts__tmpl__ +3 -0
  25. package/src/generators/vue-components/files/src/lib/formatters.ts__tmpl__ +58 -0
  26. package/src/generators/vue-components/files/src/lib/patterns/AppSideMenu.vue__tmpl__ +14 -3
  27. package/src/generators/vue-components/files/src/lib/patterns/FilterBar.vue__tmpl__ +7 -1
  28. package/src/generators/vue-components/files/src/lib/patterns/WorkspaceTable.vue__tmpl__ +7 -1
  29. package/src/generators/vue-components/vue-components.d.ts +1 -0
  30. package/src/generators/vue-components/vue-components.js +18 -39
  31. package/src/generators/vue-components/vue-components.js.map +1 -1
  32. package/src/generators/vue-components/vue-components.spec.ts +94 -2
  33. package/src/generators/vue-detail-view/files/src/views/__viewFileName__.vue__tmpl__ +51 -2
  34. package/src/generators/vue-detail-view/schema.d.ts +18 -0
  35. package/src/generators/vue-detail-view/schema.json +2 -2
  36. package/src/generators/vue-detail-view/vue-detail-view.js +4 -1
  37. package/src/generators/vue-detail-view/vue-detail-view.js.map +1 -1
  38. package/src/generators/vue-detail-view/vue-detail-view.spec.ts +36 -6
  39. package/src/generators/vue-intake-view/files/shared/src/views/__confirmationViewFileName__.vue__tmpl__ +60 -6
  40. package/src/generators/vue-intake-view/files/shared/src/views/__reviewViewFileName__.vue__tmpl__ +37 -1
  41. package/src/generators/vue-intake-view/files/steps/src/views/__stepViewFileName__.vue__tmpl__ +1 -1
  42. package/src/generators/vue-intake-view/schema.d.ts +10 -0
  43. package/src/generators/vue-intake-view/schema.json +12 -9
  44. package/src/generators/vue-intake-view/vue-intake-view.js +9 -3
  45. package/src/generators/vue-intake-view/vue-intake-view.js.map +1 -1
  46. package/src/generators/vue-intake-view/vue-intake-view.spec.ts +113 -12
  47. package/src/generators/vue-workspace-view/files/src/views/__viewFileName__.vue__tmpl__ +49 -1
  48. package/src/generators/vue-workspace-view/schema.d.ts +22 -0
  49. package/src/generators/vue-workspace-view/schema.json +8 -9
  50. package/src/generators/vue-workspace-view/vue-workspace-view.js +7 -1
  51. package/src/generators/vue-workspace-view/vue-workspace-view.js.map +1 -1
  52. package/src/generators/vue-workspace-view/vue-workspace-view.spec.ts +73 -7
  53. package/src/utils/paired-project.d.ts +10 -0
  54. package/src/utils/paired-project.js +125 -18
  55. package/src/utils/paired-project.js.map +1 -1
  56. package/src/utils/paired-project.spec.ts +126 -0
  57. package/src/utils/quality.js +43 -9
  58. package/src/utils/quality.js.map +1 -1
  59. package/src/utils/quality.spec.ts +35 -2
  60. package/src/utils/vue-eslint.d.ts +2 -0
  61. package/src/utils/vue-eslint.js +48 -0
  62. package/src/utils/vue-eslint.js.map +1 -0
  63. package/src/utils/vue-side-menu.d.ts +13 -1
  64. package/src/utils/vue-side-menu.js +50 -5
  65. package/src/utils/vue-side-menu.js.map +1 -1
  66. package/src/utils/vue-side-menu.spec.ts +100 -0
  67. package/src/utils/vue-tsconfig.d.ts +26 -0
  68. package/src/utils/vue-tsconfig.js +49 -0
  69. package/src/utils/vue-tsconfig.js.map +1 -0
@@ -64,7 +64,9 @@ describe('Vue Admin CRUD Generator', () => {
64
64
  expect(view).toContain("await list('regions')");
65
65
  // The envelope shape is the adapter's business, not the view's.
66
66
  expect(view).not.toContain('data.results');
67
- expect(view).toContain("import { WorkspaceTable } from '@proj/vue-components';");
67
+ expect(view).toContain(
68
+ "import { WorkspaceTable } from '@proj/vue-components';",
69
+ );
68
70
  expect(view).toContain('<WorkspaceTable');
69
71
  // No pagination props bound -- this is the "reused without its pagination/
70
72
  // filter props" case, unlike vue-workspace-view (the WorkspaceTable tag
@@ -76,7 +78,7 @@ describe('Vue Admin CRUD Generator', () => {
76
78
  expect(view).toContain('Create Regions');
77
79
  expect(view).toContain(':to="`/regions/${row.id}`"');
78
80
  // Checkbox field renders as a Yes/No badge in the list.
79
- expect(view).toContain("#cell-active=\"{ row }\"");
81
+ expect(view).toContain('#cell-active="{ row }"');
80
82
  expect(view).toContain("row['active'] ? 'Yes' : 'No'");
81
83
  }, 30000);
82
84
 
@@ -87,8 +89,10 @@ describe('Vue Admin CRUD Generator', () => {
87
89
  .read('apps/test/src/views/RegionsEditView.vue')
88
90
  .toString();
89
91
  expect(view).toContain("idParam.value === 'new' || idParam.value === ''");
90
- expect(view).toContain("import { GoabInput, GoabCheckbox } from '@proj/vue-components';");
91
- expect(view).toContain("name.trim()");
92
+ expect(view).toContain(
93
+ "import { GoabInput, GoabCheckbox } from '@proj/vue-components';",
94
+ );
95
+ expect(view).toContain('name.trim()');
92
96
  expect(view).toContain("errors.name = 'Name is required.';");
93
97
  // Checkbox has no required-validation block.
94
98
  expect(view).not.toContain('errors.active');
@@ -149,7 +153,9 @@ describe('Vue Admin CRUD Generator', () => {
149
153
  expect(view).toContain('type="number"');
150
154
  expect(view).toContain('<GoabDatePicker v-model="form.effective"');
151
155
  expect(view).toContain('<GoabDropdown v-model="form.region"');
152
- expect(view).toContain('<goa-dropdown-item value="north" label="North" />');
156
+ expect(view).toContain(
157
+ '<goa-dropdown-item value="north" label="North" />',
158
+ );
153
159
  expect(view).toContain('<GoabCheckbox v-model="form.active"');
154
160
  });
155
161
 
@@ -172,8 +178,12 @@ describe('Vue Admin CRUD Generator', () => {
172
178
  const view = host
173
179
  .read('apps/test/src/views/RegionsEditView.vue')
174
180
  .toString();
175
- expect(view).toContain("quota: form.quota === '' ? null : Number(form.quota)");
176
- expect(view).toContain('effective: toIsoDateString(form.effective) || null');
181
+ expect(view).toContain(
182
+ "quota: form.quota === '' ? null : Number(form.quota)",
183
+ );
184
+ expect(view).toContain(
185
+ 'effective: toIsoDateString(form.effective) || null',
186
+ );
177
187
  // A stored YYYY-MM-DD comes back as a Date the picker can redisplay.
178
188
  expect(view).toContain("fromIsoDateString(data['effective'])");
179
189
  });
@@ -225,8 +235,12 @@ describe('Vue Admin CRUD Generator', () => {
225
235
  heading: 'Regions',
226
236
  singularLabel: 'Region',
227
237
  });
228
- const list = host.read('apps/test/src/views/RegionsListView.vue').toString();
229
- const edit = host.read('apps/test/src/views/RegionsEditView.vue').toString();
238
+ const list = host
239
+ .read('apps/test/src/views/RegionsListView.vue')
240
+ .toString();
241
+ const edit = host
242
+ .read('apps/test/src/views/RegionsEditView.vue')
243
+ .toString();
230
244
  expect(list).toContain('<h1>Regions</h1>');
231
245
  expect(list).toContain('Create Region');
232
246
  expect(edit).toContain('Create Region');
@@ -238,7 +252,9 @@ describe('Vue Admin CRUD Generator', () => {
238
252
  ...baseOptions,
239
253
  fields: [{ key: 'name', label: 'Name', required: false }],
240
254
  });
241
- const edit = host.read('apps/test/src/views/RegionsEditView.vue').toString();
255
+ const edit = host
256
+ .read('apps/test/src/views/RegionsEditView.vue')
257
+ .toString();
242
258
  expect(edit).not.toContain("errors.name = 'Name is required.'");
243
259
  expect(edit).not.toContain('requirement="required"');
244
260
  }, 30000);
@@ -278,9 +294,7 @@ describe('Vue Admin CRUD Generator', () => {
278
294
  expect(routerTs).toContain(
279
295
  "component: () => import('../views/RegionsEditView.vue')",
280
296
  );
281
- expect(
282
- routerTs.split('requiresAuth: true').length - 1,
283
- ).toBe(2);
297
+ expect(routerTs.split('requiresAuth: true').length - 1).toBe(2);
284
298
  // The existing route is untouched, not replaced.
285
299
  expect(routerTs).toContain("{ path: '/', component: HomeView }");
286
300
  }, 30000);
@@ -304,4 +318,73 @@ describe('Vue Admin CRUD Generator', () => {
304
318
  const after = readProjectConfiguration(host, 'test');
305
319
  expect(after).toEqual(before);
306
320
  }, 30000);
321
+
322
+ // Regression: both actions were gated on `kc.authenticated` unconditionally,
323
+ // ignoring --requiresAuth. With --requiresAuth=false a consumer got a fillable
324
+ // form whose only button was Cancel, and a list with no Create button, and no
325
+ // message explaining why. Access control belongs to the route guard (which
326
+ // already honours requiresAuth via route meta), not to markup in the view --
327
+ // and vue-intake-view never had this gate, so the two disagreed.
328
+ it('does not gate its actions on kc.authenticated', async () => {
329
+ await generator(host, { ...baseOptions, requiresAuth: false });
330
+ const list = host
331
+ .read('apps/test/src/views/RegionsListView.vue')
332
+ .toString();
333
+ const edit = host
334
+ .read('apps/test/src/views/RegionsEditView.vue')
335
+ .toString();
336
+ for (const view of [list, edit]) {
337
+ expect(view).not.toContain('kc.authenticated');
338
+ expect(view).not.toContain('useKeycloak');
339
+ }
340
+ // The actions themselves are still there, unconditionally. Matched loosely
341
+ // because formatFiles reflows the long button tag across lines.
342
+ expect(list).toContain('<router-link to="/regions/new">');
343
+ expect(edit).toMatch(/<goa-button[\s\S]{0,120}type="primary"/);
344
+ expect(edit).toContain('@_click="onSubmit"');
345
+ }, 30000);
346
+
347
+ it('renders a coded field using its label, not the stored code', async () => {
348
+ await generator(host, {
349
+ ...baseOptions,
350
+ fields: [
351
+ { key: 'name', label: 'Name' },
352
+ {
353
+ key: 'species',
354
+ label: 'Species',
355
+ type: 'select',
356
+ options: [{ value: 'cattle-mature', label: 'Cattle (mature)' }],
357
+ },
358
+ ],
359
+ });
360
+ const list = host
361
+ .read('apps/test/src/views/RegionsListView.vue')
362
+ .toString();
363
+ expect(list).toContain(
364
+ "optionLabel(fieldOptions['species'], row['species'])",
365
+ );
366
+ expect(list).toContain('Cattle (mature)');
367
+ }, 30000);
368
+
369
+ // Regression: goa-form-item's `mb` defaults to none, so stacked items rendered
370
+ // flush against each other -- a field's label sat directly on the previous
371
+ // field's input. `l` is the design system's own convention for vertical forms
372
+ // (110 uses against 11 of `xl` in GoA's reference app).
373
+ it('spaces stacked form items so fields do not sit flush', async () => {
374
+ await generator(host, baseOptions);
375
+ const edit = host
376
+ .read('apps/test/src/views/RegionsEditView.vue')
377
+ .toString();
378
+ // Counted per tag rather than as a contiguous string: formatFiles reflows a
379
+ // multi-attribute tag across lines, so `<goa-form-item mb="l"` is not a
380
+ // reliable substring.
381
+ const tags = edit
382
+ .split('<goa-form-item')
383
+ .slice(1)
384
+ .map((fragment) => fragment.slice(0, fragment.indexOf('>')));
385
+ expect(tags.length).toBeGreaterThan(0);
386
+ for (const tag of tags) {
387
+ expect(tag).toContain('mb="l"');
388
+ }
389
+ }, 30000);
307
390
  });
@@ -7,7 +7,7 @@ Generated by `nx g @abgov/nx-adsp:vue-app`.
7
7
 
8
8
  This app is paired with **`<%= pairedProject %>`** — the Express backend it talks to.
9
9
  API calls use the `/api/` prefix which the Vite dev proxy rewrites to `/<%= pairedProject %>/` on port 3333.
10
- When working on a feature that spans both projects, read `apps/<%= pairedProject %>/AGENTS.md` for the service context.
10
+ When working on a feature that spans both projects, read `<%= pairedProjectRoot %>/AGENTS.md` for the service context.
11
11
  <% } %>
12
12
  ## Running Nx commands (coding agents)
13
13
 
@@ -157,9 +157,9 @@ Extra props/events fall through to the underlying `goa-*` element, so anything
157
157
  the design system supports still works. For components without a wrapper, use the
158
158
  `goa-*` element directly with the manual wiring above. The library is shared
159
159
  across every Vue app in this workspace — fix or extend a wrapper once in
160
- `libs/vue-components` (or run `nx g @abgov/nx-adsp:vue-components` to restore it).
160
+ `<%= goaLibRoot %>` (or run `nx g @abgov/nx-adsp:vue-components` to restore it).
161
161
 
162
- > **Interim:** these wrappers (`libs/vue-components/src/lib/primitives/`) are a
162
+ > **Interim:** these wrappers (`<%= goaLibRoot %>/src/lib/primitives/`) are a
163
163
  > stopgap until GoA DS ships an official `@abgov/vue-components`. When it lands,
164
164
  > delete `primitives/` and repoint imports at that package — the names/props are
165
165
  > intended to match, so it's a scope swap. This does **not** apply to the
@@ -176,7 +176,7 @@ from **`<%= goaImportPath %>`**, not hand-rolled markup:
176
176
 
177
177
  | Component | Purpose |
178
178
  |---|---|
179
- | `AppSideMenu` | `goa-work-side-menu`. Takes `heading`/`primaryItems`/`secondaryItems`/`accountItems` props (each item: `{ label, to?, icon?, badge?, current? }`) and emits `itemClick` — it doesn't know about routing or auth, so `App.vue` computes `current`/handles the click itself. `App.vue` currently only populates `accountItems` (a single Sign in/out item); add real nav items to `primaryItems`/`secondaryItems` as routes are added. **`icon` is effectively required** — `goa-work-side-menu-item` renders a blank item without it; use a GoA icon name (see [design.alberta.ca/components/icons](https://design.alberta.ca/components/icons)). Also owns the skip-to-main-content landmark for this layout — `AppLayout` deliberately doesn't duplicate it. Also takes an optional `#topbar` slot — a slim row above the routed content, for something like a notification bell; only renders when given content, unused by default |
179
+ | `AppSideMenu` | `goa-work-side-menu`. Takes `heading`/`primaryItems`/`secondaryItems`/`accountItems` props (each item: `{ label, to?, icon?, badge?, current? }`) and emits `itemClick` — it doesn't know about routing or auth, so `App.vue` computes `current`/handles the click itself. `App.vue` seeds `primaryItems` with Home and an `accountItems` Sign in/out item; the `vue-*-view` generators append their own entries, and you can add more by hand. **`icon` is effectively required** — `goa-work-side-menu-item` renders a blank item without it; use a GoA icon name (see [design.alberta.ca/components/icons](https://design.alberta.ca/components/icons)). Also owns the skip-to-main-content landmark for this layout — `AppLayout` deliberately doesn't duplicate it. Also takes an optional `#topbar` slot — a slim row above the routed content, for something like a notification bell; only renders when given content, unused by default |
180
180
  | `AppLayout` | The content gutter every view renders inside (see the key files table) |
181
181
  | `SessionExpiredBanner` | A `v-model:show` banner with `signIn`/`dismiss` emits. Bound to the `useSessionStore()` Pinia store (`src/stores/session.ts`), which `main.ts`'s `onAuthRefreshError` hook flips when the refresh token itself has expired |
182
182
 
@@ -195,7 +195,7 @@ marketing chrome around a staff tool).
195
195
  | `SessionExpiredBanner` | A `v-model:show` banner with `signIn`/`dismiss` emits. Bound to the `useSessionStore()` Pinia store (`src/stores/session.ts`), which `main.ts`'s `onAuthRefreshError` hook flips when the refresh token itself has expired |
196
196
  <% } %>
197
197
  These are shared across every Vue app in this workspace — fix or extend one once
198
- in `libs/vue-components/src/lib/patterns/`, the same way as the `Goab*` wrappers.
198
+ in `<%= goaLibRoot %>/src/lib/patterns/`, the same way as the `Goab*` wrappers.
199
199
 
200
200
  A second, **`--layout=<%= layout === 'internal' ? 'header' : 'internal' %>`** frontend
201
201
  can be scaffolded against the same backend with `nx g @abgov/nx-adsp:vue-app <name>
@@ -222,6 +222,22 @@ generator's own schema description for why). Only hand-author a view when none o
222
222
  match, or once a generator's output needs customization it doesn't cover — its own comments
223
223
  mark what's meant to be edited.
224
224
 
225
+ ### Options that decide what a person sees
226
+
227
+ These are easy to omit and the result looks plausible until someone reads the screen, so
228
+ they are worth getting right on the first run:
229
+
230
+ | Pass | On | Or else |
231
+ |---|---|---|
232
+ | `options: [{ value, label }]` on a field/column | any generator, for any value stored as a code | the view renders the raw code — `northwest`, `cattle-mature` — including on the check-your-answers page, whose whole purpose is that the person can read back what they entered |
233
+ | `badgeMap: { approved: 'success', declined: 'emergency' }` | a `badge` column/field | every status renders the same neutral blue, so a declined claim reads as routine |
234
+ | `--referenceField=<key>` | `vue-intake-view` | the confirmation page falls back to the route id, presenting a storage id as "your reference number" (defaults to `reference`) |
235
+ | `--icon=<name>` | `vue-workspace-view`, `vue-admin-crud` | defaults (`list`, `settings`) are used; pick one that suits the screen |
236
+
237
+ The lookup itself is shared — `optionLabel` and `badgeType` in `<%= goaLibRoot %>/src/lib/formatters.ts`
238
+ — so a hand-authored view should use them too rather than re-deriving a mapping. See that
239
+ lib's own AGENTS.md for the full component catalog.
240
+
225
241
  1. Create `src/views/MyFeatureView.vue` as a `<script setup>` SFC. **Don't add your
226
242
  own page margins/centering** — every view renders inside `AppLayout`'s gutter, so
227
243
  any top-level tag (`<div>`, `<section>`, …) is already centered and padded.
@@ -247,15 +263,17 @@ mark what's meant to be edited.
247
263
  ```typescript
248
264
  const primaryItems = [
249
265
  { label: 'Home', to: '/', icon: 'home' },
250
- { label: 'Review queue', to: '/queue' }, // added by vue-workspace-view
266
+ { label: 'Review queue', to: '/queue', icon: 'list' }, // added by vue-workspace-view
251
267
  ];
252
268
  ```
253
269
 
254
- Two things worth adding by hand: **`icon`** is effectively required —
255
- `goa-work-side-menu-item` renders a blank item without one, and the generators can't guess it
256
- (icon names: [design.alberta.ca/components/icons](https://design.alberta.ca/components/icons)).
257
- And **`current`** for active highlighting, e.g. `current: route.path.startsWith('/queue')`,
258
- which needs the `route` already in scope.
270
+ **`icon`** is effectively required — `goa-work-side-menu-item` renders a blank item without
271
+ one so the generators supply it: `vue-workspace-view` defaults to `list` and
272
+ `vue-admin-crud` to `settings`. Pass `--icon=<name>` to choose a better one for the screen
273
+ (names: [design.alberta.ca/components/icons](https://design.alberta.ca/components/icons)).
274
+
275
+ Still worth adding by hand: **`current`** for active highlighting, e.g.
276
+ `current: route.path.startsWith('/queue')`, which needs the `route` already in scope.
259
277
 
260
278
  The `header` layout has no side menu, so it has no `primaryItems` array and the generators
261
279
  skip the step silently — use route-level breadcrumbs or a nav inside the view instead.
@@ -304,6 +322,17 @@ await save('my-resource', id, payload) // an id = update
304
322
  await action('my-resource', id, 'submit') // POST /:id/submit
305
323
  ```
306
324
 
325
+ These build their URL through `apiConvention.path()`, which resolves to
326
+ `/api/v1/<resource>`. `/api/` is the dev-proxy and nginx location; `v1` is the version the
327
+ paired `express-service` mounts its routers under (`/<service>/v1`), and the proxy rewrites
328
+ `/api/` to `/<service>/`. If your API is versioned differently — or not at all — change
329
+ `apiConvention` and nothing else: the views only ever call through that seam, so no view
330
+ needs editing.
331
+
332
+ In dev the rewrite lives in `vite.proxy.cjs`. That file is a CommonJS module rather than
333
+ JSON on purpose: Vite rewrites a proxied path with a `rewrite` function, and a JSON config
334
+ cannot hold a function. Add a route by appending a row to its `routes` array.
335
+
307
336
  Every wire-level detail these hide — the base path, whether paging is `page`/`limit` or
308
337
  `limit`/`offset`, whether rows arrive bare or under `results`/`entries`, whether an update is PUT
309
338
  or PATCH — lives in the **API convention adapter** at the top of
@@ -373,6 +402,22 @@ describe('MyComponent', () => {
373
402
  });
374
403
  ```
375
404
 
405
+ ### Accessibility check — expand its route list
406
+
407
+ The generated e2e project ships `src/a11y.spec.ts`: an axe-core check scoped to WCAG 2.1
408
+ A/AA, run as part of the normal `e2e` target. **It only covers the routes named in its own
409
+ `ROUTES` array, which ships as `['/']`.**
410
+
411
+ Add an entry whenever you add a route — whether a generator added it or you hand-edited the
412
+ router. Nothing does this for you: no generator writes to that file (it is left alone once it
413
+ exists so your edits survive), so a router that has grown past `/` while `ROUTES` has not is
414
+ a check that has quietly stopped covering the app. `/` is mostly app shell, so it exercises
415
+ almost none of the elements the rest of the app is built from.
416
+
417
+ Expect real failures when you expand it, and triage before fixing: some violations originate
418
+ inside `@abgov/web-components`' own shadow DOM and cannot be addressed from app code. Those
419
+ need an upstream fix or a documented exclusion, not a workaround in your view.
420
+
376
421
  ## OpenShift targets
377
422
 
378
423
  ```bash
@@ -37,7 +37,7 @@ function signInAgain() {
37
37
  // prune -- a generated app is a starting point, not a fixed shell. Items are
38
38
  // `{ label, to }`; add `icon` for a leading icon or `badge` for a count.
39
39
  const primaryItems = [
40
- { label: 'Home', to: '/' },
40
+ { label: 'Home', to: '/', icon: 'home' },
41
41
  ];
42
42
 
43
43
  // AppSideMenu's items are presentational — it doesn't know about Keycloak or
@@ -64,6 +64,7 @@ function onItemClick(item: { to?: string }) {
64
64
  <% if (layout === 'internal') { %>
65
65
  <AppSideMenu
66
66
  heading="<%= projectName %>"
67
+ :user-name="kc.fullName"
67
68
  :primary-items="primaryItems"
68
69
  :account-items="accountItems"
69
70
  @item-click="onItemClick"
@@ -7,9 +7,11 @@ import { apiConvention } from './useApi'
7
7
  // it -- a failure here means a generated view's assumptions moved.
8
8
  describe('apiConvention', () => {
9
9
  it('builds collection, record, and action paths', () => {
10
- expect(apiConvention.path('widgets')).toBe('/api/widgets')
11
- expect(apiConvention.path('widgets', 7)).toBe('/api/widgets/7')
12
- expect(apiConvention.path('widgets', 7, 'submit')).toBe('/api/widgets/7/submit')
10
+ expect(apiConvention.path('widgets')).toBe('/api/v1/widgets')
11
+ expect(apiConvention.path('widgets', 7)).toBe('/api/v1/widgets/7')
12
+ expect(apiConvention.path('widgets', 7, 'submit')).toBe(
13
+ '/api/v1/widgets/7/submit',
14
+ )
13
15
  })
14
16
 
15
17
  it('maps a domain page/pageSize onto this API page/limit parameters', () => {
@@ -32,9 +32,21 @@ export interface ListResult<T = Record<string, unknown>> {
32
32
  }
33
33
 
34
34
  export const apiConvention = {
35
- /** Path to a collection, one record, or a named action on a record. */
35
+ /**
36
+ * Path to a collection, one record, or a named action on a record.
37
+ *
38
+ * `/api/` is the dev-proxy and nginx location; `v1` is the API version the
39
+ * paired express-service mounts its routers under (`/<service>/v1`), and the
40
+ * proxy rewrites `/api/` to `/<service>/`. Dropping the version segment here
41
+ * (an earlier version of this file did) makes every list/get/save 404 against
42
+ * a generated backend, while HomeView and AGENTS.md -- which spell out
43
+ * `/api/v1/...` by hand -- keep working, so the mismatch is easy to miss.
44
+ *
45
+ * This is the one place to change if your API is versioned differently, or not
46
+ * at all: the views only ever call through this seam.
47
+ */
36
48
  path(resource: string, id?: string | number, action?: string): string {
37
- const base = `/api/${resource}`
49
+ const base = `/api/v1/${resource}`
38
50
  if (id === undefined || id === null) return base
39
51
  return action ? `${base}/${id}/${action}` : `${base}/${id}`
40
52
  },
@@ -12,6 +12,8 @@ const devkit_1 = require("@nx/devkit");
12
12
  const path = require("path");
13
13
  const paired_project_1 = require("../../utils/paired-project");
14
14
  const nginx_1 = require("../../utils/nginx");
15
+ const vue_eslint_1 = require("../../utils/vue-eslint");
16
+ const vue_tsconfig_1 = require("../../utils/vue-tsconfig");
15
17
  const vue_components_1 = require("../vue-components/vue-components");
16
18
  function normalizeOptions(host, options) {
17
19
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
@@ -45,12 +47,23 @@ function addFiles(host, options) {
45
47
  var _a;
46
48
  const templateOptions = Object.assign(Object.assign(Object.assign({}, options), options.adsp), { offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot), pairedProject: (_a = options.pairedProject) !== null && _a !== void 0 ? _a : null,
47
49
  // Import specifier for the shared GoA wrapper lib (AGENTS.md references it).
48
- goaImportPath: (0, vue_components_1.vueComponentsImportPath)(host), tmpl: '' });
50
+ goaImportPath: (0, vue_components_1.vueComponentsImportPath)(host),
51
+ // Real workspace-relative roots, so AGENTS.md can point at files that exist.
52
+ // Hardcoding `libs/`/`apps/` made every path in the generated guidance wrong
53
+ // in a TS-solution workspace, where projects sit at the workspace root.
54
+ goaLibRoot: (0, vue_components_1.vueComponentsLibRoot)(host), pairedProjectRoot: options.pairedProject
55
+ ? (0, devkit_1.readProjectConfiguration)(host, options.pairedProject).root
56
+ : null, tmpl: '' });
49
57
  (0, devkit_1.generateFiles)(host, path.join(__dirname, 'files'), options.projectRoot, templateOptions);
50
- host.write(`${options.projectRoot}/public/nginx.conf`, (0, nginx_1.generateNginxConf)({ proxyLocations: options.nginxProxies, silentCheckSso: true }));
58
+ host.write(`${options.projectRoot}/public/nginx.conf`, (0, nginx_1.generateNginxConf)({
59
+ proxyLocations: options.nginxProxies,
60
+ silentCheckSso: true,
61
+ }));
51
62
  const addProxyConf = options.nginxProxies.length > 0;
52
63
  if (addProxyConf) {
53
- (0, devkit_1.writeJson)(host, `${options.projectRoot}/vite.proxy.json`, (0, paired_project_1.buildDevProxyConf)(options.nginxProxies));
64
+ // A .cjs module, not JSON: Vite rewrites a proxied path with a `rewrite`
65
+ // function and silently ignores the `pathRewrite` key JSON would carry.
66
+ host.write(`${options.projectRoot}/${paired_project_1.VITE_PROXY_FILENAME}`, (0, paired_project_1.buildViteDevProxyModule)((0, paired_project_1.viteDevProxyRoutes)(options.nginxProxies)));
54
67
  }
55
68
  return addProxyConf;
56
69
  }
@@ -85,9 +98,19 @@ function default_1(host, options) {
85
98
  // real current alternative — and GoA's own design-system docs don't list Vue
86
99
  // as a supported framework at all.
87
100
  yield (0, vue_components_1.default)(host);
101
+ // The shell projects into goa-one-column-layout's native `header`/`footer`
102
+ // slots, and app authors composing goa-* elements need the same attribute
103
+ // (goa-modal's `actions`, goa-app-header's `utilities`). Applied to both
104
+ // layouts, not just the one whose template emits it today -- scoping this to
105
+ // the single known call site is what let `nx lint` start failing on
106
+ // unmodified output when the shell adopted goa-one-column-layout.
107
+ (0, vue_eslint_1.disableSlotAttributeRule)(host, normalizedOptions.projectRoot, "The app shell projects into goa-one-column-layout's native `slot`");
108
+ // @nx/vue can leave the app's tsconfig with a bundler moduleResolution and no
109
+ // `module`, which is invalid against a TS-solution base -- see the util.
110
+ (0, vue_tsconfig_1.ensureBundlerModuleOption)(host, `${normalizedOptions.projectRoot}/tsconfig.json`);
88
111
  (0, devkit_1.addDependenciesToPackageJson)(host, {
89
- '@abgov/design-tokens': '2.12.0',
90
- '@abgov/web-components': '2.3.0',
112
+ '@abgov/design-tokens': '2.12.8',
113
+ '@abgov/web-components': '2.4.0',
91
114
  // keycloak-js is a transitive dependency of @dsb-norge/vue-keycloak-js;
92
115
  // don't pin it directly or the versions diverge into two copies.
93
116
  '@dsb-norge/vue-keycloak-js': '^3.0.0',
@@ -115,6 +138,10 @@ function default_1(host, options) {
115
138
  'src/components/AppLayout.vue',
116
139
  'src/views/AboutView.vue',
117
140
  'vite.config.mts',
141
+ // Superseded by vite.proxy.cjs. The JSON form could not express Vite's
142
+ // `rewrite` function, so it was inert -- leaving it would strand a file
143
+ // that looks like live proxy config but isn't referenced.
144
+ 'vite.proxy.json',
118
145
  ]) {
119
146
  if (host.exists(`${normalizedOptions.projectRoot}/${f}`)) {
120
147
  host.delete(`${normalizedOptions.projectRoot}/${f}`);
@@ -129,7 +156,7 @@ function default_1(host, options) {
129
156
  const config = (0, devkit_1.readProjectConfiguration)(host, options.name);
130
157
  // Wire the vite dev-server proxy when nginx proxy locations are configured.
131
158
  if (addedProxy && ((_a = config.targets.serve) === null || _a === void 0 ? void 0 : _a.options)) {
132
- config.targets.serve.options = Object.assign(Object.assign({}, config.targets.serve.options), { proxyConfig: `${normalizedOptions.projectRoot}/vite.proxy.json` });
159
+ config.targets.serve.options = Object.assign(Object.assign({}, config.targets.serve.options), { proxyConfig: `${normalizedOptions.projectRoot}/${paired_project_1.VITE_PROXY_FILENAME}` });
133
160
  }
134
161
  // nginx.conf lives in the Vite publicDir
135
162
  // (<projectRoot>/public) so it's emitted to the build output root — the
@@ -1 +1 @@
1
- {"version":3,"file":"vue-app.js","sourceRoot":"","sources":["../../../../../../packages/nx-adsp/src/generators/vue-app/vue-app.ts"],"names":[],"mappings":";;AAkHA,4BA+MC;;AAjUD,wCAIsB;AACtB,6CAA6E;AAC7E,+DAIoC;AACpC,+DAA4D;AAC5D,iDAK6B;AAC7B,uCAAyC;AACzC,uCAYoB;AACpB,6BAA6B;AAC7B,+DAGoC;AACpC,6CAAsD;AACtD,qEAE0C;AAG1C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M;gBACrC,aAAa,EAAE,+BAAc;gBAC7B,aAAa,EAAE;oBACb,aAAa,EAAE,MAAM;oBACrB,aAAa,EAAE,MAAM;oBACrB,qBAAqB,EAAE,QAAQ;oBAC/B,iCAAiC,EAAE,aAAa;iBACjD;aACF,EACD,IAAI,EACJ,iBAAiB,CAAC,WAAW,CAC9B,CACF,CAAC;QACJ,CAAC;QAED,MAAM,IAAA,2BAAmB,EAAC,IAAI,kCACzB,iBAAiB,KACpB,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,iBAAiB,CAAC,WAAW,IACtC,CAAC;QAEH,OAAO,GAAG,EAAE;YACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;IACJ,CAAC;CAAA"}
1
+ {"version":3,"file":"vue-app.js","sourceRoot":"","sources":["../../../../../../packages/nx-adsp/src/generators/vue-app/vue-app.ts"],"names":[],"mappings":";;AAiIA,4BAsOC;;AAvWD,wCAIsB;AACtB,6CAA6E;AAC7E,+DAIoC;AACpC,+DAA4D;AAC5D,iDAK6B;AAC7B,uCAAyC;AACzC,uCAWoB;AACpB,6BAA6B;AAC7B,+DAKoC;AACpC,6CAAsD;AACtD,uDAAkE;AAClE,2DAAqE;AACrE,qEAG0C;AAG1C,SAAe,gBAAgB,CAC7B,IAAU,EACV,OAAe;;;QAEf,MAAM,WAAW,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;QACjD,MAAM,WAAW,GAAG,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC,OAAO,IAAI,WAAW,EAAE,CAAC;QACzE,MAAM,kBAAkB,GAAG,cAAc,WAAW,EAAE,CAAC;QACvD,MAAM,IAAI,GAAG,MAAM,IAAA,4BAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACvD,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;YAClD,CAAC,CAAC,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