You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*For any* generation step, the highlighted code line and displayed call stack depth SHALL exactly match the step's codeLine and callStackDepth values.
265
-
**Validates: Requirements 6.2, 6.3**
353
+
**Validates: Requirements 6.3, 6.6**
354
+
355
+
### Property 14: Variables Panel State Accuracy
356
+
*For any* generation step, the variables panel SHALL display values that exactly match the step's variables object (current string, open count, close count, result list).
*For any* tree node, the annotation SHALL correctly reflect the node's state: showing remaining bracket counts for normal nodes, pruning reason for pruned nodes, and success indicator for valid complete nodes.
373
+
**Validates: Requirements 7.1, 7.4, 7.5**
374
+
375
+
### Property 12: Edge Label Correctness
376
+
*For any* edge connecting a parent node to a child node, the edge label SHALL correctly indicate the bracket type added (left or right) matching the child node's value.
377
+
**Validates: Requirements 7.2**
378
+
379
+
### Property 13: Current Node Annotation Highlighting
380
+
*For any* node that is currently being explored (currentNodeId matches node.id), the annotation text SHALL have highlighted styling applied to draw user attention.
Copy file name to clipboardExpand all lines: .kiro/specs/parentheses-generator-visualization/requirements.md
+35-4Lines changed: 35 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,18 @@
37
37
4. WHEN a path leads to a valid complete combination THEN the Parentheses_Generator SHALL highlight that leaf node with a distinct success color
38
38
5. WHEN a path is pruned (invalid) THEN the Parentheses_Generator SHALL indicate the pruned state with a distinct visual style
39
39
40
+
### Requirement 7
41
+
42
+
**User Story:** As a user, I want to see explanatory text labels on nodes and edges, so that I can better understand the algorithm decision process at each step.
43
+
44
+
#### Acceptance Criteria
45
+
46
+
1. WHEN a node is displayed THEN the Parentheses_Generator SHALL show a brief annotation above the node indicating the current state (remaining left/right bracket counts)
47
+
2. WHEN an edge connects two nodes THEN the Parentheses_Generator SHALL display a label on the edge indicating the action taken (add left bracket or add right bracket)
48
+
3. WHEN the current node is being explored THEN the Parentheses_Generator SHALL highlight the annotation text to draw user attention
49
+
4. WHEN a node represents a pruned path THEN the Parentheses_Generator SHALL display a brief explanation of why the path was pruned
50
+
5. WHEN a node represents a valid complete combination THEN the Parentheses_Generator SHALL display a success indicator annotation
51
+
40
52
### Requirement 3
41
53
42
54
**User Story:** As a user, I want to control the animation playback, so that I can learn at my own pace.
@@ -72,11 +84,30 @@
72
84
73
85
### Requirement 6
74
86
75
-
**User Story:** As a user, I want to see the algorithm code alongside the visualization, so that I can correlate the animation with the actual implementation.
87
+
**User Story:** As a user, I want to see the Java algorithm code in a large right-side panel with debugging effects, so that I can understand the code execution like using a real debugger.
76
88
77
89
#### Acceptance Criteria
78
90
79
-
1. WHEN the visualization is displayed THEN the Parentheses_Generator SHALL show the backtracking algorithm pseudocode in a code panel
80
-
2. WHEN a Generation_Step executes THEN the Parentheses_Generator SHALL highlight the corresponding line in the code panel
81
-
3. WHEN the algorithm makes a recursive call THEN the Parentheses_Generator SHALL visually indicate the call stack depth
91
+
1. WHEN the visualization is displayed THEN the Parentheses_Generator SHALL show a prominently sized code panel on the right side occupying at least 30% of the screen width
92
+
2. WHEN the visualization is displayed THEN the Parentheses_Generator SHALL display the complete Java solution code for the parentheses generation problem with syntax highlighting
93
+
3. WHEN a Generation_Step executes THEN the Parentheses_Generator SHALL highlight the currently executing line with a distinct background color simulating debugger breakpoint style
94
+
4. WHEN the algorithm state changes THEN the Parentheses_Generator SHALL display a variables panel showing current memory values including the current string, left count, right count, and result list
95
+
5. WHEN the highlighted line changes THEN the Parentheses_Generator SHALL update the variables panel to reflect the exact state at that execution point
96
+
6. WHEN the algorithm makes a recursive call THEN the Parentheses_Generator SHALL visually indicate the call stack depth in the variables panel
97
+
7. WHEN the user steps through the algorithm THEN the Parentheses_Generator SHALL synchronize the code line highlight with the corresponding tree node highlight
98
+
99
+
100
+
101
+
### Requirement 8
102
+
103
+
**User Story:** As a user, I want to see a dedicated variables watch panel that displays memory values in real-time, so that I can understand how data changes during algorithm execution.
104
+
105
+
#### Acceptance Criteria
82
106
107
+
1. WHEN the code panel is displayed THEN the Parentheses_Generator SHALL include a variables watch section below or beside the code
108
+
2. WHEN displaying variables THEN the Parentheses_Generator SHALL show the current StringBuilder or String value being constructed
109
+
3. WHEN displaying variables THEN the Parentheses_Generator SHALL show the remaining left bracket count (open) as a numeric value
110
+
4. WHEN displaying variables THEN the Parentheses_Generator SHALL show the remaining right bracket count (close) as a numeric value
111
+
5. WHEN displaying variables THEN the Parentheses_Generator SHALL show the result ArrayList with all completed valid combinations found so far
112
+
6. WHEN a variable value changes THEN the Parentheses_Generator SHALL briefly highlight the changed variable to draw user attention
113
+
7. WHEN the recursion depth changes THEN the Parentheses_Generator SHALL display the current call stack depth as a visual indicator
0 commit comments