refactor: separate installation and proximity context components

This commit is contained in:
Sameh Khamis committed 2026-09-13 13:36:32 -07:00
1 parent 287493dfb7
commit 3b77277883
39 files changed
+4151 -2632

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
export function createTesting({ state: layerState, services, parts, source }) {
/** @returns {{historyKeys: string[], navigationVisitedKeys: string[], historyLength: number, navigationIndex: number, suppressedHistoryKey: string|null, pendingSelectionKey: string|null}} */
function _getAwarenessNavigationStateForTest() {
return {
historyKeys: layerState.navigationHistory.map(parts.subject.subjectKey),
navigationVisitedKeys: [...layerState.navigationVisited],
historyLength: layerState.navigationHistory.length,
navigationIndex: layerState.navigationIndex,
suppressedHistoryKey: layerState.suppressedHistoryKey,
pendingSelectionKey: layerState.pendingSelectionKey,
};
}
return { _getAwarenessNavigationStateForTest };
}