@teamscala/service-boot 0.23.376 → 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
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "@teamscala/service-boot",
8
8
  "type": "module",
9
- "version": "0.23.376",
9
+ "version": "0.23.377",
10
10
  "sideEffects": false,
11
11
  "imports": {
12
12
  "#service-boot/*": "./src/*",
@@ -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;