Repository navigation
fix(builder): say an invalid task limit at its field, in its noun, and reach it from Review - #327
Merged
Conversation
…d reach it from Review The Number of ... field's error now sits under the field, which is marked aria-invalid and described by it until the value is valid. The message names the field's own noun (problems, conversations) instead of units, and Review's link to it puts the focus on the field instead of the step heading.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #299
What
An invalid Number of ... on the Limits step was said in one paragraph at the end of the form, far below the field, as "The number of units is ...". The field was not marked invalid, and Review's link to the error put the focus on the step heading.
aria-invalid="true"andaria-describedbyon the field, and removes all three when the value is valid. Errors with no field still go into the paragraph at the end of the step.Touches
standard (
app/nullius/standard/pages/recipe.py) · static (app/static/builder/command-builder.js) · testsBefore and after
-3in Number of problems, 1280 x 900. Before: no message in view. After: the message under the field.Verified
A Playwright check in Chromium, light theme, an empty profile, on upstream/main (
3a0a35e5) and on this branch, at 1280 x 900 and 390 x 900. GSM8K and LoCoMo with Original,-3typed in the field and Tab. Run never clicked.aria-invalidandaria-describedby, cleared when validaria-invalid="true",aria-describedby="nb-error-limit", the message's id. Both and the message gone after5No page errors on either.
app/ui_tests/test_builder_limit_error.py, all three failing on upstream/main:app/tests/test_standard_ui.py: the proof form's limit error names the benchmark's noun.python:3.12container with Node:python3 app/tests/parallel.py: 2779 tests in 170 modules, OK.python3 app/tests/parallel.py app/ui_tests: 622 tests in 64 modules, OK.Risk