From 62311d812b45316d34788b17f2f8720eafe94aaa Mon Sep 17 00:00:00 2001 From: shweta2101 Date: Mon, 12 Oct 2026 17:15:28 +0530 Subject: [PATCH] Add Rapid3 editor selection for OSW reviews Pass workspace type to the review overlay and toolbar and add an editor selection flow for OSW workspaces. Toolbar now shows a split "Edit Here" dropdown (Rapid 2 default and Rapid 3 beta) when rapid3Manager is available and the workspace type is 'osw'; the primary action remains Rapid 2. The edit emit/signature was extended to include the chosen editor, and the review page openEditor now accepts an editor parameter and adds an editor query param for osw navigation. Updated E2E expectations and snapshot and added unit tests for the toolbar behavior. --- components/review/Overlay.vue | 7 +- components/review/Toolbar.vue | 43 +++++++++++- pages/workspace/[id]/review.vue | 8 ++- test/e2e/review.spec.ts | 34 ++++++++++ ...ils-and-an-attribute-diff-panel-1.aria.yml | 3 +- test/unit/components/ReviewToolbar.test.ts | 65 +++++++++++++++++++ 6 files changed, 153 insertions(+), 7 deletions(-) create mode 100644 test/unit/components/ReviewToolbar.test.ts diff --git a/components/review/Overlay.vue b/components/review/Overlay.vue index e840c0f1..890e5327 100644 --- a/components/review/Overlay.vue +++ b/components/review/Overlay.vue @@ -4,6 +4,7 @@ v-model:show-details="showDetails" v-model:show-discussion="showDiscussion" :item="item" + :workspace-type="workspaceType" @edit="props.onEdit" @resolve="$emit('resolve')" @back="emit('back')" @@ -24,10 +25,14 @@