Commit eba8448
Dylan Huang
in progress log viewer (part 2) (#26)
* simple solution to updating the client
* fix layout of expanded row
* Refactor ChatInterface and MetadataSection components for improved layout and functionality
- Adjusted default chat height in ChatInterface from 512px to 400px for better UI consistency.
- Enhanced MetadataSection to include expandable functionality, allowing users to toggle visibility of metadata details.
- Updated Row component to set defaultExpanded prop for MetadataSection, ensuring sections are expanded by default.
* Enhance StatusIndicator to show spinner for running status
- Updated Row component to pass showSpinner prop to StatusIndicator when the status is "running".
- Modified StatusIndicator to conditionally render a spinner based on the showSpinner prop, improving user feedback during loading states.
* Implement row expansion management in GlobalState and Dashboard
- Added functionality to manage expanded rows in GlobalState, including methods to toggle individual row expansion and set all rows expanded or collapsed.
- Updated Dashboard component to include buttons for expanding and collapsing all rows, and display the count of currently expanded rows.
- Refactored Row component to utilize GlobalState for determining and toggling row expansion state.
* Add auto-scroll functionality to ChatInterface for new messages
- Implemented auto-scrolling to the bottom of the chat window when new messages are received, enhancing user experience during conversations.
- Introduced a new scrollContainerRef to manage scrolling behavior effectively.
* Refactor GlobalState and Dashboard components for improved data handling and UI
- Changed dataset and expandedRows in GlobalState from arrays and sets to objects for better performance and reactivity.
- Updated setDataset method to create a new dataset object, preserving expansion state more efficiently.
- Refactored Dashboard to utilize totalCount for dataset management and replaced the Row component with EvaluationTable for cleaner structure.
- Introduced EvaluationRow and EvaluationTable components to enhance modularity and maintainability of the evaluation display.
* Enhance auto-scroll functionality in ChatInterface to prevent initial scroll on mount
- Added a reference to track the initial mount state, preventing auto-scrolling on the first render.
- Updated the scrolling logic to only trigger after the initial mount when new messages are received, improving user experience during chat interactions.
* Refactor auto-scroll logic in ChatInterface to enhance user experience
- Replaced initial mount reference with a previous messages length reference to prevent scrolling on the first render and only scroll when new messages are added.
- Improved scrolling behavior to avoid unnecessary scrolls when messages are removed, ensuring a smoother chat interaction.
* update build
* Remove redundant arguments from logs command in CLI and simplify serve_logs call
* Update logs command to use default localhost settings and simplify output
- Removed the ability to specify watch paths, defaulting to 'current directory'.
- Changed server host and port to fixed values (localhost:8000) for consistency.
* Implement message expansion feature in MessageBubble component
- Added state management to toggle message expansion for long messages.
- Introduced a helper function to format message content based on its type.
- Updated rendering logic to display a "Show more" / "Show less" button for long messages, enhancing user interaction.
* update build1 parent 0fb7071 commit eba8448
File tree
21 files changed
+591
-345
lines changed- eval_protocol
- cli_commands
- utils
- vite-app
- dist
- assets
- src
- components
21 files changed
+591
-345
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | 292 | | |
323 | 293 | | |
324 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 14 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
24 | 18 | | |
25 | 19 | | |
26 | 20 | | |
27 | 21 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 22 | + | |
34 | 23 | | |
35 | 24 | | |
36 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
| |||
137 | 149 | | |
138 | 150 | | |
139 | 151 | | |
140 | | - | |
| 152 | + | |
141 | 153 | | |
142 | 154 | | |
143 | 155 | | |
| |||
Loading
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
0 commit comments