Repository navigation
Use datum-ui controls for inventory filters and forms - #168
Merged
scotwells merged 8 commits intoNov 24, 2026
Merged
Conversation
Contributor
Author
|
Replacement detail, for review:
Test helpers live in |
kevwilliams
reviewed
Nov 24, 2026
kevwilliams
left a comment
Contributor
There was a problem hiding this comment.
Hold: the provider job fails the PR's own native-controls guard.
src/test/native-controls.test.tsflagscomponents/device-discovery.tsx: <button>, likely from the just-merged BMC discovery page (#166).- Fix: switch that button to the datum-ui control, then rerun the provider job.
The inventory filters and forms used native selects, which did not match the rest of the datum-ui based interface. - FieldSelect wraps the datum-ui Select with a string value, a clearing choice or a prompt, groups, amber options and option tooltips. It replaces all 15 native selects: directory filters, Device, Cable, installation plan and Rack create forms, location correction and capacity registration. - InventoryForm reports a Select's hidden form select against its visible trigger, so required Selects and lane port rules keep the same error summary, focus and aria-invalid behaviour. - Observed at uses the datum-ui date-time picker instead of an ISO text box; it cannot be cleared or set in the future. - The component and lane editors use datum-ui Table; the error summary links, the faceplate "Show ... catalog only" control and the consumer profile cards use datum-ui Button. - A Device without a uid is again listed as an ineligible choice in capacity registration instead of being dropped. - A guard test in each plugin fails if a component adds a native select, input, textarea or button outside its allowlist (port tiles only). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The TLS key fingerprint's Copy button on the Device page arrived as a native button and failed the native-controls guard once rebased. It is now a datum-ui Button with the same accessible name, tooltip and "Copied" feedback, and a test covers the copy and the feedback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
disableFuture on the datum-ui DateTimePicker greys out later days only, and its maxDate does not limit the typed time, so a later time today could be picked and was rejected only on Save. The field now shows "Observation time cannot be later than now." as soon as such a time is picked, marks the trigger invalid, and disables Save until the time is earlier. Tests pick a past time and check the exact observedAt sent in the PATCH, and pick a later time today and check the inline error and that no PATCH is sent. The unused inventory-observed-at class is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No CSS rule ever matched inventory-filter on the directory filters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guard now also rejects a native <table>. In the provider plugin the port tile exemption covers only the <button> inside the PortTileButton function, not the whole of device-faceplate.tsx. A second test plants a native <button> and an <input> elsewhere in that file and expects the guard to report both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The submit-time SSAR test waited for the status line, which is always rendered, so its checks could run before the outcome arrived. It now waits for the outcome text in the status line before checking it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scotwells
force-pushed
the
fix/ui-datum-ui-controls
branch
from
November 24, 2026 15:33
dad458d to
1937439
Compare
scotwells
merged commit Nov 24, 2026
7b97c6b
into
feat/manual-inventory-records
12 of 13 checks passed
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.
Summary
The inventory filter dropdowns and form pickers were native browser selects, so they looked and behaved unlike the rest of the interface. All 15 now use the datum-ui Select, and the location correction picks its observation time with the datum-ui date-time picker instead of a typed ISO timestamp. Values, URL filters, keyboard use, disabled states, tooltips and error reporting work as before.
Changes
Not changed
The plugins have 52 native hover tooltips. This PR leaves them alone. Most sit on table cells and drawing parts that cannot take focus, so the datum-ui Tooltip would add no keyboard access. The disabled-button reasons are the place to start a follow-up.
Verification
🤖 Generated with Claude Code