Repository navigation
Tailwind 4 - #2910
Tailwind 4#2910
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
|
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. |
|
Found something interesting in the build output.
main
53df521
|
|
Yep, we are somehow pulling in the entirety of asciidoctor through the design system. oxidecomputer/design-system#150
|
|
Confirmed we are back to normal with oxidecomputer/design-system#151. Top is main, bottom is 8996191.
|
04f1da6 to
8996191
Compare
|
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. |
oxidecomputer/console@36e415c...ee1aa57 * [ee1aa575](oxidecomputer/console@ee1aa575) oxidecomputer/console#2920 * [74c20607](oxidecomputer/console@74c20607) oxidecomputer/console#2915 * [96939d35](oxidecomputer/console@96939d35) oxidecomputer/console#2910 * [1bc51872](oxidecomputer/console@1bc51872) oxidecomputer/console#2917 * [96211e99](oxidecomputer/console@96211e99) oxidecomputer/console#2914 * [22482fc1](oxidecomputer/console@22482fc1) oxidecomputer/console#2912 * [5c393b4d](oxidecomputer/console@5c393b4d) oxidecomputer/console#2911 * [8ac318bb](oxidecomputer/console@8ac318bb) oxidecomputer/console#2742
oxidecomputer/console@36e415c...ee1aa57 * [ee1aa575](oxidecomputer/console@ee1aa575) oxidecomputer/console#2920 * [74c20607](oxidecomputer/console@74c20607) oxidecomputer/console#2915 * [96939d35](oxidecomputer/console@96939d35) oxidecomputer/console#2910 * [1bc51872](oxidecomputer/console@1bc51872) oxidecomputer/console#2917 * [96211e99](oxidecomputer/console@96211e99) oxidecomputer/console#2914 * [22482fc1](oxidecomputer/console@22482fc1) oxidecomputer/console#2912 * [5c393b4d](oxidecomputer/console@5c393b4d) oxidecomputer/console#2911 * [8ac318bb](oxidecomputer/console@8ac318bb) oxidecomputer/console#2742
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.







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.