wip(k1): checkpoint connection recovery rewrite
Capture the current unreleased K1 connection, recovery, lifecycle, viewer, and test work as a single known-bad baseline for subsequent fixes.
This commit is contained in:
@@ -30,3 +30,24 @@ export function validateProjectName(input: string): ProjectNameValidation {
|
||||
}
|
||||
return { value, error: null };
|
||||
}
|
||||
|
||||
export function projectNameAfterConnectionModeSelection(
|
||||
preparedProjectName: string | null | undefined,
|
||||
): string {
|
||||
return preparedProjectName ?? "";
|
||||
}
|
||||
|
||||
export function shouldHydratePreparedProject({
|
||||
acquisitionId,
|
||||
hydratedAcquisitionId,
|
||||
modeSwitchRequired,
|
||||
}: {
|
||||
acquisitionId: string | null;
|
||||
hydratedAcquisitionId: string | null;
|
||||
modeSwitchRequired: boolean;
|
||||
}): boolean {
|
||||
return Boolean(
|
||||
acquisitionId
|
||||
&& !(hydratedAcquisitionId === acquisitionId && modeSwitchRequired),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user