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

Add Refresh Resource Button to Blocks and Shortcode UI #760

Merged
merged 15 commits into from
Jan 22, 2025

Conversation

n7studios
Copy link
Contributor

@n7studios n7studios commented Jan 7, 2025

Summary

Adds refresh buttons to the Form, Form Trigger and Product blocks and shortcodes, allowing creators to refresh the list of cached resources (forms, products) after adding them to Kit, without having to navigate to Settings > Kit (example ticket).

Screenshot 2025-01-07 at 17 50 43

Testing

  • testRefreshResourcesOnFormBlock: Test that refreshing resources works on the Form block
  • testRefreshResourcesOnFormShortcodeUsingTinyMCE: Test that refreshing resources works on the Form shortcode in the TinyMCE editor
  • testRefreshResourcesOnFormShortcodeUsingTextEditor: Test that refreshing resources works on the Form shortcode in the text editor
  • testRefreshResourcesOnFormTriggerBlock: Test that refreshing resources works on the Form Trigger block
  • testRefreshResourcesOnFormTriggerShortcodeUsingTinyMCE: Test that refreshing resources works on the Form Trigger shortcode in the TinyMCE editor
  • testRefreshResourcesOnFormTriggerShortcodeUsingTextEditor: Test that refreshing resources works on the Form Trigger shortcode in the text editor
    -testRefreshResourcesOnProductBlock: Test that refreshing resources works on the Product block
  • testRefreshResourcesOnProductShortcodeUsingTinyMCE: Test that refreshing resources works on the Product shortcode in the TinyMCE editor
  • testRefreshResourcesOnProductShortcodeUsingTextEditor: Test that refreshing resources works on the Product shortcode in the text editor

Checklist

@n7studios n7studios self-assigned this Jan 7, 2025
@n7studios n7studios requested review from a team, noelherrick and corydhmiller and removed request for a team January 14, 2025 09:59
@n7studios n7studios marked this pull request as ready for review January 14, 2025 09:59
resources/backend/js/gutenberg.js Outdated Show resolved Hide resolved
@n7studios n7studios merged commit 08c9dc4 into main Jan 22, 2025
77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants