From 7a8a190c3e795d58fec51f447e6803599a8ad8a8 Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Wed, 12 Feb 2025 15:29:35 +0100
Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Rename=20internal=20busy-s?=
=?UTF-8?q?tate=20IDs?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../resources/js/hooks/useHandleConnections.js | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/modules/ppcp-settings/resources/js/hooks/useHandleConnections.js b/modules/ppcp-settings/resources/js/hooks/useHandleConnections.js
index 55058a82c..2a6423f96 100644
--- a/modules/ppcp-settings/resources/js/hooks/useHandleConnections.js
+++ b/modules/ppcp-settings/resources/js/hooks/useHandleConnections.js
@@ -33,10 +33,9 @@ const MESSAGES = {
};
const ACTIVITIES = {
- CONNECT_SANDBOX: 'ISU_LOGIN_SANDBOX',
- CONNECT_PRODUCTION: 'ISU_LOGIN_PRODUCTION',
- CONNECT_ISU: 'ISU_LOGIN',
- CONNECT_MANUAL: 'MANUAL_LOGIN',
+ OAUTH_VERIFY: 'oauth/login',
+ API_LOGIN: 'auth/api-login',
+ API_VERIFY: 'auth/verify-login',
};
export const useHandleOnboardingButton = ( isSandbox ) => {
@@ -124,7 +123,7 @@ export const useHandleOnboardingButton = ( isSandbox ) => {
* visual cue to the user that something is still processing in the background.
*/
await withActivity(
- ACTIVITIES.CONNECT_ISU,
+ ACTIVITIES.OAUTH_VERIFY,
'Validating the connection details',
async () => {
await authenticateWithOAuth(
@@ -182,7 +181,7 @@ const useConnectionBase = () => {
},
handleCompleted: async () => {
await withActivity(
- 'auth',
+ ACTIVITIES.API_VERIFY,
'Verifying Authentication',
async () => {
try {
@@ -227,7 +226,7 @@ export const useDirectAuthentication = () => {
const handleDirectAuthentication = async ( connectionDetails ) => {
return withActivity(
- ACTIVITIES.CONNECT_MANUAL,
+ ACTIVITIES.API_LOGIN,
'Connecting manually via Client ID and Secret',
async () => {
let data;