-
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
Replace overview when site is with a pending migration #95497
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8e6a822
Fix bottom spacing in the content
renatho 5b6d58e
Extract hero components
renatho c245302
Move type to follow the same standard of the others
renatho 4ecbb13
Add key to the loop
renatho 884d32a
Extract grid component
renatho 80ddebc
Add functions to get migration status and migration type
renatho aaa9573
Tweak styles for when it does not have a link
renatho a9d4347
Add migration overview variation
renatho 8928500
Temporarily add check for pending
renatho 2ddfa20
Redirect users to the proper step
renatho f420907
Redirect users to the proper step when the user didn't buy a plan yet
renatho 762a53d
Add query string to trigger the calypso_signup_start event
renatho 838443e
Add tests for the links
renatho f96b9a6
Join imports
renatho 1908e81
Extract canInstallPlugins logic
renatho d3c7684
Improve check to match what is checked in the flows
renatho 5d7373b
Fix tests
renatho ac24816
Fix type to get from relative path
renatho 61c8da1
Fix DYI URL
renatho fea5c28
Remove not used conditional
renatho 2e90338
Update tests to also mock the canInstallPlugins
renatho 8f4c95a
Remove missed import after rebase
renatho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Button } from '@wordpress/components'; | ||
import type { ReactNode, ComponentProps } from 'react'; | ||
|
||
import './style.scss'; | ||
|
||
interface HostingHeroProps { | ||
children: ReactNode; | ||
} | ||
|
||
export function HostingHero( { children }: HostingHeroProps ) { | ||
return <div className="hosting-hero">{ children }</div>; | ||
} | ||
|
||
export function HostingHeroButton( props: ComponentProps< typeof Button > ) { | ||
return <Button variant="primary" className="hosting-hero-button" { ...props } />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@import "@automattic/components/src/styles/typography"; | ||
|
||
.hosting-hero { | ||
grid-column: 1 / -1; | ||
text-align: center; | ||
margin-bottom: 70px; | ||
|
||
> h1 { | ||
margin-top: 30px; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-size: rem(36px); | ||
font-family: Recoleta, sans-serif; | ||
} | ||
> p { | ||
font-style: normal; | ||
font-weight: 400; | ||
font-size: rem(18px); | ||
} | ||
} | ||
|
||
.hosting-hero-button { | ||
margin: 0 5px; | ||
padding: 10px 14px; | ||
font-size: rem(14px); | ||
height: 40px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Components were extracted so that we could reuse them.