aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Question.tsx (follow)
Commit message (Collapse)AuthorAgeLines
* Render section content with markdown rendererGravatar Joe Banks2025-07-22-20/+9
|
* Support left alignment in section headersGravatar Joe Banks2025-06-01-2/+13
|
* Handle voting component callbacksGravatar Joe Banks2024-07-11-3/+15
|
* Add new field for capturing timezonesGravatar Joe Banks2024-07-03-0/+2
|
* Codify Question State TypeGravatar Hassan Abouelela2022-07-01-116/+101
| | | | | | | | 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]>
* Improve ErrorMessage InterfaceGravatar Hassan Abouelela2022-07-01-2/+2
| | | | | | | Unify the string and element types on the interface to clarify they are mutually exclusive. Signed-off-by: Hassan Abouelela <[email protected]>
* Restructure FormPageGravatar Hassan Abouelela2022-07-01-13/+6
| | | | | | | | | | | | | 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]>
* Bump React To 18.2.0Gravatar Hassan Abouelela2022-06-18-4/+12
| | | | | | | | | | | | 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 error message for failed unit tests.Gravatar DavinderJolly2022-06-18-1/+1
| | | | fix rendering of error message by updating public_state prop before updating state, and only catch 422 status code in FormPage
* 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.
* Merge pull request #224 from python-discord/codemirrorGravatar Hassan Abouelela2021-06-19-2/+20
|\ | | | | Implement code field using CodeMirror 6 beta
| * Update HTML Element handler commentGravatar DawnOfMidnight2021-06-07-1/+1
| |
| * Implement code fieldGravatar ks1292021-05-07-1/+19
| |
* | 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.
* Mark range and radio valid after changeGravatar ks1292021-02-18-0/+5
|
* Remove trailing whitespacesGravatar ks1292021-02-08-3/+3
|
* Implement focusing text fields if empty on submitGravatar ks1292021-02-08-2/+4
|
* Use public state instead of event value for compabilityGravatar ks1292021-02-08-19/+3
|
* Remove unnecessary ESLint disableGravatar ks1292021-01-21-1/+0
|
* Merge switch's casesGravatar ks1292021-01-19-22/+2
|
* Implement before-submit validation (broken, crashing)Gravatar ks1292021-01-19-1/+62
|
* Implement validation for checkboxesGravatar ks1292021-01-19-0/+18
|
* Simplify required checking onBlur functionGravatar ks1292021-01-18-15/+13
|
* Merge on blur functions to oneGravatar ks1292021-01-18-43/+37
|
* Implement Select field required checkGravatar ks1292021-01-18-2/+17
|
* Add required validator for ShortTextGravatar ks1292021-01-18-1/+16
|
* Move ErrorMessage from TextArea component to QuestionGravatar ks1292021-01-18-4/+32
|
* Add valid and error to public state and required check for textareaGravatar ks1292021-01-18-0/+9
|
* Removes Leading Underscore From VariablesGravatar Hassan Abouelela2021-01-17-9/+9
| | | | | Co-authored-by: Joe Banks <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
* Updates Switch Statement IndentGravatar Hassan Abouelela2021-01-17-32/+32
| | | | | | | Changes the switch statement indentation level to 1 in the eslint config, and updates files accordingly. Signed-off-by: Hassan Abouelela <[email protected]>
* Rewrites Components For AccessibilityGravatar Hassan Abouelela2021-01-16-7/+4
| | | | | | | 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 Style AdjustmentsGravatar Hassan Abouelela2021-01-16-1/+1
| | | | | | Minor adjustments following the first round of open feedback. Signed-off-by: Hassan Abouelela <[email protected]>
* Breaks Up CSS Into ComponentsGravatar Hassan Abouelela2021-01-06-10/+51
| | | | | | | | 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 Question RenderingGravatar Hassan Abouelela2021-01-06-0/+128
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]>