magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 682 forks source link

[feature]: (Admin / magento-upward-connector) Admin preview links should launch a PWA with staging data #1160

Open zetlen opened 5 years ago

zetlen commented 5 years ago

 

Is your feature request related to a problem? Please describe. Current state Magento frontend has a "preview staged content mode", where a business user can preview a content or data change by launching a browser window with a storefront simulating the published change from within the Admin panel. Stores running PWA Studio PWAs don't have this functionality; the PWA has no way to display staged data in a preview mode, and the admin doesn't know to link to it.

Describe the solution you'd like

  1. The API layer must allow a flag (encoded into the auth token, in an HTTP header, a URL parameter, or otherwise) that makes all preview-enabled queries return staging data
  2. The PWA must be configurable at runtime to use this flag, by injecting the new admin auth token or behavior.
  3. The magento-upward-connector must modify admin preview link functionality to open PWA-enabled storefronts with this flag enabled.

 

Acceptance Criteria

awilcoxa commented 5 years ago

Need to submit feature request to GQL and link to this ticket. Required for support of admin preview of a PWA

sirugh commented 3 years ago

@magento export issue to JIRA project PWA as Story

github-jira-sync-bot commented 3 years ago

:white_check_mark: Jira issue https://jira.corp.magento.com/browse/PWA-1752 is successfully created for this GitHub issue.

tigrensolutions commented 1 year ago

We've found a solution for the preview mode problem in Magento PWA. We hope it'll be helpful to you.