Repository navigation
Comparing changes
Open a pull request
base repository: oxidecomputer/console
base: 700ff8bf
head repository: oxidecomputer/console
compare: 96092fcc
- 12 commits
- 84 files changed
- 6 contributors
Commits on Sep 4, 2026
-
Limit checked selection styles to radio cards (#3367)
Small optimization. `:checked ~ *` is too broad a selector, causes unnecessary layouts in Firefox.
Configuration menu - View commit details
-
Copy full SHA for 0a4aca0 - Browse repository at this point
Copy the full SHA 0a4aca0View commit details -
https://vitest.dev/blog/vitest-5.html https://vitest.dev/guide/migration/ Two changes needed: - Switch the date-picker’s partial text assertion to `toMatchTextContent`. `toHaveTextContent` now requires exact text, and the button includes the icon’s “Select” title. - Ignore `.vitest/` and include it in CI artifacts. Automatic failure screenshots now go there instead of following our existing `screenshotDirectory` setting. The promised perf improvements turned out to be pretty small: | Suite | 4.1.11 | 5.0.0, upgrade only | Change | |---|---:|---:|---:| | Node | 1.39s | 1.33s | −4.1% | | Chromium | 4.15s | 4.15s | Unchanged | | Node + all three browsers | 9.13s | 8.61s | −5.6% | Second commit enables [`fsModuleCache`](https://vitest.dev/config/fsmodulecache), as recommended by `vitest doctor`. Warm Node runs drop to **1.09s**, about 22% faster than v4. This mainly helps local test runs.
Configuration menu - View commit details
-
Copy full SHA for e7ee1bb - Browse repository at this point
Copy the full SHA e7ee1bbView commit details -
Upgrade Tailwind for an HMR fix (#3369)
https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.3.3 > - Prevent `@tailwindcss/vite` from triggering full page reloads when scanned files are processed by Vite but haven't been loaded as modules yet (tailwindlabs/tailwindcss#20336) This could cause a page reload in the dev server when you write a file that's not even in the app, like a test file.
Configuration menu - View commit details
-
Copy full SHA for fb92992 - Browse repository at this point
Copy the full SHA fb92992View commit details
Commits on Sep 8, 2026
-
Skip eager number updates that cause field rewrites (#3373)
When we resolved the number field committing in #3282 to not be so lazy, it became not lazy enough! In particular, min and max values would be applied while a user was still typing, which was far too intrusive. The solution is to check if react-aria would cause any changes to the input value on commit, and only force a commit when it's a true no-op on the input string. Resolves #3372
Configuration menu - View commit details
-
Copy full SHA for 915d68a - Browse repository at this point
Copy the full SHA 915d68aView commit details -
Went through AGENTS.md for stuff that's redundant or unclear. None of the changes are very big.
Configuration menu - View commit details
-
Copy full SHA for 7b434ba - Browse repository at this point
Copy the full SHA 7b434baView commit details -
This updates a few links (both to docs.oxide.computer URLs and to a couple of external URLs). Nothing major. Also one label change, where the "Metrics" link label now reads **"Utilization"**, as A. the page linking to it is now called "Utilization" and B. the docs themselves are now titled "Calculating Utilization"Configuration menu - View commit details
-
Copy full SHA for 4d1215e - Browse repository at this point
Copy the full SHA 4d1215eView commit details
Commits on Sep 11, 2026
-
Add webhooks to the UI (#3320)
This PR adds the Alerting sidebar and the two tabs that nest under it, Alerts and Receivers. It also then shows the list of Receivers, all of which are Webhook Receivers for the present and near-term future. The webhook receiver creation form uses a richer input for the alert subscriptions that Ben created in #3326. There's an Alerts list that @fakemonster is working on separately. <img width="1458" height="824" alt="alerting - receivers" src="https://github.com/user-attachments/assets/5bb29096-486c-4c2c-ab57-2f17bb5b9bef" /> <img width="1450" height="813" alt="alerting - receiver-new-1" src="https://github.com/user-attachments/assets/afe7a087-30e7-49e8-9db2-fdf169f5a272" /> <img width="1460" height="827" alt="alerting - receiver-new-2" src="https://github.com/user-attachments/assets/03472d41-2dc4-4fdc-961a-b437e38738a3" /> <img width="1457" height="820" alt="alerting - alerts" src="https://github.com/user-attachments/assets/1babdd91-428d-49dd-898c-fed7ee7b2179" /> --------- Co-authored-by: benjaminleonard <[email protected]> Co-authored-by: Eliza Weisman <[email protected]> Co-authored-by: Joe Thel <[email protected]> Co-authored-by: David Crespo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a4ae2a - Browse repository at this point
Copy the full SHA 3a4ae2aView commit details -
Bumping to the version going to dogfood, then will bump again for oxidecomputer/omicron#11281.
Configuration menu - View commit details
-
Copy full SHA for add81de - Browse repository at this point
Copy the full SHA add81deView commit details -
Consolidate number field min/max validation and revalidate when bound…
…s change (#3376) This is prep for upgrading React Aria, which will let us turn off clamping in the number input and make `NumberField` responsible for enforcing `min` and `max`. On main, `DiskSizeField` is the only number field that validates bounds for itself; the prefix length field on the external subnet form and every other `NumberField` with a `min` or `max` rely on the clamping. Once clamping is off, those fields need explicit validation. So, in this PR we: - **Move min/max validation into `NumberField` and delete `DiskSizeField`.** The validate rule that used to live in `DiskSizeField` now runs for every number field with a `min` or `max`, with the units appended to the message ("Can be at most 32", "Must be at least 10 GiB"). That left `DiskSizeField` as a wrapper setting `units="GiB"`, `required`, and `min={1}`. Its two callers now pass those directly. - **Add `deps` to `ListboxField`** and use it on the external subnet form so changing the pool re-validates prefix length. Without this, a stale "Can be at most 32" would hang around after switching back to a v6 pool, since by default react-hook-form only re-runs validation on the field that changed. - **Add `deps` to disk type radio in disk create**, so an existing size error updates (e.g., is cleared if appropriate) when switching between Local and Distributed instead of waiting for the next submit. This also fixes a bug on main: the clamp is display-only. Entering 64 on a v6 pool and switching to v4 shows 32 in the box, but form state still holds 64 and submit sends `prefix_length: 64`. With this change, submit is blocked with a message instead. The existing e2e specs for disks, external subnets, instance create, and subnet pools pass unchanged. The external subnet prefix length test gets a submit assertion covering the display-only clamp bug.
Configuration menu - View commit details
-
Copy full SHA for c187b75 - Browse repository at this point
Copy the full SHA c187b75View commit details -
Upgrade React Aria and validate number fields without clamping (#3377)
This is on top of #3376, which made `NumberField` validate `min` and `max` itself so we could stop relying on react-aria's clamping. This PR upgrades react-aria 3.44 → 3.52.1 and react-stately 3.32 → 3.50.0 and turns off clamping with the new `commitBehavior: 'validate'` option from adobe/react-spectrum#9679 (merged March 2026). It also adds whole-number validation to `NumberField`, which fixes a pre-existing bug: nothing client-side stopped you from submitting `2.5` CPUs. ### What changes for the user Before, typing an out-of-range value and leaving the field rewrote it to the nearest bound. Now, if a value is out of range, or fractional in a field that requires a whole number, submit is blocked and the field shows an error. The validation trigger is still react-hook-form's default: no errors until the first submit attempt, and after that it revalidates on change events. Form state updates on every keystroke that parses to a number, as long as the text is already in canonical form. react-aria's commit would rewrite `007` or `1.0` to `7` or `1`, so those wait for blur or Enter, as they did before. Out-of-range values no longer wait: they used to sit in the input until blur while form state kept the old value, and now they reach form state immediately, which is what lets the error clear as soon as you fix the number. Disk size, min 6 GiB from the selected image: | Step | Before | After | | --- | --- | --- | | Type `5` | `5` | `5` | | Tab away | Box becomes `6`, no message | Box stays `5`, no message | | Click submit | Creates a 6 GiB disk | Blocked, "Must be at least 6 GiB" | | Change to `20` | n/a | Error clears as soon as `20` is in the box | Prefix length on the external subnet form, where the max depends on the selected pool (32 for v4, 128 for v6): | Step | Before | After | | --- | --- | --- | | v6 pool, type `64` | `64` | `64` | | Switch to v4 pool | Box shows `32`, form still holds `64` | Box shows `64` | | Click submit | Sends `prefix_length: 64` (main). On #3376, blocked with "Can be at most 32" under a box that says 32 | Blocked, "Can be at most 32" | | Switch back to v6 | `64` reappears | Error clears, `64` | | Switch to v4 again | Box shows `32`, form holds `64` | Box shows `64`, "Can be at most 32" | The middle row is the bug that motivated this. `useNumberFieldState` clamps the `value` prop we pass in before storing it, so the text in the box was derived from the clamped 32 while the value react-hook-form held (and would submit) was still 64. The validation from #3376 at least prevents submission, but the input still showed the wrong value. With `commitBehavior: 'validate'`, the incoming value is used as-is. ### What stays the same - **Steppers still stop at the bounds.** `commitBehavior` only affects the typed value and the incoming `value` prop. Increment and decrement still go through `snapValueToStep(prev, minValue, maxValue, step)` and the buttons still disable at min and max. Pressing an arrow while the box holds an out-of-range value snaps it to the nearest bound (type `2` with min 10, press up, get `10`). - **Blur and Enter still canonicalize.** `007` becomes `7` and `1.0` becomes `1`, as before. ### Whole-number validation No form passes `step`, so react-aria never snapped typed values to integers. On main, `2.5` in the CPU field is accepted as-is and sent to the API as `ncpus: 2.5`, which Nexus 400s on. This is independent of clamping, but it is fixed here. `NumberField` now checks `Number.isInteger` by default. Typing `2.5` CPUs leaves `2.5` in the box, but submit is blocked with "Must be a whole number". Correcting it to `3` clears the error. This covers CPU counts and CPU quotas, prefix lengths, firewall rule priority, disk sizes, and instance memory, including resize. Memory and storage quotas on silo create and quota edit opt into `allowDecimals`. Those fields are entered in GiB and converted to bytes, so values like `1.5 GiB` are allowed. Instance memory and disk sizes still require whole GiB because the API enforces [1 GiB alignment for memory](https://github.com/oxidecomputer/omicron/blob/17e6fee5320ad8f1fb4cbfd3d6328b808fca7124/nexus/src/app/instance.rs#L2894-L2908) and [disk sizes](https://github.com/oxidecomputer/omicron/blob/17e6fee5320ad8f1fb4cbfd3d6328b808fca7124/nexus/src/app/disk.rs#L230-L244). Allowing decimals there exposed a pre-existing bug: the quota forms multiplied GiB by 2^30 without rounding, so `1.1 GiB` sent a fractional byte count that the API rejects at deserialization. The last commit rounds to whole bytes in both submit handlers. One thing left for a follow-up: the mock API accepts fractional CPU counts and unaligned sizes that Nexus would reject. The fix is in the next PR in the stack: #3380. ### Tests Every existing assertion that a value got clamped, in the `NumberInput` browser spec and in the e2e specs for disks, instance create, and external subnets, is rewritten to assert the value stays put and the error appears. New `NumberInput` cases cover the steppers stopping at the bounds and snapping an out-of-range typed value back into range. A new `NumberField` browser spec covers the whole-number rule and `allowDecimals`. The external subnet test is the regression test for the faux-clamping bug: type `64` on a v4 pool, submit, switch to v6 and back. It fails on main and on #3376, where the box shows 32. ### React Aria packaging change The lockfile got 1700 lines shorter because react-aria and react-stately now ship as single packages instead of dozens of `@react-aria/*` and `@react-stately/*` deps, which also forced two imports in `Popover.tsx` and `DateField.tsx` to move to the top-level package.
Configuration menu - View commit details
-
Copy full SHA for cc7ab24 - Browse repository at this point
Copy the full SHA cc7ab24View commit details -
Bump client generator to 0.16 for zod integer validation (#3380)
Also require that disk size is a multiple of 1 GiB in the mock API.
Configuration menu - View commit details
-
Copy full SHA for fc3d969 - Browse repository at this point
Copy the full SHA fc3d969View commit details
Commits on Sep 12, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 96092fc - Browse repository at this point
Copy the full SHA 96092fcView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 700ff8bf...96092fcc