wu981526092 commited on
Commit
7edeff9
·
1 Parent(s): 113e114

feat: optimize UI text for better space utilization

Browse files

- Compress Smart Chunking Tips from bullet list to single line
- Remove redundant splitter description text in method selection
- Improve overall modal compactness while maintaining clarity

Changes:
- SplitterSelectionModal: Simplified chunking tips to one informative line
- MethodSelectionModal: Removed 'Using X for chunking' redundant text

frontend/src/components/shared/modals/MethodSelectionModal.tsx CHANGED
@@ -155,10 +155,7 @@ export function MethodSelectionModal({
155
  Select Extraction Method
156
  </DialogTitle>
157
  <DialogDescription>
158
- Using <strong>{getSplitterDisplayName(selectedSplitter)}</strong>{" "}
159
- for chunking.
160
- <br />
161
- Now choose the extraction method for knowledge graph generation:
162
  </DialogDescription>
163
  </DialogHeader>
164
 
 
155
  Select Extraction Method
156
  </DialogTitle>
157
  <DialogDescription>
158
+ Choose the extraction method for knowledge graph generation:
 
 
 
159
  </DialogDescription>
160
  </DialogHeader>
161
 
frontend/src/components/shared/modals/SplitterSelectionModal.tsx CHANGED
@@ -287,26 +287,11 @@ export function SplitterSelectionModal({
287
  </div>
288
 
289
  <div className="bg-muted/30 rounded-lg p-3">
290
- <div className="flex items-start gap-2">
291
- <Brain className="h-4 w-4 text-blue-500 mt-0.5" />
292
- <div className="text-xs text-muted-foreground">
293
- <p className="font-medium text-foreground mb-1">
294
- Smart Chunking Tips:
295
- </p>
296
- <ul className="space-y-1">
297
- <li>
298
- • Larger chunks preserve more context but use more
299
- tokens
300
- </li>
301
- <li>
302
- • Smaller chunks are faster but may lose semantic
303
- connections
304
- </li>
305
- <li>
306
- • Default values are optimized for most agent traces
307
- </li>
308
- </ul>
309
- </div>
310
  </div>
311
  </div>
312
  </div>
 
287
  </div>
288
 
289
  <div className="bg-muted/30 rounded-lg p-3">
290
+ <div className="flex items-center gap-2">
291
+ <Brain className="h-4 w-4 text-blue-500" />
292
+ <p className="text-xs text-muted-foreground">
293
+ <span className="font-medium text-foreground">Smart Chunking:</span> Balance context preservation with processing speed - defaults optimized for most traces.
294
+ </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  </div>
296
  </div>
297
  </div>