Skip to content
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

Documentation notice after import #267

Merged
merged 2 commits into from
Sep 19, 2023
Merged

Conversation

cristian-ungureanu
Copy link
Contributor

@cristian-ungureanu cristian-ungureanu commented Aug 1, 2023

Summary

Added the documentation notice after the import. The documentation notice is only visible if the import process is successful and if the starter site has the doc_url property defined in this file: https://github.com/Codeinwp/demo-data-exporter/blob/master/front-end/class-dde-frontend.php

Test instructions

  • Add the following lines to your theme's functions.php file
define( 'TPC_USE_STAGING', true );
define( 'TPC_API_STAGING', 'https://demosites.io/wp-json/demosites-api/sites' );
  • Import the podcast starter site as it's the only one that has a doc link
  • Check if the notification appears in the modal after the import
  • Check if the link works well

Note: I still have to add the doc_url parameter inside the exporter, I'm waiting for an answer regarding the links.

Closes Codeinwp/neve#3956, #247.

@pirate-bot
Copy link
Collaborator

pirate-bot commented Aug 1, 2023

Plugin build for baa81b3 is ready 🛎️!

Copy link
Member

@HardeepAsrani HardeepAsrani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one suggestion to keep it consistent with the proposed design.

return (
<div className="doc-notice">
{ url ? (
<a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use the <ExternalLink component from Gutenberg instead of <a as it adds the icon before the link as Design team has asked:

https://developer.wordpress.org/block-editor/reference-guides/components/external-link/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, makes sense.

@cristian-ungureanu cristian-ungureanu linked an issue Aug 2, 2023 that may be closed by this pull request
@irinelenache
Copy link

@cristian-ungureanu Tested and everything's fine here 👍

@cristian-ungureanu cristian-ungureanu merged commit f4d41ae into development Sep 19, 2023
5 checks passed
@cristian-ungureanu cristian-ungureanu deleted the feat/doc-link branch September 19, 2023 08:47
@pirate-bot
Copy link
Collaborator

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Indicate that an issue has been resolved and released in a particular version of the product.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add documentation link after Starter Site Import
4 participants