Skip to content

[WAUM] Added Loading States for API flows#3272

Closed
woo-ardsouza wants to merge 1 commit intomainfrom
waum-loading-states
Closed

[WAUM] Added Loading States for API flows#3272
woo-ardsouza wants to merge 1 commit intomainfrom
waum-loading-states

Conversation

@woo-ardsouza
Copy link
Copy Markdown
Contributor

Description

In this PR, I added loading state to the Connect, Disconnect, Event Configs creation flow to prevent multiple clicks and to update the end-user on the status of the API call.

Type of change

  • New feature (non-breaking change which adds functionality)

Changelog entry

Added Loading States to WAUM flows

Test Plan

  1. Open WhatsApp Utility tab
  2. Connect WhatsApp Account by clicking Done in the Onboarding view.
  3. Create Event Config by clicking Save in the Manage Event view.
  4. Disconnect WhatsApp Account by clicking Disconnect in the confirmation modal.
  5. Validate Spinner appears for the clicked button and the buttons are not clickable

Screen Recording

Screen.Recording.2025-05-29.at.12.21.40.PM.mov

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@woo-ardsouza has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 29, 2025

📦 Latest Plugin Build

Built at: 2025-05-29T22:28:37.556Z
Commit: 6a92d62
Size: 1.1M

Download: Click here to download the plugin

To download: Click the link above → Scroll to bottom → Download "facebook-for-woocommerce" artifact

@woo-ardsouza woo-ardsouza force-pushed the waum-loading-states branch from ed365ed to 9801209 Compare May 29, 2025 22:27
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@woo-ardsouza has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@woo-ardsouza merged this pull request in 6ac09a6.

sharunaanandraj pushed a commit that referenced this pull request May 29, 2025
Summary:
## Description
In this PR, I added loading state to the Connect, Disconnect, Event Configs creation flow to prevent multiple clicks and to update the end-user on the status of the API call.

### Type of change
- New feature (non-breaking change which adds functionality)

## Changelog entry
Added Loading States to WAUM flows

Pull Request resolved: #3272

Test Plan:
1. Open WhatsApp Utility tab
2. Connect WhatsApp Account by clicking Done in the Onboarding view.
3. Create Event Config by clicking Save in the Manage Event view.
4. Disconnect WhatsApp Account by clicking Disconnect in the confirmation modal.
5. Validate Spinner appears for the clicked button and the buttons are not clickable

## Screen Recording
https://github.com/user-attachments/assets/96381fc1-0d07-47c1-8327-a26b16b92403

Reviewed By: sharunaanandraj

Differential Revision: D75625482

Pulled By: woo-ardsouza

fbshipit-source-id: 043e28ae8639ae85861f2f5581028964d5c763ab
@tzahgr tzahgr mentioned this pull request Jun 4, 2025
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