Surface code syntax errors to UI #54734
Labels
platform: learn
UI side of the client application that needs familiarity with React, Gatsby etc.
scope: UI
Threads for addressing UX changes and improvements to user interface
status: waiting triage
This issue needs help from moderators and users to reproduce and confirm its validity and fix.
type: feature request
Threads classified to be feature requests. Implementation to be considered as a nice to have
Is your feature request related to a problem? Please describe.
We frequently get forum posts about the submit button not working. It is almost always because the code written has syntax errors preventing the code and tests from running.
Describe the solution you'd like
It would be nice if after the first click/submit the button would change to an error state if the code had syntax errors.
Not really sure how to best surface thrown syntax errors, or when to update/re-update the button state. Maybe on button click, it changes to an error state and on any code update it changes back to the default state until clicked again (where it will stay at the default state or change back to an error state again).
And yes, I realize the error is in the console. But it would be nice to surface it to the UI.
Describe alternatives you've considered
It could be surfaced to some other UI element.
Additional context
As an aside, I'm not sure how we signal code errors to visually impaired users right now. But this change might also count as an accessibility help if the button was updated to signal errors to screen readers.
The text was updated successfully, but these errors were encountered: