From 06a547875e1543650872da6dab6356f4642a3f04 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 13 Mar 2026 17:37:54 -0400 Subject: [PATCH 1/3] Add a Rapid3Manager component for using Rapid v3 beta This adds : - A `rapid3.ts` component for managing the embedded Rapid editor (mostly copied from the preexisting `rapid.ts` component) - VITE_RAPID3_URL env variable to point to the location of the new Rapid (currently locally hosted) - Some changes to the startup flow to better insert customizations into the `prepareAsync` -> `initAsync` -> `startAsync` pipeline `edit.vue` currently hardcodes `rapid3Manager` for testing, but we will make it so that the editor can be configurable. --- .env.example | 1 + pages/workspace/[id]/edit.vue | 18 ++- services/index.ts | 109 ++++++++--------- services/rapid3.ts | 213 ++++++++++++++++++++++++++++++++++ 4 files changed, 286 insertions(+), 55 deletions(-) create mode 100644 services/rapid3.ts diff --git a/.env.example b/.env.example index 87ceb8c..63edbe7 100644 --- a/.env.example +++ b/.env.example @@ -28,6 +28,7 @@ VITE_OSM_URL=https://osm.workspaces-dev.sidewalks.washington.edu/ # --- Embedded Editors --------------------------------------------------------- # Rapid editor (OSW editing) and Pathways editor (GTFS Pathways editing). # These are standalone apps hosted separately. +VITE_RAPID3_URL=http://127.0.0.1:8080/dist/ VITE_RAPID_URL=https://rapid.workspaces-dev.sidewalks.washington.edu/ VITE_PATHWAYS_EDITOR_URL=https://pathways.workspaces-dev.sidewalks.washington.edu/ diff --git a/pages/workspace/[id]/edit.vue b/pages/workspace/[id]/edit.vue index ea2b57d..687e725 100644 --- a/pages/workspace/[id]/edit.vue +++ b/pages/workspace/[id]/edit.vue @@ -6,13 +6,17 @@