-
Notifications
You must be signed in to change notification settings - Fork 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
Display PatternAssembler CTA on Logged-out ThemShowcase #72752
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~24 bytes removed 📉 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~7999 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~411 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
10b1ddb
to
7944b05
Compare
e39e376
to
782826b
Compare
21ae02c
to
cee1752
Compare
@taipeicoder I made a change to the theme list that replaces the flex layout with the grid layout, and then we don't need to do any calculations to put the Pattern Assembler CTA in the 4th row. I checked the layout with different viewport widths and it looks good. Do you think is there any side effects? |
flex-grow: 1; | ||
.pattern-assembler-cta-wrapper { | ||
grid-column: 1/-1; | ||
grid-row-start: 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well! One minor detail, the PR description says:
The styling of the CTA is also modified to match the style of theme showcase, CTA will be placed on 3rd row of the theme list
We should update the PR description if that's no longer the case, and placing the CTA in the 4th row instead 🙂
<PatternAssemblerCta | ||
onButtonClick={ () => | ||
window.location.assign( | ||
`/start/with-theme?ref=calypshowcase&theme=${ BLANK_CANVAS_DESIGN.slug }` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the theme parameter you are talking about p1675307895826869/1675301136.567349-slack-CRWCHQGUB, ya?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right
Proposed Changes
Testing Instructions
document.cookie = 'flags=pattern-assembler/logged-out-showcase;max-age=1209600;path=/'
Testing Flow Recording
Go to Assembler Flow
Go to Editor
Lat0IN.mov
kd55zz.mov
CTA position
CTA styling
Pre-merge Checklist
Related to #71706