Skip to content
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: use design system windicss config #21503

Merged
merged 19 commits into from Jun 22, 2022

Conversation

elevatebart
Copy link
Contributor

@elevatebart elevatebart commented May 14, 2022

User facing changelog

None

Additional details

To share windi colors and plugins between App, Cloud, and marketing website, we wanted to have a single set of windicss plugins. These plugins have been created and delivered on the design system. This is the implementation of those plugins in the app.

A very limited windi.config.ts file had to be kept in each project.
This contains the color configuration.
Since we do not want to lose the autocompletion of colors using the WindiCSS vscode plugin, we had to rely on this limited

NOTE: the windi.config.ts file is never used to configure Windi itself. Only to help the VSCode plugin to find the appropriate custom colors.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 14, 2022

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented May 14, 2022



Test summary

37555 0 454 0Flakiness 5


Run details

Project cypress
Status Passed
Commit 5570637
Started Jun 22, 2022 2:45 PM
Ended Jun 22, 2022 3:03 PM
Duration 18:06 💡
OS Linux Debian - 10.11
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

commands/actions/click.cy.js Flakiness
1 ... > scroll-behavior > can scroll to and click elements in html with scroll-behavior: smooth
next.cy.ts Flakiness
1 Working with next-11 > should detect new spec
cypress/proxy-logging.cy.ts Flakiness
1 Proxy Logging > request logging > xhr log has response body/status code when xhr response is logged second
2 Proxy Logging > request logging > xhr log has response body/status code when xhr response is logged second
e2e/origin/commands/assertions.cy.ts Flakiness
1 cy.origin assertions > #consoleProps > .should() and .and()

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@@ -19,6 +19,7 @@
},
"dependencies": {},
"devDependencies": {
"@cypress-design/css": "0.1.0",
"@graphql-typed-document-node/core": "^3.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly related but do you think we should consider changing to TailwindCSS at this point for future sustainability? It has way more contributors, and just looking at the repo we have 18 issues (Tailwind) vs 172(Windi).

I feel like Tailwind will likely outlast and be a more sustainability option. I have no idea of the cost of migration - should be small, since Windi is "Tailwind compatible".

I don't see a strong benefit to Windi since Tailwind now has a JIT compiler, which was the main issue Windi solved (speed).

Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless there is a compelling reason (bug, needed enhancement), I would prefer to avoid unnecessary changes.
Tailwind is great and really active, but this does not justify yet the potential fixing of the problems.

Among the differences, TailwindCSS is a PostCSS-based plugin instead of being independent in WindiCSS. It means that in WindiCSS the plugin controls the configuration. With TailwindCSS, we would have to export a TailwindCSS config.

There are a few configurations as well that would need to migrate. Colors, safelist, plugins.

@elevatebart elevatebart changed the title elevatebart: use design system windicss config refactor: use design system windicss config May 16, 2022
@elevatebart elevatebart marked this pull request as ready for review May 16, 2022 16:28
@@ -19,6 +19,7 @@
},
"dependencies": {},
"devDependencies": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine - just a bunch of config.

It looks like some Percy screenshots are different, but they don't appear to be related to the style/color changes you've made in this PR.

Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elevatebart Update the base branch to be against develop before merging.

@elevatebart elevatebart changed the base branch from 10.0-release to develop May 25, 2022 21:58
@jennifer-shehane jennifer-shehane dismissed their stale review May 25, 2022 22:19

Dismissing my review as addressed.

@jennifer-shehane jennifer-shehane removed their request for review June 6, 2022 21:26
@rachelruderman
Copy link
Contributor

Hey @elevatebart, is this waiting on anything? :-)

@elevatebart
Copy link
Contributor Author

@rachelruderman nope just on a green CI

@elevatebart elevatebart merged commit a8f5e59 into develop Jun 22, 2022
@elevatebart elevatebart deleted the elevatebart/use-shared-windicss branch June 22, 2022 15:35
tgriesser added a commit that referenced this pull request Jun 24, 2022
…esser/CLOUD-577-spec-list-display-latest-runs-batching

* muaz/CLOUD-577-spec-list-display-latest-runs:
  fix: Update "Request Access" button state after requesting access (ACI) (#22499)
  feat: Support "Queued" latest run status (#22497)
  fix: remove ctx.cloud.reset in tests, handle infinite loop in stale results (#22483)
  chore: add reporter webpack to gulp watch script (#22386)
  fix: Increase timeout for npm-webpack-dev-server tests (#22489)
  fix: Time out unmatched prerequests in proxy to avoid leaking memory (#22462)
  fix: Sort results in findCrossOriginLogs test helper to deterministic (#22481)
  fix: memory leak caused by storing base64 encoded files recieved by CDP `Network.requestWillBeSent` (#22460)
  fix: Improve cross-origin cookie handling (#22320)
  feat: Add button to clear value from search fields (#22202)
  chore: Add test to verify settings panels are collapsed by default (#22382)
  fix: process_profiler follow up work for v10 (#22363)
  chore: Update Chrome (stable) to 103.0.5060.53 (#22441)
  refactor: use design system windicss config (#21503)
  chore: update readme logo (#22433)
  chore: Update Chrome (beta) to 103.0.5060.53 (#22351)
  chore: updating version (#22432)
  Trigger Build
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.

None yet

5 participants