aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeLines
...
* Add Selectable Styles To Code Field (#469)Gravatar Hassan Abouelela2022-06-30-1/+3
| | | | | | | | Adds the selectable CSS styles to the code field to fix a bug on safari that prevented users from clicking into it and writing. Thanks to Etzeitet & NoodleReaper for discovering this. Signed-off-by: Hassan Abouelela <[email protected]>
* Expand Code Field To Fill SpaceGravatar Hassan Abouelela2022-06-29-0/+4
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Fix Dropdown Overlap IssueGravatar Hassan Abouelela2022-06-29-9/+20
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Bump React To 18.2.0Gravatar Hassan Abouelela2022-06-18-64/+66
| | | | | | | | | | | | Bump react to v18, and handle all the breaking changes. This includes bumping a lot of other dependencies to versions which support react 18, and handling the breaking changes for those. Refer to the following documents for migration guides: React: https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html Router: https://reactrouter.com/docs/en/v6/upgrading/v5 Signed-off-by: Hassan Abouelela <[email protected]>
* Bump CodeMirror to 6.0.0Gravatar Hassan Abouelela2022-06-18-1/+1
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Remove Jest SVG TransformerGravatar Hassan Abouelela2022-06-18-0/+4
| | | | | | | | | The current SVG transformer has not had an update in 4 years, and breaks with the latest jest version. The behavior can be very easily replicated by hand, as is documented by SVGR, the library we are already using in webpack. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into snekbox-results-feedbackGravatar Hassan Abouelela2022-06-18-1/+1
|\
| * Prompt for OAuth2 consent on every auth flowGravatar ChrisJL2022-06-17-1/+1
| | | | | | Closes #439
* | Fix rendering error message for failed unit tests.Gravatar DavinderJolly2022-06-18-16/+22
| | | | | | | | 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.
* | Add new unittestsFailed public_state fieldGravatar Janine vN2022-03-14-1/+12
|/ | | | | New field to determine if a unittest failed and provide feedback to the user.
* Skip one of the FormPage tests that throws errorsGravatar Joe Banks2021-12-24-1/+2
|
* Block submission when missing OAuth2 scopesGravatar Joe Banks2021-12-24-15/+24
|
* Support Line Breaks In Submitted TextGravatar Hassan Abouelela2021-06-19-1/+10
|
* Merge pull request #224 from python-discord/codemirrorGravatar Hassan Abouelela2021-06-19-8/+62
|\ | | | | Implement code field using CodeMirror 6 beta
| * Update HTML Element handler commentGravatar DawnOfMidnight2021-06-07-1/+1
| |
| * Update code field styling after pulling upstreamGravatar dawnofmidnight2021-05-30-5/+11
| |
| * Implement code fieldGravatar ks1292021-05-07-6/+54
| |
* | Adds Support For Linebreaks In ContentGravatar Hassan Abouelela2021-06-10-7/+16
|/ | | | | Adds support for inserting line breaks in question names, and in the case of sections, question data.
* Updates Home Page Form Entry ExpansionGravatar Hassan Abouelela2021-04-24-1/+1
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Opens OAuth In New TabGravatar Hassan Abouelela2021-03-08-2/+1
| | | | | | | Removes the window features from the OAuth window to make it open in a new tab if the client prefers. Signed-off-by: Hassan Abouelela <[email protected]>
* Renables OAuth Button On FailureGravatar Hassan Abouelela2021-03-07-2/+3
| | | | | | | Allows the Discord OAuth button to be renabled in case the window is closed prematurely. Signed-off-by: Hassan Abouelela <[email protected]>
* Revert "Removes Unused OAuth Cleaning"Gravatar Hassan Abouelela2021-03-07-0/+9
| | | | | | This reverts commit 7e0d4a9f Signed-off-by: Hassan Abouelela <[email protected]>
* Merge pull request #141 from python-discord/discord-oauthGravatar Joe Banks2021-03-07-120/+376
|\
| * Removes Unused OAuth CleaningGravatar Hassan Abouelela2021-03-07-9/+0
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Remove Unused OAuth ScopesGravatar Hassan Abouelela2021-03-07-18/+1
| | | | | | Co-authored-by: Joe Banks <[email protected]>
| * Merge branch 'main' into discord-oauthGravatar Hassan Abouelela2021-03-07-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # package.json # yarn.lock
| * | Fixes Return Home Button CenteringGravatar Hassan Abouelela2021-03-07-6/+8
| | | | | | | | | | | | | | | | | | | | | Fixes the centering of the return home button on closed forms, by removing the style wrapper. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Set Username Expiry To PermanentGravatar Hassan Abouelela2021-03-06-2/+2
| | | | | | | | | | | | | | | | | | | | | Extends username expiry to a very far date, to prevent it from expiring on session. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Saves Username & Scopes On `/` PathGravatar Hassan Abouelela2021-02-21-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Explicitly sets the path attribute of username and scope cookies, to ensure they work correctly across page transitions, and to match the actual authorization cookie. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Adds Token RefreshGravatar Hassan Abouelela2021-02-20-32/+55
| | | | | | | | | | | | | | | | | | Adds automatic token refresh, and removes manual setting of JWT. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Merge branch 'main' into discord-oauthGravatar Hassan Abouelela2021-02-20-44/+319
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # package.json # src/commonStyles.tsx # src/pages/FormPage.tsx
| * | | Removes Path From AuthGravatar Hassan Abouelela2021-02-17-19/+15
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Cleans Up OAuth Error LoggingGravatar Hassan Abouelela2021-02-17-14/+2
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Cleans Up Error DisplayGravatar Hassan Abouelela2021-02-16-2/+6
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Adds Error Handler For OAuth ButtonGravatar Hassan Abouelela2021-02-16-11/+53
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Adds Error Handling To Auth HelpersGravatar Hassan Abouelela2021-02-16-18/+57
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Dynamically Show Discord OAuth ButtonGravatar Hassan Abouelela2021-02-13-37/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]>
| * | | Makes Authorize Helper AsyncGravatar Hassan Abouelela2021-02-13-3/+5
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Cleans Up OAuth ButtonGravatar Hassan Abouelela2021-02-13-81/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-10/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Code Inputs TextAreasGravatar Hassan Abouelela2021-03-07-6/+1
| |_|/ |/| | | | | | | | | | | | | | | | | Changes the display of code to textareas until a proper solution is implemented. Signed-off-by: Hassan Abouelela <[email protected]>
* | | Fixes Radio Button RoundingGravatar Hassan Abouelela2021-03-07-1/+1
| |/ |/| | | | | | | | | Makes radio buttons spheres instead of ovals. Signed-off-by: Hassan Abouelela <[email protected]>
* | Adds Missing Fields To Test ModelsGravatar Hassan Abouelela2021-02-19-3/+6
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Merge pull request #91 from python-discord/forms-submittingGravatar Hassan Abouelela2021-02-19-38/+311
|\ \ | |/ |/| Form submission validation and submitting
| * Remove TODOGravatar ks1292021-02-18-1/+1
| |
| * Don't overwrite user selectionGravatar ks1292021-02-18-3/+5
| |
| * Add focus handler for select (thanks Scaleios)Gravatar ks1292021-02-18-1/+7
| |
| * Remove unnecessary parameters from blur handler type annotationsGravatar ks1292021-02-18-5/+5
| |
| * Mark range and radio valid after changeGravatar ks1292021-02-18-0/+5
| |