aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages (follow)
Commit message (Collapse)AuthorAgeLines
* Eslint on new changesGravatar Joe Banks2025-08-08-3/+2
|
* Pass precheck data down tree for submissionGravatar Joe Banks2025-08-08-10/+7
|
* Update FormPage to show PrecheckDataGravatar Joe Banks2025-08-08-24/+8
|
* Remove unused linting ignoresGravatar Joe Banks2024-07-10-1/+0
|
* Explicitly tag PyDis messages for integrityGravatar Joe Banks2024-07-03-1/+1
|
* Add 404 PageGravatar Hassan Abouelela2022-07-19-8/+59
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Simplify Navigation ComponentGravatar Hassan Abouelela2022-07-19-111/+39
| | | | | | | Extract the styles from the navigation component to common styles, and convert it to a function component. Signed-off-by: Hassan Abouelela <[email protected]>
* Clear Authorization On ErrorGravatar Hassan Abouelela2022-07-14-0/+3
| | | | | | | 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]>
* Codify Question State TypeGravatar Hassan Abouelela2022-07-01-27/+32
| | | | | | | | 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]>
* Remove Unused Prop From ErrorPageGravatar Hassan Abouelela2022-07-01-3/+1
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Restructure FormPageGravatar Hassan Abouelela2022-07-01-347/+537
| | | | | | | | | | | | | 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
| * Merge pull request #91 from python-discord/forms-submittingGravatar Hassan Abouelela2021-02-19-14/+110
| |\ | | | | | | Form submission validation and submitting
| | * 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]>
* | | Cleans Up OAuth ButtonGravatar Hassan Abouelela2021-02-13-10/+1
| | | | | | | | | | | | | | | | | | | | | Removes OAuth button from home page, and redesigns it. Uses new authorization functionality in auth. Signed-off-by: Hassan Abouelela <[email protected]>
* | | Adds Basic Auth FunctionalityGravatar Hassan Abouelela2021-02-13-2/+3
|/ / | | | | | | | | | | | | | | 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]>
* / Cleans Up Some WarningsGravatar Hassan Abouelela2021-01-26-1/+1
|/ | | | | | Makes slight modifications to handle some minor warnings. 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-479/+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/+518
| | | | | | | | 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]>