aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeLines
...
* Remove Unused Prop From ErrorPageGravatar Hassan Abouelela2022-07-01-3/+1
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Improve ErrorMessage InterfaceGravatar Hassan Abouelela2022-07-01-7/+8
| | | | | | | Unify the string and element types on the interface to clarify they are mutually exclusive. Signed-off-by: Hassan Abouelela <[email protected]>
* Style ChangesGravatar Hassan Abouelela2022-07-01-3/+3
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Restructure FormPageGravatar Hassan Abouelela2022-07-01-362/+545
| | | | | | | | | | | | | 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]>
* Display Test Names For Unittest FailuresGravatar Hassan Abouelela2022-07-01-5/+33
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Add Unittest Failure InterfaceGravatar Hassan Abouelela2022-07-01-0/+13
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Allow More Customization In Error MessageGravatar Hassan Abouelela2022-07-01-2/+13
| | | | | | | | Add transitions to the error message component, and allow more flexibility by allowing the caller to specify the inner component of the message. Signed-off-by: Hassan Abouelela <[email protected]>
* 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]>