Skip to content

feat: add ponctual rides#13

Merged
Mizi00 merged 3 commits intomainfrom
feature/add-ponctual-rides
Oct 23, 2025
Merged

feat: add ponctual rides#13
Mizi00 merged 3 commits intomainfrom
feature/add-ponctual-rides

Conversation

@Shuudy
Copy link
Copy Markdown
Owner

@Shuudy Shuudy commented Oct 23, 2025

Summary

This PR adds support for creating punctual ride proposals and rides.

@Shuudy Shuudy added the enhancement New feature or request label Oct 23, 2025
@Shuudy Shuudy force-pushed the feature/add-ponctual-rides branch from 8250114 to a7f65f0 Compare October 23, 2025 09:59
@Shuudy Shuudy requested review from Mizi00 and Copilot October 23, 2025 09:59
Copy link
Copy Markdown

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 adds support for punctual (one-time) ride proposals and rides, complementing the existing regular ride functionality. The implementation introduces a ride type classification system to differentiate between regular recurring rides and one-time punctual rides.

Key Changes:

  • Added ride_type column to database schema for both ride_proposals and rides tables
  • Enhanced carpool matching to support punctual rides based on address proximity alone
  • Updated UI to allow users to filter and create rides by type

Reviewed Changes

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

Show a summary per file
File Description
src/main/resources/schema.sql Added ride_type column to ride_proposals and rides tables
src/main/resources/data.sql Updated seed data to include ride type for existing proposals
src/main/java/com/kovoit/entity/RideProposal.java Added rideType field and updated constructor
src/main/java/com/kovoit/entity/Ride.java Added rideType field with getters/setters
src/main/java/com/kovoit/service/RideProposalService.java Updated proposeRide method to accept ride type parameter
src/main/java/com/kovoit/service/RideService.java Modified ride creation to preserve ride type from proposal
src/main/java/com/kovoit/service/CarpoolMatchingService.java Added methods for punctual ride matching by address
src/main/java/com/kovoit/views/CarpoolView.java Implemented ride type selection and conditional matching logic
src/main/java/com/kovoit/views/RideView.java Added ride type column to rides grid
src/main/java/com/kovoit/views/RideProposalsView.java Added ride type column to proposals grid

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/main/resources/schema.sql
Comment thread src/main/resources/schema.sql
Comment thread src/main/java/com/kovoit/service/RideProposalService.java Outdated
Shuudy and others added 2 commits October 23, 2025 12:03
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Mizi00 Mizi00 merged commit 96e0406 into main Oct 23, 2025
2 checks passed
@Mizi00 Mizi00 deleted the feature/add-ponctual-rides branch October 23, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants