mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-28 07:36:38 +08:00
8ebde9dca9
* chore: update AGENTS.md with next release info * feat: node OS logo, UI rate fix, and monitor trend updates
16 lines
1.1 KiB
Markdown
16 lines
1.1 KiB
Markdown
# Plan 061: Node Logo By OS Type (Linux Distro)
|
|
|
|
## Objective
|
|
Display different logos for nodes in the 'Monitor - Node - Card/List View' based on their Linux distribution (Ubuntu, Debian, CentOS, Alpine, etc.).
|
|
|
|
## Tasks
|
|
- [x] Agent: Use `gopsutil/v3/host.Info().Platform` to detect the Linux distro and include it in the version string (`distro.go`).
|
|
- [x] Agent: Update `main.go` to call `socket.DetectDistro()` instead of `runtime.GOOS`.
|
|
- [x] Agent: Ensure version parameter is URL-escaped since it now includes distro info with special chars.
|
|
- [x] Backend: Select `version` column in `ListMonitorNodes`.
|
|
- [x] Backend: Include `version` in `monitorNodeListItem` JSON response.
|
|
- [x] Frontend: Add `version` to TypeScript interfaces (`MonitorNodeApiItem`, `MonitorNode`, `MonitorViewProps`).
|
|
- [x] Frontend: Create `distro-icon.tsx` component with SVG logos for Ubuntu, Debian, CentOS/Rocky/Alma, Alpine, Fedora, Arch/Manjaro, and a default Linux (Tux) fallback.
|
|
- [x] Frontend: Use `DistroIcon` in `ServerCard` (card view) and list view name column with branded colors per distro.
|
|
- [x] All three projects compile cleanly (`go build`, `tsc --noEmit`).
|