Luigi commited on
Commit
444762a
Β·
1 Parent(s): c9dbd58

fix: route Advanced Mode progress messages to thinking output instead of summary

Browse files

- Fix extraction stage to show ticker messages in thinking_output
- Fix deduplication stage to show progress in thinking_output
- Combine extraction thinking and ticker when both present
- Keep synthesis stage routing unchanged (already correct)
- Add comprehensive UI layout review document
- Ensure real-time monitoring appears in Model Thinking Process, not Final Summary

Files changed (2) hide show
  1. app.py +5 -2
  2. docs/ui-layout-review.md +463 -0
app.py CHANGED
@@ -3456,11 +3456,14 @@ def create_interface():
3456
  if stage == "extraction":
3457
  ticker = update.get("ticker", "")
3458
  thinking = update.get("thinking", "")
3459
- yield (thinking, ticker, "", {}, "")
 
 
3460
 
3461
  elif stage == "deduplication":
3462
  ticker = update.get("ticker", "")
3463
- yield ("", ticker, "", {}, "")
 
3464
 
3465
  elif stage == "synthesis":
3466
  thinking = update.get("thinking", "")
 
3456
  if stage == "extraction":
3457
  ticker = update.get("ticker", "")
3458
  thinking = update.get("thinking", "")
3459
+ # Show progress ticker in thinking output, not summary
3460
+ combined_thinking = f"{thinking}\n\n{ticker}" if thinking else ticker
3461
+ yield (combined_thinking, "", "", {}, "")
3462
 
3463
  elif stage == "deduplication":
3464
  ticker = update.get("ticker", "")
3465
+ # Show deduplication progress in thinking output
3466
+ yield (ticker, "", "", {}, "")
3467
 
3468
  elif stage == "synthesis":
3469
  thinking = update.get("thinking", "")
