-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: migrate from windi to tailwind #26516
Conversation
32 flaky tests on run #45907 ↗︎
Details:
cypress/e2e/commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox
cypress/e2e/e2e/origin/commands/assertions.cy.ts • 1 flaky test • 5x-driver-firefox
cypress/e2e/cypress/cypress.cy.js • 3 flaky tests • 5x-driver-firefox
src/debug/DebugSpec.cy.tsx • 1 flaky test • app-ct
cypress/e2e/create-from-component.cy.ts • 2 flaky tests • app-e2e
The first 5 flaky specs are shown, see all 19 specs in Cypress Cloud. This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
We will review this next sprint @elevatebart |
Bumping this into our current sprint for review. |
In the last 8 commits, please review the following:
The other changes are
|
This is looking good to me. Some of the component test specific snapshots have slightly different spacing, but all the ones in E2E looks either very similar, or when the padding is a little different, I think they still look fine. |
I'm taking a walk through Percy to approve it, curious about a couple screems:
|
@marktnoonan The overflow is due to the app now consistently using the same monospace font. The WOFF version of the font seems to be slightly wider. I looked into that upside down icon. I am not sure why it was not upside down before when looking at the code. The code seems to expect that an expandable alert will always use a caret icon that should rotate when opening/closing. |
Got it @warrensplayer, I've gone and approved Percy 👍 |
* feat/protocol: refactor: migrate from windi to tailwind (#26516) chore: update v8 generation vars so that from scratch depends implies updating the metafile (#26472) chore: Update Vite to 4.3.0 (#26553) fix: unify cdp approach to fix devtools in electron (#26573) dependency(deps): update dependency deps-ok to v1.4.1 🌟 (#26612) chore: update 12.11.0 release date (#26587) chore: 12.11.0 release (#26582) chore: implement experimental ESM stub/spy for Vite (#26536) chore: try triggering mouseleave on buttons to ensure that tooltips aren't showing (#26524) chore: add support for Angular 16 (#26052) chore: upgrade Vue to 3.2.47 (#26555) chore: Update v8 snapshot cache (#26537) chore: add missing utm parameters for cloud links to Debug page (#26556) chore: update stalebot to respect new labels and up process rate (#26552) fix: don't display run passing status if Cloud org is over run limit (#26533) chore: update vm2 to 3.9.17 (#26534) feat: display a limit warning on the run navigation component when there are 100 total runs (#26523) chore: Update v8 snapshot cache (#26476) chore: upgrade vm2 (#26495) fix: Treat Video compression 0 as false. (#26503)
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Edit by @lmiller1990 WindiCSS (Tailwind clone) is official deprecated, but has been unmaintained for a while now. @elevatebart updated us to use the official Tailwind. We need to review the Launchpad and App to make sure it all still looks correct.
Steps:
npx npm-check-updates "/^@cypress-design/*/" -wsu
(-?)([pm][xyltbr]?)-([\d.]+)(px|em|rem|vh)
->$2-[$1$3$4]
fromp-16px
top-[16px]
(-?)(left|right|top|bottom)-([\d.]+)(px|em|rem|vh)
->$2-[$1$3$4]
(text|leading)-([\d.]+)(px|em|rem|vh)
->$1-[$2$3]
text-space-([\d.]+)(px|em|rem|vh)
->text-[$1$2]
(border|outline|divider|ring)(-[xyltrb])?-([\d.]+)(px|em|rem|vh)
->$1$2-[$3$4]
(min-|max-)?([wh])-([\d.]+)(px|em|rem|vh)
->$1$2-[$3$4]
(gap|space)(-[xy])?-(\d+)px
->$1$2-[$3px]
rounded(-[tb][lr])?-(\d+)px
->rounded$1-[$2px]
// rounded(-?)translate(-[xy])?-(\d+)px
->translate$2-[$1$3px]
// translateflex-grow
,flex-shrink
andflex-gap
should begrow
,shrink
andgap
underline-indigo-500
should bedecoration-indigo-500
border-1
should beborder
border(-[x|y|t|b|l|r|s|e])-1
->border$1
hover:(bg-indigo-500 underline text-white)
does not work with tailwindchildren:
variantbefore:
(addbefore:shrink-0
)Fixed redundant styles for component tests
packages/app
andpackages/launchpad
, the utility classes were getting loaded twice. Once was when the component support file was importing thefrontend-shared
component support file, and then again added directly in the project's component support file. This PR just relies on the imports in thefrontend-shared
component support file.Monospace font
shared.scss
file and using thewoff2
version versus thettf
versionttf
font in theApp.vue
files forpackage/app
andpackage/launchpad
Key differences when using Tailwind vs Windi
!important
to all the utility classes. Tailwind currently does not do this. This would cause a different precedence when having overlapping styles.!
prefix to a utility class to get Tailwind to dynamically add a!important
text-16px
vstext-sm
), then Windi also includedline-height: 1
as part of that style. TailWind does not do this. Instead, Tailwind inherits the line-height for these elements. The majority of differences in the Percy snapshots for this PR that will be introduced are related to this. The snapshots will show slight increases in line height in this case.