From 8acba53f3087d32449610f0bb5b3c21c873a7359 Mon Sep 17 00:00:00 2001 From: Valter Lorran Date: Fri, 4 Oct 2024 00:53:08 -0300 Subject: [PATCH] Add the Review Site task completion logic --- packages/launchpad/src/setup-actions.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/launchpad/src/setup-actions.ts b/packages/launchpad/src/setup-actions.ts index 83573d34dca61..4554ca7e9cdd0 100644 --- a/packages/launchpad/src/setup-actions.ts +++ b/packages/launchpad/src/setup-actions.ts @@ -123,6 +123,17 @@ export const setUpActionsForTasks = ( { useCalypsoPath = false; break; + case 'review_site': + action = () => { + // redirects to the site slug home page in a new tab + window.open( `https://${ siteSlug }`, '_blank' ); + updateLaunchpadSettings( siteSlug, { + checklist_statuses: { [ task.id ]: true }, + } ); + }; + useCalypsoPath = false; + break; + default: logMissingCalypsoPath = true; useCalypsoPath = false;