feat:This MR introduces frontend quality improvements and CI-related enhancements for the SWECHA website.
Changes Included
- Added Husky pre-commit hooks
- Added automated lint checks using
lint-staged - Added automated test execution before commits
- Added automated build validation before commits
- Updated GitLab CI configuration
- Added/updated API test cases
- Improved Hero component rendering logic
- Refactored particle positioning logic to deterministic values instead of random calculations
- Minor cleanup and optimization in
PoshPage.tsx - Updated Vite configuration and package dependencies
Quality Improvements
Pre-commit checks now automatically run:
npm run lint-stagednpm run testnpm run build
Verification
-
Lint passing -
Tests passing -
Build passing -
Pre-commit hooks working successfully -
CI pipeline validated
Edited by Praveena Veeranki