Enhance nested loop functionality in Interview Wizard Modal
- Added support for tracking active loop paths, enabling nested loop navigation. - Implemented breadcrumb navigation to display loop hierarchy and allow users to navigate back to parent loops. - Updated rendering logic for nested loops to support fullscreen mode and improved item management with edit, delete, and navigation options. - Enhanced user experience with context headers showing parent loop item details and improved item editing capabilities.
This commit is contained in:
1 parent
5a171987b2
commit
c3357a784b
2 files changed
+538
-233
No files matched your search
@@ -9,6 +9,7 @@ export interface WizardState {
|
||||
loopContexts: Map<string, unknown[]>; // loop key -> array of collected items (deprecated, use loopRuntimeStates)
|
||||
loopRuntimeStates: Map<string, LoopRuntimeState>; // loop step key -> runtime state
|
||||
patches: Patch[]; // Collected patches to apply
|
||||
activeLoopPath: string[]; // Stack of loop keys representing current nesting level (e.g. ["items", "item_list"])
|
||||
}
|
||||
|
||||
export interface Patch {
|
||||
@@ -36,6 +37,7 @@ export function createWizardState(profile: InterviewProfile): WizardState {
|
||||
loopContexts: new Map(), // Keep for backwards compatibility
|
||||
loopRuntimeStates: new Map(),
|
||||
patches: [],
|
||||
activeLoopPath: [], // Start at top level
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user