starter-sites-onboarding-notice#465
Open
harshitarora-in wants to merge 1 commit into
Open
Conversation
Collaborator
There was a problem hiding this comment.
Pull request overview
Adds a dismissible onboarding promo notice to the Site List step, with localized backend data for visibility, dismissal, license-tier-specific copy, and dashboard redirect URL handling.
Changes:
- Added the promo notice React component and inserted it into the Site List flow.
- Added SCSS styling and imported it into onboarding styles.
- Added AJAX dismissal handling, localization data, tier-aware promo selection, and admin URL fallback data.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
onboarding/src/style.scss |
Imports the new promo notice stylesheet. |
onboarding/src/scss/_onboarding-promo-notice.scss |
Adds layout and responsive styles for the onboarding promo notice. |
onboarding/src/Components/Steps/SiteList.js |
Renders the new promo notice between filters and sites. |
onboarding/src/Components/OnboardingPromoNotice.js |
Implements promo display, tier-specific message, mailto CTA, and dismissal action. |
onboarding/src/Components/Header.js |
Updates exit redirect to use localized admin URL fallback. |
includes/Admin.php |
Adds dismissal option/action, promo localization data, tier decision logic, and admin URL localization. |
Comments suppressed due to low confidence (1)
onboarding/src/Components/OnboardingPromoNotice.js:23
- The mailto subject is user-facing text but is not wrapped in the WordPress i18n helpers used for the visible notice strings. This leaves the generated email subject untranslated for localized users.
const requestSiteLink =
'mailto:contact@themeisle.com?subject=' +
encodeURIComponent( 'Starter Site Request' ) +
'&body=' +
encodeURIComponent( emailBody );
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+224
to
+225
| if ( in_array( $neve_plan, array( 1, 2, 3 ), true ) ) { | ||
| return in_array( $neve_plan, array( 2, 3 ), true ); |
| } | ||
|
|
||
| unset( $response['code'] ); | ||
| unset( $response['message'] ); |
| 'onboardingDone' => array( | ||
| 'ajaxURL' => esc_url( admin_url( 'admin-ajax.php' ) ), | ||
| 'nonce' => wp_create_nonce( 'onboarding_done_nonce' ), | ||
| 'adminUrl' => admin_url(), |
Comment on lines
+11
to
+21
| 'Hi Neve team,\n\n' + | ||
| "I'm looking for a starter site for the following project:\n\n" + | ||
| 'Project type: (e.g. Restaurant, Law Firm, SaaS)\n\n' + | ||
| 'Key pages needed: (e.g. Home, About, Services, Contact)\n\n' + | ||
| 'Style preference: (e.g. Minimal, Bold, Corporate)\n\n' + | ||
| 'Any references: (optional)\n\n' + | ||
| 'Thanks'; | ||
|
|
||
| const requestSiteLink = | ||
| 'mailto:contact@themeisle.com?subject=' + | ||
| encodeURIComponent( 'Starter Site Request' ) + |
Comment on lines
+53
to
+59
| const dismissNotice = () => { | ||
| setIsVisible( false ); | ||
| ajaxAction( | ||
| tiobDash.onboardingPromoNotice.ajaxURL, | ||
| 'dismiss_onboarding_promo_notice', | ||
| tiobDash.onboardingPromoNotice.nonce | ||
| ).catch( () => null ); |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
dismiss_onboarding_promo_notice) and stored in plugin options.request a sitemailto CTA./wp-admin.Will affect visual aspect of the product
YES
Screenshots
Free/personal plan usersBusiness/agency UsersTest instructions
request a sitemailto link.Check before Pull Request is ready:
Closes #.