Repository navigation
Comparing changes
Open a pull request
base repository: oxidecomputer/console
base: abbe25e8
head repository: oxidecomputer/console
compare: ab7faf65
- 12 commits
- 125 files changed
- 6 contributors
Commits on Aug 12, 2026
-
Bring back preview banner (#3304)
I noticed the preview had its page titles slightly higher than local dev. Took me a while to notice the entire preview banner was missing. Looks like we broke it in #3178. Broken: https://console-c5j03m75a-oxidecomputer.vercel.app/ Fixed: https://console-git-fix-preview-banner-oxidecomputer.vercel.app First commit here is the best version of the fix with the current structure, second commit rearranges things to move the banner out of the main app layout, which is what we always wanted to do anyway, it was just tedious. The diff is better with whitespace changes hidden.
Configuration menu - View commit details
-
Copy full SHA for f49fe06 - Browse repository at this point
Copy the full SHA f49fe06View commit details -
Use default names for mock VPCs and subnets (#3318)
This is prep for an actual fix on how we handle non-default VPC names in the instance create form. This changes all the names for the VPC in the mock data (except for one that we keep around for testing a non-default VPC) and updates the tests accordingly. Just noise. Real fix will be on top.
Configuration menu - View commit details
-
Copy full SHA for cd7b546 - Browse repository at this point
Copy the full SHA cd7b546View commit details
Commits on Aug 14, 2026
-
We have a number of forms and views contained within sidebars. In our designs, we have a Properties Table at the top of the sidebar including static metadata, like the ID, Created At, Updated At, (more on those three in a sec, but "etc. for now") details for the given resource. Not all of our sidebars currently include the relevant metadata. This PR adds those `PropertiesTable`s to the sidebars throughout the app. A few examples … <img width="400" alt="Screenshot 2026-07-22 at 8 59 56 AM" src="https://github.com/user-attachments/assets/7fcf1310-2ff6-44f3-a0c9-52fd684ec720" /> <img width="400" alt="Screenshot 2026-07-22 at 8 59 28 AM" src="https://github.com/user-attachments/assets/40c51fea-2772-485f-9f28-1002f0b2cb96" /> <img width="400" alt="Screenshot 2026-07-22 at 9 01 04 AM" src="https://github.com/user-attachments/assets/e2a99d70-8bb9-44c4-b20d-6f022bfa75aa" /> <img width="400" alt="Screenshot 2026-07-22 at 9 01 35 AM" src="https://github.com/user-attachments/assets/9b332950-c65d-4be3-97e3-72f8a1f694d6" /> <img width="400" alt="Screenshot 2026-07-22 at 8 58 59 AM" src="https://github.com/user-attachments/assets/a635fca6-a840-40a2-a5d2-9ad88628255f" /> As you can see, every resource ends up having the three elements of ID, Created At, and Updated At. Part of this PR involves setting those as the defaults, with the easy addition of relevant-to-that-type-of-resource extra rows. This does make the metadata tables a little taller, and Crespo noted in #994 that we might want to figure out how to tighten up the tables, possibly by removing the Updated row. That's certainly an option if we feel like it's too tall. The PR also updates a few of the resources to have LinkCells, where you can click on the name of the resource in the parent overview table and open the sidebar, without needing to click on the action button and then the "Edit" button from within the dropdown. This PR doesn't remove the existing `Edit` button in the action menu, even though there's a bit of redundancy there. Closes #994 --------- Co-authored-by: benjaminleonard <[email protected]> Co-authored-by: David Crespo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 709fbd3 - Browse repository at this point
Copy the full SHA 709fbd3View commit details -
Initial cert validation test (#2582)
Fixes #2580 and related to #2578 Idea from @augustuswm to soft validate the cert. Unfortunately I think we need a library to parse the cert but I lazy imported it to avoid adding to the main bundle since most users will not see this. Principally the risk here is what I dont know about certs: 1. wildcard handling might need to be sophisticated 2. certs that arrange slightly different in a way that `parseCertificate()` doesn't catch But feels, like the image soft validation, that it could be a good quality of life improvement for something that is potentially very painful when not done correctly. We might want to label the `CN` and `SAN` on the messages list of found names. <img width="499" alt="image" src="https://github.com/user-attachments/assets/aa26a784-c898-4c94-afe4-e7167b3d6b73"> --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: David Crespo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c57da14 - Browse repository at this point
Copy the full SHA c57da14View commit details -
Fix minitable truncation with CSS grid (#3293)
Alternative to #3182 proposed by Fable. Closes #2999. <details> <summary>🤖 Fable comparison to #3182</summary> Everything needed is in hand: both implementations, both PR discussions, the PR screenshots, and the notes from the previous session (`.claude/notes/2026-07-17-minitable-grid-rewrite.md`). No browser needed — the April screenshots on [#3182](#3182) demonstrate the key differentiating scenario directly, and the clamp logic they illustrate is unchanged after the rebase. ## Elegance The two branches converge on an identical public API (`text` vs `cell` columns, truncate-with-tooltip via the same scrollWidth check). The difference is entirely in how column widths get decided. **Measurement branch** ([#3182](#3182), +185/−20): canvas `measureText` per cell → clamp ratios to 2.5:1 via `sqrt(5/2)` → normalize to percentage widths. Its main structural weakness is that it re-derives layout outside the layout engine, and has to defeat the layout engine to do it: every text cell is absolutely positioned (`absolute inset-x-3`) specifically so content can't influence native table sizing, then JS reconstructs what the sizes should be from a canvas measurement. Supporting apparatus follows from that choice: `text-width.ts`, a hand-copied `'400 14px SuisseIntl'` / `0.03rem` font spec that must shadow `text-sans-md`, the spread/floor/ceiling heuristic, and a memoization contract that leaks into the API ("keep this array referentially stable"). On the plus side, it keeps genuine table display semantics and reuses `Table.Header`/`Table.HeadCell` from the big table. **Grid branch** ([#3293](#3293), +178/−175, net ~0 against main): the whole sizing policy is one declarative expression — `minmax(0, auto)` for text columns, `max-content` for cell columns — and the browser computes widths from the actual rendered glyphs. It deletes `text-width.ts`, the font constants, the clamp, the memo contract, and all 85 lines of `mini-table.css` nth-child tricks (styles now co-located). The cost is an ARIA tax: `display: grid`/`display: contents` strip implicit table semantics, so every element carries an explicit role and the file needs two jsx-a11y eslint disables. It also re-implements header-cell chrome inline rather than reusing `Table.HeadCell` — though main's css file was already a parallel implementation, so that's not a regression, just a missed reuse the other branch gets. On elegance the grid version wins on the axis that matters most here: the measurement branch simulates the layout engine; the grid branch instructs it. Benjamin explicitly identified container-aware sizing as the ideal in the PR thread ("This could be even more clever by using absolute pixel widths and being container aware… But I'm not sure it's worth the extra complexity") — the grid gets exactly that behavior for free, because it's the layout engine's native job. ## Scenarios with clearly different results **1. Long name next to short columns, with slack in the table — grid clearly better.** This is the case users actually hit ([#2999](#2999)). The measurement floor reserves ~22% for each short column and the ceiling caps the long one at ~56%, so a long name truncates while its neighbors sit half empty. The NIC screenshot in the #3182 thread shows exactly this: `asdasdasd-asdasdas…` cut off while `mock-vpc` and `mock-subnet` each float in ~2× the width they need. Concretely: a name measuring 300px next to two trivial columns in a 512px table gets 55.6% ≈ 285px under measurement (truncated, ~200px dead space nearby); under grid the row's max-contents sum to well under 512, so the full name renders. A grid track never truncates while slack exists anywhere in the row. **2. First paint before the webfont loads, or future font changes — grid correct by construction.** `measureText` against `SuisseIntl` before the font loads measures the fallback font, and nothing re-measures on font load; likewise, any future change to `text-sans-md` or letter-spacing silently desyncs the hardcoded constants. The grid version has no measurement to get wrong. Low frequency in practice (MiniTables appear after user interaction), but it's an entire bug class one approach can have and the other can't. **3. Short content everywhere — grid modestly better.** Compare the two "abc" disk screenshots on #3293: grid lets badge columns hug content and gives leftover to the name; measurement stretches every text column to its clamped percentage, so dividers land disconnected from content (visible in the `asda` NIC screenshot on #3182). Cosmetic, but consistently in grid's favor. **4. Two long text columns under real constraint — different, neither clearly better.** This is the one behavioral fork that's genuinely a matter of taste. Grid's track sizing is max-min water-filling: width distributes equally, short tracks freeze at content size, so the longest column absorbs all of the shortage beyond its equal share. Measurement shrinks proportionally (clamped), spreading the pain. Example: contents of 350px and 220px sharing 400px — grid yields 200/200 (shorter column 91% visible, longer 57%); measurement yields ~245/155 (both ~70% visible). Reasonable people could prefer either. **5. Legacy assistive tech — measurement clearly better, in principle.** It's the only scenario found where measurement wins: it keeps real table display semantics, while grid depends on explicit ARIA roles to patch over `display: contents` semantics-stripping, which was historically buggy in browsers (fixed in current engines, and the role-based Playwright locators pass per the prior session's e2e runs). If the console had to support an old AT/browser combination, that would favor #3182; given the console's modern-browser baseline, it's a theoretical edge. ## Verdict Grid dominates on rendered results in the scenarios users encounter (1–3); its costs are confined to the code (ARIA boilerplate, subgrid idiom, duplicated header chrome) rather than the output. The measurement branch's advantages are semantic purity that its own absolute-positioning hack partially undermines, and a taste-based difference in how two simultaneously-truncating columns split the shortage. If presenting this on the PRs, scenario 1 is the strongest exhibit — the #3182 thread's own screenshots demonstrate the truncate-despite-slack behavior, and Benjamin's "container aware… not worth the extra complexity" comment frames the grid version as delivering the behavior he wanted at negative net complexity. </details> # main <img width="553" height="226" alt="Screenshot 2026-07-17 at 6 24 32 PM" src="https://github.com/user-attachments/assets/affef6ef-26d4-4f82-bb48-cd0d1d48bc45" /> <img width="596" height="270" alt="Screenshot 2026-07-17 at 6 24 59 PM" src="https://github.com/user-attachments/assets/8b97d74b-ff28-41b2-ae61-2a6fb2176026" /> <img width="559" height="359" alt="Screenshot 2026-07-17 at 6 40 56 PM" src="https://github.com/user-attachments/assets/5ce26863-0bf0-40e5-822e-de5f9c8eb9ba" /> # This PR <img width="559" height="226" alt="Screenshot 2026-07-17 at 6 26 10 PM" src="https://github.com/user-attachments/assets/08b2d1fd-e70f-4cdb-b676-1ec8ddcafb2e" /> <img width="559" height="262" alt="Screenshot 2026-07-17 at 6 25 12 PM" src="https://github.com/user-attachments/assets/f99fdda0-a5a0-4c13-b6fb-f84b2fc0615c" /> <img width="300" height="123" alt="image" src="https://github.com/user-attachments/assets/6ff53c8b-434f-4366-8218-ffec69f574c5" /> <img width="561" height="353" alt="Screenshot 2026-07-17 at 6 40 15 PM" src="https://github.com/user-attachments/assets/b00fe1de-cd60-42b1-bf8b-467442098199" />
Configuration menu - View commit details
-
Copy full SHA for 2402b7b - Browse repository at this point
Copy the full SHA 2402b7bView commit details
Commits on Aug 15, 2026
-
This PR replaces recharts with uPlot. The core of the decision here is really just "stop using an svg-based chart", but uPlot is a fast option even among canvas-based renderers, and (with a bit of patience) still quite flexible when it comes to styling. Setting the code itself aside, this should not be that noticeable a change. Charts will render faster, but the smaller datasets we're using right now weren't really a problem for recharts; it would be much more noticeable once we started work on #3270. The three most noticeable changes today: 1. a switch from svg to canvas will, in lower dpr screens (like, 1x), make the linework more stark. I consider this a benefit for those of us with pitiful 1x displays; we get some small slice of the Apple experience. 2. the ticks are picked by uplot now. Now charts with very low numbers (say, a max of 1.5) won't get squished to the bottom, and we'll have generally "nice" numbers (5/15 minutes marks, y-axis multiples of 100, 1000, etc). 3. the top grid line has been removed. Since we give uplot control over ticks now, it seems a bit odd to stick a line there willy-nilly. As an example of difference 2 in particular, here's the visual comparison test for instance network metrics: |Recharts|uPlot| |-|-| <img width="1280" height="1799" alt="instance-metrics-network-expected" src="https://github.com/user-attachments/assets/f8ce3a8f-c560-46b4-975a-4da4e48bb92e" />|<img width="1280" height="1799" alt="instance-metrics-network-actual" src="https://github.com/user-attachments/assets/f830707f-7a98-4751-8148-f067e36a602d" /> --------- Co-authored-by: David Crespo <[email protected]> Co-authored-by: benjaminleonard <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a4f930 - Browse repository at this point
Copy the full SHA 7a4f930View commit details
Commits on Aug 17, 2026
-
Width-aware truncation (#3325)
Closes #1536 Closes #3261 This has long been on my list to fix. The char-based truncation we have currently leaves a lot of unused space and is unreliable. In part because character widths (plus kerning) vary so much between two strings of identical number of characters. `<Truncate>` now fills its container and truncates based on actual rendered width. - `position="end"` is pure CSS (`text-overflow: ellipsis`). JS only checks `scrollWidth > clientWidth` on hover to decide whether to show the full-text tooltip - `position="middle"` measures with canvas `measureText` (accounts for kerning and letter-spacing) and searches for the longest string that fits Also standardizes ID display: IDs now middle-truncate everywhere, and adds truncation + copy buttons to places that had none. FileInput gets `contain: inline-size` on its label, fixing a bug where it forces the input wider. I _think_ this predates the truncation change. Test changes to match. From some local robot tests, the truncation measurements, including the binary-search are all very quick. This also means we aren't truncating when there is space to display, before: <img width="675" height="193" alt="image" src="https://github.com/user-attachments/assets/2726ddec-2b44-4ffb-bd23-f73a492e6a4f" /> --------- Co-authored-by: David Crespo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 82dadc7 - Browse repository at this point
Copy the full SHA 82dadc7View commit details -
PoC: move some e2e tests to Vitest browser mode (#3287)
We have a lot of e2e tests that are really more like UI unit tests, and they seem to be quite bit faster this way (2 seconds for three browsers vs. 8 seconds for one browser), presumably because Vitest doesn't spin up a whole new page for every test. In addition to the speed improvement, it's also nice to have the unit-test-like parts of our code actually written as such, instead of being buried in tests for pages that happen to have that component on them. https://vitest.dev/guide/browser/why.html 🤖 Coverage is meaningfully better in a few areas: - Previously skipped multiselect behavior is active and exposed a real row-styling bug (an irrelevant one though since we don't actually use multiselect tables). - FileInput same-file reselection. - Focus restoration for popovers/date picker. - ActionMenu wrapping and reset behavior. - More precise Combobox state transitions. <img width="1111" height="650" alt="image" src="https://github.com/user-attachments/assets/46eae8fd-8746-4fa6-aa1c-b74dd93488cd" />
Configuration menu - View commit details
-
Copy full SHA for 1f7e315 - Browse repository at this point
Copy the full SHA 1f7e315View commit details -
Fire off number updates eagerly (#3282)
react-aria waits until a blur event to parse inputs and emit numbers. This is nice except that validation is stuck waiting for a blur event (so, e.g., all your form contents are valid, but the submit button is disabled, because we're waiting for you to blur your input). While it'd be nice for react-aria to support some kind of "eager mode", we can pretty easily write one ourselves, by forcing a `commit` whenever we get suspicious. Resolves #3249 / #2647 --------- Co-authored-by: David Crespo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6e63d0e - Browse repository at this point
Copy the full SHA 6e63d0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bcde2e0 - Browse repository at this point
Copy the full SHA bcde2e0View commit details -
Fix combobox query clear on page blur (#3013)
Closes #3012 Was curious how Claude would handle this. It cost $1.31. It did not get it until I explained that in the video, we do not see the list options close, we only see the typed-in query disappear. I've confirmed by hand that the fix does appear to work. Claude's explanation: > The `onClose` callback in the Combobox component unconditionally cleared the typed query. When the browser tab loses focus, Headless UI fires `onClose` (because the input blurs), which cleared the user's in-progress filter text. > > The fix checks `document.hasFocus()` before clearing. When the document doesn't have focus (user switched tabs/windows), we preserve the query. When the user deliberately closes the dropdown (clicks outside, presses Escape, selects an item), the query is cleared as before. Just putting this up to look into more later. I want to look into this behavior of Headless, calling `onClose` on blur. I don't understand why we don't see the options list close too. I'm also skeptical that adding 4 seconds worth of tests to the e2e suite is worth it for this one thing — maybe we do need something faster than playwright for component-level tests now that they're so cheap to write. We could have hundreds of them.
Configuration menu - View commit details
-
Copy full SHA for ef82a17 - Browse repository at this point
Copy the full SHA ef82a17View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab7faf6 - Browse repository at this point
Copy the full SHA ab7faf6View 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 abbe25e8...ab7faf65