Repository navigation
fix: DurationInput min, Field actions, FileTree rename Escape, empty stacked lines - #420
Open
andrewhuhh wants to merge 8 commits into
Open
andrewhuhh wants to merge 8 commits into
andrewhuhh wants to merge 8 commits into
Conversation
The amount input set min="0.001", so a form submit with 0 showed the browser's own validation bubble in place of the field's error. The input no longer sets a min, and a negative amount reached with the arrow keys now shows in the input instead of reading as empty, so the form can flag it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Field now takes actions, controls at the end of its label row such as a Regenerate button for the value. It uses the same placement and styling as FieldSet's actions, works on a group Field too, and shows only when the field has a label. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The inline rename input now marks itself as the Escape owner, so inside a Sheet, Dialog or Popover the first Escape cancels the rename and only a second Escape closes the overlay. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
When a stacked table renders a column as a label and value line, a row whose value is empty (null, undefined, false or an empty string, with no badges or secondary line) now skips that line instead of showing the label over an em dash. Editable cells still render so they can be filled in. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no new blocking issues were found.
|
Actions now render inside an empty field control context, so a control passed as an action does not take the field's id, label or description. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Contributor
|
Fixed the disappearing negative amount. The parser still rejects a leading minus, so a negative value never counts as a valid duration. When a value doesn't parse, the input now shows the amount and unit as typed, so |
This branch has not been deployed
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.
This pull request fixes four small issues.
DurationInput set min="0.001" on its amount input, so submitting a form with 0 showed the browser's validation bubble in place of the field's own error. The input now sets min="0", so 0 submits and the arrow keys stop at 0 instead of going negative. A typed negative amount is not parsed as a duration, so the form's own validation flags it.
Field gains an actions prop, matching FieldSet: controls such as a Regenerate button sit at the end of the label row, with the same placement and styling. It works on a group Field too and renders only when the field has a label. The Field page has a new Label actions example with a single field, a group, and a long wrapping label.
FileTree's inline rename input now owns Escape. Inside a Sheet, Dialog or Popover, the first Escape cancels the rename and leaves the overlay open; a second Escape closes it.
A stacked DataTable used to show a label line even when the column had no value for that row. That line is now left out when the value is empty (null, undefined, false or an empty string) and the column has no badges or secondary text. Editable cells still render so they can be filled in. The Table page has a new Stacked empty values example at a 390px width.
New visual baselines: field-actions and table-stacked-empty-values, desktop and mobile, light and dark. No existing baseline changed.