Skip to content

Conversation

@BramSuurdje
Copy link
Member

✍️ 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.

🔗 Related PR / Issue

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.

- Updated `framer-motion` to version `12.23.12` in `package.json` and `bun.lock`.
- Removed unused dependencies: `fuse.js`, `react-code-blocks`, `react-datepicker`, `pocketbase`, `simple-icons`.
- Refactored import in `number-ticker.tsx` to use `motion/react` instead of `framer-motion`.
- Removed CSS import for `react-datepicker` in `page.tsx`.
- Modified the redirection logic in NotFoundPage to use the basePath variable.
- Set default basePath to "ProxmoxVE" in site-config for improved routing consistency.
@BramSuurdje BramSuurdje requested a review from a team as a code owner November 21, 2025 22:11
@github-actions github-actions bot added bugfix website A change to the website labels Nov 21, 2025
tremor021
tremor021 previously approved these changes Nov 22, 2025
MickLesk
MickLesk previously approved these changes Nov 22, 2025
@michelroegl-brunner
Copy link
Member

@BramSuurdje you got some merge conflicts to solve please, rest looks good.

@MickLesk MickLesk merged commit 07e46a4 into main Nov 23, 2025
4 checks passed
@MickLesk MickLesk deleted the remove-unused-deps branch November 25, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix website A change to the website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants