| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
| |
Extract the styles from the navigation component to common styles, and
convert it to a function component.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
| |
Deletes the OAuth cookies when an error happens during submit. This is a
stopgap till we fix the authorization issues.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
Uses an interface to define the RenderedQuestion component state, to
reduce the required type and existence checks in the rest of the
codebase.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The main FormPage component had gotten very out of hand, with many
moving parts that were hard to parse, understand, or modify. This
refactors breaks things up into separate files with better defined
goals.
Most changes are just straight copies without much change, however some
structural changes have been introduced as a foundation for improving
the app.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
fix rendering of error message by updating public_state prop before updating state, and only catch 422 status code in FormPage
|
|
|
|
|
|
|
|
| |
We now process the POST request response, catching the error. It re-runs
the code validationField() function.
It currently processes it assuming there's only one failed codeblock.
This will be updated later.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Fixes the centering of the return home button on closed forms, by
removing the style wrapper.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
# package.json
# src/commonStyles.tsx
# src/pages/FormPage.tsx
|
| |\
| | |
| | | |
Form submission validation and submitting
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | | |
Co-authored-by: Hassan Abouelela <[email protected]>
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Dynamically displays an auth button in place of the submit button if
needed, and adds full authorization flow.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Removes OAuth button from home page, and redesigns it. Uses new
authorization functionality in auth.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
Moves all authorization functionality to a new file, and adds a helper
to send discord OAuth code to the backend, and set JWT. Adds a library
to read and set cookies.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|/
|
|
|
|
| |
Makes slight modifications to handle some minor warnings.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
| |
Changes the switch statement indentation level to 1 in the eslint
config, and updates files accordingly.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
| |
Minor adjustments following the first round of open feedback.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
Moves the styles from the CSS file, into emotion CSS in each component's
file to make navigation easier, and keep CSS and JSX together.Drops
raw-loader dependency.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
Adds a question component, and calls it on form page. Adds styling for
input types and form page. Lays foundation for validation and
submission.
Signed-off-by: Hassan Abouelela <[email protected]>
|