Skip to content

Tailwind 4 - #2910

Merged
david-crespo merged 20 commits into
mainfrom
tailwind-4-new
Oct 15, 2025
Merged

david-crespo merged 20 commits into
mainfrom
tailwind-4-new

Conversation

@benjaminleonard

@benjaminleonard benjaminleonard commented Oct 9, 2025 •

Copy link
Copy Markdown
Contributor

Replaces #2826 — figured it'd be easier to avoid so many merge conflicts.

The lack of a z-index utility is a little clunky here. And still a couple things to fix. Tables and badges are borked.
This is another place where visual regression testing would be particularly useful.

  • Fix table styles
  • Fix instance hardware radios
  • Fix focus on dropdown open
  • Fix badge outlines
  • Fix table scrollbar always showing
  • Fix scrollbar when no more actions cell
  • Double check badge padding / size
  • Horizontal scrolling on serial console
  • Weird build output and a lot of it (Tailwind 4 #2910 (comment))

@vercel

vercel Bot commented Oct 9, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
console Ready Ready Preview Oct 14, 2025 10:22pm

Visual regression script

Update generate-visual-baseline.sh

Setting up tests

Fix cmd

Test improvements

Add regression e2e test

Fix / remove vis regression tests

Update generate-visual-baseline.sh

Simplify scripts

Simplify regression readme
@benjaminleonard

Copy link
Copy Markdown
Contributor Author

Lots of changes, most due to the formatting.

Almost ready to go, I need to go back over it a couple times, but visually it looks like there's parity. Adding a visual regression test that fails on most counts because the table row height has changed slightly due to a little bit of a table tweak as I was fixing some things.

The table could probably do with a full refactor, it's split between the css file and inline. It should probably all be in the css file.

Would be good to get merged as soon as poss, it touches so many files that the merge conflicts will get painful.

@david-crespo

Copy link
Copy Markdown
Collaborator

Sideways scroll on serial console:

image

@david-crespo

david-crespo commented Oct 14, 2025 •

Copy link
Copy Markdown
Collaborator

Found something interesting in the build output.

  • CSS file shrinking by 1/3: good.
  • Generating 323 instead of 99, many of which are huge: not good. Judging from all the programming language names, it seems like we're pulling in some that stuff related to syntax highlighting in AsciiDoc. But I don't know what's going on with TypeValueCell there.

main

https://github.com/oxidecomputer/console/actions/runs/18479011038/job/52649823166#step:8:36

image image

53df521

https://github.com/oxidecomputer/console/actions/runs/18503116960/job/52725077386#step:8:359

image image

@david-crespo

david-crespo commented Oct 14, 2025 •

Copy link
Copy Markdown
Collaborator

Yep, we are somehow pulling in the entirety of asciidoctor through the design system.

oxidecomputer/design-system#150

image

@david-crespo

david-crespo commented Oct 14, 2025 •

Copy link
Copy Markdown
Collaborator

Confirmed we are back to normal with oxidecomputer/design-system#151. Top is main, bottom is 8996191.

image

@david-crespo

Copy link
Copy Markdown
Collaborator

Merging as-is with the canary design-system release because I have messed up the releases in the design-system repo real bad. We will update this to stable design-system tomorrow.

@david-crespo
david-crespo merged commit 96939d3 into main Oct 15, 2025
@david-crespo
david-crespo deleted the tailwind-4-new branch October 15, 2025 01:32
david-crespo added a commit that referenced this pull request Nov 11, 2026
Nothing in the repo references these packages any more. The lockfile
goes from 709 to 704 entries. `tslib` and `@react-router/node` stay
installed as dependencies of other packages, so for those two this only
tidies `package.json`. Lint, tsc, build, and the vitest suite pass. I
did not run e2e locally.

- `tslib` came from the Nx generator that created the repo
([source](https://github.com/nrwl/nx/blob/313552b/packages/react/src/schematics/init/init.ts#L55-L61)),
along with `importHelpers: true` in tsconfig, which tells tsc to import
helpers like `__awaiter` from tslib instead of inlining them. tsc never
emitted our build (that was Babel, then Vite), but with `importHelpers`
on, typechecking fails with TS2354 if tslib can't be resolved and the
target needs a helper, as ours did while it was es2015. #2078 raised the
target to es2020 and #3075 removed `importHelpers`. It is still
installed through `@peculiar/x509` and others.
- `@tailwindcss/container-queries` was added in #2654 for the
`@container` and `@[48rem]:` variants on the instance metrics tabs,
loaded as a plugin in `tailwind.config.ts`. Tailwind 4 [has container
queries built
in](https://github.com/tailwindlabs/tailwindcss-container-queries/blob/7a968b3/README.md?plain=1#L1-L2),
and #2910 deleted the config file that loaded the plugin but left the
package.
- `@tanstack/react-query-devtools` was added in #1238 to show the React
Query devtools panel in dev. It was commented out in
cc67cff to keep it out of screenshots,
and #3400 deleted the commented-out lines.
- `react-is` and `@types/react-is` also came from the Nx generator,
which adds them alongside styled-components
([source](https://github.com/nrwl/nx/blob/313552b/packages/react/src/utils/styled.ts#L18-L28))
because styled-components 5 has react-is as a peer dependency. We
replaced styled-components with emotion in
451bef6. `@reach/menu-button` 0.16 also
had react-is as a peer dependency until #1395 replaced it with Radix,
and no package in the lockfile has had one since. Nothing in the repo
has ever imported react-is, so the types were never used.
- `@react-router/node` was added in #3400, following the [React Router
SPA
guide](https://github.com/remix-run/react-router/blob/f482813/docs/how-to/spa.md#L38),
which says a project needs it for the build-time render of `index.html`.
Our `entry.server.tsx` uses web streams and doesn't import it, and
`@react-router/dev` already depends on the exact same version, so it
stays installed.

This branch was successfully deployed

1 active deployment
Preview — 89961914 Deployed Oct 14, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants