ai-flow-dev 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +573 -570
  3. package/package.json +74 -74
  4. package/prompts/backend/flow-build-phase-0.md +535 -535
  5. package/prompts/backend/flow-build-phase-1.md +626 -626
  6. package/prompts/backend/flow-build-phase-10.md +340 -340
  7. package/prompts/backend/flow-build-phase-2.md +573 -573
  8. package/prompts/backend/flow-build-phase-3.md +834 -834
  9. package/prompts/backend/flow-build-phase-4.md +554 -554
  10. package/prompts/backend/flow-build-phase-5.md +703 -703
  11. package/prompts/backend/flow-build-phase-6.md +524 -524
  12. package/prompts/backend/flow-build-phase-7.md +1001 -1001
  13. package/prompts/backend/flow-build-phase-8.md +1407 -1407
  14. package/prompts/backend/flow-build-phase-9.md +477 -477
  15. package/prompts/backend/flow-build.md +137 -137
  16. package/prompts/backend/flow-check-review.md +656 -20
  17. package/prompts/backend/flow-check-test.md +526 -14
  18. package/prompts/backend/flow-check.md +725 -67
  19. package/prompts/backend/flow-commit.md +88 -119
  20. package/prompts/backend/flow-docs-sync.md +354 -354
  21. package/prompts/backend/flow-finish.md +919 -0
  22. package/prompts/backend/flow-release.md +949 -0
  23. package/prompts/backend/flow-work-feature.md +61 -61
  24. package/prompts/backend/flow-work-fix.md +46 -46
  25. package/prompts/backend/flow-work-refactor.md +48 -48
  26. package/prompts/backend/flow-work-resume.md +34 -34
  27. package/prompts/backend/flow-work.md +1098 -1286
  28. package/prompts/desktop/flow-build-phase-0.md +359 -359
  29. package/prompts/desktop/flow-build-phase-1.md +295 -295
  30. package/prompts/desktop/flow-build-phase-10.md +357 -357
  31. package/prompts/desktop/flow-build-phase-2.md +282 -282
  32. package/prompts/desktop/flow-build-phase-3.md +291 -291
  33. package/prompts/desktop/flow-build-phase-4.md +308 -308
  34. package/prompts/desktop/flow-build-phase-5.md +269 -269
  35. package/prompts/desktop/flow-build-phase-6.md +350 -350
  36. package/prompts/desktop/flow-build-phase-7.md +297 -297
  37. package/prompts/desktop/flow-build-phase-8.md +541 -541
  38. package/prompts/desktop/flow-build-phase-9.md +439 -439
  39. package/prompts/desktop/flow-build.md +156 -156
  40. package/prompts/desktop/flow-check-review.md +656 -20
  41. package/prompts/desktop/flow-check-test.md +526 -14
  42. package/prompts/desktop/flow-check.md +725 -67
  43. package/prompts/desktop/flow-commit.md +88 -119
  44. package/prompts/desktop/flow-docs-sync.md +354 -354
  45. package/prompts/desktop/flow-finish.md +910 -0
  46. package/prompts/desktop/flow-release.md +662 -0
  47. package/prompts/desktop/flow-work-feature.md +61 -61
  48. package/prompts/desktop/flow-work-fix.md +46 -46
  49. package/prompts/desktop/flow-work-refactor.md +48 -48
  50. package/prompts/desktop/flow-work-resume.md +34 -34
  51. package/prompts/desktop/flow-work.md +1202 -1390
  52. package/prompts/frontend/flow-build-phase-0.md +425 -425
  53. package/prompts/frontend/flow-build-phase-1.md +626 -626
  54. package/prompts/frontend/flow-build-phase-10.md +33 -33
  55. package/prompts/frontend/flow-build-phase-2.md +573 -573
  56. package/prompts/frontend/flow-build-phase-3.md +782 -782
  57. package/prompts/frontend/flow-build-phase-4.md +554 -554
  58. package/prompts/frontend/flow-build-phase-5.md +703 -703
  59. package/prompts/frontend/flow-build-phase-6.md +524 -524
  60. package/prompts/frontend/flow-build-phase-7.md +1001 -1001
  61. package/prompts/frontend/flow-build-phase-8.md +872 -872
  62. package/prompts/frontend/flow-build-phase-9.md +94 -94
  63. package/prompts/frontend/flow-build.md +137 -137
  64. package/prompts/frontend/flow-check-review.md +656 -20
  65. package/prompts/frontend/flow-check-test.md +526 -14
  66. package/prompts/frontend/flow-check.md +725 -67
  67. package/prompts/frontend/flow-commit.md +88 -119
  68. package/prompts/frontend/flow-docs-sync.md +550 -550
  69. package/prompts/frontend/flow-finish.md +910 -0
  70. package/prompts/frontend/flow-release.md +519 -0
  71. package/prompts/frontend/flow-work-api.md +1540 -0
  72. package/prompts/frontend/flow-work-feature.md +61 -61
  73. package/prompts/frontend/flow-work-fix.md +38 -38
  74. package/prompts/frontend/flow-work-refactor.md +48 -48
  75. package/prompts/frontend/flow-work-resume.md +34 -34
  76. package/prompts/frontend/flow-work.md +1583 -1320
  77. package/prompts/mobile/flow-build-phase-0.md +425 -425
  78. package/prompts/mobile/flow-build-phase-1.md +626 -626
  79. package/prompts/mobile/flow-build-phase-10.md +32 -32
  80. package/prompts/mobile/flow-build-phase-2.md +573 -573
  81. package/prompts/mobile/flow-build-phase-3.md +782 -782
  82. package/prompts/mobile/flow-build-phase-4.md +554 -554
  83. package/prompts/mobile/flow-build-phase-5.md +703 -703
  84. package/prompts/mobile/flow-build-phase-6.md +524 -524
  85. package/prompts/mobile/flow-build-phase-7.md +1001 -1001
  86. package/prompts/mobile/flow-build-phase-8.md +888 -888
  87. package/prompts/mobile/flow-build-phase-9.md +90 -90
  88. package/prompts/mobile/flow-build.md +135 -135
  89. package/prompts/mobile/flow-check-review.md +656 -20
  90. package/prompts/mobile/flow-check-test.md +526 -14
  91. package/prompts/mobile/flow-check.md +725 -67
  92. package/prompts/mobile/flow-commit.md +88 -119
  93. package/prompts/mobile/flow-docs-sync.md +620 -620
  94. package/prompts/mobile/flow-finish.md +910 -0
  95. package/prompts/mobile/flow-release.md +751 -0
  96. package/prompts/mobile/flow-work-api.md +1493 -0
  97. package/prompts/mobile/flow-work-feature.md +61 -61
  98. package/prompts/mobile/flow-work-fix.md +46 -46
  99. package/prompts/mobile/flow-work-refactor.md +48 -48
  100. package/prompts/mobile/flow-work-resume.md +34 -34
  101. package/prompts/mobile/flow-work.md +1593 -1329
  102. package/prompts/shared/mermaid-guidelines.md +102 -102
  103. package/prompts/shared/scope-levels.md +114 -114
  104. package/prompts/shared/smart-skip-preflight.md +214 -214
  105. package/prompts/shared/story-points.md +55 -55
  106. package/prompts/shared/task-format.md +74 -74
  107. package/prompts/shared/task-summary-template.md +277 -277
  108. package/templates/AGENT.template.md +443 -443
  109. package/templates/backend/.clauderules.template +112 -112
  110. package/templates/backend/.cursorrules.template +102 -102
  111. package/templates/backend/README.template.md +2 -2
  112. package/templates/backend/ai-instructions.template.md +2 -2
  113. package/templates/backend/copilot-instructions.template.md +2 -2
  114. package/templates/backend/docs/api.template.md +320 -320
  115. package/templates/backend/docs/business-flows.template.md +97 -97
  116. package/templates/backend/docs/code-standards.template.md +2 -2
  117. package/templates/backend/docs/contributing.template.md +3 -3
  118. package/templates/backend/docs/data-model.template.md +520 -520
  119. package/templates/backend/docs/testing.template.md +2 -2
  120. package/templates/backend/project-brief.template.md +2 -2
  121. package/templates/backend/specs/configuration.template.md +2 -2
  122. package/templates/backend/specs/security.template.md +2 -2
  123. package/templates/desktop/.clauderules.template +112 -112
  124. package/templates/desktop/.cursorrules.template +102 -102
  125. package/templates/desktop/README.template.md +170 -170
  126. package/templates/desktop/ai-instructions.template.md +366 -366
  127. package/templates/desktop/copilot-instructions.template.md +140 -140
  128. package/templates/desktop/docs/docs/api.template.md +320 -320
  129. package/templates/desktop/docs/docs/architecture.template.md +724 -724
  130. package/templates/desktop/docs/docs/business-flows.template.md +102 -102
  131. package/templates/desktop/docs/docs/code-standards.template.md +792 -792
  132. package/templates/desktop/docs/docs/contributing.template.md +149 -149
  133. package/templates/desktop/docs/docs/data-model.template.md +520 -520
  134. package/templates/desktop/docs/docs/operations.template.md +720 -720
  135. package/templates/desktop/docs/docs/testing.template.md +722 -722
  136. package/templates/desktop/project-brief.template.md +150 -150
  137. package/templates/desktop/specs/specs/configuration.template.md +121 -121
  138. package/templates/desktop/specs/specs/security.template.md +392 -392
  139. package/templates/frontend/README.template.md +2 -2
  140. package/templates/frontend/ai-instructions.template.md +2 -2
  141. package/templates/frontend/docs/api-integration.template.md +362 -362
  142. package/templates/frontend/docs/components.template.md +2 -2
  143. package/templates/frontend/docs/error-handling.template.md +360 -360
  144. package/templates/frontend/docs/operations.template.md +107 -107
  145. package/templates/frontend/docs/performance.template.md +124 -124
  146. package/templates/frontend/docs/pwa.template.md +119 -119
  147. package/templates/frontend/docs/state-management.template.md +2 -2
  148. package/templates/frontend/docs/styling.template.md +2 -2
  149. package/templates/frontend/docs/testing.template.md +2 -2
  150. package/templates/frontend/project-brief.template.md +2 -2
  151. package/templates/frontend/specs/accessibility.template.md +95 -95
  152. package/templates/frontend/specs/configuration.template.md +2 -2
  153. package/templates/frontend/specs/security.template.md +175 -175
  154. package/templates/fullstack/README.template.md +252 -252
  155. package/templates/fullstack/ai-instructions.template.md +444 -444
  156. package/templates/fullstack/project-brief.template.md +157 -157
  157. package/templates/fullstack/specs/configuration.template.md +340 -340
  158. package/templates/mobile/README.template.md +167 -167
  159. package/templates/mobile/ai-instructions.template.md +196 -196
  160. package/templates/mobile/docs/app-store.template.md +135 -135
  161. package/templates/mobile/docs/architecture.template.md +63 -63
  162. package/templates/mobile/docs/native-features.template.md +94 -94
  163. package/templates/mobile/docs/navigation.template.md +59 -59
  164. package/templates/mobile/docs/offline-strategy.template.md +65 -65
  165. package/templates/mobile/docs/permissions.template.md +56 -56
  166. package/templates/mobile/docs/state-management.template.md +85 -85
  167. package/templates/mobile/docs/testing.template.md +109 -109
  168. package/templates/mobile/project-brief.template.md +69 -69
  169. package/templates/mobile/specs/build-configuration.template.md +91 -91
  170. package/templates/mobile/specs/deployment.template.md +92 -92
  171. package/templates/work.template.md +47 -47
