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

chore(passport|console): Add live preview for Designer #2720

Merged

Conversation

Cosmin-Parvulescu
Copy link
Contributor

@Cosmin-Parvulescu Cosmin-Parvulescu commented Oct 17, 2023

Description

  • Updated components with additional props required for live preview
  • Added some ts-ignores here and there
  • Added new rollup_action = preview
  • Moved reset to default to bottom in designer
  • Removed plan gate on designer action
  • Added getSupportedRollupAction for better error message
  • Added new param to GetAppPublicProps that returns theme for app even if plan is not PRO

Related Issues

Testing

  1. Create app
  2. Publish app
  3. Go to designer
  4. Click on preview
  5. Change whatever
  6. Click on Open in new tab
  7. Wonder at the result
  8. Authenticate
  9. Fill required authorization fields
  10. Wonder at the results
  11. Check that you can't continue
  12. Check that cancel closes the tab

Checklist

  • I have read the CONTRIBUTING guidelines
  • I have tested my code (manually and/or automated if applicable)
  • I have updated the documentation (if necessary)

@Cosmin-Parvulescu Cosmin-Parvulescu added the enhancement Indicates new feature requests label Oct 17, 2023
@Cosmin-Parvulescu Cosmin-Parvulescu self-assigned this Oct 17, 2023
@Cosmin-Parvulescu Cosmin-Parvulescu marked this pull request as ready for review October 17, 2023 15:32
@@ -99,8 +102,9 @@ export const loader: LoaderFunction = getRollupReqFunctionErrorWrapper(

if (rollup_action && !isSupportedRollupAction(rollup_action))
throw new BadRequestError({
message:
'only Rollup action supported are connect, create, and reconnect ',
message: `only Rollup action supported are: ${getSupportedRollupActions().join(
Copy link
Contributor

Choose a reason for hiding this comment

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

minor nit but should be 'actions'

message:
'only Rollup action supported are connect, create, and reconnect ',
message: `only Rollup action supported are: ${getSupportedRollupActions().join(
', '
Copy link
Contributor

Choose a reason for hiding this comment

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

Putting this here as a reminder from our chat that preview should (eventually) redirect to authenticate and not the connect flow.

@betimshahini betimshahini merged commit f12abd8 into main Oct 18, 2023
15 of 16 checks passed
@betimshahini betimshahini deleted the chore/passport|console/Add-live-preview-for-Designer branch October 18, 2023 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore(passport|console): Add live preview for Designer
2 participants