| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
|
|
|
| |
Unify the string and element types on the interface to clarify they are
mutually exclusive.
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]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]>
|
|
|
|
| |
fix rendering of error message by updating public_state prop before updating state, and only catch 422 status code in FormPage
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Co-authored-by: Joe Banks <[email protected]>
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
| |
Changes the switch statement indentation level to 1 in the eslint
config, and updates files accordingly.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
| |
Makes major changes to the structuring of checkboxes, and ranges to be
more accessible to all users.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
| |
Minor adjustments following the first round of open feedback.
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]>
|
|
Adds a question component, and calls it on form page. Adds styling for
input types and form page. Lays foundation for validation and
submission.
Signed-off-by: Hassan Abouelela <[email protected]>
|