@@ -1,282 +1,282 @@
1
- ## PHASE 2: UI Components (Swing/JavaFX/SWT) (15-20 min)
2
-
3
- > **Order for this phase:** 2.1 → 2.2 → 2.3 → 2.4 → 2.5 → 2.6
4
-
5
- ### Objective
6
-
7
- Define the UI component structure, layouts, and interaction patterns specific to the chosen framework.
8
-
9
- ---
10
-
11
- ## 2.1 UI Framework Selection
12
-
13
- ```
14
- Which UI framework are you using?
15
-
16
- A) ☕ Swing - Traditional Java desktop UI
17
- - Pros: Mature, widely supported, many libraries
18
- - Cons: Older API, less modern look
19
- - Tools: NetBeans GUI Builder, IntelliJ Designer
20
-
21
- B) 🎨 JavaFX - Modern Java UI framework
22
- - Pros: Modern design, CSS styling, FXML
23
- - Cons: Requires separate runtime (Java 11+)
24
- - Tools: Scene Builder, e(fx)clipse
25
-
26
- C) 🪟 SWT (Eclipse) - Native widget toolkit
27
- - Pros: Native look, fast, Eclipse ecosystem
28
- - Cons: Eclipse-specific, platform-dependent
29
- - Tools: WindowBuilder, Eclipse RCP
30
-
31
- D) 🔀 Hybrid - Mix of frameworks
32
- - Example: Swing main UI + JavaFX for media
33
-
34
- Your choice: __
35
- ```
36
-
37
- ---
38
-
39
- ## 2.2 Layout Strategy
40
-
41
- **For Swing:**
42
-
43
- ```
44
- Which layout managers will you use?
45
-
46
- A) BorderLayout - Simple 5-region layout (North, South, East, West, Center)
47
- B) GridBagLayout - Flexible grid with constraints
48
- C) MigLayout - Third-party, powerful and intuitive
49
- D) GroupLayout - NetBeans GUI Builder default
50
- E) BoxLayout - Horizontal or vertical stacking
51
- F) CardLayout - Switching between panels
52
- G) FormLayout (JGoodies) - Form-based layouts
53
- H) Custom - Null layout with absolute positioning (not recommended)
54
-
55
- Primary layout: __
56
- Secondary layouts: __
57
- ```
58
-
59
- **For JavaFX:**
60
-
61
- ```
62
- Which JavaFX layouts will you use?
63
-
64
- A) BorderPane - 5-region layout (top, bottom, left, right, center)
65
- B) HBox/VBox - Horizontal/vertical stacking
66
- C) GridPane - Grid-based layout
67
- D) StackPane - Layered components
68
- E) FlowPane - Flowing elements (like CSS flexbox)
69
- F) TilePane - Uniform tiles
70
- G) AnchorPane - Anchor to edges
71
- H) SplitPane - Resizable dividers
72
-
73
- Primary layout: __
74
- Secondary layouts: __
75
-
76
- Will you use FXML?
77
- A) Yes - Scene Builder + FXML files
78
- B) No - Pure Java code
79
- ```
80
-
81
- **For SWT:**
82
-
83
- ```
84
- Which SWT layouts will you use?
85
-
86
- A) GridLayout - Simple grid
87
- B) FillLayout - Fill available space
88
- C) RowLayout - Horizontal/vertical rows
89
- D) FormLayout - Form-based with FormAttachment
90
- E) GridData - Grid with spanning and alignment
91
-
92
- Primary layout: __
93
- ```
94
-
95
- ---
96
-
97
- ## 2.3 Component Library
98
-
99
- **For Swing:**
100
-
101
- ```
102
- Which component libraries will you use?
103
-
104
- Look and Feel:
105
- A) ⭐ FlatLaf - Modern flat design (recommended)
106
- B) Darcula - Dark theme
107
- C) Substance - Advanced skinnable LAF
108
- D) Nimbus - Built-in modern LAF
109
- E) Metal - Default Java LAF
110
- F) System - Native OS LAF (Windows, macOS)
111
-
112
- Additional Libraries:
113
- G) JGoodies - Forms, validation, binding
114
- H) SwingX - Extended Swing components
115
- I) JIDE - Advanced docking, tables
116
- J) MigLayout - Layout manager
117
- K) RSyntaxTextArea - Code editor
118
- L) JFreeChart - Charts and graphs
119
-
120
- Your choices: __
121
- ```
122
-
123
- **For JavaFX:**
124
-
125
- ```
126
- Which JavaFX libraries will you use?
127
-
128
- UI Components:
129
- A) ⭐ ControlsFX - Extended controls (recommended)
130
- B) JFoenix - Material Design components
131
- C) TilesFX - Dashboard tiles
132
- D) FormsFX - Form generation
133
- E) ValidatorFX - Form validation
134
- F) Ikonli - Icon packs (FontAwesome, Material)
135
-
136
- Charts & Media:
137
- G) JFreeChart (JavaFX wrapper)
138
- H) MediaPlayer - Built-in video/audio
139
- I) WebView - Embedded browser
140
-
141
- Your choices: __
142
- ```
143
-
144
- **For SWT:**
145
-
146
- ```
147
- Which SWT/Eclipse libraries will you use?
148
-
149
- A) JFace - High-level UI framework
150
- B) Nebula - Extended SWT widgets
151
- C) Opal - Additional widgets
152
- D) RCP (Rich Client Platform) - Full application framework
153
- E) E4 - Eclipse 4 application model
154
- F) EMF (Eclipse Modeling Framework) - Data models
155
-
156
- Your choices: __
157
- ```
158
-
159
- ---
160
-
161
- ## 2.4 Component Inventory
162
-
163
- ```
164
- List the main UI components for each window:
165
-
166
- For each window from Phase 1, specify:
167
-
168
- **Window Name:** [e.g., Main Window]
169
-
170
- **Layout:** [BorderLayout, BorderPane, GridLayout, etc.]
171
-
172
- **Components:**
173
- - Menu bar: [File, Edit, View, Help]
174
- - Toolbar: [New, Open, Save, Cut, Copy, Paste]
175
- - Main area: [Table, Tree, Canvas, Editor]
176
- - Sidebar: [Navigation tree, Property inspector]
177
- - Status bar: [Progress bar, Status label]
178
-
179
- **Custom Components:**
180
- - [Name]: [Description]
181
- - Example: MusicWaveform - Custom painted audio waveform
182
-
183
- Repeat for each window...
184
- ```
185
-
186
- ---
187
-
188
- ## 2.5 Interaction Patterns
189
-
190
- ```
191
- How will users interact with your UI?
192
-
193
- **Navigation:**
194
- A) 🗂️ Menu-driven - Main actions in menu bar
195
- B) 🔧 Toolbar-driven - Quick access buttons
196
- C) ⌨️ Keyboard shortcuts - Power user shortcuts
197
- D) 🖱️ Context menus - Right-click actions
198
- E) 🎯 Wizard - Step-by-step guided flow
199
-
200
- **Data Input:**
201
- A) 📝 Forms - Text fields, combos, checkboxes
202
- B) 📋 Dialogs - Modal input dialogs
203
- C) 🗂️ Inline editing - Edit directly in table/tree
204
- D) 🎨 Drag & drop - Visual manipulation
205
- E) 📂 File picker - Choose files/folders
206
-
207
- **Feedback:**
208
- A) 🔔 Dialog boxes - Modal alerts/confirmations
209
- B) 🎨 Toast notifications - Non-intrusive messages
210
- C) 📊 Progress bars - Long-running operations
211
- D) 🎯 Status bar - Current state messages
212
- E) 🔴 Validation errors - Inline field validation
213
-
214
- Your patterns: __
215
- ```
216
-
217
- ---
218
-
219
- ## 2.6 Responsive Design
220
-
221
- ```
222
- How will your UI adapt to different screen sizes and resolutions?
223
-
224
- A) 🖥️ Fixed size - Minimum window size enforced
225
- B) 📏 Resizable - Components scale with window
226
- C) 🎨 Responsive - Layout changes based on size
227
- D) 📱 Adaptive - Different layouts for small/large screens
228
-
229
- Window constraints:
230
- - Minimum size: __ x __ pixels
231
- - Default size: __ x __ pixels
232
- - Maximum size: __ (unconstrained / __ x __)
233
- - Resizable: Yes / No
234
-
235
- HiDPI/Retina support:
236
- A) ✅ Yes - Scale UI for high-DPI displays
237
- B) ❌ No - Fixed pixel sizes
238
-
239
- Multi-monitor support:
240
- A) ✅ Yes - Remember window positions per monitor
241
- B) ❌ No - Single monitor only
242
- ```
243
-
244
- ---
245
-
246
- ### Phase 2 Output
247
-
248
- ```
249
- 📋 PHASE 2 SUMMARY:
250
-
251
- UI Framework: [Swing/JavaFX/SWT]
252
- Layout Strategy: [Primary layout + secondary layouts]
253
- Component Libraries: [FlatLaf, ControlsFX, etc.]
254
- Main Windows: [List with layouts and components]
255
- Interaction Patterns: [Menu-driven, keyboard shortcuts, etc.]
256
- Responsive Design: [Resizable, HiDPI support, etc.]
257
-
258
- Is this correct? (Yes/No)
259
- ```
260
-
261
- ---
262
-
263
- ### 📄 Update Documents
264
-
265
- Update `docs/ARCHITECTURE.md` with:
266
-
267
- - UI framework and version
268
- - Layout strategies
269
- - Component libraries
270
- - UI component hierarchy
271
- - Interaction patterns
272
-
273
- ---
274
-
275
- **Next Phase:** Phase 3 - Architecture Desktop (15-20 min)
276
-
277
- Read: `.ai-flow/prompts/desktop/flow-build-phase-3.md`
278
-
279
- ---
280
-
281
- **Last Updated:** 2025-02-03
282
- **Version:** 1.0.0
1
+ ## PHASE 2: UI Components (Swing/JavaFX/SWT) (15-20 min)
2
+
3
+ > **Order for this phase:** 2.1 → 2.2 → 2.3 → 2.4 → 2.5 → 2.6
4
+
5
+ ### Objective
6
+
7
+ Define the UI component structure, layouts, and interaction patterns specific to the chosen framework.
8
+
9
+ ---
10
+
11
+ ## 2.1 UI Framework Selection
12
+
13
+ ```
14
+ Which UI framework are you using?
15
+
16
+ A) ☕ Swing - Traditional Java desktop UI
17
+ - Pros: Mature, widely supported, many libraries
18
+ - Cons: Older API, less modern look
19
+ - Tools: NetBeans GUI Builder, IntelliJ Designer
20
+
21
+ B) 🎨 JavaFX - Modern Java UI framework
22
+ - Pros: Modern design, CSS styling, FXML
23
+ - Cons: Requires separate runtime (Java 11+)
24
+ - Tools: Scene Builder, e(fx)clipse
25
+
26
+ C) 🪟 SWT (Eclipse) - Native widget toolkit
27
+ - Pros: Native look, fast, Eclipse ecosystem
28
+ - Cons: Eclipse-specific, platform-dependent
29
+ - Tools: WindowBuilder, Eclipse RCP
30
+
31
+ D) 🔀 Hybrid - Mix of frameworks
32
+ - Example: Swing main UI + JavaFX for media
33
+
34
+ Your choice: __
35
+ ```
36
+
37
+ ---
38
+
39
+ ## 2.2 Layout Strategy
40
+
41
+ **For Swing:**
42
+
43
+ ```
44
+ Which layout managers will you use?
45
+
46
+ A) BorderLayout - Simple 5-region layout (North, South, East, West, Center)
47
+ B) GridBagLayout - Flexible grid with constraints
48
+ C) MigLayout - Third-party, powerful and intuitive
49
+ D) GroupLayout - NetBeans GUI Builder default
50
+ E) BoxLayout - Horizontal or vertical stacking
51
+ F) CardLayout - Switching between panels
52
+ G) FormLayout (JGoodies) - Form-based layouts
53
+ H) Custom - Null layout with absolute positioning (not recommended)
54
+
55
+ Primary layout: __
56
+ Secondary layouts: __
57
+ ```
58
+
59
+ **For JavaFX:**
60
+
61
+ ```
62
+ Which JavaFX layouts will you use?
63
+
64
+ A) BorderPane - 5-region layout (top, bottom, left, right, center)
65
+ B) HBox/VBox - Horizontal/vertical stacking
66
+ C) GridPane - Grid-based layout
67
+ D) StackPane - Layered components
68
+ E) FlowPane - Flowing elements (like CSS flexbox)
69
+ F) TilePane - Uniform tiles
70
+ G) AnchorPane - Anchor to edges
71
+ H) SplitPane - Resizable dividers
72
+
73
+ Primary layout: __
74
+ Secondary layouts: __
75
+
76
+ Will you use FXML?
77
+ A) Yes - Scene Builder + FXML files
78
+ B) No - Pure Java code
79
+ ```
80
+
81
+ **For SWT:**
82
+
83
+ ```
84
+ Which SWT layouts will you use?
85
+
86
+ A) GridLayout - Simple grid
87
+ B) FillLayout - Fill available space
88
+ C) RowLayout - Horizontal/vertical rows
89
+ D) FormLayout - Form-based with FormAttachment
90
+ E) GridData - Grid with spanning and alignment
91
+
92
+ Primary layout: __
93
+ ```
94
+
95
+ ---
96
+
97
+ ## 2.3 Component Library
98
+
99
+ **For Swing:**
100
+
101
+ ```
102
+ Which component libraries will you use?
103
+
104
+ Look and Feel:
105
+ A) ⭐ FlatLaf - Modern flat design (recommended)
106
+ B) Darcula - Dark theme
107
+ C) Substance - Advanced skinnable LAF
108
+ D) Nimbus - Built-in modern LAF
109
+ E) Metal - Default Java LAF
110
+ F) System - Native OS LAF (Windows, macOS)
111
+
112
+ Additional Libraries:
113
+ G) JGoodies - Forms, validation, binding
114
+ H) SwingX - Extended Swing components
115
+ I) JIDE - Advanced docking, tables
116
+ J) MigLayout - Layout manager
117
+ K) RSyntaxTextArea - Code editor
118
+ L) JFreeChart - Charts and graphs
119
+
120
+ Your choices: __
121
+ ```
122
+
123
+ **For JavaFX:**
124
+
125
+ ```
126
+ Which JavaFX libraries will you use?
127
+
128
+ UI Components:
129
+ A) ⭐ ControlsFX - Extended controls (recommended)
130
+ B) JFoenix - Material Design components
131
+ C) TilesFX - Dashboard tiles
132
+ D) FormsFX - Form generation
133
+ E) ValidatorFX - Form validation
134
+ F) Ikonli - Icon packs (FontAwesome, Material)
135
+
136
+ Charts & Media:
137
+ G) JFreeChart (JavaFX wrapper)
138
+ H) MediaPlayer - Built-in video/audio
139
+ I) WebView - Embedded browser
140
+
141
+ Your choices: __
142
+ ```
143
+
144
+ **For SWT:**
145
+
146
+ ```
147
+ Which SWT/Eclipse libraries will you use?
148
+
149
+ A) JFace - High-level UI framework
150
+ B) Nebula - Extended SWT widgets
151
+ C) Opal - Additional widgets
152
+ D) RCP (Rich Client Platform) - Full application framework
153
+ E) E4 - Eclipse 4 application model
154
+ F) EMF (Eclipse Modeling Framework) - Data models
155
+
156
+ Your choices: __
157
+ ```
158
+
159
+ ---
160
+
161
+ ## 2.4 Component Inventory
162
+
163
+ ```
164
+ List the main UI components for each window:
165
+
166
+ For each window from Phase 1, specify:
167
+
168
+ **Window Name:** [e.g., Main Window]
169
+
170
+ **Layout:** [BorderLayout, BorderPane, GridLayout, etc.]
171
+
172
+ **Components:**
173
+ - Menu bar: [File, Edit, View, Help]
174
+ - Toolbar: [New, Open, Save, Cut, Copy, Paste]
175
+ - Main area: [Table, Tree, Canvas, Editor]
176
+ - Sidebar: [Navigation tree, Property inspector]
177
+ - Status bar: [Progress bar, Status label]
178
+
179
+ **Custom Components:**
180
+ - [Name]: [Description]
181
+ - Example: MusicWaveform - Custom painted audio waveform
182
+
183
+ Repeat for each window...
184
+ ```
185
+
186
+ ---
187
+
188
+ ## 2.5 Interaction Patterns
189
+
190
+ ```
191
+ How will users interact with your UI?
192
+
193
+ **Navigation:**
194
+ A) 🗂️ Menu-driven - Main actions in menu bar
195
+ B) 🔧 Toolbar-driven - Quick access buttons
196
+ C) ⌨️ Keyboard shortcuts - Power user shortcuts
197
+ D) 🖱️ Context menus - Right-click actions
198
+ E) 🎯 Wizard - Step-by-step guided flow
199
+
200
+ **Data Input:**
201
+ A) 📝 Forms - Text fields, combos, checkboxes
202
+ B) 📋 Dialogs - Modal input dialogs
203
+ C) 🗂️ Inline editing - Edit directly in table/tree
204
+ D) 🎨 Drag & drop - Visual manipulation
205
+ E) 📂 File picker - Choose files/folders
206
+
207
+ **Feedback:**
208
+ A) 🔔 Dialog boxes - Modal alerts/confirmations
209
+ B) 🎨 Toast notifications - Non-intrusive messages
210
+ C) 📊 Progress bars - Long-running operations
211
+ D) 🎯 Status bar - Current state messages
212
+ E) 🔴 Validation errors - Inline field validation
213
+
214
+ Your patterns: __
215
+ ```
216
+
217
+ ---
218
+
219
+ ## 2.6 Responsive Design
220
+
221
+ ```
222
+ How will your UI adapt to different screen sizes and resolutions?
223
+
224
+ A) 🖥️ Fixed size - Minimum window size enforced
225
+ B) 📏 Resizable - Components scale with window
226
+ C) 🎨 Responsive - Layout changes based on size
227
+ D) 📱 Adaptive - Different layouts for small/large screens
228
+
229
+ Window constraints:
230
+ - Minimum size: __ x __ pixels
231
+ - Default size: __ x __ pixels
232
+ - Maximum size: __ (unconstrained / __ x __)
233
+ - Resizable: Yes / No
234
+
235
+ HiDPI/Retina support:
236
+ A) ✅ Yes - Scale UI for high-DPI displays
237
+ B) ❌ No - Fixed pixel sizes
238
+
239
+ Multi-monitor support:
240
+ A) ✅ Yes - Remember window positions per monitor
241
+ B) ❌ No - Single monitor only
242
+ ```
243
+
244
+ ---
245
+
246
+ ### Phase 2 Output
247
+
248
+ ```
249
+ 📋 PHASE 2 SUMMARY:
250
+
251
+ UI Framework: [Swing/JavaFX/SWT]
252
+ Layout Strategy: [Primary layout + secondary layouts]
253
+ Component Libraries: [FlatLaf, ControlsFX, etc.]
254
+ Main Windows: [List with layouts and components]
255
+ Interaction Patterns: [Menu-driven, keyboard shortcuts, etc.]
256
+ Responsive Design: [Resizable, HiDPI support, etc.]
257
+
258
+ Is this correct? (Yes/No)
259
+ ```
260
+
261
+ ---
262
+
263
+ ### 📄 Update Documents
264
+
265
+ Update `docs/ARCHITECTURE.md` with:
266
+
267
+ - UI framework and version
268
+ - Layout strategies
269
+ - Component libraries
270
+ - UI component hierarchy
271
+ - Interaction patterns
272
+
273
+ ---
274
+
275
+ **Next Phase:** Phase 3 - Architecture Desktop (15-20 min)
276
+
277
+ Read: `.ai-flow/prompts/desktop/flow-build-phase-3.md`
278
+
279
+ ---
280
+
281
+ **Last Updated:** 2025-02-03
282
+ **Version:** 1.0.0