feat:added events page and wrote test cases
1️Why this MR?
The objective of this task was to enhance the Events page to support structured event management, improve UI consistency, and ensure the page follows production-level development standards.
Additionally, test cases were implemented to ensure reliability, maintainability, and stability of the feature during future updates.
2️⃣ Key Contributions
-
Developed and structured the Events page using TypeScript (TSX).
-
Refactored the page to maintain type safety and better scalability.
-
Implemented dynamic rendering to support multiple events.
-
Improved UI consistency and responsiveness.
-
Ensured proper integration of dark/light theme functionality.
-
Applied linting and formatting standards for clean and maintainable code.
-
Wrote unit test cases to validate:
- Event rendering
- Component behavior
- User interactions
- Edge case handling
-
Ensured the feature passes test validations without runtime errors.
3️⃣ Technology Stack Used
Frontend Development:
- Next.js (App Router)
- React
- TypeScript (TSX)
- Tailwind CSS
Testing:
- Jest / Vitest
- React Testing Library
Code Quality:
- ESLint
- Prettier
- Git & GitLab
4️⃣ Outcome / Impact
- Improved reliability of the Events feature through structured TypeScript implementation.
- Increased maintainability with proper type definitions and modular code.
- Strengthened application stability through comprehensive test coverage.
- Delivered a scalable and production-ready Events page aligned with project standards.