fix(qa): verify private investor continuity across dossiers

This commit is contained in:
2026-11-20 19:20:03 +02:00
parent e299afdae4
commit 15e15d0bfd
13 changed files with 563 additions and 16 deletions
+7
View File
@@ -2,6 +2,7 @@ export type NavigationFocus = {
case_id: string;
step_code: string | null;
version: number;
opportunity?: string | null;
};
const key = (actor: number) => `investmoz-navigation-focus:${actor}`;
/** A per-tab hint, never authority to access a dossier. Recheck the server listing. */
@@ -27,6 +28,12 @@ export function readNavigationFocus(
case_id: value.case_id,
step_code: value.step_code,
version: value.version,
...(value.opportunity === null ||
(typeof value.opportunity === 'string' &&
value.opportunity.length > 0 &&
value.opportunity.length <= 100)
? { opportunity: value.opportunity }
: {}),
};
} catch {
return null;