docs/ui-layout-review.md ADDED
@@ -0,0 +1,463 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Tiny Scribe UI Layout Review
2
+
3
+ ## Current UI Structure (as of commit c9dbd58)
4
+
5
+ ### Overall Layout
6
+ ```
7
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
8
+ β”‚ πŸ“„ Tiny Scribe β”‚
9
+ β”‚ AI-Powered Transcript Summarization β”‚
10
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11
+
12
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
13
+ β”‚ LEFT COLUMN (1/3) β”‚ RIGHT COLUMN (2/3) β”‚
14
+ β”‚ β”‚ β”‚
15
+ β”‚ [Input & Settings] β”‚ [Output Display] β”‚
16
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
17
+ ```
18
+
19
+ ---
20
+
21
+ ## LEFT COLUMN (Settings & Input)
22
+
23
+ ### 1. Global Settings Section
24
+ ```
25
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
26
+ β”‚ 🌐 Global Settings β”‚
27
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
28
+ β”‚ β€’ Output Language: [en / zh-TW] β”‚
29
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
30
+ ```
31
+
32
+ ### 2. Input Content Section
33
+ ```
34
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
35
+ β”‚ πŸ“₯ Input Content β”‚
36
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
37
+ β”‚ [Tabs] β”‚
38
+ β”‚ β”œβ”€ πŸ“„ Upload File β”‚
39
+ β”‚ β”‚ └─ File upload component β”‚
40
+ β”‚ └─ ✍️ Paste Text β”‚
41
+ β”‚ └─ Textbox (10-20 lines) β”‚
42
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
43
+ ```
44
+
45
+ ### 3. Mode Selection
46
+ ```
47
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
48
+ β”‚ 🎯 Summarization Mode β”‚
49
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
50
+ β”‚ β—‹ Standard Mode β”‚
51
+ β”‚ β—‹ Advanced Mode (3-Model Pipeline) β”‚
52
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
53
+ ```
54
+
55
+ ### 4A. Standard Mode Settings (visible when Standard selected)
56
+ ```
57
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
58
+ β”‚ πŸ“Š Standard Mode β”‚
59
+ β”‚ Single-model direct summarization β”‚
60
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
61
+ β”‚ [Nested Tabs for Model Selection] β”‚
62
+ β”‚ β”œβ”€ πŸ€– Preset Models β”‚
63
+ β”‚ β”‚ β”œβ”€ Model Dropdown β”‚
64
+ β”‚ β”‚ └─ Enable Reasoning Checkbox β”‚
65
+ β”‚ └─ πŸ”§ Custom GGUF β”‚
66
+ β”‚ β”œβ”€ HF Hub Search β”‚
67
+ β”‚ β”œβ”€ File Dropdown β”‚
68
+ β”‚ β”œβ”€ Load Button β”‚
69
+ β”‚ └─ Retry Button β”‚
70
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
71
+ β”‚ πŸ–₯️ Hardware Configuration β”‚
72
+ β”‚ β”œβ”€ CPU Thread Preset Dropdown β”‚
73
+ β”‚ └─ Custom Thread Count Slider β”‚
74
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
75
+ β”‚ πŸŽ›οΈ Inference Parameters β”‚
76
+ β”‚ β”œβ”€ Temperature (0.0-2.0) β”‚
77
+ β”‚ β”œβ”€ Max Output Tokens (256-4096) β”‚
78
+ β”‚ β”œβ”€ Top P (0.0-1.0) β”‚
79
+ β”‚ └─ Top K (0-100) β”‚
80
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
81
+ ```
82
+
83
+ ### 4B. Advanced Mode Settings (visible when Advanced selected)
84
+ ```
85
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
86
+ β”‚ 🧠 Advanced Mode (3-Model Pipeline) β”‚
87
+ β”‚ Extraction β†’ Deduplication β†’ Synth β”‚
88
+ β”œβ”€οΏ½οΏ½β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
89
+ β”‚ πŸ” Stage 1: Extraction β”‚
90
+ β”‚ β”œβ”€ Extraction Model Dropdown β”‚
91
+ β”‚ β”œβ”€ Context Window Slider (2K-8K) β”‚
92
+ β”‚ β”œβ”€ Window Overlap Slider (1-5) β”‚
93
+ β”‚ β”œβ”€ Enable Reasoning Checkbox β”‚
94
+ β”‚ └─ [Accordion] Model Details β”‚
95
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
96
+ β”‚ 🧬 Stage 2: Deduplication β”‚
97
+ β”‚ β”œβ”€ Embedding Model Dropdown β”‚
98
+ β”‚ β”œβ”€ Similarity Threshold (0.7-0.95) β”‚
99
+ β”‚ └─ [Accordion] Model Details β”‚
100
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
101
+ β”‚ ✨ Stage 3: Synthesis β”‚
102
+ β”‚ β”œβ”€ Synthesis Model Dropdown β”‚
103
+ β”‚ β”œβ”€ Enable Reasoning Checkbox β”‚
104
+ β”‚ β”œβ”€ Max Output Tokens (512-4096) β”‚
105
+ β”‚ β”œβ”€ Temperature (0.0-2.0) β”‚
106
+ β”‚ β”œβ”€ Top P (0.0-1.0) β”‚
107
+ β”‚ β”œβ”€ Top K (0-100) β”‚
108
+ β”‚ └─ [Accordion] Model Details β”‚
109
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
110
+ β”‚ βš™οΈ Global Settings β”‚
111
+ β”‚ β”œβ”€ CPU Thread Preset Dropdown β”‚
112
+ β”‚ β”œβ”€ Custom Thread Count Slider β”‚
113
+ β”‚ └─ Enable Trace Logging Checkbox β”‚
114
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
115
+ ```
116
+
117
+ ### 5. Debug Tools (collapsed by default)
118
+ ```
119
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
120
+ β”‚ πŸ› Debug Tools [Accordion] β”‚
121
+ β”‚ └─ System Prompt (Read-Only) β”‚
122
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
123
+ ```
124
+
125
+ ### 6. Submit Button
126
+ ```
127
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
128
+ β”‚ ✨ Generate Summary β”‚
129
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
130
+ ```
131
+
132
+ ---
133
+
134
+ ## RIGHT COLUMN (Output Display)
135
+
136
+ ### 1. Model Information Panel
137
+ ```
138
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
139
+ β”‚ πŸ“Š Model Information β”‚
140
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
141
+ β”‚ Standard Mode: β”‚
142
+ β”‚ β€’ Shows 1 model spec β”‚
143
+ β”‚ β”‚
144
+ β”‚ Advanced Mode: β”‚
145
+ β”‚ β€’ Extraction Model specs β”‚
146
+ β”‚ β€’ Embedding Model specs β”‚
147
+ β”‚ β€’ Synthesis Model specs β”‚
148
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
149
+ ```
150
+
151
+ ### 2. Model Thinking Process
152
+ ```
153
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
154
+ β”‚ 🧠 Model Thinking Process β”‚
155
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
156
+ β”‚ (Textbox - 12-20 lines) β”‚
157
+ β”‚ Real-time reasoning display β”‚
158
+ β”‚ β”‚
159
+ β”‚ [πŸ“‹ Copy Thinking] β”‚
160
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
161
+ ```
162
+
163
+ ### 3. Final Summary
164
+ ```
165
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
166
+ β”‚ πŸ“ Final Summary β”‚
167
+ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
168
+ β”‚ (Markdown output) β”‚
169
+ β”‚ Summary content appears here β”‚
170
+ β”‚ β”‚
171
+ β”‚ (Completion metrics if Advanced) β”‚
172
+ β”‚ β”‚
173
+ β”‚ [πŸ“‹ Copy Summary] [⬇️ Download] β”‚
174
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
175
+ ```
176
+
177
+ ---
178
+
179
+ ## UI Statistics
180
+
181
+ **Total UI Code:** 998 lines
182
+ **Components Used:**
183
+ - Groups: 7
184
+ - Accordions: 4
185
+ - Tabs: 2
186
+ - Rows: 4
187
+ - Columns: 2
188
+ - Buttons: 6
189
+ - Dropdowns: 8
190
+ - Sliders: 13
191
+ - Checkboxes: 4
192
+ - Radio: 1
193
+ - Textboxes: 4
194
+ - Markdown: 6
195
+
196
+ ---
197
+
198
+ ## Strengths βœ…
199
+
200
+ 1. **Clear Two-Column Layout**
201
+ - Left: Input & Settings
202
+ - Right: Output & Results
203
+ - Good separation of concerns
204
+
205
+ 2. **Single Mode Selector**
206
+ - Radio button to switch between Standard/Advanced
207
+ - No redundant tab system
208
+ - Clean mode switching
209
+
210
+ 3. **Stage-Based Advanced Mode**
211
+ - Clear pipeline flow: Extraction β†’ Dedup β†’ Synthesis
212
+ - Each stage has dedicated section
213
+ - Logical grouping of parameters
214
+
215
+ 4. **Unified Model Information**
216
+ - Single panel in right column
217
+ - Shows 1 model (Standard) or 3 models (Advanced)
218
+ - Updates dynamically
219
+
220
+ 5. **Single Global Language Selector**
221
+ - No duplicates
222
+ - Applies to both modes
223
+ - In Global Settings section
224
+
225
+ 6. **Mode-Specific Parameters**
226
+ - Standard Mode: Simple inference params
227
+ - Advanced Mode: Stage-specific params + global settings
228
+ - No confusion about which params apply where
229
+
230
+ ---
231
+
232
+ ## Potential Issues ⚠️
233
+
234
+ ### 1. **Nested Tabs in Standard Mode**
235
+ **Current:**
236
+ ```
237
+ Standard Mode Group
238
+ └─ Tabs (model_tabs)
239
+ β”œβ”€ Preset Models
240
+ └─ Custom GGUF
241
+ ```
242
+
243
+ **Issue:** Extra nesting level that might not be necessary
244
+
245
+ **Suggestion:** Consider using an Accordion or Radio button for model source selection instead of nested tabs
246
+
247
+ ---
248
+
249
+ ### 2. **Inconsistent "Global Settings" Naming**
250
+ **Current:**
251
+ - Section 1: "🌐 Global Settings" (language selector)
252
+ - Advanced Mode: "βš™οΈ Global Settings" (hardware config)
253
+
254
+ **Issue:** Two sections with same semantic name but different content
255
+
256
+ **Suggestion:**
257
+ - Rename first one to "Output Settings" or "Language Settings"
258
+ - Or consolidate into one global section at top
259
+
260
+ ---
261
+
262
+ ### 3. **Hardware Configuration Duplication**
263
+ **Current:**
264
+ - Standard Mode has its own hardware config
265
+ - Advanced Mode has its own hardware config (in "Global Settings" subsection)
266
+
267
+ **Issue:** Same control duplicated across modes
268
+
269
+ **Suggestion:** Move to a true global section that applies to both modes (could be above mode selector)
270
+
271
+ ---
272
+
273
+ ### 4. **Long Left Column in Advanced Mode**
274
+ **Current Structure:**
275
+ - Stage 1: ~40 lines
276
+ - Stage 2: ~25 lines
277
+ - Stage 3: ~60 lines
278
+ - Global Settings: ~30 lines
279
+ - Total: ~155 lines of settings
280
+
281
+ **Issue:** Lots of scrolling required in Advanced Mode
282
+
283
+ **Suggestion:** Consider collapsing stages into accordions or using a more compact layout
284
+
285
+ ---
286
+
287
+ ### 5. **Model Details Accordions in Advanced Mode**
288
+ **Current:**
289
+ - Each stage has a collapsed "Model Details" accordion
290
+ - 3 separate accordions
291
+
292
+ **Issue:** Redundant with unified Model Information panel in right column
293
+
294
+ **Suggestion:** Remove individual accordions and rely only on unified panel in right column
295
+
296
+ ---
297
+
298
+ ### 6. **Missing Visual Feedback for Mode Selection**
299
+ **Current:**
300
+ - Mode radio button at top
301
+ - Settings groups show/hide based on selection
302
+
303
+ **Issue:** No clear visual indicator of which mode is active besides radio button
304
+
305
+ **Suggestion:** Add visual styling/badge to mode groups (e.g., highlighted border when active)
306
+
307
+ ---
308
+
309
+ ### 7. **Debug Tools Position**
310
+ **Current:**
311
+ - Located between Submit button and Output column
312
+ - In left column after all settings
313
+
314
+ **Issue:** Might be better positioned elsewhere or combined with other debug features
315
+
316
+ **Suggestion:** Move to a footer section or integrate with completion info
317
+
318
+ ---
319
+
320
+ ### 8. **Completion Metrics Display**
321
+ **Current:**
322
+ - Shows inside "Final Summary" section
323
+ - Below the summary text
324
+
325
+ **Issue:** Not clearly separated from summary content
326
+
327
+ **Suggestion:** Create a dedicated "Generation Metrics" section or improve visual separation
328
+
329
+ ---
330
+
331
+ ### 9. **Input Content Position**
332
+ **Current:**
333
+ - Near top of left column, before mode selection
334
+
335
+ **Issue:** Users might want to select mode first, then provide input
336
+
337
+ **Suggestion:** Consider moving Input Content below Mode Selection
338
+
339
+ ---
340
+
341
+ ### 10. **Multiple Accordions in Advanced Mode**
342
+ **Current:**
343
+ - 3 "Model Details" accordions (one per stage)
344
+ - 1 Debug Tools accordion
345
+
346
+ **Issue:** Too many collapsible sections might hide important information
347
+
348
+ **Suggestion:** Reduce accordion usage or make certain ones open by default
349
+
350
+ ---
351
+
352
+ ## Recommended Improvements 🎯
353
+
354
+ ### Priority 1 (High Impact, Low Effort)
355
+
356
+ 1. **Remove Stage-Specific Model Details Accordions**
357
+ - Rely only on unified Model Information panel
358
+ - Reduces clutter in left column
359
+ - Eliminates redundancy
360
+
361
+ 2. **Rename Conflicting "Global Settings"**
362
+ - First section β†’ "Output Settings"
363
+ - Advanced Mode section β†’ "Pipeline Settings"
364
+ - Improves clarity
365
+
366
+ 3. **Add Visual Mode Indicator**
367
+ - Highlight active mode group with colored border
368
+ - Add badge showing "ACTIVE" state
369
+ - Better visual feedback
370
+
371
+ ### Priority 2 (Medium Impact, Medium Effort)
372
+
373
+ 4. **Consolidate Hardware Configuration**
374
+ - Move to single global section above mode selector
375
+ - Applies to both Standard and Advanced modes
376
+ - Reduces duplication
377
+
378
+ 5. **Simplify Standard Mode Model Selection**
379
+ - Replace nested tabs with Radio buttons or Dropdown
380
+ - "Preset Models" vs "Custom GGUF" selection
381
+ - Reduces UI nesting
382
+
383
+ 6. **Improve Completion Metrics Display**
384
+ - Separate section in Final Summary group
385
+ - Clear visual separator (border/background)
386
+ - More prominent typography
387
+
388
+ ### Priority 3 (Lower Impact, Higher Effort)
389
+
390
+ 7. **Optimize Advanced Mode Layout**
391
+ - Consider using collapsible accordions for stages
392
+ - Or use a stepper/wizard UI for pipeline stages
393
+ - Reduce vertical scrolling
394
+
395
+ 8. **Reorganize Input Position**
396
+ - Move Input Content below Mode Selection
397
+ - Logical flow: Mode β†’ Settings β†’ Input β†’ Generate
398
+ - More intuitive workflow
399
+
400
+ 9. **Consolidate Debug Features**
401
+ - Move Debug Tools to footer or separate tab
402
+ - Combine with other developer features
403
+ - Keep main UI focused on user workflow
404
+
405
+ ---
406
+
407
+ ## Proposed Optimal Layout
408
+
409
+ ### Left Column (Top to Bottom)
410
+ ```
411
+ 1. Output Settings (language selector)
412
+ 2. Hardware Configuration (global - applies to both modes)
413
+ 3. Mode Selection (radio button)
414
+ 4. Input Content (file upload / paste text tabs)
415
+ 5. [Mode-Specific Settings - show/hide based on mode]
416
+ - Standard Mode: Model Selection (radio/dropdown) + Inference Params
417
+ - Advanced Mode: Stage 1, 2, 3 sections
418
+ 6. Submit Button
419
+ ```
420
+
421
+ ### Right Column (Top to Bottom)
422
+ ```
423
+ 1. Model Information (unified panel)
424
+ 2. Model Thinking Process
425
+ 3. Final Summary
426
+ 4. Generation Metrics (separate visual section)
427
+ 5. Action Buttons (Copy, Download)
428
+ ```
429
+
430
+ ### Footer
431
+ ```
432
+ Debug Tools (collapsed) + Version Info
433
+ ```
434
+
435
+ ---
436
+
437
+ ## Summary
438
+
439
+ **Overall Assessment:** β­β­β­β­β˜† (4/5)
440
+
441
+ The UI is well-structured with clear separation between input/settings and output. The recent refactoring improved consistency by:
442
+ - Unifying model information display
443
+ - Removing duplicate language selectors
444
+ - Organizing Advanced Mode by pipeline stages
445
+
446
+ **Main Strengths:**
447
+ - Clean two-column layout
448
+ - Logical stage-based organization for Advanced Mode
449
+ - Good use of show/hide for mode switching
450
+
451
+ **Main Weaknesses:**
452
+ - Some redundancy (hardware config, model details accordions)
453
+ - Naming conflicts ("Global Settings" used twice)
454
+ - Could reduce nesting in Standard Mode
455
+ - Long vertical scroll in Advanced Mode
456
+
457
+ **Recommended Next Steps:**
458
+ 1. Remove redundant Model Details accordions in Advanced Mode
459
+ 2. Consolidate hardware configuration into one global section
460
+ 3. Rename conflicting "Global Settings" sections
461
+ 4. Add visual feedback for active mode
462
+ 5. Consider simplifying Standard Mode model selection UI
463
+