mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-03-31 06:23:54 -04:00
[PR #37] [MERGED] Add reusable Badge component and refactor badge usage #127
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/37
Author: @MickLesk
Created: 10/6/2025
Status: ✅ Merged
Merged: 10/6/2025
Merged by: @michelroegl-brunner
Base:
development← Head:feat_badges📝 Commits (1)
0f2f126Add reusable Badge component and refactor badge usage📊 Changes
6 files changed (+179 additions, -86 deletions)
View changed files
➕
src/app/_components/Badge.tsx(+140 -0)📝
src/app/_components/DarkModeProvider.tsx(+12 -9)📝
src/app/_components/InstalledScriptsTab.tsx(+7 -32)📝
src/app/_components/ScriptCard.tsx(+3 -14)📝
src/app/_components/ScriptDetailModal.tsx(+6 -29)📝
src/app/layout.tsx(+11 -2)📄 Description
✍️ Description
Introduces a new Badge component with variants for type, updateable, privileged, status, execution mode, and note. Refactors ScriptCard, ScriptDetailModal, and InstalledScriptsTab to use the new Badge components, improving consistency and maintainability. Also updates DarkModeProvider and layout.tsx for better dark mode handling and fallback.
🔗 Related PR / Issue
Link: #30
✅ Prerequisites (X in brackets)
Screenshot for frontend Change
🛠️ Type of Change (X in brackets)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.