@teamscala/service-boot 0.23.375 → 0.23.377
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
|
@@ -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
|
-
|
|
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
|
},
|
|
@@ -440,6 +440,12 @@ export function resolvedToPageData(
|
|
|
440
440
|
const pageName = (page?.name as string) || null;
|
|
441
441
|
const entityTitle =
|
|
442
442
|
(resolved.form as { name?: string })?.name ||
|
|
443
|
+
// A report surface carries its own document name in `report_title`
|
|
444
|
+
// ("Personalised Authority Blueprint"); the quiz `title` names the
|
|
445
|
+
// DIAGNOSTIC ("The Launcha Authority Index"), which is the wrong subject
|
|
446
|
+
// for the tab of a document sent to a client. Prefer the document's name
|
|
447
|
+
// and fall back to the quiz title for the landing page, which has none.
|
|
448
|
+
(resolved.quiz as { report_title?: string })?.report_title ||
|
|
443
449
|
(resolved.quiz as { title?: string })?.title ||
|
|
444
450
|
(resolved.proposal as { name?: string })?.name ||
|
|
445
451
|
(resolved.agent as { name?: string })?.name;
|