[PR #230] [MERGED] Add JSON Generator page for easier configuring of new metadata #2439

Open
opened 2025-11-20 05:30:02 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/230
Author: @BramSuurdje
Created: 11/13/2024
Status: Merged
Merged: 11/14/2024
Merged by: @MickLesk

Base: mainHead: main


📝 Commits (10+)

  • 96046f2 Update mariadb.json
  • a027259 Update vaultwarden.json
  • 980c4e8 Update vaultwarden.json
  • e1efaf3 Update keycloak.json
  • fc5128f Update json/keycloak.json
  • b916f8d Update mariadb.json
  • b789792 Add canonical link to layout for improved SEO and page indexing
  • bb590c6 Fix image source fallback for script logos to use a consistent relative path
  • 3f21155 Merge branch 'main' of github.com:BramSuurdje/ProxmoxVE
  • 3952c5d Merge branch 'community-scripts:main' into main

📊 Changes

15 files changed (+1354 additions, -5 deletions)

View changed files

📝 frontend/package-lock.json (+179 -1)
📝 frontend/package.json (+8 -1)
frontend/src/app/json-editor/_components/Categories.tsx (+103 -0)
frontend/src/app/json-editor/_components/InstallMethod.tsx (+189 -0)
frontend/src/app/json-editor/_components/Note.tsx (+115 -0)
frontend/src/app/json-editor/_schemas/schemas.ts (+43 -0)
frontend/src/app/json-editor/page.tsx (+323 -0)
frontend/src/components/ui/alert.tsx (+59 -0)
frontend/src/components/ui/calendar.tsx (+66 -0)
frontend/src/components/ui/label.tsx (+26 -0)
frontend/src/components/ui/popover.tsx (+31 -0)
frontend/src/components/ui/select.tsx (+160 -0)
frontend/src/components/ui/switch.tsx (+29 -0)
frontend/src/components/ui/textarea.tsx (+22 -0)
📝 frontend/src/config/siteConfig.tsx (+1 -3)

📄 Description

Note

We are meticulous when it comes to merging code into the main branch, so please understand that we may reject pull requests that do not meet the project's standards. It's never personal. Also, game-related scripts have a lower chance of being merged.

Description

This pull request focuses on adding a easy to use page for configuring new metadata. it also includes updates to dependencies in package-lock.json and package.json, as well as the addition of new UI components in the frontend/src/components/ui directory.

Dependency Updates:

  • Added new dependencies for Radix UI components and other libraries in package-lock.json and package.json. These include @radix-ui/react-label, @radix-ui/react-popover, @radix-ui/react-select, @radix-ui/react-switch, date-fns, react-day-picker, and zod. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

New UI Components:

  • Added Alert, AlertTitle, and AlertDescription components in frontend/src/components/ui/alert.tsx.
  • Added Calendar component in frontend/src/components/ui/calendar.tsx.
  • Added Label component in frontend/src/components/ui/label.tsx.
  • Added Popover, PopoverTrigger, and PopoverContent components in frontend/src/components/ui/popover.tsx.

Fixes # (issue)

Type of change

Please check the relevant option(s):

  • Bug fix (non-breaking change that resolves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (a fix or feature that would cause existing functionality to change unexpectedly)
  • New script (a fully functional and thoroughly tested script or set of scripts.)

Prerequisites

The following efforts must be made for the PR to be considered. Please check when completed:

  • Self-review performed (I have reviewed my code, ensuring it follows established patterns and conventions)
  • Testing performed (I have tested my changes, ensuring everything works as expected)
  • Documentation updated (I have updated any relevant documentation)

Additional Information (optional)

Provide any additional context or screenshots about the feature or fix here.

image

If there are other pull requests or discussions related to this change, please link them here:

  • Related PR #

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/230 **Author:** [@BramSuurdje](https://github.com/BramSuurdje) **Created:** 11/13/2024 **Status:** ✅ Merged **Merged:** 11/14/2024 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`96046f2`](https://github.com/community-scripts/ProxmoxVE/commit/96046f2121433828215dfc4eba4499a4a07a508e) Update mariadb.json - [`a027259`](https://github.com/community-scripts/ProxmoxVE/commit/a027259c1877a80cc0bf00681baa845e960d89f5) Update vaultwarden.json - [`980c4e8`](https://github.com/community-scripts/ProxmoxVE/commit/980c4e84848f7aeab6228296e5d9ff094c7384c9) Update vaultwarden.json - [`e1efaf3`](https://github.com/community-scripts/ProxmoxVE/commit/e1efaf3cee949d3f3b3a001657f525d2fd0e5b4d) Update keycloak.json - [`fc5128f`](https://github.com/community-scripts/ProxmoxVE/commit/fc5128fbe3d2f23ef88ddced80ffe8680ef329ab) Update json/keycloak.json - [`b916f8d`](https://github.com/community-scripts/ProxmoxVE/commit/b916f8dc873f34d0804fefa6a93fad12e5114d03) Update mariadb.json - [`b789792`](https://github.com/community-scripts/ProxmoxVE/commit/b78979260f7568351ca9df07c7330174173f4551) Add canonical link to layout for improved SEO and page indexing - [`bb590c6`](https://github.com/community-scripts/ProxmoxVE/commit/bb590c697e16738fd3885d85bec8d8d264d68cb2) Fix image source fallback for script logos to use a consistent relative path - [`3f21155`](https://github.com/community-scripts/ProxmoxVE/commit/3f21155d53e093077e63533899a5484d449e1e16) Merge branch 'main' of github.com:BramSuurdje/ProxmoxVE - [`3952c5d`](https://github.com/community-scripts/ProxmoxVE/commit/3952c5dfac9272bf6ae2f8435148c6ef34e4ff46) Merge branch 'community-scripts:main' into main ### 📊 Changes **15 files changed** (+1354 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `frontend/package-lock.json` (+179 -1) 📝 `frontend/package.json` (+8 -1) ➕ `frontend/src/app/json-editor/_components/Categories.tsx` (+103 -0) ➕ `frontend/src/app/json-editor/_components/InstallMethod.tsx` (+189 -0) ➕ `frontend/src/app/json-editor/_components/Note.tsx` (+115 -0) ➕ `frontend/src/app/json-editor/_schemas/schemas.ts` (+43 -0) ➕ `frontend/src/app/json-editor/page.tsx` (+323 -0) ➕ `frontend/src/components/ui/alert.tsx` (+59 -0) ➕ `frontend/src/components/ui/calendar.tsx` (+66 -0) ➕ `frontend/src/components/ui/label.tsx` (+26 -0) ➕ `frontend/src/components/ui/popover.tsx` (+31 -0) ➕ `frontend/src/components/ui/select.tsx` (+160 -0) ➕ `frontend/src/components/ui/switch.tsx` (+29 -0) ➕ `frontend/src/components/ui/textarea.tsx` (+22 -0) 📝 `frontend/src/config/siteConfig.tsx` (+1 -3) </details> ### 📄 Description > [!NOTE] > We are meticulous when it comes to merging code into the main branch, so please understand that we may reject pull requests that do not meet the project's standards. It's never personal. Also, game-related scripts have a lower chance of being merged. ## Description This pull request focuses on adding a easy to use page for configuring new metadata. it also includes updates to dependencies in `package-lock.json` and `package.json`, as well as the addition of new UI components in the `frontend/src/components/ui` directory. ### Dependency Updates: * Added new dependencies for Radix UI components and other libraries in `package-lock.json` and `package.json`. These include `@radix-ui/react-label`, `@radix-ui/react-popover`, `@radix-ui/react-select`, `@radix-ui/react-switch`, `date-fns`, `react-day-picker`, and `zod`. [[1]](diffhunk://#diff-4a2d9aa3e849b134993936ca81b83fb139edd2b0218077ab0f403b8c4803c62aR16-R29) [[2]](diffhunk://#diff-4a2d9aa3e849b134993936ca81b83fb139edd2b0218077ab0f403b8c4803c62aR41-R49) [[3]](diffhunk://#diff-4a2d9aa3e849b134993936ca81b83fb139edd2b0218077ab0f403b8c4803c62aR1038-R1043) [[4]](diffhunk://#diff-4a2d9aa3e849b134993936ca81b83fb139edd2b0218077ab0f403b8c4803c62aR1378-R1400) [[5]](diffhunk://#diff-4a2d9aa3e849b134993936ca81b83fb139edd2b0218077ab0f403b8c4803c62aR1477-R1513) [[6]](diffhunk://#diff-4a2d9aa3e849b134993936ca81b83fb139edd2b0218077ab0f403b8c4803c62aR1678-R1720) [[7]](diffhunk://#diff-4a2d9aa3e849b134993936ca81b83fb139edd2b0218077ab0f403b8c4803c62aR1762-R1790) [[8]](diffhunk://#diff-4a2d9aa3e849b134993936ca81b83fb139edd2b0218077ab0f403b8c4803c62aR3083-R3092) [[9]](diffhunk://#diff-4a2d9aa3e849b134993936ca81b83fb139edd2b0218077ab0f403b8c4803c62aR6193-R6206) [[10]](diffhunk://#diff-da6498268e99511d9ba0df3c13e439d10556a812881c9d03955b2ef7c6c1c655R26-R39) [[11]](diffhunk://#diff-da6498268e99511d9ba0df3c13e439d10556a812881c9d03955b2ef7c6c1c655R51-R59) ### New UI Components: * Added `Alert`, `AlertTitle`, and `AlertDescription` components in `frontend/src/components/ui/alert.tsx`. * Added `Calendar` component in `frontend/src/components/ui/calendar.tsx`. * Added `Label` component in `frontend/src/components/ui/label.tsx`. * Added `Popover`, `PopoverTrigger`, and `PopoverContent` components in `frontend/src/components/ui/popover.tsx`. Fixes # (issue) ## Type of change Please check the relevant option(s): - [ ] Bug fix (non-breaking change that resolves an issue) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (a fix or feature that would cause existing functionality to change unexpectedly) - [ ] New script (a fully functional and thoroughly tested script or set of scripts.) ## Prerequisites The following efforts must be made for the PR to be considered. Please check when completed: - [x] Self-review performed (I have reviewed my code, ensuring it follows established patterns and conventions) - [x] Testing performed (I have tested my changes, ensuring everything works as expected) - [ ] Documentation updated (I have updated any relevant documentation) ## Additional Information (optional) Provide any additional context or screenshots about the feature or fix here. ![image](https://github.com/user-attachments/assets/edf5f068-3cb3-424d-bfb8-43f798cf4aef) ## Related Pull Requests / Discussions If there are other pull requests or discussions related to this change, please link them here: - Related PR # --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 05:30:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#2439