aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/FormPage.tsx (follow)
Commit message (Collapse)AuthorAgeLines
* Restructure FormPageGravatar Hassan Abouelela2022-07-01-347/+0
| | | | | | | | | | | | | 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 error message for failed unit tests.Gravatar DavinderJolly2022-06-18-15/+21
| | | | fix rendering of error message by updating public_state prop before updating state, and only catch 422 status code in FormPage
* Add processing for POST request responseGravatar Janine vN2022-03-14-4/+22
| | | | | | | | 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.
* Block submission when missing OAuth2 scopesGravatar Joe Banks2021-12-24-15/+24
|
* Support Line Breaks In Submitted TextGravatar Hassan Abouelela2021-06-19-1/+10
|
* Fixes Return Home Button CenteringGravatar Hassan Abouelela2021-03-07-3/+5
| | | | | | | Fixes the centering of the return home button on closed forms, by removing the style wrapper. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into discord-oauthGravatar Hassan Abouelela2021-02-20-16/+111
|\ | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # package.json # src/commonStyles.tsx # src/pages/FormPage.tsx
| * Remove TODOGravatar ks1292021-02-18-1/+1
| |
| * Revert change of gathering checkbox valuesGravatar ks1292021-02-18-9/+12
| |
| * Move CSS back under navigation class to avoid messy diffGravatar ks1292021-02-17-52/+52
| |
| * Unfocus currently focused element before scrolling to invalid questionGravatar ks1292021-02-17-0/+5
| |
| * Remove trailing whitespacesGravatar ks1292021-02-08-1/+1
| |
| * Create refMap to avoid errors on direct ref accessGravatar ks1292021-02-08-3/+9
| |
| * Implement focusing text fields if empty on submitGravatar ks1292021-02-08-1/+5
| |
| * Rename invalid field IDs variableGravatar ks1292021-02-08-4/+4
| |
| * Improve submit data gatheringGravatar ks1292021-02-08-10/+6
| |
| * Add nullability check for refGravatar ks1292021-02-08-1/+1
| |
| * Simplify if checkGravatar ks1292021-02-08-1/+1
| |
| * Improve and simplify checkboxes gatheringGravatar ks1292021-02-08-12/+11
| | | | | | Co-authored-by: Hassan Abouelela <[email protected]>
| * Move container and return styles back to FormPageGravatar ks1292021-01-28-2/+50
| |
| * Remove unnecessary separator from sent form return home buttonGravatar ks1292021-01-28-2/+10
| |
| * Remove debugging setSentGravatar ks1292021-01-23-1/+0
| |
| * Use relative unitsGravatar ks1292021-01-21-1/+2
| |
| * Implement dynamic showing of form submitted textGravatar ks1292021-01-21-3/+5
| |
| * Add state for displaying thanks for submitting showingGravatar ks1292021-01-20-64/+39
| |
| * Un-refactor map to array for questionsGravatar ks1292021-01-19-11/+7
| |
| * Implement form submittingGravatar ks1292021-01-19-3/+30
| |
| * Remove preventDefault from endGravatar ks1292021-01-19-2/+0
| |
| * Add preventDefault to avoid reloading of pageGravatar ks1292021-01-19-0/+1
| |
| * Implement before-submit validation (broken, crashing)Gravatar ks1292021-01-19-4/+32
| |
* | Removes Path From AuthGravatar Hassan Abouelela2021-02-17-4/+2
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Dynamically Show Discord OAuth ButtonGravatar Hassan Abouelela2021-02-13-34/+31
|/ | | | | | | 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]>
* Updates Switch Statement IndentGravatar Hassan Abouelela2021-01-17-2/+2
| | | | | | | Changes the switch statement indentation level to 1 in the eslint config, and updates files accordingly. Signed-off-by: Hassan Abouelela <[email protected]>
* Minor Style AdjustmentsGravatar Hassan Abouelela2021-01-16-0/+4
| | | | | | Minor adjustments following the first round of open feedback. Signed-off-by: Hassan Abouelela <[email protected]>
* Breaks Up CSS Into ComponentsGravatar Hassan Abouelela2021-01-06-27/+141
| | | | | | | | 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 Question RenderingGravatar Hassan Abouelela2021-01-06-10/+66
| | | | | | | | 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]>
* Fixes Preexisting Linting IssuesGravatar Hassan Abouelela2021-01-03-5/+5
| | | | | | | Fixes all errors, and most warnings generated by eslint. Most were fixed by eslint automatically such as indentation and quotes. Signed-off-by: Hassan Abouelela <[email protected]>
* replace @emotion/core with @emotion/reactGravatar Joe Banks2020-12-16-1/+1
|
* Move loading to different componentGravatar ks1292020-12-14-12/+2
|
* Experiment concluded that hash the best choiceGravatar Joe Banks2020-10-05-9/+2
|
* Add experiment for loading pagesGravatar Joe Banks2020-10-05-2/+9
|
* Major rewrite of forms page to render specific formGravatar Joe Banks2020-10-05-3/+40
|
* Add a dummy page for form informationGravatar Joe Banks2020-09-29-0/+12