mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-03-31 06:23:54 -04:00
[PR #101] [MERGED] feat: Add card/list view toggle with enhanced list view #182
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?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/101
Author: @michelroegl-brunner
Created: 10/10/2025
Status: ✅ Merged
Merged: 10/10/2025
Merged by: @michelroegl-brunner
Base:
main← Head:feature/view-toggle-card-list📝 Commits (2)
db73624feat: Add card/list view toggle with enhanced list view3f303a4fix: Resolve TypeScript/ESLint build errors📊 Changes
7 files changed (+473 additions, -59 deletions)
View changed files
📝
src/app/_components/DownloadedScriptsTab.tsx(+86 -39)➕
src/app/_components/ScriptCardList.tsx(+164 -0)📝
src/app/_components/ScriptsGrid.tsx(+84 -20)➕
src/app/_components/ViewToggle.tsx(+45 -0)➕
src/app/api/settings/view-mode/route.ts(+81 -0)📝
src/server/api/routers/scripts.ts(+10 -0)📝
src/types/script.ts(+3 -0)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.