Commit Graph

20 Commits

Author SHA1 Message Date
Sean Morley
01865951ac Added new trip plan creator and removed visit count stores 2024-05-06 23:13:32 +00:00
Sean Morley
ca7592989a feat: Add markVisited function to AdventureCard.svelte and +page.svelte
The code changes include adding a new function called markVisited to the AdventureCard.svelte and +page.svelte files. This function is responsible for marking an adventure as visited and dispatching an event to update the adventure's status. This enhancement allows users to mark adventures as visited in the planner page and triggers the corresponding API request to update the adventure's status in the database.
2024-05-05 19:06:23 +00:00
Sean Morley
87cc6da518 feat: Add validation for adventure name in CreateNewAdventure component
The code changes include adding validation for the adventure name in the CreateNewAdventure component. If the name is empty, an alert is displayed and the adventure creation is prevented. This enhancement ensures that users provide a name for the adventure before creating it.
2024-05-04 17:27:51 +00:00
Sean Morley
609d3743ed feat: Add addAdventure function to adventureService
The code changes include adding a new function called addAdventure to the adventureService module. This function is responsible for sending a POST request to the corresponding API endpoint to add a new adventure. If the request is successful, the adventure is added to the local plans array and a success toast is displayed. If the request fails, an error toast is displayed. This functionality allows users to add adventures to the planner page.
2024-05-04 17:14:20 +00:00
Sean Morley
79cf19ccb2 ```text
feat: Add type prop to CreateNewAdventure component

The code changes include adding a new prop called "type" to the CreateNewAdventure component in order to specify the type of adventure being created. This prop is passed from the parent component and used to set the "type" property of the newAdventure object. This allows for more flexibility in creating adventures with different types.
2024-05-04 15:55:58 +00:00
Sean Morley
2b7c6b0f18 feat: Add removeAdventure function to +page.svelte and adventureService.ts
The code changes include adding a new function called removeAdventure to the +page.svelte file and adventureService.ts module. This function is responsible for sending a DELETE request to the corresponding API endpoint to remove an adventure. If the request is successful, the adventure is removed from the local plans array. If the request fails, an error toast is displayed. This functionality allows users to remove adventures from the planner page.
2024-05-04 15:38:55 +00:00
Sean Morley
798ce1e3e5 feat: Add saveAdventure function to adventureService
The code changes include adding a new function called saveAdventure to the adventureService module. This function is responsible for sending a PUT request to the corresponding API endpoint to save an adventure. If the request is successful, the local adventure array is updated with the new data. If the request fails, an empty array is returned to allow for handling errors.
2024-05-04 15:18:20 +00:00
Sean Morley
37f050d254 Started Migration 2024-04-26 01:14:13 +00:00
Sean Morley
45545fd8ce Add PUT route to update existing adventure and refactor adventureService 2024-04-10 14:58:42 +00:00
Sean Morley
ed9a579fc2 Add POST endpoint to create new adventure and update adventureService 2024-04-10 14:51:51 +00:00
Sean Morley
7ba879f7d9 Add DELETE endpoint to visits API and update log page 2024-04-10 14:33:41 +00:00
Sean Morley
83cca15a8f Consistent code formatting 2024-04-02 22:02:20 +00:00
Sean Morley
9baab4c675 Add featured adventure locations and fix conditional rendering in log page 2024-04-02 18:31:44 +00:00
Sean Morley
ad568bb3fa Update Navbar component to display visit count 2024-04-02 18:28:14 +00:00
Sean Morley
2e26e3712d Add delete functionality and clear adventures 2024-03-31 16:58:02 +00:00
Sean Morley
bf640bc433 Add SuccessToast component and pinLogo asset***
***Update saveEdit function in adventureService.ts***
***Remove unnecessary buttons in Navbar.svelte***
***Add EditModal component***
***Update Footer.svelte with pinLogo and copyright information
2024-03-31 00:49:42 +00:00
Sean Morley
9ee5d67ab6 Add Tailwind CSS and update layout and page styles 2024-03-30 21:00:12 +00:00
Sean Morley
90036c5c14 Add layout and footer components, update adventureService, and create log page 2024-03-29 22:44:32 +00:00
Sean Morley
bd5e1a813b Add import and export functionality 2024-03-29 22:20:21 +00:00
Sean Morley
9addb5462e first commit 2024-03-29 21:41:22 +00:00