@teamscala/service-boot 0.23.375 → 0.23.376

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.
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "@teamscala/service-boot",
8
8
  "type": "module",
9
- "version": "0.23.375",
9
+ "version": "0.23.376",
10
10
  "sideEffects": false,
11
11
  "imports": {
12
12
  "#service-boot/*": "./src/*",
@@ -51,7 +51,21 @@ export function resolveTemplateTitle(
51
51
  website: { name: (website.name as string) || undefined },
52
52
  page: { name: (page.name as string) || undefined },
53
53
  form: { name: ((resolved.form as Record<string, unknown>)?.name as string) || undefined },
54
- quiz: { name: ((resolved.quiz as Record<string, unknown>)?.name as string) || undefined },
54
+ // An assessment has no `name` column — it carries `title`, and a report
55
+ // surface carries `report_title` ("Personalised Authority Blueprint")
56
+ // which is the document's own name and the right subject for its tab.
57
+ // Reading `.name` here resolved to "", so the template produced " by
58
+ // <org>", was discarded as empty, and EVERY quiz page silently fell back
59
+ // to the "<website>: <subject>" derivation — surfacing the internal site
60
+ // name ("Public Pages") on a client-facing document. The failure was
61
+ // invisible because the fallback is itself a plausible title.
62
+ quiz: {
63
+ name:
64
+ ((resolved.quiz as Record<string, unknown>)?.report_title as string) ||
65
+ ((resolved.quiz as Record<string, unknown>)?.title as string) ||
66
+ ((resolved.quiz as Record<string, unknown>)?.name as string) ||
67
+ undefined,
68
+ },
55
69
  proposal: {
56
70
  name: ((resolved.proposal as Record<string, unknown>)?.name as string) || undefined,
57
71
  },