Skip to content

Save user events#50

Merged
8 commits merged intomainfrom
saveUserEvents
Jun 14, 2025
Merged

Save user events#50
8 commits merged intomainfrom
saveUserEvents

Conversation

@Oggie112
Copy link
Contributor

✨ What’s Changed?

Added heart save button and populate userEvents with their saved events with working filters. Theres a fair bit going on so just have a read through and let me know if you've got any questions.

Some slight styling changes to the event and made the url property a link so it takes them to the website.

Slight fix to edit events. The form was making all elements string but price and distance are supposed to be numbers on the backend. Added a parseValue function/check and all working well.

Changed the get event api to use axios. Created saveUserevents api's using axios

📚 Related Issues

✅ Checklist

  • Lint & formatting passes (npm run lint / run lint:fix)
  • No type errors (npm run type-check)
  • [] Tests added or updated (if applicable)

Oggie112 added 8 commits June 9, 2025 12:22
… the event to their user page and to their profile in the DB. For non-users it takes them to the login/signup page.

This  change required a fair bit of refactoring of a number of different parts of code. The events / users api's now use axios. The eventsPage now contains more logic for the save and displaying of user events and the subsequent components pass more of this state/props through. Fixed navbar bug by adding a defined bg color. Use events commented out for the time being. Filter now set to all on load rather than just music.
… numbers remain numbers. Forms auto to strings.
Copy link
Contributor

@arecouz arecouz left a comment

Choose a reason for hiding this comment

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

Looks good! We should get rid of the console.logs though. Can have a clean up on Monday

@arecouz arecouz closed this pull request by merging all changes into main in d65bbf5 Jun 14, 2025
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.

2 participants