From 4c4d611bd9bbbdebdf8f786b9cd92236fb8124f0 Mon Sep 17 00:00:00 2001 From: colinfrederickson <110066636+colinfrederickson@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:04:34 -0600 Subject: [PATCH 1/3] Add "next" URL to job completion response Added a "next" action in the job completion response that redirects users to the "Available Downloads" section of the Files page in Flatfile. This enhancement provides a smoother user experience by guiding users directly to their exported files. --- plugins/export-workbook/src/plugin.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/export-workbook/src/plugin.ts b/plugins/export-workbook/src/plugin.ts index df0ffad6b..962da54c2 100644 --- a/plugins/export-workbook/src/plugin.ts +++ b/plugins/export-workbook/src/plugin.ts @@ -198,6 +198,11 @@ export const run = async ( outcome: { message: 'Data was successfully written to Excel file and uploaded. You can access the workbook in the "Available Downloads" section of the Files page in Flatfile.', + next: { + type: 'url', + url: `https://spaces.flatfile.com/space/${spaceId}/files?mode=export`, + label: 'Available Downloads', + }, }, }) From 242dea4612a8d4e661910d152856cc392ad36a4c Mon Sep 17 00:00:00 2001 From: Carl Brugger Date: Wed, 18 Oct 2023 15:50:12 -0500 Subject: [PATCH 2/3] fix: relative url --- plugins/export-workbook/src/plugin.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/export-workbook/src/plugin.ts b/plugins/export-workbook/src/plugin.ts index 962da54c2..15d38281e 100644 --- a/plugins/export-workbook/src/plugin.ts +++ b/plugins/export-workbook/src/plugin.ts @@ -198,11 +198,11 @@ export const run = async ( outcome: { message: 'Data was successfully written to Excel file and uploaded. You can access the workbook in the "Available Downloads" section of the Files page in Flatfile.', - next: { - type: 'url', - url: `https://spaces.flatfile.com/space/${spaceId}/files?mode=export`, - label: 'Available Downloads', - }, + next: { + type: 'url', + url: `/space/${spaceId}/files?mode=export`, + label: 'Available Downloads', + }, }, }) From 9bf65dec66c9d48ab91a7b10c3cf31ae08c10da5 Mon Sep 17 00:00:00 2001 From: Carl Brugger Date: Wed, 18 Oct 2023 15:52:29 -0500 Subject: [PATCH 3/3] Create few-suits-rule.md --- .changeset/few-suits-rule.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/few-suits-rule.md diff --git a/.changeset/few-suits-rule.md b/.changeset/few-suits-rule.md new file mode 100644 index 000000000..b2d9ed225 --- /dev/null +++ b/.changeset/few-suits-rule.md @@ -0,0 +1,5 @@ +--- +'@flatfile/plugin-export-workbook': patch +--- + +Add "Next" url to job completion message