| Commit message (Collapse) | Author | Age | Lines |
... | |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|\
| |
| | |
Implement code field using CodeMirror 6 beta
|
| | |
|
| | |
|
| | |
|
|/
|
|
|
| |
Adds support for inserting line breaks in question names, and in the
case of sections, question data.
|
|
|
|
| |
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
|
|
| |
Allows the Discord OAuth button to be renabled in case the window is
closed prematurely.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
| |
This reverts commit 7e0d4a9f
Signed-off-by: Hassan Abouelela <[email protected]>
|
|\ |
|
| |
| |
| |
| | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
| |
| | |
Co-authored-by: Joe Banks <[email protected]>
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
# package.json
# yarn.lock
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixes the centering of the return home button on closed forms, by
removing the style wrapper.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Extends username expiry to a very far date, to prevent it from expiring
on session.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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 automatic token refresh, and removes manual setting of JWT.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
# package.json
# src/commonStyles.tsx
# src/pages/FormPage.tsx
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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]>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Removes OAuth button from home page, and redesigns it. Uses new
authorization functionality in auth.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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]>
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | | |
Changes the display of code to textareas until a proper solution is
implemented.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |/
|/|
| |
| |
| |
| | |
Makes radio buttons spheres instead of ovals.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
| |
| |
| | |
Signed-off-by: Hassan Abouelela <[email protected]>
|