From 08bc91e5c9192f8797cbc5be869b6bf294426dc1 Mon Sep 17 00:00:00 2001 From: sagitchu Date: Fri, 20 Mar 2026 10:00:56 +0800 Subject: [PATCH] feat(ui): add list view for node and user pages --- plans/052-node-user-list-view.md | 10 + vite-frontend/index.html | 3 + vite-frontend/src/pages/dashboard.tsx | 2 +- .../components/announcement-banner.tsx | 4 +- vite-frontend/src/pages/forward.tsx | 2 +- vite-frontend/src/pages/node.tsx | 220 ++++++++++++++++++ vite-frontend/src/pages/user.tsx | 198 +++++++++++++++- vite-frontend/src/styles/tailwind-theme.pcss | 2 + 8 files changed, 434 insertions(+), 7 deletions(-) create mode 100644 plans/052-node-user-list-view.md diff --git a/plans/052-node-user-list-view.md b/plans/052-node-user-list-view.md new file mode 100644 index 0000000..c0d5a41 --- /dev/null +++ b/plans/052-node-user-list-view.md @@ -0,0 +1,10 @@ +# 052 Node and User List View + +## Objective +Add a list view and a card view toggle for Node Page and User Page, so they match exactly how the Monitor Page does it. + +## Tasks +- [x] Add `viewMode` state toggle with `LayoutGrid` and `List` icons to `pages/node.tsx` header area. +- [x] Implement Table view rendering for Node list in `pages/node.tsx`. +- [x] Add `viewMode` state toggle with `LayoutGrid` and `List` icons to `pages/user.tsx` header area. +- [x] Implement Table view rendering for User list in `pages/user.tsx`. diff --git a/vite-frontend/index.html b/vite-frontend/index.html index a50be27..22bb708 100644 --- a/vite-frontend/index.html +++ b/vite-frontend/index.html @@ -7,6 +7,9 @@ + + + FLVX