Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

[WIP] Add dedicated Add Course page with map/geofence picker#1

Draft
Copilot wants to merge 1 commit intomainfrom
copilot/fix-8e08acb7-2872-42b0-b0f1-8031d342f436
Draft

[WIP] Add dedicated Add Course page with map/geofence picker#1
Copilot wants to merge 1 commit intomainfrom
copilot/fix-8e08acb7-2872-42b0-b0f1-8031d342f436

Conversation

Copy link

Copilot AI commented Sep 27, 2025

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

Create a new page called pages/course-add.tsx in the p3c-admin-portal repo. This page should provide a full form for adding a new golf course, including fields for course name, location, par, holes, difficulty, status, price, description, golf pro, and employee. Add an interactive Leaflet map that allows the user to set the course's latitude and longitude by placing a marker, and set a geofence as a circle (center point + radius). When the user submits the form, save the course data (including location/geofence) and redirect to the main courses page (pages/courses.tsx), where the new course appears. Also update the Add Course button on the courses page to navigate to the new dedicated add course page instead of opening a modal. Keep the UI clean and simple, and ensure the new page matches the existing admin layout.

*This pull request was created as a result of the following prompt from Copilot chat.* > Create a new page called pages/course-add.tsx in the p3c-admin-portal repo. This page should provide a full form for adding a new golf course, including fields for course name, location, par, holes, difficulty, status, price, description, golf pro, and employee. Add an interactive Leaflet map that allows the user to set the course's latitude and longitude by placing a marker, and set a geofence as a circle (center point + radius). When the user submits the form, save the course data (including location/geofence) and redirect to the main courses page (pages/courses.tsx), where the new course appears. Also update the Add Course button on the courses page to navigate to the new dedicated add course page instead of opening a modal. Keep the UI clean and simple, and ensure the new page matches the existing admin layout.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link

vercel bot commented Sep 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
p3c-admin-portal Ready Ready Preview Comment Sep 27, 2025 11:34am
p3c-admin-portal-9g3c Ready Ready Preview Comment Sep 27, 2025 11:34am
p3c-admin-portal-c24o Ready Ready Preview Comment Sep 27, 2025 11:34am
p3c-admin-portal-pt4v Ready Ready Preview Comment Sep 27, 2025 11:34am
p3c-admin-portal-zwof Ready Ready Preview Comment Sep 27, 2025 11:34am

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants