mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-03-31 06:23:54 -04:00
[PR #101] feat: Add card/list view toggle with enhanced list view #186
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/community-scripts/ProxmoxVE-Local/pull/101
State: closed
Merged: Yes
Overview
This PR adds a view toggle feature that allows users to switch between card view (default) and list view on both the Available Scripts and Downloaded Scripts pages.
Features Added
Technical Implementation
ViewToggle.tsxcomponent with active state stylingScriptCardList.tsxcomponent with horizontal layout design/api/settings/view-modeendpoint following existing settings patternScriptCardinterface to include OS, version, and port informationgetScriptCardsWithCategoriesAPI to provide additional metadataScriptsGrid.tsxandDownloadedScriptsTab.tsxwith conditional renderingUser Experience
Files Changed
src/app/_components/ViewToggle.tsx(new)src/app/_components/ScriptCardList.tsx(new)src/app/api/settings/view-mode/route.ts(new)src/app/_components/ScriptsGrid.tsx(modified)src/app/_components/DownloadedScriptsTab.tsx(modified)src/server/api/routers/scripts.ts(modified)src/types/script.ts(modified)Testing