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

Add API to handle submitting new statements #51

Merged
merged 2 commits into from
Aug 24, 2021
Merged

Conversation

siame
Copy link
Contributor

@siame siame commented Aug 24, 2021

This PR contains 2 commits:

  1. The first commit adds an /api/jam endpoint that is used to GET the Jam metadata and display this on the jam page, as well as storing the jamId for future requests. This also allows us to refactor the /api/question endpoint as we no longer have to lookup the jam by it's urlPath on each request as we now have the jamId.
  2. The second commit adds the UI handling around submitting statements, one or more, and showing the correct modal depending on the state of the application.

Closes #24

siame added 2 commits August 24, 2021 12:52
This commit also adds the UI handling around submitting multiple
statements and showing the correct modal depending on the state of the
application.
@ruiramos ruiramos self-requested a review August 24, 2021 12:22
Copy link
Member

@ruiramos ruiramos left a comment

Choose a reason for hiding this comment

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

This is looking really good well done @siame !!

Copy link
Contributor

@Midnite Midnite left a comment

Choose a reason for hiding this comment

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

👏

@ruiramos ruiramos merged commit b0aebf1 into main Aug 24, 2021
@ruiramos ruiramos deleted the submit-new-statement branch August 24, 2021 16:31
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.

Participant Submit New Statement
3 participants