mirror of
https://github.com/BreizhHardware/projet-web-cipa4.git
synced 2026-05-09 00:07:27 +02:00
[PR #5] [MERGED] Feat/search #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BreizhHardware/projet-web-cipa4#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BreizhHardware/projet-web-cipa4/pull/5
Author: @BreizhHardware
Created: 2/3/2026
Status: ✅ Merged
Merged: 2/3/2026
Merged by: @BreizhHardware
Base:
main← Head:feat/search📝 Commits (4)
f1ebaf4feat(search): Create the search using the figma6cf87d4refactor(js): Refactor js from search to separate file9640201fix(tripCard): Correct driver name formatting to include last name initial8af81e6feat(result-list): Add width to trip results for better layout📊 Changes
13 files changed (+715 additions, -99 deletions)
View changed files
➕
MIGRATIONS_README.md(+45 -0)➕
css/components.css(+197 -0)➕
css/result-list.css(+28 -0)📝
css/style.css(+15 -5)➕
js/components/TripCard.js(+100 -0)➕
js/trip-list.js(+120 -0)📝
php/classes/Security.php(+1 -1)📝
php/models/Trip.php(+6 -2)➕
php/utils/MigrationManager.php(+96 -0)➕
php/utils/create_migration.php(+16 -0)📝
php/utils/init_db.php(+9 -3)➕
php/utils/migrations/2026_02_03_13_05_00_add_trip_options.php(+46 -0)📝
views/trip/list.html(+36 -88)📄 Description
This pull request introduces a comprehensive migration system for managing database schema changes, enhances the trip card UI and trip listing/filtering experience, and improves the trip creation process with new trip attributes. Key updates include the implementation of an automatic migration manager, new UI components and CSS for trip cards, and expanded trip model/database support for additional trip options.
Database Migration System:
MigrationManagerclass (php/utils/MigrationManager.php), a CLI tool for creating migrations (php/utils/create_migration.php), and documentation inMIGRATIONS_README.md. Migrations are now run automatically during database initialization (php/utils/init_db.php). [1] [2] [3] [4] [5]commentfield and a constraint onluggage_allowed, and ensured new columns are compatible with the migration system (php/utils/init_db.php).Trip Model and Creation Enhancements:
Tripmodel and trip creation logic to supportsmoking_allowed,pets_allowed,luggage_allowed, andcommentfields, ensuring these are included in new trips (php/models/Trip.php). [1] [2]Frontend Trip Listing and Card UI:
TripCardcomponent for rendering trips with enhanced visuals, including driver avatar, rating, timeline, and seat info (js/components/TripCard.js).js/trip-list.js).css/components.css,css/result-list.css,css/style.css). [1] [2] [3] [4]Security and Miscellaneous:
cdnjs.cloudflare.comfor compatibility with new frontend dependencies (php/classes/Security.php).These changes collectively improve database maintainability, user experience for trip browsing and booking, and codebase scalability.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.