Skip to content

fix: DurationInput min, Field actions, FileTree rename Escape, empty stacked lines - #420

Open
andrewhuhh wants to merge 8 commits into
mainfrom
fix/v0146-small-fixes
Open

andrewhuhh wants to merge 8 commits into
mainfrom
fix/v0146-small-fixes

Conversation

@andrewhuhh

@andrewhuhh andrewhuhh commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

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.

screenshot 1

screenshot 2

screenshot 3

andrewhuhh and others added 4 commits December 4, 2026 00:00
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>
@aws-amplify-gen-3

aws-amplify-gen-3 Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Name Status Preview Updated
cipher/preview (9266d09) ❌ Failed — 2026-12-04 01:01 UTC

Reason: OUTPUT_DIRECTORY_NOT_FOUND

@capy-ai capy-ai Bot added the visual-change label Dec 4, 2026

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

@greptile-apps

greptile-apps Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no new blocking issues were found.

Summary

This PR fixes duration entry, adds label actions, keeps Escape inside file renaming, and hides empty stacked table lines.

  • Labeled fields can place actions beside a control or group.
  • Stacked tables leave out lines with no value to show.
  • File rename boxes handle Escape before their overlay closes.

Reviews (4) · Last reviewed commit: "fix(duration-input): keep a rejected amo..." · Reviewed by Greptile

Comment thread src/ui/field.tsx Resolved
Comment thread src/ui/data-table.tsx Resolved
andrewhuhh and others added 2 commits December 4, 2026 00:24
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>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 2 other findings in Capy.

Open in Capy

greptile-apps[bot]
greptile-apps Bot previously approved these changes Dec 4, 2026
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

@greptile-apps

This comment has been minimized.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Dec 4, 2026
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
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 -5h reads as -5 and the form's validation can flag it.

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant