-
Notifications
You must be signed in to change notification settings - Fork 699
Open
Labels
Description
Search before asking
- I had searched in the issues and found no similar feature requirement.
Description
-
Entry Point: - Add a "View Logs" option within the Action Button menu (or Action group) of each RayCluster in the cluster list/detail view.
-
Interaction: - Clicking "View Logs" will open a Modal or a Side Drawer containing the Log Viewer.
-
Log Viewer Component:
- A dedicated terminal-like interface built with
@mui/joy. - Support for auto-scrolling and basic keyword highlighting (ERROR/WARN).
- A dedicated terminal-like interface built with
-
Add Download button in the log view to download the logs file
Technical Details
- API Endpoint:
/api/v0/logs/file - Data Format: Plain text (verified here)
- Component Stack:
@mui/joy(Sheet, Typography, Stack, etc)
Proposed Implementation Path
- New Component: Create
dashboard/src/components/LogViewer.tsxusing Joy UISheetandTypographyto render plain-text logs with auto scroll support. - API Integration: Implement a new data-fetching hook in
dashboard/src/hooks/api/useGetLogs.tsto interface with the/api/v0/logs/fileendpoint. - UI Entry Point: Add a "View Logs" button to the
Actionscolumn indashboard/src/app/history/raycluster/page.tsx. - User Experience: Clicking the button will trigger a Modal to display the log stream for the specific node.
View Logs button can be an Icon
### Use case
No response
Related issues
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Reactions are currently unavailable