Skip to content

SOW 29 Certificates Improvements#200

Merged
caesai merged 25 commits intomainfrom
dev
Nov 20, 2025
Merged

SOW 29 Certificates Improvements#200
caesai merged 25 commits intomainfrom
dev

Conversation

@caesai
Copy link
Copy Markdown
Owner

@caesai caesai commented Nov 20, 2025

No description provided.

caesai and others added 24 commits November 20, 2025 17:51
Certificate SLanding Improvements, CertificatesSelector Tests Fix
@sergantche sergantche requested a review from Copilot November 20, 2025 19:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements improvements to the certificate management system, focusing on better user experience and code maintainability. The changes enhance certificate status display, improve code organization through documentation, and refactor the restaurant list into a reusable component.

Key Changes:

  • Enhanced certificate status logic with separate checks for "used" vs "expired" states, providing more precise user feedback
  • Added comprehensive documentation (README files and JSDoc comments) for certificate-related components
  • Refactored restaurant list display into a reusable RestaurantsList component with city selection
  • Made RestaurantPreview conditionally clickable to support different usage contexts

Reviewed Changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/pages/CertificateLanding/CertificateLandingPage.tsx Enhanced certificate status logic, improved code documentation, integrated restaurant list component, updated button wrapper
src/pages/CertificateLanding/CertificateLandingPage.module.css Updated styling for restaurant list display and removed deprecated button styles
src/pages/CertificateLanding/README.md Added comprehensive module documentation
src/components/CertificatesSelector/CertificatesSelector.tsx Added JSDoc documentation, made props required, fixed filtering bug
src/components/CertificatesSelector/README.md Added component API documentation
src/components/RestaurantsList/RestaurantsList.tsx New reusable component for displaying restaurant lists with city filtering
src/components/RestaurantsList/RestaurantsList.module.css Styling for restaurant list component
src/components/RestaurantPreview/RestrauntPreview.tsx Added optional clickable prop to conditionally render modal
src/components/CitySelect/CitySelect.tsx Added optional titleStyle prop for custom title styling
src/pages/IndexPage/IndexPage.tsx Exported transformToConfirmationFormat for reuse, added clickable prop
src/pages/NewRestaurant/NewRestaurant.tsx Added clickable prop to RestaurantPreview
src/pages/BookingRestaurantPage/BookingRestaurantPage.tsx Updated CertificatesSelector with new required props
src/pages/BookingFreeEventPage/BookingFreeEventPage.tsx Updated CertificatesSelector with new required props
src/__tests__/certificates/certificates.test.tsx Refactored test to focus on CertificatesSelector with proper Jotai provider setup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@caesai caesai merged commit 2e1cf8a into main Nov 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants