| 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]>
|
|
|
|
|
|
|
|
|
|
|
| |
Version 1.2.206 of swc introduces a breaking change which makes
jest.spyOn not work with our configuration. The response from the swc
maintainer seems like a complete mess, so I won't touch it, and just use
something else.
See issue 5059 on https://github.com/swc-project/swc/issues
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
| |
Wrap the tests that were raising warnings in act statements.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Previously the logic was using the expiry date's unix timestamp as if it was a number of ms until it expired. This caused the timeout to be far after the actual token expiry.
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
|
|
| |
Unify the string and element types on the interface to clarify they are
mutually exclusive.
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]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
|
| |
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]>
|
|\ |
|
| |
| |
| | |
Closes #439
|
| |
| |
| |
| | |
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.
|
|/
|
|
|
| |
New field to determine if a unittest failed and provide feedback to the
user.
|
| |
|