[prototype] Product sync feed status UI #2017
Draft
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.
Related to #2007
Changes proposed in this Pull Request:
This PR is a prototype UI for showing the status of the product feed (data source) and potentially guiding merchant to set it up. It's not intended to ship as is – is a starting point for deciding what minimal UI we need in 2.7.
Marketing > Facebook > Product sync
tab. Feed UI / info should be on this tab as it's part of syncing products (should not be a separate tab).I've prototyped a mini "component" (in PHP - see
render_status_item()
) to generically prototype all these and give us some flexibility. Note this is not completely implemented (e.g. colours, no copy to clipboard), just a sketch to help prototype.The component has the following params, most are optional:
label
The main heading label on the left.text
The primary text status / info label (on the right).status
An optional status (success error warning
) to add colour and an icon.help_tip
Tooltip for the help icon button.link_label
Link label text.link_url
Link destination URL.link_is_external
Specifytrue
to show the "external" icon.info_text
Additional status/detailed info, rendered smaller. E.g. last sync results.clipboard_label
Label / prompt.clipboard_content
Text to copy to clipboard.Feed status prototypes
How to test the changes in this Pull Request:
tbc
Changelog entry
tbc