magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 682 forks source link

Updating Tailwind to V3 #4196

Closed justinconabree closed 6 months ago

justinconabree commented 10 months ago

Description

Styles that have changed due to B6 being corrected

Original PR: https://github.com/magento/pwa-studio/pull/4082

Related Issue

Closes #4081

Acceptance

Verification Stakeholders

Specification

Changes to theme must be reviewed

Verification Steps

Test scenario(s) for direct fix/feature

Full pass through site to verify no major style changes across all screen sizes

Test scenario(s) for any Magento Backend Supported Configurations

None

Is Browser/Device testing needed?

Yes, device testing is required as styles may vary based through all breakpoints

Any ad-hoc/edge case scenarios that need to be considered?

All features (states) must be tested

Breaking Changes (if any)

Updating PWA Studio (Venia) from Tailwind V2 to V3 has required some changes.

For starters, developers should look over Tailwind's Upgrade Guide to see what the general implications of Tailwind V3 are for their project.

Some additional configurations have been made available in the theme and implemented in Venia. These include

Some key colors are also now exposed through CSS variables using the root plugin. These variables are then used in the base tokens file so legacy use now runs off of tailwind configuration.

Checklist

pwa-studio-bot commented 10 months ago
Warnings
:warning: Found the word "TODO" in the PR description. Just letting you know incase you forgot :)
Messages
:book: DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next pr-test build run (assuming they are fixed).
:book: Access a deployed version of this PR [here](https://pr-4196.pwa-venia.com/). Make sure to wait for the "pwa-pull-request-deploy" job to complete.

Generated by :no_entry_sign: dangerJS against 812943aaddc01bd918044cd1a434fbfb3963459a

justinconabree commented 10 months ago

@anthoula, @glo42707 no luck with the new PR unfortunately. Still the same issues. 😩 When you have a moment can you please give me more information on what commands are being run during the scaffolding/PR deployment process? I'll try to debug more on my end what's going on, but without that I'm not too sure to look.

Thanks!

justinconabree commented 9 months ago

Hey @anthoula ,

Just poking you for more info on the scaffolding and PR deployment processes so I can debug what's going wrong with this PR.

Thanks!

glo82145 commented 9 months ago

Hi @justinconabree Everything looks fine on PR now in respect of testcases. All the test are passed now. But some pages looks distorted in this PR which should aligned properly. Ex. https://pr-4196.pwa-venia.com/silver-amor-bangle-set.html

Can you please look into this

justinconabree commented 9 months ago

Hi @glo82145 ,

I would like to, but I need more information from you guys about the scaffolding process to look into it. Everything works fine locally with this branch so I need more information about how it's deployed to see what might be going wrong. Here's a screenshot of the same page on my local image

Thanks

glo82145 commented 8 months ago

Hi @justinconabree For scaffolding process, Please refer these two pages:- https://developer.adobe.com/commerce/pwa-studio/guides/packages/buildpack/scaffolding/ and https://developer.adobe.com/commerce/pwa-studio/tutorials/setup-storefront/

Please let us know for more information.

justinconabree commented 8 months ago

Hi @glo82145 ,

If you just run yarn create @magento/pwa it's not going to use local package versions, it's going to use already published versions. I need to know specifics about how it's used in this project, during deployment. Something is going wrong in either postcss or the tailwind JIT during the deployment's build to make it not recognize tailwind's @apply directives. This works fine locally with either yarn watch or yarn build, so I need more information and what is different during deployment VS running it locally.

(cc @anthoula @supernova-at)

justinconabree commented 5 months ago

@glo82145 This shouldn't have been merged until the issue with deployment was resolved. There's now uncompiled tailwind directives on develop

image

glo82145 commented 5 months ago

Hi @justinconabree

Is it possible to connect today on teams or slack to discuss further?

glo42707 commented 5 months ago

run pr-deploy

pwa-test-bot[bot] commented 5 months ago

Successfully started codebuild job for pr-deploy

justinconabree commented 5 months ago

Hi @glo82145 ,

Absolutely! I'm on the Magento Open Source slack if that helps

justinconabree commented 5 months ago

Hey @glo82145 , any update? I'm free today if you need

justinconabree commented 5 months ago

Hi @glo82145 @glo42707 , Following up again. Available as needed. Thanks

glo42707 commented 5 months ago

@justinconabree

we have tested changes of this PR in different cloud instances which is working fine.

now we will try pushing changes of this PR to master branch which is associated in github CICD, and hoping that it should resolved the issue of tailwind which we facing in PR link.

ideally all changes should reffelect in PR link byitself but UI distortion issue we are facing only on this PR-link.

also answering to your old querstion how CICD works, so for that we alredy have aws codebuild where we publish PWA-studio releases and manually we push PWA-DIST in all the associated instances of Module PWA.

we will keep you updated post we fininsh regression test of PWA-14.0.0

justinconabree commented 5 months ago

Hi @glo42707 ,

I'm not sure if this impacts your plans, but the issues are also present on https://develop.pwa-venia.com/ since the merge Example, in the header there's supposed to be a gray bar between the store switcher and the currency. Right now it's not present as tailwind isn't compiling properly during CD for whatever reason. Anywhere there's an @apply should be actual CSS style. image