| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Extract the styles from the navigation component to common styles, and
convert it to a function component.
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]>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
|
|
|
|
| |
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]>
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
# package.json
# src/commonStyles.tsx
# src/pages/FormPage.tsx
|
| |
| |
| |
| | |
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]>
|
|
|
|
|
|
| |
Makes slight modifications to handle some minor warnings.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
|
|
|
| |
Changes header bar component to accept a description, and render it
properly on different screens. Additionally adds a button to return to
the home page. Updates tests.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
| |
Changes the models to match the backend.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
| |
Fixes all errors, and most warnings generated by eslint. Most were fixed
by eslint automatically such as indentation and quotes.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|