Repository navigation
Comparing changes
Open a pull request
base repository: oxidecomputer/console
base: ab7faf65
head repository: oxidecomputer/console
compare: 46f3fd84
- 20 commits
- 127 files changed
- 4 contributors
Commits on Aug 18, 2026
-
Configuration menu - View commit details
-
Copy full SHA for dfa45c5 - Browse repository at this point
Copy the full SHA dfa45c5View commit details -
Make tooltips accessible to screen readers via persistent aria-descri…
…bedby (#3333) While testing #3332 with VO in Safari I noticed that there is no way to get a screen reader to read a tooltip on a button. It appears this is because they only appear in the a11y tree when the tooltip is open (it appears visually but not to the screen reader for some reason). So instead we add a permanent describedby to the button. It works! I considered having it reuse the tooltip div as the `sr-only` description when the tooltip is closed to avoid having two copies of the description in the DOM, but basically it seems like Floating UI wants you to do conditional rendering. In order to keep the div around and _not_ conditionally render it, we would instead end up doing kinda gnarly stuff like this: ```tsx <div ref={open ? refs.setFloating : undefined} className={open ? 'ox-tooltip …' : 'sr-only'} aria-hidden={open ? undefined : true} > {content} </div> ``` It can work, but it requires a more complicated integration with Floating UI lifecycle stuff. Seems fine to duplicate the div instead and keep the tooltip rendering on the simple happy path. - https://floating-ui.com/docs/react#anchoring - https://floating-ui.com/docs/usefloating#whileelementsmounted
Configuration menu - View commit details
-
Copy full SHA for ff240db - Browse repository at this point
Copy the full SHA ff240dbView commit details -
This updates our parsing / validating of IPv6 addresses, to make them more compliant with `std::net::Ipv6Addr` parsing. Instead of a regex, it uses the `new URL()` function as part of the evaluation. Closes #1939 --------- Co-authored-by: David Crespo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 218f3c0 - Browse repository at this point
Copy the full SHA 218f3c0View commit details -
tests: scope MSW server and db reset to the one spec that uses them (#…
…3335) We were curious why node tests would take longer than browser tests. Turns out we were setting up and tearing down the mock API and resetting the database after every unit test. This PR moves that out of global setup into the one file that actually needs it. ### Before `npm test run -- ip` <img width="492" height="91" alt="image" src="https://github.com/user-attachments/assets/3f6549f3-0a1a-4e67-b6ac-8483b60a5491" /> ### After `npm test run -- ip` <img width="492" height="89" alt="image" src="https://github.com/user-attachments/assets/fe905db6-66b5-4c6e-9535-10cc6a9c0d7c" />
Configuration menu - View commit details
-
Copy full SHA for a842fbe - Browse repository at this point
Copy the full SHA a842fbeView commit details -
Announce route changes for screen readers (#3332)
Similar deal to oxidecomputer/rfd-site#258 ## 🤖 summary A client-side nav doesn't tell a screen reader anything: React Router swaps the DOM in place and focus stays on the link that was clicked, which usually isn't in the document anymore. Next.js ships a route announcer for this; RR leaves it to the app. `useRouteAnnouncer` in `RootLayout` announces the crumbs deepest-first ("Instances, mock-project, Projects") through the react-aria live announcer we already use for toasts and field errors. Polite rather than assertive so it doesn't preempt the toast on flows that toast and then navigate. It also puts focus on the existing skip link target, but only when focus has fallen to `<body>` — if you clicked a sidebar link that's still sitting there, leave it alone. Use `preventScroll` to avoid conflicts with `useScrollRestoration` on back/forward. Side modal forms get their own routes, so the announcer has to know that a form opening on top of a page isn't a page change. It keys off `titleOnly` crumbs, which already mark exactly those routes (had to fix `ip-pool-edit` and `subnet-pool-edit`, which were using `makeCrumb`). Detecting the open dialog in the DOM instead seemed simpler, but it ran into races.
Configuration menu - View commit details
-
Copy full SHA for 37d98e3 - Browse repository at this point
Copy the full SHA 37d98e3View commit details
Commits on Aug 20, 2026
-
Don't scroll page to top when opening or closing a side modal (#3336)
Closes #3321 Because side modals get their own routes, and the scroll height cache is keyed (in part) by route, opening a side modal counts as a new page with no saved scroll height, so it scrolls the document to top. The fix is to handle the modal scenario specially by opting out of resetting scroll when we switch to a new location that has the same underlying page path as the previous one. https://github.com/user-attachments/assets/af40dae5-7065-4599-be55-a9dd7ae7299e ### Example flows Each of these scenarios is covered by e2e tests. The underlying "page path" for a location is the path of the last non-`titleOnly` crumb, i.e., where the nav breadcrumbs point: a regular page's own path, or for a side modal, the path of the page under it. When a nav starts, we save the current scroll under the outgoing location's key. When it completes, if the page path changed we scroll to the new location's cached position (0 if none); if it didn't (side modal open/close), we leave the scroll alone and just record it under the new key so back/forward still works. #### Normal page → page nav (`…/disks` → `…/snapshots`, then back) | Step | Location | Page path | Cache | Scroll | | ----------------------------------------------------- | ------------------ | ------------- | -------------- | ------- | | Scroll the disks page | `…/disks` (k1) | `…/disks` | | 143 | | Click Snapshots: nav starts | `…/disks` (k1) | `…/disks` | k1: 143 | 143 | | Nav completes: page changed → scroll to cached (none) | `…/snapshots` (k2) | `…/snapshots` | k1: 143 | 0 | | Back: nav starts | `…/snapshots` (k2) | `…/snapshots` | k1: 143, k2: 0 | 0 | | Nav completes: page changed → scroll to cached | `…/disks` (k1) | `…/disks` | k1: 143, k2: 0 | **143** | #### Page → modal → page (open the New disk form, then dismiss it) | Step | Location | Page path | Cache | Scroll | | ------------------------------------------------------------- | ------------------ | --------- | ------------------------- | ------- | | Scroll the disks page | `…/disks` (k1) | `…/disks` | | 143 | | Click New disk: nav starts | `…/disks` (k1) | `…/disks` | k1: 143 | 143 | | Nav completes: same page → leave scroll, record under new key | `…/disks-new` (k2) | `…/disks` | k1: 143, k2: 143 | **143** | | Dismiss: nav starts | `…/disks-new` (k2) | `…/disks` | k1: 143, k2: 143 | 143 | | Nav completes: same page → leave scroll, record under new key | `…/disks` (k3) | `…/disks` | k1: 143, k2: 143, k3: 143 | **143** | #### Modal submit → new page (create a VPC, land on VPC detail page) | Step | Location | Page path | Cache | Scroll | | ----------------------------------------------------- | -------------------- | --------------- | ---------------- | ------ | | Modal open over scrolled VPCs page | `…/vpcs-new` (k2) | `…/vpcs` | k1: 143, k2: 143 | 143 | | Submit: nav starts | `…/vpcs-new` (k2) | `…/vpcs` | k1: 143, k2: 143 | 143 | | Nav completes: page changed → scroll to cached (none) | `…/vpcs/my-vpc` (k3) | `…/vpcs/my-vpc` | k1: 143, k2: 143 | **0** |
Configuration menu - View commit details
-
Copy full SHA for 5e1f767 - Browse repository at this point
Copy the full SHA 5e1f767View commit details
Commits on Aug 21, 2026
-
Fix active tab hover background color (#3342)
Closes #3341 Seems it was accidentally deleted here: https://github.com/oxidecomputer/console/pull/3061/changes#diff-57ea12aef20e3ff5f985b4755178e4fa2c5fe0bcd362c4a38d9c0b00cc7110c1R40 <img width="266" height="80" alt="image" src="https://github.com/user-attachments/assets/7ee096aa-4f43-473e-947c-bc3a354dcab7" />
Configuration menu - View commit details
-
Copy full SHA for 7cd18ad - Browse repository at this point
Copy the full SHA 7cd18adView commit details -
Validate IPv6 prefix field in VPC create form (#3343)
Closes #3339 <img width="481" height="120" alt="image" src="https://github.com/user-attachments/assets/b9706bff-bff9-4a16-82f6-8d53335a13a8" />
Configuration menu - View commit details
-
Copy full SHA for 950767c - Browse repository at this point
Copy the full SHA 950767cView commit details -
Fix submit button loading state race (#3344)
Closes #3340 by switching from Motion to a CSS animation. The problem was that state internal to Motion was getting messed up when it got spammed with input. I had Codex figure out a Bezier easing that matches Motion's spring animation. https://github.com/user-attachments/assets/8c2356d8-728b-4dd0-b276-5ca6e9726243
Configuration menu - View commit details
-
Copy full SHA for b2c28c7 - Browse repository at this point
Copy the full SHA b2c28c7View commit details -
Require all final breadcrumbs to not point to their parents (#3337)
Inspired by a comment on [Charlie's webhooks PR](https://github.com/oxidecomputer/console/pull/3320/changes#diff-c8f1bef7c0f906ca5002103709d1125057a54691dbbe673d4978670628c61cbeR80). I was curious on whether there were terminal breadcrumbs that didn't abide by this reasoning, and inadvertently pointed to parent pages. And there were! Breadcrumbs breaking this rule fell into two cases: 1. Pointing to a parent view that defaulted back to "where you just came from". Not a big deal, but a little silly 2. Pointing to a parent view that then defaulted to _some other place._ That's weird! Co-authored-by: David Crespo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4f92755 - Browse repository at this point
Copy the full SHA 4f92755View commit details
Commits on Aug 24, 2026
-
tools: bundle size diff CLI (#3350)
No big deal, just something to check the effect of a given PR on the bundled output. Uses `fzf` for the PR picker and [`delta`](https://dandavison.github.io/delta/) for a nice diff. Like `api-diff`, you can specify either a PR number (in this case a console PR rather than an omicron PR) or a base and a head rev. There are some heuristics in place to reduce diff noise: we have to replace the hashes in the filenames with placeholders and we ignore file size changes under 0.05 KB. We also sort the files by name rather than size (which Vite does by default) to avoid spurious changes in order due to files changing size slightly. <img width="575" height="458" alt="image" src="https://github.com/user-attachments/assets/fdb28f39-26e0-490c-ab01-7c5eb0937108" /> <img width="864" height="637" alt="image" src="https://github.com/user-attachments/assets/35e0fad5-2941-4633-adc9-b9cd0878ad59" /> https://github.com/user-attachments/assets/2aa44d75-3ab5-4442-b9a3-3972a62c7cc3
Configuration menu - View commit details
-
Copy full SHA for d44615b - Browse repository at this point
Copy the full SHA d44615bView commit details
Commits on Aug 26, 2026
-
Try to reduce flake in a vitest browser test (#3353)
Tentative fix for an intermittent Firefox Vitest browser flake seen in [this run](https://github.com/oxidecomputer/console/actions/runs/32997554927/job/98270746108) and [earlier](https://github.com/oxidecomputer/console/actions/runs/32167049254/job/95809059849), where Escape occasionally leaves the ActionMenu open. `userEvent.type(search, '{Escape}')` explicitly focuses the search input before sending Escape, which may prevent Firefox CI from missing the key. Could not repro the flake locally even with CPU maxed out, so I really have no idea if this will work.
Configuration menu - View commit details
-
Copy full SHA for dd44146 - Browse repository at this point
Copy the full SHA dd44146View commit details -
Add quota editing sidemodal to system utilization page (#3330)
This PR adds a sidemodal to the `/system/utilization` page, allowing the operator to edit quota values from that page. Before this change, quota updates have to be done from each silo's Quotas tab. (This PR doesn't remove that functionality; just adds it to the `/utilization` list page.) Closes #2406 up-to-date screenshot: <img width="1456" height="828" alt="Screenshot 2026-08-26 at 8 33 27 AM" src="https://github.com/user-attachments/assets/c6e10d9b-1683-4d82-b6df-09eb91646caa" /> --------- Co-authored-by: David Crespo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 21d7c52 - Browse repository at this point
Copy the full SHA 21d7c52View commit details -
Drop jsdom and testing library by switching to vitest browser mode (#…
…3355) I'd been meaning to do this for a while. Nearly all the changes are to the tests. ### 🤖 summary The unit suite is now pure logic running in node; anything that touches the DOM is a vitest browser mode test. That lets us remove jsdom, `@testing-library/*`, and msw/node entirely, along with the unit setup file, whose three stubs (canvas, matchMedia, ResizeObserver) existed only to fake DOM APIs jsdom lacks — those tests now run against the real things. The non-mechanical bits: * The API client tests run against an MSW worker in the browser (the same mechanism the dev server uses) instead of msw/node's patched fetch. * `TimeSeriesChart` created a canvas at module scope, which made it un-importable without a DOM — this is what the setup file's canvas stub was for. The measuring context is now created lazily. * The `TimeSeriesChart` spec no longer mocks anything: it renders real uPlot and spies on the instance's `redraw`/`setData` via a test-only `onCreate` prop. An earlier version of this PR kept the jsdom-era `vi.mock` of uplot-react, which flaked on webkit in CI — with a cold dep optimizer cache, the mock can attach to a different copy of the module than the one under test. Instance spying is the fallback because uPlot assigns its methods per instance; there's no prototype to patch. The old data-reference-stability test is reframed behaviorally: rerenders with equivalent data must not call `setData`, changed data must. * The `loginUrl` unit test only exercised string concatenation, so it's replaced with an e2e test covering the actual 401 → `/login?redirect_uri=...` flow, using a new `error-401` sentinel project in the mock API. With that test gone, nothing mocks `nav-to-login` anymore, and mockability was the module's stated reason for existing, so it's folded into `client.ts`. Note for #3312: `TimeSeriesChart.spec.tsx` moved to `TimeSeriesChart.browser.spec.tsx` and was rewritten around real uPlot instance spies, so the spec edits there will need porting.
Configuration menu - View commit details
-
Copy full SHA for 12edea0 - Browse repository at this point
Copy the full SHA 12edea0View commit details
Commits on Aug 27, 2026
-
Set target
es2024in TS and Vite, drop browserslist (#3356)Spun off from #3354, where I wanted `Promise.withResolvers` in a test but tsc wouldn't let me. Then I found out our browserslist list setting is not being used by anything — autoprefixer went away with Tailwind v4. ### Changes - `target` in tsconfig: es2023 → es2024, so tsc accepts ES2024 builtins like `Promise.withResolvers` - Set `build.target: 'es2024'` in the Vite config to match. Vite's default target is [`'baseline-widely-available'`](https://vite.dev/config/build-options.html#build-target), a browser list regenerated for each Vite major (currently Chrome 111 / Firefox 114 / Safari 16.4) - Add a safety test asserting the two targets stay equal - Remove the browserslist key and the autoprefixer dep ### Argument `target` in tsconfig can control two things: what syntax tsc emits and the default `lib` declarations for typechecking. We use `noEmit` because we compile with Vite, so we only care about `lib`: it determines which builtin APIs the typechecker allows (`Promise.withResolvers`, `Object.groupBy`, etc.). Vite has its own target concept, and it [only affects syntax](https://oxc.rs/docs/guide/usage/transformer/lowering#warnings): it rewrites newer syntax for older browsers, but if you call a too-new API, it doesn't polyfill or warn about it. 🤖 confirmed this by building `Promise.withResolvers()` with target `safari16.4`: clean build, the call ships as-is, TypeError at runtime. That means tsc's `lib` is the only thing keeping unsupported APIs out of the code, so the tsconfig target has to line up with the browsers we actually support. This PR sets `build.target: 'es2024'`, which Vite maps to the oldest browsers with full ES2024 support (Chrome 119, Safari 17.4, Firefox 145, per https://caniuse.com/sr-es15), and adds a safety test asserting the two targets are the same. The potential downside is that we are moving our target to browsers that might be too new. The worst one is Firefox, where full ES2024 support means 145 (Nov 2025). But that version requirement comes from a single feature that we're never going to call: [per MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/waitAsync#browser_compatibility), `Atomics.waitAsync` appeared in Firefox 145, while every other ES2024 feature was in by Firefox 128 (July 2024), and the ones we'd actually use (`groupBy`, `withResolvers`, `isWellFormed`) by 121 (Dec 2023). ### Alternatives * Do nothing (but still remove useless browserslist), i.e., leave `es2023` for TS and `baseline-widely-available` for Vite. Fine, but `es2024` has fun APIs we could use. * `es2024` for TS but leave Vite on the default. Also most likely fine in practice, but feels bad.
Configuration menu - View commit details
-
Copy full SHA for 9e4d320 - Browse repository at this point
Copy the full SHA 9e4d320View commit details
Commits on Aug 28, 2026
-
Don't reset submit button loading state right before nav (#3345)
Noticed while doing #3344. Form submit button loading state is true only when the mutation `isPending`. But there's a brief moment after the mutation completes but before the success nav happens where that's false and the button is on screen. What that looks like is the button flipping back to clickable right before the nav. That's stupid, so I gave every button where it makes sense `loading={isPending || isSuccess}`. There's some risk we could have a form where that is not appropriate (and there are a couple already — see `createNic` on the instance networking tab) but it's very easy for agents to get it right. I added a note to AGENTS.md about it. ### Before https://github.com/user-attachments/assets/fc4aadf6-7ba2-4e68-af01-be2a4dda5e2f ### After https://github.com/user-attachments/assets/7dd7d2de-5f34-48be-821b-58e2bb8f767a
Configuration menu - View commit details
-
Copy full SHA for 4464677 - Browse repository at this point
Copy the full SHA 4464677View commit details -
Fix error handling in disk attach modal (#3346)
Fixes two bugs found while doing #3345: 1. **Silent attach failure in the create-then-attach flow.** In the unlikely event you create a disk from the storage tab and the subsequent attach call fails (e.g., the instance started in the meantime), there was no visible error: the error only rendered inside the attach modal, which isn't open anymore. You'd get the "Disk created" toast but the disk just wouldn't be attached. Now it shows an error toast. 2. **Stale error leaking between modal uses.** In that failure scenario, the error stuck to the shared mutation, so the *next* time you opened the "Attach existing disk" modal, it displayed the old error from the create flow before you'd done anything. Now the attach modal's mutation is its own, created fresh on each open. Moving the mutation inside its own component means we don't have to do `reset()`s to avoid holding onto state across different openings of the attach modal.
Configuration menu - View commit details
-
Copy full SHA for b9cea7e - Browse repository at this point
Copy the full SHA b9cea7eView commit details -
Instance create: disable default networking when no
defaultVPC (#3319) The reason this half-worked is that we were disabling `Default` when there were no VPCs at all. Now we specifically check for a VPC called `default`. I also improved the styling on a disabled radio button — before the text was normal color and you couldn't tell it was disabled. <img width="233" height="181" alt="image" src="https://github.com/user-attachments/assets/c5416d3e-6a40-436e-81f4-924a5e56dac6" /> --- <img width="445" height="202" alt="image" src="https://github.com/user-attachments/assets/2f11a053-cc94-4ee1-97e7-aaa571609dca" />
Configuration menu - View commit details
-
Copy full SHA for b402ebb - Browse repository at this point
Copy the full SHA b402ebbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a6b0381 - Browse repository at this point
Copy the full SHA a6b0381View commit details
Commits on Aug 29, 2026
-
Most importantly, this makes allowScripts default to off. npm@12 also requires node 22.22.2 or greater, so we just bump the specificity a bit. Technically >=22.22.2 is less strict than npm's real engine requirements, since it has a minimum version for 24 as well, but we assume usage of node 22 in general. This also took a little extra footwork for the flake since no package currently offers npm 12, so we have to install it directly. --------- Co-authored-by: David Crespo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 46f3fd8 - Browse repository at this point
Copy the full SHA 46f3fd8View 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 ab7faf65...46f3fd84