Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Link to event URL in single event view #252

Open
wants to merge 2 commits into
base: Dev
Choose a base branch
from

Conversation

alvyynm
Copy link
Member

@alvyynm alvyynm commented Oct 29, 2024

Have you read the contributing guidelines ?

What is the purpose of your pull request?

  • Bug fix
  • New feature
  • Documentation

Proposed changes

As pointed out by Juma on WhatsApp, the frontend currently displays a reservation modal when a user clicks the Reserve for Free button in the single event page view.

This PR fixes that by taking the user to the event website from the api. I've also renamed the button text from Reserve for Free to Reserve Tickets since some events are paid (the api doesn't provide any info on whether the event is free or paid for now).

Further considerations

Since there's no differentiator on whether the event is ours or an external one, we can consider adding that marker to the api in the future and allow users to reserve tickets from the event page on our website for internal events.

Warning

Please read these points carefully and answer honestly with an X
into all the boxes. Example : [X]

Before submitting a pull request make sure you have:

  • Read the guidelines for contributing.
  • Wrote some tests.
  • Respected the linting guidelines (read the guide below for help).

How to Check and Fix Linting Issues

Run npm run validate. This command will run prettier and eslint checks to ensure linting guidelines are respected.

  • If the command exits with code 0 (build is successful), there are no linting issues.

  • If the command exits with a code other than 0, scroll up the command output and look for identified linting issues. Fix them and revalidate to check if the issues have been resolved by re-running the command.

@alvyynm alvyynm added bug Something isn't working 💻 aspect: code labels Oct 29, 2024
@alvyynm alvyynm self-assigned this Oct 29, 2024
Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
syt-web-redesign ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 9:50am

@alvyynm alvyynm marked this pull request as ready for review October 29, 2024 09:53
@alvyynm alvyynm changed the title fix: add event URL to events fix: Link to event URL in single event view Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant