-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Sales channel page to promote Ecomdash plugin adoption #335
Conversation
src/components/SalesChannel.js
Outdated
className="nfd-button nfd-button--primary" | ||
variant="primary" | ||
type="button" | ||
as={ canAccessGlobalCTB ? hasEcomdash ? ecomdashStatus.data.isInstalled ? "a" : "button" : "button" : null } |
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.
can we make it this way for better readability
as={ canAccessGlobalCTB ? hasEcomdash ? ecomdashStatus.data.isInstalled ? "a" : "button" : "button" : null } | |
as={ canAccessGlobalCTB ? ( hasEcomdash ? ( ecomdashStatus.data.isInstalled ? "a" : "button" ) : "button" ) : null } |
src/components/SalesChannel.js
Outdated
) : null} | ||
id={ecomdashStatus.data.isInstalled ? "manage-ecomdash" : "install-ecomdash" } | ||
> | ||
{ecomdashStatus.data.isInstalled ? ecomdashSetupStatus ? __("Get Started Now", "wp-module-ecommerce") : __("Go to Ecomdash", "wp-module-ecommerce") : __("Get Started Now", "wp-module-ecommerce") } |
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.
{ecomdashStatus.data.isInstalled ? ecomdashSetupStatus ? __("Get Started Now", "wp-module-ecommerce") : __("Go to Ecomdash", "wp-module-ecommerce") : __("Get Started Now", "wp-module-ecommerce") } | |
{ecomdashStatus.data.isInstalled ? ( ecomdashSetupStatus ? __("Get Started Now", "wp-module-ecommerce") : __("Go to Ecomdash", "wp-module-ecommerce") ) : __("Get Started Now", "wp-module-ecommerce") } |
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.
@ramyakrishnai As discussed, button label when in to be installed
state will be Install now
src/components/SalesChannel.js
Outdated
<span className="nfd-flex-1 nfd-text-[#4A5567] nfd-leading-5 nfd-font-medium"> | ||
{__("Accurately sync kits, multipacks, and components without any headaches.", "wp-module-ecommerce")} | ||
<br /> | ||
{__("headaches.", "wp-module-ecommerce")} |
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.
is this expected, as we already have one in above line as well.
src/components/SalesChannel.js
Outdated
<div className="nfd-text-[#000000] nfd-leading-5 nfd-font-medium nfd-mt-5 nfd-mb-11"> | ||
{__("Print barcodes for your products that can be", "wp-module-ecommerce")} | ||
<br /> | ||
{__("used for labedivng and scanning your", "wp-module-ecommerce")} |
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.
is this a spelling mistake labeling
.
{__("Print shipping labels with a preferred carrier right from your ecomdash account and save on postage.", "wp-module-ecommerce")} | ||
<br /> | ||
{__("right from your ecomdash account and save", "wp-module-ecommerce")} | ||
<br /> |
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.
these needs to be removed either from the above line or from here
right from your ecomdash account and save on postage
.
src/components/SalesChannel.js
Outdated
<br /> | ||
{__("the manual data entry needed when creating", "wp-module-ecommerce")} | ||
<br /> | ||
{__("new listings.", "wp-module-ecommerce")} |
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.
these lines are written twice
src/components/SalesChannel.js
Outdated
@@ -113,7 +117,7 @@ export function SalesChannel(props) { | |||
) : null} | |||
id={ecomdashStatus.data.isInstalled ? "manage-ecomdash" : "install-ecomdash"} | |||
> | |||
{ecomdashStatus.data.isInstalled ? (ecomdashSetupStatus ? __("Get Started Now", "wp-module-ecommerce") : __("Go to Ecomdash", "wp-module-ecommerce")) : __("Install Now", "wp-module-ecommerce")} | |||
{ecomdashStatus.data.isInstalled ? (ecomdashLoading ? <><Spinner /> __("Loading...", "wp-module-ecommerce") </> : ecomdashSetupStatus ? __("Get Started Now", "wp-module-ecommerce") : __("Go to Ecomdash", "wp-module-ecommerce")) : __("Install Now", "wp-module-ecommerce")} |
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.
add a parenthisis for double ternary operation for better readablity
Proposed changes
JIRA: https://jira.newfold.com/browse/PRESS0-1480
Type of Change
Checklist
Further comments