[PR #9341] [MERGED] fix: enhance back navigation in NotFoundPage component and remove unused deps #7974

Closed
opened 2026-02-26 16:31:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/9341
Author: @BramSuurdje
Created: 11/21/2025
Status: Merged
Merged: 11/23/2025
Merged by: @MickLesk

Base: mainHead: remove-unused-deps


📝 Commits (5)

  • 1b125b9 fix: enhance back navigation in NotFoundPage component
  • b32633f chore: update dependencies and refactor imports
  • daa7f78 fix: update NotFoundPage redirection to use basePath from site-config
  • b1068c5 Merge branch 'main' into remove-unused-deps
  • 0e295ed update bun.lock

📊 Changes

5 files changed (+383 additions, -490 deletions)

View changed files

📝 frontend/bun.lock (+368 -482)
📝 frontend/package.json (+1 -5)
📝 frontend/src/app/not-found.tsx (+12 -1)
📝 frontend/src/components/ui/number-ticker.tsx (+1 -1)
📝 frontend/src/config/site-config.tsx (+1 -1)

📄 Description

✍️ Description

This pull request primarily focuses on cleaning up unused dependencies, updating the fallback behavior for the "Go Back" button on the Not Found page, and making minor configuration and import adjustments. The most important changes are summarized below:

Dependency Cleanup:

  • Removed several unused dependencies from frontend/package.json, including framer-motion, fuse.js, pocketbase, react-code-blocks, react-datepicker, react-simple-typewriter, and simple-icons. This reduces bundle size and potential security risks.

  • Updated imports in number-ticker.tsx to use motion/react instead of framer-motion, reflecting the dependency cleanup.

  • Removed the import of react-datepicker's CSS from data/page.tsx, since the dependency was removed.

UX Improvements:

  • Enhanced the "Go Back" button on the Not Found page to navigate to the base path if there is no history to go back to, improving user experience for direct navigation or first-page visits. [1] [2]

Configuration Updates:

  • Changed the default value of basePath in site-config.tsx from an empty string to "ProxmoxVE", ensuring a consistent fallback for routing and navigation.

Link: #

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 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/9341 **Author:** [@BramSuurdje](https://github.com/BramSuurdje) **Created:** 11/21/2025 **Status:** ✅ Merged **Merged:** 11/23/2025 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `remove-unused-deps` --- ### 📝 Commits (5) - [`1b125b9`](https://github.com/community-scripts/ProxmoxVE/commit/1b125b90b65749927671f95bc2d069b9d526efdc) fix: enhance back navigation in NotFoundPage component - [`b32633f`](https://github.com/community-scripts/ProxmoxVE/commit/b32633fd955c8e9ff9b33f47e9de89c50ec8c95f) chore: update dependencies and refactor imports - [`daa7f78`](https://github.com/community-scripts/ProxmoxVE/commit/daa7f7820d5148a3f482d216bf7806d2543bb6ab) fix: update NotFoundPage redirection to use basePath from site-config - [`b1068c5`](https://github.com/community-scripts/ProxmoxVE/commit/b1068c5852202d111f7f8c3fea634db0bf4409e8) Merge branch 'main' into remove-unused-deps - [`0e295ed`](https://github.com/community-scripts/ProxmoxVE/commit/0e295ed14ef86c276e71d7a6e13ee32fa1ce5a8e) update bun.lock ### 📊 Changes **5 files changed** (+383 additions, -490 deletions) <details> <summary>View changed files</summary> 📝 `frontend/bun.lock` (+368 -482) 📝 `frontend/package.json` (+1 -5) 📝 `frontend/src/app/not-found.tsx` (+12 -1) 📝 `frontend/src/components/ui/number-ticker.tsx` (+1 -1) 📝 `frontend/src/config/site-config.tsx` (+1 -1) </details> ### 📄 Description <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description This pull request primarily focuses on cleaning up unused dependencies, updating the fallback behavior for the "Go Back" button on the Not Found page, and making minor configuration and import adjustments. The most important changes are summarized below: **Dependency Cleanup:** * Removed several unused dependencies from `frontend/package.json`, including `framer-motion`, `fuse.js`, `pocketbase`, `react-code-blocks`, `react-datepicker`, `react-simple-typewriter`, and `simple-icons`. This reduces bundle size and potential security risks. * Updated imports in `number-ticker.tsx` to use `motion/react` instead of `framer-motion`, reflecting the dependency cleanup. * Removed the import of `react-datepicker`'s CSS from `data/page.tsx`, since the dependency was removed. **UX Improvements:** * Enhanced the "Go Back" button on the Not Found page to navigate to the base path if there is no history to go back to, improving user experience for direct navigation or first-page visits. [[1]](diffhunk://#diff-d3db6de496d0011db961e1797aead55d9dfa21a72284696a61b5e8f4e6640d96R3) [[2]](diffhunk://#diff-d3db6de496d0011db961e1797aead55d9dfa21a72284696a61b5e8f4e6640d96L15-R26) **Configuration Updates:** * Changed the default value of `basePath` in `site-config.tsx` from an empty string to `"ProxmoxVE"`, ensuring a consistent fallback for routing and navigation. ## 🔗 Related PR / Issue Link: # ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [x] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [ ] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 16:31:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#7974
No description provided.