#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
Restructure Portal code to be inside Editor (#6857)
James Brunton11ba3814e5ba
diff --git a/.dockerignore b/.dockerignoreindex 33be4b6ee1..492480e3a0 100644--- a/.dockerignore+++ b/.dockerignore@@ -27,7 +27,6 @@ node_modules/**/node_modules/frontend/node_modules/frontend/editor/dist/-frontend/dist-portal/frontend/editor/playwright-report/.npm/.yarn/diff --git a/.gitleaksignore b/.gitleaksignoreindex 783a098f68..089de4fedb 100644--- a/.gitleaksignore+++ b/.gitleaksignore@@ -15,10 +15,10 @@ testing/compose/validate-mcp-test.sh:curl-auth-header:92testing/compose/validate-mcp-test.sh:curl-auth-header:116# Storybook example showing curl with a fake Bearer token placeholder (sk_live_a3f8...).-frontend/shared/components/CodeBlock.stories.tsx:curl-auth-header:4+frontend/editor/src/proprietary/ui/CodeBlock.stories.tsx:curl-auth-header:5# Truncated placeholder API key in portal docs example (sk_live_8f2c...e10) - not a real secret.-frontend/portal/src/components/docs/GettingStartedSection.tsx:generic-api-key:31+frontend/editor/src/portal/components/docs/GettingStartedSection.tsx:generic-api-key:30# False positive: generic-api-key matches the Java type name "X509Certificate"# in a method signature (CreateSignatureBase.resolveSignatureAlgorithm) - not a secret.diff --git a/.taskfiles/frontend.yml b/.taskfiles/frontend.ymlindex 3ad0486759..52277b5b04 100644--- a/.taskfiles/frontend.yml+++ b/.taskfiles/frontend.yml@@ -128,37 +128,6 @@ tasks:- task: dev:_runvars: { MODE: prototypes, PORT: '{{.PORT}}', BACKEND_URL: '{{.BACKEND_URL}}', OPEN: '{{.OPEN}}' }- dev:portal:- desc: "Start developer portal dev server"- ignore_error: true- deps: [install]- vars:- PORT: '{{.PORT | default "5173"}}'- BACKEND_URL: '{{.BACKEND_URL | default "http://localhost:8080"}}'- EDITOR_URL: '{{.EDITOR_URL | default ""}}'- OPEN: '{{.OPEN | default ""}}'- SUBPATH: '{{.SUBPATH | default ""}}'- MOCKS: '{{.MOCKS | default ""}}'- env:- BACKEND_URL: '{{.BACKEND_URL}}'- cmds:- - '{{if .SUBPATH}}RUN_SUBPATH={{.SUBPATH}} {{end}}{{if .MOCKS}}VITE_PORTAL_MOCKS={{.MOCKS}} {{end}}{{if .EDITOR_URL}}VITE_EDITOR_URL={{.EDITOR_URL}} {{end}}npx vite portal --port {{.PORT}}{{if .OPEN}} --open{{end}}'-- dev:portal:proxy:serve:- internal: true- vars:- PORT: '{{.PORT | default "3000"}}'- BACKEND_URL: '{{.BACKEND_URL | default "http://localhost:8080"}}'- EDITOR_DEV_URL: '{{.EDITOR_DEV_URL | default ""}}'- PORTAL_DEV_URL: '{{.PORTAL_DEV_URL | default ""}}'- env:- PORT: '{{.PORT}}'- BACKEND_URL: '{{.BACKEND_URL}}'- EDITOR_DEV_URL: '{{.EDITOR_DEV_URL}}'- PORTAL_DEV_URL: '{{.PORTAL_DEV_URL}}'- cmds:- - npx tsx scripts/dev-origin-proxy.ts-# ============================================================# Build# ============================================================@@ -205,29 +174,6 @@ tasks:cmds:- npx vite build editor --mode prototypes- build:portal:- desc: "Build developer portal"- deps: [install]- vars:- SUBPATH: '{{.SUBPATH | default ""}}'- cmds:- - '{{if .SUBPATH}}RUN_SUBPATH={{.SUBPATH}} {{end}}npx vite build portal'-- preview:portal:proxy:- desc: "Build + serve editor + portal behind one origin (prod-like auth testing)"- deps: [prepare]- vars:- PORT: '{{.PORT | default "3000"}}'- BACKEND_URL: '{{.BACKEND_URL | default "http://localhost:8080"}}'- env:- PORT: '{{.PORT}}'- BACKEND_URL: '{{.BACKEND_URL}}'- cmds:- - task: build:proprietary- vars: { PREVIEW: '1' }- - task: build:portal- vars: { SUBPATH: portal }- - npx tsx scripts/dev-origin-proxy.tsstorybook:desc: "Start Storybook dev server"@@ -263,8 +209,8 @@ tasks:deps: [install]cmds:# Globs so dpdm walks the whole tree. dpdm expands the braces itself, so this is- # shell-agnostic. Covers editor, portal, and the shared design system.- - npx dpdm "editor/src/**/*.{ts,tsx}" "portal/src/**/*.{ts,tsx}" "shared/**/*.{ts,tsx}" --circular --no-warning --no-tree --exit-code circular:1+ # shell-agnostic. Covers the whole editor tree, including the portal layer.+ - npx dpdm "editor/src/**/*.{ts,tsx}" --circular --no-warning --no-tree --exit-code circular:1lint:fix:desc: "Auto-fix lint issues"@@ -345,8 +291,6 @@ tasks:desc: "Typecheck scripts"deps: [prepare]cmds:- - task: typecheck:_run- vars: { PROJECT: scripts/tsconfig.json }- task: typecheck:_runvars: { PROJECT: editor/scripts/tsconfig.json }@@ -362,14 +306,7 @@ tasks:deps: [install]cmds:- task: typecheck:_run- vars: { PROJECT: portal/tsconfig.json }-- typecheck:shared:- desc: "Typecheck the shared design system"- deps: [install]- cmds:- - task: typecheck:_run- vars: { PROJECT: shared/tsconfig.json }+ vars: { PROJECT: editor/src/portal/tsconfig.json }typecheck:all:desc: "Typecheck all build variants"@@ -382,7 +319,6 @@ tasks:- task: typecheck:scripts- task: typecheck:prototypes- task: typecheck:portal- - task: typecheck:shared# ============================================================# Quality Gate@@ -411,7 +347,6 @@ tasks:- task: lint- task: format:check- task: build- - task: build:portal- task: test- task: storybook:build@@ -423,7 +358,6 @@ tasks:desc: "Run tests"cmds:- task: test:editor- - task: test:portaltest:editor:desc: "Run editor tests"@@ -431,12 +365,6 @@ tasks:cmds:- npx vitest run --root editor- test:portal:- desc: "Run portal tests"- deps: [prepare]- cmds:- - npx vitest run --root portal-test:watch:desc: "Run tests in watch mode"deps: [prepare]@@ -481,7 +409,7 @@ tasks:clean:desc: "Clean build artifacts and caches"cmds:- - cmd: powershell rm -Recurse -Force -ErrorAction SilentlyContinue node_modules/.vite, editor/dist, dist, dist-portal+ - cmd: powershell rm -Recurse -Force -ErrorAction SilentlyContinue node_modules/.vite, editor/dist, distplatforms: [windows]- - cmd: rm -rf node_modules/.vite editor/dist dist dist-portal+ - cmd: rm -rf node_modules/.vite editor/dist distplatforms: [linux, darwin]diff --git a/AGENTS.md b/AGENTS.mdindex 44647b0063..9afdad5937 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -139,7 +139,8 @@ The project structure is defined in `engine/pyproject.toml`. Any new dependencie#### Environment Variables- All `VITE_*` variables must be declared in the appropriate committed env file:- - `frontend/editor/.env` — core, proprietary, and shared vars+ - `frontend/editor/.env` — core and shared vars (base, loaded in every mode)+ - `frontend/editor/.env.proprietary` — proprietary-only vars, e.g. the admin portal's SaaS/account-link keys (layered on top of `.env` in proprietary mode)- `frontend/editor/.env.saas` — SaaS-only vars (layered on top of `.env` in SaaS mode)- `frontend/editor/.env.desktop` — desktop (Tauri)-only vars (layered on top of `.env` in desktop mode)- These files are committed to Git and must not contain private keysdiff --git a/LICENSE b/LICENSEindex 2b2f7fc085..971c9d0b16 100644--- a/LICENSE+++ b/LICENSE@@ -20,8 +20,8 @@ if that directory exists, is licensed under the license defined in "frontend/ediif that directory exists, is licensed under the license defined in "frontend/editor/src/cloud/LICENSE".* All content that resides under the "frontend/editor/src/prototypes/" directory of this repository,if that directory exists, is licensed under the license defined in "frontend/editor/src/prototypes/LICENSE".-* All content that resides under the "frontend/portal/" directory of this repository,-if that directory exists, is licensed under the license defined in "frontend/portal/LICENSE".+* All content that resides under the "frontend/editor/src/portal/" directory of this repository,+if that directory exists, is licensed under the license defined in "frontend/editor/src/portal/LICENSE".* Content outside of the above mentioned directories or restrictions above isavailable under the MIT License as defined below.diff --git a/Taskfile.yml b/Taskfile.ymlindex 34c7c8bc28..26895723d0 100644--- a/Taskfile.yml+++ b/Taskfile.yml@@ -79,86 +79,12 @@ tasks:OPEN: "true"dev:portal:- desc: "Start backend + developer portal concurrently on free ports"+ desc: "Start backend + editor; the portal is an admin route at /portal"vars:PORTS:sh: '{{if eq OS "windows"}}{{.FIND_FREE_PORT_PS}} 8080 5173{{else}}{{.FIND_FREE_PORT_SH}} 8080 5173{{end}}'BACKEND_PORT: '{{index (splitList "\n" .PORTS) 0}}'- PORTAL_PORT: '{{index (splitList "\n" .PORTS) 1}}'- deps:- - task: backend:dev- vars:- PORT: '{{.BACKEND_PORT}}'- SECURITY_ENABLELOGIN: "true"- POLICIES_ENABLED: "true"- - task: frontend:dev:portal- vars:- PORT: '{{.PORTAL_PORT}}'- BACKEND_URL: 'http://localhost:{{.BACKEND_PORT}}'- MOCKS: 'false'- OPEN: "true"-- dev:portal:all:- desc: "Start backend + developer portal + editor concurrently on free ports"- vars:- PORTS:- sh: '{{if eq OS "windows"}}{{.FIND_FREE_PORT_PS}} 8080 5173 5174{{else}}{{.FIND_FREE_PORT_SH}} 8080 5173 5174{{end}}'- BACKEND_PORT: '{{index (splitList "\n" .PORTS) 0}}'- PORTAL_PORT: '{{index (splitList "\n" .PORTS) 1}}'- EDITOR_PORT: '{{index (splitList "\n" .PORTS) 2}}'- deps:- - task: backend:dev- vars:- PORT: '{{.BACKEND_PORT}}'- SECURITY_ENABLELOGIN: "true"- POLICIES_ENABLED: "true"- - task: frontend:dev:portal- vars:- PORT: '{{.PORTAL_PORT}}'- BACKEND_URL: 'http://localhost:{{.BACKEND_PORT}}'- # Point the portal's "Editor" app switcher at the editor we spawn here.- EDITOR_URL: 'http://localhost:{{.EDITOR_PORT}}/'- MOCKS: 'false'- OPEN: "true"- - task: frontend:dev- vars:- PORT: '{{.EDITOR_PORT}}'- BACKEND_URL: 'http://localhost:{{.BACKEND_PORT}}'-- dev:portal:all:saas:- desc: "Start SaaS backend + developer portal + editor concurrently on free ports"- vars:- PORTS:- sh: '{{if eq OS "windows"}}{{.FIND_FREE_PORT_PS}} 8080 5173 5174{{else}}{{.FIND_FREE_PORT_SH}} 8080 5173 5174{{end}}'- BACKEND_PORT: '{{index (splitList "\n" .PORTS) 0}}'- PORTAL_PORT: '{{index (splitList "\n" .PORTS) 1}}'- EDITOR_PORT: '{{index (splitList "\n" .PORTS) 2}}'- deps:- - task: backend:dev:saas- vars:- PORT: '{{.BACKEND_PORT}}'- POLICIES_ENABLED: "true"- - task: frontend:dev:portal- vars:- PORT: '{{.PORTAL_PORT}}'- BACKEND_URL: 'http://localhost:{{.BACKEND_PORT}}'- EDITOR_URL: 'http://localhost:{{.EDITOR_PORT}}/'- MOCKS: 'false'- OPEN: "true"- - task: frontend:dev- vars:- PORT: '{{.EDITOR_PORT}}'- BACKEND_URL: 'http://localhost:{{.BACKEND_PORT}}'-- dev:portal:proxy:- desc: "Editor + portal on ONE origin + backend via live dev servers (shared-token login)"- vars:- PORTS:- sh: '{{if eq OS "windows"}}{{.FIND_FREE_PORT_PS}} 8080 3000 5173 5174{{else}}{{.FIND_FREE_PORT_SH}} 8080 3000 5173 5174{{end}}'- BACKEND_PORT: '{{index (splitList "\n" .PORTS) 0}}'- PROXY_PORT: '{{index (splitList "\n" .PORTS) 1}}'- EDITOR_PORT: '{{index (splitList "\n" .PORTS) 2}}'- PORTAL_PORT: '{{index (splitList "\n" .PORTS) 3}}'+ EDITOR_PORT: '{{index (splitList "\n" .PORTS) 1}}'deps:- task: backend:devvars:@@ -169,18 +95,7 @@ tasks:vars:PORT: '{{.EDITOR_PORT}}'BACKEND_URL: 'http://localhost:{{.BACKEND_PORT}}'- - task: frontend:dev:portal- vars:- PORT: '{{.PORTAL_PORT}}'- BACKEND_URL: 'http://localhost:{{.BACKEND_PORT}}'- SUBPATH: portal- MOCKS: 'false'- - task: frontend:dev:portal:proxy:serve- vars:- PORT: '{{.PROXY_PORT}}'- BACKEND_URL: 'http://localhost:{{.BACKEND_PORT}}'- EDITOR_DEV_URL: 'http://localhost:{{.EDITOR_PORT}}'- PORTAL_DEV_URL: 'http://localhost:{{.PORTAL_PORT}}'+ OPEN: "true"dev:saas:desc: "Start SaaS backend + frontend concurrently on free ports"@@ -228,24 +143,6 @@ tasks:- task: backend:build- task: frontend:build- preview:portal:proxy:- desc: "Build + serve editor + portal on ONE origin + backend (prod-like auth test)"- vars:- PORTS:- sh: '{{if eq OS "windows"}}{{.FIND_FREE_PORT_PS}} 8080 3000{{else}}{{.FIND_FREE_PORT_SH}} 8080 3000{{end}}'- BACKEND_PORT: '{{index (splitList "\n" .PORTS) 0}}'- PROXY_PORT: '{{index (splitList "\n" .PORTS) 1}}'- deps:- - task: backend:dev- vars:- PORT: '{{.BACKEND_PORT}}'- SECURITY_ENABLELOGIN: "true"- POLICIES_ENABLED: "true"- - task: frontend:preview:portal:proxy- vars:- PORT: '{{.PROXY_PORT}}'- BACKEND_URL: 'http://localhost:{{.BACKEND_PORT}}'-# ============================================================# Test# ============================================================diff --git a/app/proprietary/src/main/java/stirling/software/proprietary/access/model/ResourceType.java b/app/proprietary/src/main/java/stirling/software/proprietary/access/model/ResourceType.javaindex 9d0108db0f..4b32d6ae6a 100644--- a/app/proprietary/src/main/java/stirling/software/proprietary/access/model/ResourceType.java+++ b/app/proprietary/src/main/java/stirling/software/proprietary/access/model/ResourceType.java@@ -2,7 +2,8 @@ package stirling.software.proprietary.access.model;/** Types of resources whose access can be gated by {@link ResourceGrant}. */public enum ResourceType {- // The admin portal / processor (frontend/portal). Singleton resource (empty resourceId).+ // The admin portal / processor (frontend/editor/src/portal). Singleton resource (empty+ // resourceId).PORTAL,// A stored S3/MCP/API integration configuration.INTEGRATION_CONFIGdiff --git a/frontend/.gitignore b/frontend/.gitignoreindex 3a5de11c57..e07dce196a 100644--- a/frontend/.gitignore+++ b/frontend/.gitignore@@ -11,7 +11,6 @@# production/build/dist-/dist-portal/storybook-static/editor/build@@ -27,8 +26,8 @@# Root .gitignore ignores all .env* - whitelist only our committed ones, anchored# to their app so a stray top-level frontend/.env stays ignored (Storybook's SaaS# mock env is injected via .storybook/main.ts, not a file).-!/portal/.env!/editor/.env+!/editor/.env.proprietary!/editor/.env.desktop!/editor/.env.saasdiff --git a/frontend/.prettierignore b/frontend/.prettierignoreindex 63d7130f47..25caf7cd10 100644--- a/frontend/.prettierignore+++ b/frontend/.prettierignore@@ -1,5 +1,4 @@dist/-dist-portal/editor/dist/# Tauri/Cargo build output (binary assets named *.js etc. confuse Prettier).# Match nested target/ dirs too - provisioner/ and thumbnail-handler/ each@@ -9,7 +8,7 @@ editor/src-tauri/gen/node_modules/editor/public/vendor/# Auto-generated by MSW (`msw init`); regenerated verbatim, not hand-formatted.-portal/public/mockServiceWorker.js+editor/public/mockServiceWorker.js# Auto-generated OG/social-preview metadata (scripts/generate-og-metadata.mjs); regenerated verbatim.editor/public/og-metadata.jsoneditor/src/core/data/ogImageMap.jsondiff --git a/frontend/.storybook/main.ts b/frontend/.storybook/main.tsindex c016a5c37d..4d4aadc8f8 100644--- a/frontend/.storybook/main.ts+++ b/frontend/.storybook/main.ts@@ -6,16 +6,13 @@ import tsconfigPaths from "vite-tsconfig-paths";* Storybook 9 ships essentials, interactions, and docs as built-ins, so the* addon list is just the extras we want: theme switching + a11y auditing.*- * Story files live next to their components in shared/, portal/src/, and- * editor/src/ — the design system is shared by BOTH apps, so both surface- * their stories here. MDX docs pages live in portal/src/docs/.+ * Story files live next to their components under editor/src/ (which includes+ * the portal layer at editor/src/portal/). MDX docs pages live in+ * editor/src/portal/docs/.*/const config: StorybookConfig = {stories: [- "../portal/src/**/*.mdx",- "../portal/src/**/*.stories.@(ts|tsx)",- "../shared/**/*.mdx",- "../shared/**/*.stories.@(ts|tsx)",+ "../editor/src/portal/**/*.mdx","../editor/src/**/*.stories.@(ts|tsx)",],addons: ["@storybook/addon-themes", "@storybook/addon-a11y"],@@ -26,17 +23,21 @@ const config: StorybookConfig = {typescript: {reactDocgen: "react-docgen-typescript",},- // Serve the MSW worker file from portal/public so Storybook can intercept- // network calls the same way the dev portal does.- staticDirs: ["../portal/public"],+ // Serve the MSW worker file from the portal's public dir so Storybook can+ // intercept network calls the same way the dev portal does.+ staticDirs: ["../editor/public"],viteFinal: async (config) => {- // Wire @portal/* and @shared/* aliases directly on the Storybook bundler so- // portal story imports resolve without needing the portal's vite config.+ // Wire the @portal/* alias directly on the Storybook bundler so portal+ // story imports resolve without needing the portal's vite config.config.resolve = config.resolve ?? {};config.resolve.alias = {...(config.resolve.alias ?? {}),- "@portal": resolve(__dirname, "../portal/src"),- "@shared": resolve(__dirname, "../shared"),+ "@portal": resolve(__dirname, "../editor/src/portal"),+ // Direct layer aliases so .storybook config files (preview.tsx), which sit+ // outside src/ and so aren't covered by tsconfigPaths, can import layer+ // modules (e.g. the auth supabase client that moved into proprietary).+ "@proprietary": resolve(__dirname, "../editor/src/proprietary"),+ "@core": resolve(__dirname, "../editor/src/core"),};// Editor stories import via @app/* (proprietary→core fallback), @core/* and// @proprietary/*. Resolve them exactly the way the editor's own build does —diff --git a/frontend/.storybook/preview.tsx b/frontend/.storybook/preview.tsxindex 1f9c935fe6..d086613f44 100644--- a/frontend/.storybook/preview.tsx+++ b/frontend/.storybook/preview.tsx@@ -19,11 +19,11 @@ import { ThemeProvider } from "@portal/contexts/ThemeContext";import { UIProvider } from "@portal/contexts/UIContext";import { mantineTheme } from "@portal/theme/mantineTheme";import { handlers } from "@portal/mocks/handlers";-import { configureSupabase } from "@shared/auth/supabase/supabaseClient";+import { configureSupabase } from "@proprietary/auth/supabase/supabaseClient";import "@mantine/core/styles.css";-import "@shared/tokens/tokens.css";-import "@shared/tokens/base.css";+import "@core/tokens/tokens.css";+import "@core/tokens/base.css";// Start MSW once. Storybook runs in a browser so this uses the service worker.initialize({ onUnhandledRequest: "bypass" }, handlers);diff --git a/frontend/editor/.env.proprietary b/frontend/editor/.env.proprietarynew file mode 100644index 0000000000..ed5498ba3a--- /dev/null+++ b/frontend/editor/.env.proprietary@@ -0,0 +1,32 @@+###############################################################################+# Proprietary-build environment variables, layered on top of `.env` when Vite+# runs in `--mode proprietary` (so the core/OSS build never sees them). These+# back the admin portal mounted at /portal. Committed to Git, so no private keys;+# machine-specific overrides go in the uncommitted .env.proprietary.local /+# .env.local. (VITE_STRIPE_PUBLISHABLE_KEY lives in the base `.env` as it is+# shared across builds.)+###############################################################################++# Where the portal's "Editor" switcher / non-admin redirect points. "/" is+# correct: the editor serves the portal at /portal on the same origin. In dev,+# override in .env.local with your running editor's URL (e.g.+# VITE_EDITOR_URL=http://localhost:5173/).+VITE_EDITOR_URL=/++# Force the portal's MSW mocks on ("true") or off ("false"). Empty = default+# (on in dev, off in production builds). Set "false" to run against the real+# backend.+VITE_PORTAL_MOCKS=++# Hosted SaaS Supabase project for the self-hosted portal's IN-APP account+# linking (both values are public). Set per deploy; absent -> the account-link+# UI shows a "configure" state. For local e2e, point these at the SaaS Supabase+# project the local backend links against.+VITE_SAAS_SUPABASE_URL=+VITE_SAAS_SUPABASE_ANON_KEY=++# Hosted SaaS Java backend base URL (e.g. https://api.stirlingpdf.com). Used for+# ATTENDED portal -> SaaS reads (wallet, billing, plans, checkout) with the+# admin's Supabase JWT. Distinct from the local backend (reached same-origin via+# the editor's vite proxy). Absent -> wallet/billing surfaces stay on the mock.+VITE_SAAS_API_URL=diff --git a/frontend/editor/public/locales/en-US/translation.toml b/frontend/editor/public/locales/en-US/translation.tomlindex 7f81e56f3b..d07d8379da 100644--- a/frontend/editor/public/locales/en-US/translation.toml+++ b/frontend/editor/public/locales/en-US/translation.toml@@ -6048,6 +6048,1857 @@ stepOf = "Step {{step}} of {{total}}"toolChainDesc = "Configure the tools this policy runs on each document."typesSelected = "{{count}} types selected"+[portal.accountLink.card]+billingNote = "Unattended processing bills against your org wallet."+eyebrow = "Account link"+linkButton = "Link your Stirling account"+linked = "Linked"+linkedAs = "Linked as {{name}}."+linkedGeneric = "This instance is linked."+notLinked = "Not linked"+title = "Link this org to its Stirling account"+unlink = "Unlink"++[portal.accountLink.card.error]+title = "Couldn't link"++[portal.accountLink.card.loginNotConfigured]+after = "to enable account linking against the hosted Stirling account. In dev you can simulate sign-in from the link dialog."+before = "Set"+title = "SaaS login not configured"++[portal.accountLink.gate]+action = "Link account"+description = "Link this org's Stirling account to use billable features."+title = "Link to unlock"+titleFeature = "Link to unlock {{feature}}"++[portal.accountLink.instances]+active = "Active"+revoke = "Revoke"+revoked = "Revoked"+unnamed = "Unnamed instance"++[portal.accountLink.instances.columns]+instance = "Instance"+lastSeen = "Last seen"+linked = "Linked"+status = "Status"++[portal.accountLink.instances.empty]+description = "Link this org's account, then register your self-hosted instances to see them here."+title = "No linked instances"++[portal.accountLink.instances.time]+daysAgo_one = "{{count}}d ago"+daysAgo_other = "{{count}}d ago"+hoursAgo_one = "{{count}}h ago"+hoursAgo_other = "{{count}}h ago"+justNow = "just now"+minutesAgo_one = "{{count}}m ago"+minutesAgo_other = "{{count}}m ago"+never = "never"++[portal.accountLink.modal]+linkSubtitle = "Sign in to the account this server should bill against."+linkTitle = "Link your Stirling account"+reauthSubtitle = "Your session expired — sign back in to your Stirling account. Your instance stays linked."+reauthTitle = "Sign in again"+simulateSignIn = "Simulate sign-in (dev)"++[portal.accountLink.modal.loginNotConfigured]+after = "to enable in-app linking against the hosted Stirling account."+and = "and"+before = "Set"+title = "SaaS login not configured"++[portal.accountLink.panel]+instancesSub = "Every self-hosted instance registered to this org. Revoke a credential to immediately cut off its unattended access."+instancesTitle = "Linked instances"+revokeError = "Couldn't revoke instance"+sub = "Link this self-hosted org to its Stirling account so unattended processing bills against your org wallet."++[portal.accountLink.panel.loadError]+forbidden = "Only the team owner can view the org's linked instances."+generic = "Couldn't load the team's linked instances. Try again in a moment."+title = "Couldn't load linked instances"++[portal.accountLink.state]+free = "Editor plan"+subscribed = "Processor plan"+unlinked = "Not linked"++[portal.agentBuilder]+bootstrapFromDocument = "Bootstrap from document"+sectionsAriaLabel = "Agent builder sections"+selectorAriaLabel = "Agents"+subtitle = "Design, test and ship the AI agents that classify, extract from and route your documents. Define scenarios, fence tool access, run a golden set, and publish a version."+title = "Agent Builder"++[portal.agentBuilder.bootstrap]+cancel = "Cancel"+dropzoneText = "Choose a sample document (PDF or image)"+lead = "Drop a sample document and we'll propose scenarios and an extraction schema you can refine. Nothing is published until you review it."+submit = "Bootstrap agent"+subtitle = "Seed a new agent from one representative file"+title = "Bootstrap from a document"++[portal.agentBuilder.empty]+description = "Bootstrap an agent from a sample document to seed its scenarios and extraction schema, then refine and publish."+title = "No agents yet"++[portal.agentBuilder.evals]+casesPassing = "Cases passing"+columnCase = "Eval case"+columnLatency = "Latency"+columnResult = "Result"+fail = "fail"+goldenSetPassRate = "Golden-set pass rate"+latencyMs = "{{ms}} ms"+notRun = "not run"+pass = "pass"+passRate = "Pass rate"+runEvals = "Run evals"++[portal.agentBuilder.evals.empty]+description = "Evals turn your scenarios into a repeatable golden set. Upgrade to capture pass-rate over time and gate publishes on it."+title = "No golden set yet"++[portal.agentBuilder.kpi]+acrossGoldenSets = "across golden sets"+activeAgents = "Active agents"+avgPassRate = "Avg eval pass rate"+fleetWide = "fleet-wide"+latestPublished = "Latest published"+scenarios = "Scenarios"+testCases = "test cases"+totalDescription_one = "{{count}} total"+totalDescription_other = "{{count}} total"++[portal.agentBuilder.scenarios]+add = "Add"+addScenario = "Add scenario"+enable = "Enable"+expectationLabel = "Expected behaviour"+expectationPlaceholder = "What the agent should do"+inEval = "in eval"+mute = "Mute"+muted = "muted"+nameLabel = "Name"+namePlaceholder = "e.g. Compliance escalation"++[portal.agentBuilder.tabs]+evals = "Evals"+scenarios = "Scenarios"+tools = "Tools"+versions = "Versions"++[portal.agentBuilder.tools]+broadAccess = "Broad access"+deniedHint = "Selected tools are blocked. Everything else stays callable."+deniedTools = "Denied tools"+governanceGate = "Tool governance is available on the Enterprise plan."+restricted = "Restricted"+restrictedAccess = "Restricted tool access"+restrictedDescription = "Allow every tool except the ones you deny below."++[portal.agentBuilder.versions]+current = "current"+historyGate = "Full version history and rollback are available on the Enterprise plan."+publish = "Publish"+rollBack = "Roll back"++[portal.assistant]+close = "Close assistant"+error = "Couldn't reach the assistant."+errorWithDetail = "Couldn't reach the assistant: {{detail}}"+inputAriaLabel = "Ask the assistant"+inputPlaceholder = "Ask about Stirling…"+open = "Open assistant"+send = "Send"+title = "Assistant"+tryAsking = "Try asking"+typing = "Typing"++[portal.auth]+loading = "Loading"+redirectingToEditor = "Redirecting to the editor..."++[portal.billing.checkout]+noClientSecret = "Edge function returned no client_secret."+subtitle = "Add a card to keep going past your free Editor-plan grant. Stripe handles the rest."+title = "Turn on the Processor plan"++[portal.billing.checkout.error]+title = "Couldn't start checkout"++[portal.billing.checkout.notConfigured]+bodyAfter = "in the portal env to enable in-app checkout."+bodyBefore = "Set"+title = "Stripe not configured"++[portal.billing.enterpriseUpsell]+cta = "Build your Enterprise quote"+description = "Committed volume discounts, air-gapped deployment, custom MSA and security reviews, and 3rd-party distributor partnerships."+eyebrow = "Volume discount · 1M+ PDFs"+title = "Stirling Enterprise"++[portal.billing.freeEditors]+activeThisMonth = "Active this month"+cost = "Cost"+editorsDeployed = "Editors deployed"+inviteTeammates = "Invite teammates"+pdfsEdited = "PDFs edited"+previewBadge = "Preview · sample data"+subtitle = "Deploy anywhere, for your whole team."+title = "Free PDF Editors"++[portal.billing.freePlan]+checkoutErrorTitle = "Couldn't start checkout"+currentPlan = "Current plan"+freeForever = "Free forever"+noTeamResolved = "No team is resolved on your wallet yet — refresh and try again."+ownerOnly = "Only the team owner can switch on the Processor plan."+planName = "Editor"+ssoIncluded = "SSO included"+switchOnProcessor = "Switch on the Processor →"+unlimitedUsers = "Unlimited users"++[portal.billing.invoices]+columnAmount = "Amount"+columnDate = "Date"+columnDescription = "Description"+columnPdfsProcessed = "PDFs processed"+columnStatus = "Status"+descriptionFallback = "Invoice"+downloadAriaLabel = "Download invoice {{number}} as PDF"+emptyDescription = "Once your team subscribes and the first cycle closes, your invoices appear here."+emptyTitle = "No invoices yet"+fetchLimitNote_one = "Showing your {{count}} most recent invoices. Older invoices are in the Stripe portal."+fetchLimitNote_other = "Showing your {{count}} most recent invoices. Older invoices are in the Stripe portal."+loadError = "Couldn't load invoices: {{error}}"+pdfLink = "PDF ↓"+showAll_one = "Show all {{count}}"+showAll_other = "Show all {{count}}"+showFewer_one = "Show fewer (top {{count}})"+showFewer_other = "Show fewer (top {{count}})"+showMostRecent_one = "Show {{count}} most recent"+showMostRecent_other = "Show {{count}} most recent"+title = "Invoice history"+viewAriaLabel = "View invoice {{number}} in Stripe"+viewLink = "View ↗"++[portal.billing.linkPrompt]+cta = "Link Stirling account"+description = "Manual PDF editing — view, sign, merge, split, watermark, compress, convert, manual OCR — is always free, linked or not. Link to claim 500 free PDFs of metered processing (automation, AI, and the API); when you need more, turn on the Processor plan and only pay for what you use."+title = "Link your Stirling account"++[portal.billing.paymentMethod]+billedMonthly = "Billed monthly"+cardEnding = "{{brand}} ending {{last4}}"+cardFallback = "Card"+expiresBilledMonthly = "Expires {{expiry}} · billed monthly"+eyebrow = "Payment method"+managedSub = "Your card and billing details are kept securely in Stripe's customer portal."+managedTitle = "Managed in Stripe"+update = "Update"++[portal.billing.pdfsProcessed]+emptyPeriod = "No metered processing yet this period."+eyebrow = "PDFs processed this period"+legendValue_one = "{{formatted}} PDFs"+legendValue_other = "{{formatted}} PDFs"+segbarAriaLabel = "Metered PDFs split by category"+segmentAgentsDesc = "AI agent actions"+segmentAgentsLabel = "Agents"+segmentApiDesc = "Direct API requests"+segmentApiLabel = "API"+segmentAutomationDesc = "Automations & pipelines"+segmentAutomationLabel = "Automation"+unit = "metered PDFs"++[portal.billing.spendLimit]+adjustLimit = "Adjust limit"+cancel = "Cancel"+capControlNote = "Changes apply immediately — raise or lower the ceiling any time."+capSuffix = "/ month"+capSuffixWithDocs = "/ month · ≈ {{documents}} documents"+displaySub = "You're only billed for what you process automatically — never past the ceiling."+editTitle = "Set your monthly ceiling"+eyebrow = "Spend limit"+guardrailBody = "a hard ceiling — you're never billed past it. At the cap, metered processing pauses (unlimited PDF editing keeps working) until you raise it or the cycle resets. Nothing is lost."+guardrailLabel = "Your guardrail:"+noCap = "no cap"+pctUsed = "{{pct}}% used"+remaining = "{{amount}} remaining"+save = "Save limit"+saveError = "Couldn't save limit"+thisPeriodUncapped = "{{amount}} this period · uncapped"+usedThisMonth = "{{amount}} used this month"+useSuggested = "Use suggested · {{amount}} / month"++[portal.billing.spendLimit.projection]+body_one = "At {{rate}}/day you reach the cap in ~{{count}} day (~{{monthEnd}} month-end). Suggested limit ~{{suggested}}."+body_other = "At {{rate}}/day you reach the cap in ~{{count}} days (~{{monthEnd}} month-end). Suggested limit ~{{suggested}}."+label = "Projected to exceed."++[portal.billing.spendThisMonth]+eyebrow = "Spend this month"+processed_one = "{{formattedCount}} PDF processed."+processed_other = "{{formattedCount}} PDFs processed."+processedWithRate_one = "{{formattedCount}} PDF processed, at {{rate}} each."+processedWithRate_other = "{{formattedCount}} PDFs processed, at {{rate}} each."++[portal.billing.subscribedPlan.capWarn]+approachingBody = "Raise it now so automated processing never pauses."+approachingTitle = "You're at {{pct}}% of your monthly spend limit"+raiseLimit = "Raise limit"+reachedBody = "Metered processing is paused until you raise the limit or the cycle resets. Unlimited PDF editing keeps working."+reachedTitle = "Monthly spend limit reached"++[portal.billing.subscribedPlan.portalError]+title = "Couldn't open Stripe portal"++[portal.billing.walletMeter]+capSuffix_one = "of {{allowance}} free PDFs used"+capSuffix_other = "of {{allowance}} free PDFs used"+eyebrow = "Processor trial"+statusLabel_one = "{{remaining}} left"+statusLabel_other = "{{remaining}} left"+sub = "Use the PDF Editor for free. Pay to process PDFs automatically."+title_one = "Process {{allowance}} PDFs free"+title_other = "Process {{allowance}} PDFs free"+titleWithRate_one = "Process {{allowance}} PDFs free, then {{rate}}/PDF"+titleWithRate_other = "Process {{allowance}} PDFs free, then {{rate}}/PDF"++[portal.catalogue.card]+lockedAriaLabel = "Locked"+openAriaLabel = "Open {{name}} component"++[portal.catalogue.detail]+addToProject = "Add to project"+ariaLabel = "Component detail"+tabsAriaLabel = "Component detail sections"+upgradeToUnlock = "Upgrade to unlock"++[portal.catalogue.detail.code]+install = "Install"+usage = "Usage"++[portal.catalogue.detail.locked]+description = "{{name}} is included from the {{tier}} plan. Upgrade to embed it."+title = "Not available on your plan"++[portal.catalogue.detail.preview]+badge = "Live preview"+note = "Interactive sandbox renders here"++[portal.catalogue.detail.pricing]+note = "Metered per {{unit}}. Usage beyond the monthly free quota is billed to your account and itemised under Usage & Billing."++[portal.catalogue.detail.stats]+billedOn = "Billed on"+embeds30d = "Embeds (30d)"+freeQuota = "Free quota"+freeQuotaValue = "{{amount}} / mo"+maturity = "Maturity"+none = "None"+perAction = "Per action"+price = "Price"++[portal.catalogue.detail.tabs]+code = "Code"+overview = "Overview"+pricing = "Pricing"+props = "Props / API"++[portal.catalogue.props]+optional = "optional"+required = "required"++[portal.catalogue.props.columns]+description = "Description"+name = "Prop"+required = "Required"+type = "Type"++[portal.catalogue.summary]+componentsGa = "Components GA"+componentSpendMtd = "Component spend (MTD)"+embedsThisMonth = "Embeds this month"+inBeta = "In beta"++[portal.common]+inviteMember = "Invite member"++[portal.componentsView]+subtitle = "Embeddable SDK widgets you drop into your own app — a viewer, an e-sign flow, an AI review panel. Each is metered per action. Click a card for install, usage and props."+title = "Components"++[portal.componentsView.empty]+description = "The component catalogue could not be loaded. Try again shortly."+title = "No components available"++[portal.componentsView.lockedBanner]+description = "GA components are available on Pay-as-you-go; a few Beta components are enterprise-only. Locked cards show an upgrade nudge."+title = "Some components need a paid plan"++[portal.docs.authentication]+codeCaption = "every request"+eyebrow = "GETTING STARTED"+lead = "All requests authenticate with a bearer token. Keys are scoped per environment and never expire unless rotated."+liveKey = "Production keys — billed, rate-limited per your plan."+testKey = "Sandbox keys — free, return synthetic fixtures."+title = "Authentication"++[portal.docs.components]+codeCaption = "embed the viewer"+eyebrow = "COMPONENTS"+lead = "Embeddable UI for review queues and document inspection. Bring your own styles or use the shipped theme."+title = "Drop-in viewers"++[portal.docs.endpoints]+eyebrow = "API REFERENCE"+fieldCount_one = "{{count}} field"+fieldCount_other = "{{count}} fields"+filterAll = "All"+filterAriaLabel = "Filter endpoints by vertical"+lead = "Every document type is a typed endpoint. POST a file, receive schema-validated JSON. Filter by vertical below."+title = "Endpoints"++[portal.docs.errors]+codeCaption = "422 Unprocessable Entity"+eyebrow = "API REFERENCE"+lead = "Errors return a stable machine-readable code plus a human message. The 4xx body always includes a request_id for support."+title = "Errors"++[portal.docs.nav]+ariaLabel = "Documentation"++[portal.docs.nav.empty]+description = "The documentation index could not be loaded."+title = "Docs unavailable"++[portal.docs.quickstart]+eyebrow = "GETTING STARTED"+lead = "Send your first document to a typed endpoint and get structured JSON back in three steps. No model training, no prompt engineering."+title = "Quickstart"++[portal.docs.quickstart.callout]+bodyAfterLink = "for copy-paste recipes."+bodyBeforeLink = "wire the same call into a pipeline to chain validation, redaction, and delivery — or expose it to an agent over MCP. See"+label = "Next:"+link = "Playbooks"++[portal.docs.quickstart.step1]+body = "Create a scoped key from the Infrastructure tab. Keys carry rate limits and an optional IP allowlist. Export it into your shell:"+title = "Issue an API key"++[portal.docs.quickstart.step2]+body = "POST a file to any typed endpoint. The endpoint determines the schema you get back — here, the invoice extractor."+snippetCaption = "extract an invoice"+title = "Send a document"++[portal.docs.quickstart.step3]+body = "Every response is validated against the endpoint schema, with a confidence score and per-field provenance."+codeCaption = "200 OK"+title = "Read the structured result"++[portal.docs.rateLimits]+burst = "Burst"+codeCaption = "429 Too Many Requests"+concurrency = "Concurrency"+eyebrow = "GETTING STARTED"+lead = "Limits scale with your plan. A 429 response includes a Retry-After header; the SDKs back off automatically."+requestsPerMinute = "Requests / minute"+title = "Rate limits & quotas"++[portal.docs.recipes]+cloneButton = "Clone recipe"+eyebrow = "PLAYBOOKS"+lead = "End-to-end patterns that chain sources, operations, and destinations. Each maps to a pipeline you can clone."+title = "Recipes"++[portal.docs.sdks]+eyebrow = "SDKS"+lead = "First-party clients with typed responses, automatic retries, and streaming uploads. All track the same endpoint catalogue."+title = "Official SDKs"++[portal.docs.sdks.status]+beta = "Beta"+deprecated = "Deprecated"++[portal.docs.skills]+eyebrow = "SKILLS"+lead = "Bundled, named capabilities your agent invokes as a single tool. Each skill is a deterministic op chain with evals attached."+title = "Agent skills"++[portal.docs.webhooks]+codeCaption = "document.processed"+eyebrow = "API REFERENCE"+lead = "Subscribe to document.processed, pipeline.completed, and quota.threshold events. Payloads are signed with HMAC-SHA256."+title = "Webhooks"++[portal.docs.webhooks.callout]+afterHelper = "helper."+beforeHelper = "header against your signing secret before trusting a payload. SDKs ship a"+beforeSignature = "Verify the"++[portal.documents]+subtitle = "Review and approve documents moving through your pipelines."+title = "Documents"++[portal.documents.audit]+empty = "No events recorded yet."++[portal.documents.drawer]+sectionsAriaLabel = "Document detail sections"++[portal.documents.drawer.tabs]+audit = "Audit"+extractions = "Extractions"+overview = "Overview"++[portal.documents.elevation]+requestAccess = "Request access"++[portal.documents.elevation.active]+description = "Temporary grant — access is logged and time-boxed."+descriptionFourEyes = "Temporary grant — a peer reviewer was notified (four-eyes)."+title = "Access expires in {{time}}"++[portal.documents.elevation.gated]+description = "Content is gated by zero-standing-access. Requesting starts a time-boxed grant."+descriptionFourEyes = "Content is gated by zero-standing-access. Requesting starts a time-boxed grant and notifies a peer reviewer (four-eyes)."+title = "Sensitive document"++[portal.documents.extractions]+empty = "No fields were extracted from this document."+masked = "Extracted fields are hidden. Request timed access to view this document's content."++[portal.documents.extractions.columns]+confidence = "Confidence"+field = "Field"+value = "Value"++[portal.documents.filters]+all = "All"+archived = "Archived"+ariaLabel = "Filter documents by status"+needsReview = "Needs review"+processed = "Processed"++[portal.documents.overview]+confidence = "Confidence"+fieldsExtracted = "Fields extracted"+received = "Received"+source = "Source"+status = "Status"+type = "Type"++[portal.documents.queue.empty]+description = "As sources feed documents into your pipelines they'll appear here for review."+title = "No documents in the queue"++[portal.documents.summary]+avgConfidence = "Avg confidence"+inQueue = "In queue"+needsReview = "Needs review"+processedToday = "Processed today"++[portal.documents.table]+empty = "No documents match this filter."+sensitiveLabel = "Sensitive"+sensitiveTitle = "Sensitive — access required"++[portal.documents.table.columns]+confidence = "Confidence"+fields = "Fields"+name = "Name"+source = "Source"+status = "Status"+time = "Time"+type = "Type"++[portal.editorAdmin]+subtitle = "Deploy the Stirling PDF Editor, pair self-hosted instances to your org, and operate the running fleet — targets, health, credentials, and offline activation in one place."+title = "Editor deployment"++[portal.editorAdmin.health.columns]+activeUsers = "Active users"+host = "Host"+lastSeen = "Last seen"+region = "Region"+status = "Status"+version = "Version"++[portal.editorAdmin.health.empty]+description = "Deploy a target and pair it to see live instance health here."+title = "No instances reporting"++[portal.editorAdmin.offlineActivation]+enterpriseTag = "Enterprise"+generateButton = "Generate offline bundle"+lockCopy = "Offline and on-prem activation is part of Enterprise."+subtitle = "Generate a signed activation bundle for an offline or on-prem install with no outbound network path. Transfer it to the instance and apply it during first-run setup."+talkToSales = "Talk to sales"+title = "Air-gapped activation"++[portal.editorAdmin.offlineActivation.readyBanner]+description = "{{file}} is signed and ready to transfer. It activates one instance and expires in 14 days."+title = "Bundle ready"++[portal.editorAdmin.pairing]+generated = "Generated ✓"+generateNewCode = "Generate new code"+lockCopy = "IaC provisioning is part of Enterprise."+rotate = "Rotate"+talkToSales = "Talk to sales"++[portal.editorAdmin.sections.health]+sub = "Every Editor instance reporting in — version, region, status, last seen, and active users."+title = "Instance health"++[portal.editorAdmin.sections.pairing]+sub = "Connect a self-hosted editor to this org. Generate a token, hand off a short code, or wire it through IaC."+title = "Pairing"++[portal.editorAdmin.sections.targets]+sub = "Where the Editor runs. Copy a snippet to stand up a self-hosted instance, or use Managed Cloud with no ops."+title = "Deployment targets"++[portal.editorAdmin.serviceToken]+currentToken = "Current token"+lastRotated = "Last rotated"+rotateButton = "Rotate service token"+subtitle = "Instances authenticate to the org with this credential. Rotate it on a schedule or immediately after a suspected leak."+title = "Service token"++[portal.editorAdmin.serviceToken.rotatedBanner]+description = "A new token was issued. Update each self-hosted instance's STIRLING_SERVICE_TOKEN within the 24h grace window or they'll drop offline."+title = "Rotate running instances"++[portal.editorAdmin.targets]+instanceCount_one = "{{count}} instance"+instanceCount_other = "{{count}} instances"+talkToSales = "Talk to sales"+upgradePlan = "Upgrade plan"++[portal.editorAdmin.targets.lock]+enterprise = "On-prem and Kubernetes self-hosting are part of Enterprise."+paid = "Self-hosting with Docker and Kubernetes unlocks on a paid plan."++[portal.editorAdmin.targets.state]+available = "Available"+locked = "Locked"+running = "Running"++[portal.errorBoundary]+description = "This view hit an unexpected error. Try again, or pick another section from the sidebar."+retry = "Try again"+title = "Something went wrong on this page"++[portal.forkWizard]+subtitle = "Clone a proven workflow and tune it — every template ships the same four-stage backbone."+title = "Fork a starter pipeline"++[portal.forkWizard.action]+cancel = "Cancel"+deploy = "Deploy pipeline"+pickAnother = "Pick another"++[portal.forkWizard.status]+building = "Building…"+ready = "Ready to deploy"++[portal.home.chart.empty]+description = "Once documents are processed, your 30-day usage appears here."+title = "No usage yet"++[portal.home.kpis.enterprise]+docs30d = "Docs / 30d"+evalPassRate = "Eval pass rate"+p95Latency = "P95 latency"+slaUptime = "SLA uptime (30d)"++[portal.home.kpis.free]+agents = "Agents"+docsProcessed = "Docs processed"+docsProcessedDescription = "Free plan cap"+operations = "Operations"+pipelines = "Pipelines"++[portal.home.kpis.pro]+agentsActive = "Agents active"+docs30d = "Docs / 30d"+evalPassRate = "Eval pass rate"+pipelines = "Pipelines"++[portal.home.onboarding]+progress = "{{done}} / {{total}} done"+runAgain = "Run again"+start = "Start"+subtitle = "Four steps to a production-shaped Stirling project."+title = "Get to value"++[portal.home.onboarding.empty]+description = "Onboarding tasks will appear here once your workspace is set up."+title = "No onboarding steps yet"++[portal.home.productGrid]+ariaLabel = "Process PDFs at scale"++[portal.home.productGrid.agents]+blurb = "Wire your agent via MCP, REST, or tool definitions. Deterministic operations, scenarios, evals."+cta = "Connect an agent"+title = "Agents"++[portal.home.productGrid.pipelines]+badge = "Hero"+blurb = "Compose document workflows from typed operations. Upload a sample to get suggestions or start blank."+cta = "Build a pipeline"+title = "Pipelines"++[portal.home.productGrid.sources]+blurb = "Attach pipelines where PDFs already live — S3, agents, SharePoint, webhooks, batch, email."+cta = "Connect a source"+title = "Sources"++[portal.home.quickActions]+subtitle = "Top tasks for today"+title = "Quick actions"++[portal.home.quickActions.buildPipeline]+blurb = "3-step composer over the typed op library"+title = "Build a pipeline"++[portal.home.quickActions.connectSource]+blurb = "S3, agents, webhooks, watched folders"+title = "Connect a source"++[portal.home.quickActions.issueApiKey]+blurb = "Scoped key with rate limits and IP allowlist"+title = "Issue an API key"++[portal.home.quickActions.tryOp]+blurb = "Drop a sample, pick an op, see the JSON"+title = "Try a PDF operation"++[portal.home.regions]+subtitle = "Real-time status for every deployed Stirling region."+title = "Region health"++[portal.home.regions.empty]+description = "Once a region is deployed, its health appears here."+title = "No regions yet"++[portal.infrastructure]+manageEditorDeployment = "Manage Editor deployment"+sectionsAriaLabel = "Infrastructure sections"+subtitle = "Deployments, credentials, security posture, storage, and the audit trail for your Stirling workspace."+title = "Infrastructure"++[portal.infrastructure.apiKeys]+createKey = "Create key"+heading = "API keys"+subheading = "Scoped credentials with per-key rate limits, permissions, and IP allowlists."++[portal.infrastructure.apiKeys.card]+allowedIps = "Allowed IPs"+anyIp = "Any IP (no allowlist)"+created = "Created"+lastUsed = "Last used"+permissions = "Permissions"+rateLimit = "Rate limit"+rateLimitValue = "{{value}} req/min"+usageMonth = "Usage this month"+usageToday = "Usage today"++[portal.infrastructure.apiKeys.empty]+description = "Create a scoped key to start calling the Stirling API."+title = "No API keys yet"++[portal.infrastructure.audit]+filterAriaLabel = "Filter audit events by category"+heading = "Audit logs"+latencyValue = "{{value}} ms"+noEventsInCategory = "No events in this category."+subheading = "Every authentication, configuration, and processing event across your workspace."++[portal.infrastructure.audit.columns]+actor = "Actor"+event = "Event"+latency = "Latency"+status = "Status"+target = "Target"+timestamp = "Timestamp"++[portal.infrastructure.audit.empty]+description = "Workspace activity will appear here as it happens."+title = "No audit events"++[portal.infrastructure.audit.filters]+all = "All"+auth = "Auth"+config = "Config"+elevation = "Elevation"+processing = "Processing"+security = "Security"++[portal.infrastructure.audit.metrics]+config = "Config"+elevation = "Elevation"+processing = "Processing"+totalEvents = "Total events · 24h"++[portal.infrastructure.createKey]+cancel = "Cancel"+createKey = "Create key"+done = "Done"+ipAllowlistHelper = "Comma-separated CIDR ranges. Leave blank to allow any IP."+ipAllowlistLabel = "IP allowlist"+keyNameLabel = "Key name"+keyNamePlaceholder = "e.g. Production · ingest"+permissionsLabel = "Permissions"+secretKeyCaption = "Secret key"+secretWarning = "Store this in a secrets manager. Stirling only ever stores a hash — there is no way to recover it later."+subtitle = "Scope the key to the minimum it needs. You can rotate or revoke at any time."+subtitleCreated = "Copy this secret now — it won't be shown again."+title = "Create API key"+titleCreated = "Key created"++[portal.infrastructure.deployments]+msValue = "{{value}} ms"+throughputValue = "{{value}}/min"++[portal.infrastructure.deployments.deployColumns]+deployedBy = "Deployed by"+environment = "Environment"+product = "Product"+status = "Status"+version = "Version"+when = "When"++[portal.infrastructure.deployments.recent]+heading = "Recent deployments"+subheading = "The latest rollouts across products and environments."++[portal.infrastructure.deployments.regionColumns]+instances = "Instances"+latency = "Latency"+load = "Load"+p99 = "P99"+region = "Region"+status = "Status"+throughput = "Throughput"+uptime = "Uptime"+version = "Version"++[portal.infrastructure.deployments.regions]+heading = "Regions"+subheading = "Live health for every deployed Stirling region — latency, load, and rollout version."++[portal.infrastructure.deployments.regions.empty]+description = "Deployed regions appear here once your workspace is provisioned."+title = "No regions deployed"++[portal.infrastructure.models]+heading = "Models"+msValue = "{{value}} ms"+subheading = "The model catalogue and routing that powers document processing across your workspace."++[portal.infrastructure.models.byom]+description = "Register an on-prem or self-hosted model and pin it to a region for data-residency-bound processing."+title = "Bring your own model"++[portal.infrastructure.models.catalogue]+heading = "Catalogue"+sub = "Managed models available to your workspace, with live latency and cost."+subEnterprise = "Managed, bring-your-own, and on-prem models — with per-region pinning available."++[portal.infrastructure.models.catalogue.empty]+description = "Models in your workspace's catalogue appear here."+title = "No models available"++[portal.infrastructure.models.columns]+cost = "Cost"+latency = "Latency"+load = "Load"+model = "Model"+status = "Status"+type = "Type"+version = "Version"++[portal.infrastructure.models.metrics]+activeModels = "Active models"+avgLatency = "Avg latency"+included = "Included"+monthlySpend = "Monthly model spend"++[portal.infrastructure.models.routing]+empty = "No routing rules configured."+heading = "Routing rules"+sub = "Which model handles each operation. The default applies when no narrower rule matches."+subLocked = "Route operations to specific models — available on paid plans."++[portal.infrastructure.models.routing.lockedBanner]+description = "Upgrade to Pro to control which model handles each operation and document type."+title = "Model routing is a paid feature"++[portal.infrastructure.models.routingColumns]+default = "Default"+docType = "Document type"+modelForAria = "Model for {{operation}}"+operation = "Operation"+routedTo = "Routed to"++[portal.infrastructure.security.access.byok]+description = "Supply a key from your own KMS. Stirling encrypts with it but can still read."+label = "Bring your own key (BYOK)"++[portal.infrastructure.security.access.hyok]+description = "Keys never leave your KMS. Stirling holds only ciphertext."+label = "Hold your own key (HYOK)"++[portal.infrastructure.security.access.stirling]+description = "Stirling manages encryption keys. Simplest — zero key ops on your side."+label = "Stirling-held keys"++[portal.infrastructure.security.accessPolicy]+heading = "Document access policy"+subheading = "Controls who can decrypt processed documents at rest."++[portal.infrastructure.security.attestations]+heading = "Compliance attestations"+noReport = "No report available"+subheading = "Framework-by-framework audit posture, with reports available on attested controls."+viewReport = "View report →"++[portal.infrastructure.security.compliance]+heading = "Compliance"+subheading = "Attestations and certifications covering the Stirling platform."++[portal.infrastructure.security.empty]+description = "Your workspace's security configuration will appear here."+title = "Security posture unavailable"++[portal.infrastructure.security.hyokBanner]+description = "With HYOK, encryption keys never leave your KMS. Stirling stores and processes only ciphertext you can revoke at any time."+title = "Stirling cannot decrypt your documents"++[portal.infrastructure.security.ipAllowlist]+empty = "No IP ranges configured — all IPs allowed."+heading = "IP allowlist"+sub = "API access is restricted to these CIDR ranges."+subLocked = "Restrict API access to known IP ranges — available on paid plans."++[portal.infrastructure.security.ipAllowlist.lockedBanner]+description = "Upgrade to Pro to restrict API access to specific networks."+title = "IP allowlisting is a paid feature"++[portal.infrastructure.security.ipColumns]+added = "Added"+addedBy = "Added by"+cidr = "CIDR"+label = "Label"++[portal.infrastructure.security.keyManagement]+algorithm = "Algorithm"+heading = "Encryption key management"+keyId = "Key identifier"+lastRotated = "Last rotated"+rotateKey = "Rotate key"+rotationPolicy = "Rotation policy"+subheading = "Custody of the keys that encrypt documents at rest — who can decrypt, and how keys rotate."++[portal.infrastructure.security.managedBanner]+description = "Bring-your-own-key (BYOK) and hold-your-own-key (HYOK) custody are available on Enterprise. Upgrade to supply keys from your own KMS."+title = "Keys are managed by Stirling on your plan"++[portal.infrastructure.security.residency.apac]+description = "ap-southeast-1"+label = "Asia Pacific"++[portal.infrastructure.security.residency.eu]+description = "eu-west-1 · GDPR data boundary"+label = "European Union"++[portal.infrastructure.security.residency.us]+description = "us-east-1 · us-west-2"+label = "United States"++[portal.infrastructure.security.residencyHeader]+heading = "Data residency"+subheading = "Where documents are stored and processed."++[portal.infrastructure.storage]+gbValue = "{{value}} GB"+percentUsed = "{{value}} used"++[portal.infrastructure.storage.empty]+description = "Connected storage and usage appear here."+title = "No storage configured"++[portal.infrastructure.storage.lifecycle]+active = "Active"+activeRange = "0–{{value}}d"+archived = "Archived"+coldStorage = "cold storage"+deleted = "Deleted"+never = "never"+purged = "purged"++[portal.infrastructure.storage.providers]+connect = "Connect"+connected = "Connected"+heading = "Connected providers"+subheading = "Where processed artifacts are written."++[portal.infrastructure.storage.retention]+heading = "Retention"+subheading = "How long artifacts are kept before lifecycle deletion."+windowLabel = "Default retention window"++[portal.infrastructure.storage.retentionOption]+days_one = "{{count}} day"+days_other = "{{count}} days"+never = "Never delete"++[portal.infrastructure.storage.totalUsage]+heading = "Total usage"+progressLabel = "Storage used"+subheading = "Storage consumed across all connected providers."++[portal.infrastructure.tabs]+apiKeys = "API Keys"+audit = "Audit Logs"+deployments = "Deployments"+models = "Models"+security = "Security"+storage = "Storage"++[portal.mocks.label]+off = "Mocks OFF"+on = "Mocks ON"++[portal.mocks.tooltip]+off = "Mock data OFF — fetch calls go to the real network. Click to re-enable mocks (reloads the page)."+on = "Mock data ON — fetch calls are intercepted by MSW. Click to switch to the real network (reloads the page)."++[portal.nav]+agent-builder = "Agent Builder"+components = "Components"+docs = "Developer Docs"+documents = "Documents"+editor = "Editor"+home = "Home"+infrastructure = "Infrastructure"+pipelines = "Pipelines"+policies = "Policies"+procurement = "Procurement"+settings = "Settings"+sources = "Sources"+usage = "Usage & Billing"+users = "Users"++[portal.notifications]+markAllRead = "Mark all read"+title = "Notifications"+viewAll = "View all"++[portal.notifications.ariaLabel]+none = "Notifications, no unread"+unread_one = "Notifications, {{count}} unread"+unread_other = "Notifications, {{count}} unread"++[portal.notifications.count]+allRead = "all read"+loading = "loading"+new_one = "{{count}} new"+new_other = "{{count}} new"++[portal.notifications.empty]+description = "No new notifications."+title = "You're all caught up"++[portal.opRunner]+durationMs = "{{ms}} ms"+featuredOps = "Featured ops"+subtitle = "Drop a sample, pick an op, see what Stirling returns."+title = "Try a PDF operation"++[portal.opRunner.action]+close = "Close"+openBuilder = "Open the pipeline builder"+run = "Run operation"+runAgain = "Run again"+running = "Running…"++[portal.opRunner.drop]+hint = "or use a sample document."+pickAnother = "Pick another sample"+replaceHint = "Drop again or pick another sample to replace."+title = "Drop a PDF here"+useSample = "Use a sample"++[portal.opRunner.empty]+description = "Once operations are published, they'll show up here."+title = "No featured ops yet"++[portal.opRunner.error]+title = "The operation didn't complete"+unknown = "Unknown error"++[portal.opRunner.hint]+aSample = "a sample"+press = "Press"+ready = "Ready"+toInvoke = "to invoke"++[portal.opRunner.hint.runOn]+before = "Run"+middle = "on"++[portal.opRunner.running]+title = "Running {{label}}…"++[portal.opRunner.status]+completed = "Completed"+failed = "Failed"++[portal.pipelines]+subtitle = "Every automated document pipeline on the backend: an ordered chain of operations over a set of sources, run on a trigger. Click a row for its steps and sources."+title = "Pipelines"++[portal.pipelines.actions]+newPipeline = "New pipeline"++[portal.pipelines.composer]+cancel = "Cancel"+chainEmpty = "Add operations from the palette below."+create = "Create pipeline"+directory = "Output folder"+directoryHelp = "Absolute path on the server. Must be within the configured allowed folders."+editTitle = "Edit pipeline"+moveDown = "Move down"+moveUp = "Move up"+name = "Name"+namePlaceholder = "e.g. Redaction sweep"+noSources = "No sources connected yet. The pipeline can still run on files supplied to it directly."+operations_one = "Operation ({{count}})"+operations_other = "Operations ({{count}})"+output = "Output"+removeStep = "Remove operation"+save = "Save changes"+scheduleEvery = "Run every"+sources = "Sources"+sourcesLoading = "Loading sources..."+subtitle = "Pick the sources it runs over, chain the operations, then choose when it runs and where output goes."+title = "New pipeline"+trigger = "Trigger"+triggerManual = "Manual only"++[portal.pipelines.composer.unit]+days = "days"+hours = "hours"+minutes = "minutes"++[portal.pipelines.delete]+body = "Delete \"{{name}}\"? This can't be undone."+cancel = "Cancel"+confirm = "Delete"+title = "Delete pipeline?"++[portal.pipelines.detail]+closeAriaLabel = "Close detail"+delete = "Delete pipeline"+edit = "Edit"+noSources = "No sources. Files are supplied directly to each run."+noSteps = "No operations configured."+output = "Output"+pause = "Pause"+resume = "Resume"+run = "Run now"+sources = "Sources"+steps = "Operations"+subtitle = "{{trigger}} · {{status}}"++[portal.pipelines.empty]+action = "Create a pipeline"+description = "Create your first pipeline: pick the sources it runs over, chain the operations, and choose where output goes."+title = "No pipelines yet"++[portal.pipelines.kpi]+active = "Active"+paused = "Paused"+total = "Pipelines"++[portal.pipelines.output]+folder = "Write to folder"+inline = "Return files"++[portal.pipelines.run]+completed_one = "Run completed."+completed_other = "All {{count}} runs completed."+empty = "Nothing to run: the sources had no documents to process."+failed = "Run failed: {{error}}"+running = "Run started; still in progress."++[portal.pipelines.status]+active = "Active"+paused = "Paused"++[portal.pipelines.table]+name = "Pipeline"+sources = "Sources"+status = "Status"+steps = "Steps"++[portal.pipelines.trigger]+folder-watch = "Folder watch"+manual = "Manual"+schedule = "Scheduled"++[portal.policies]+subtitle = "Standing automations that enforce a tool pipeline on every document. Each policy fires on upload or export, runs its tool chain, and saves the enforced version alongside the original."+title = "Policies"++[portal.policies.card]+comingSoon = "Coming soon"+notSetUp = "Not set up"++[portal.policies.detail]+enforces = "Enforces"+onEveryExport = "On every export"+onEveryUpload = "On every upload"+outputAsNewFile = "as a new file"+outputAsNewVersion = "as a new version"+recentActivity = "Recent activity"+retry = "Retry"+showLess = "Show less"+showMore = "Show more"+sources = "Sources"++[portal.policies.detail.actions]+delete = "Delete"+editSettings = "Edit settings"+pause = "Pause"+resume = "Resume"+runNow = "Run now"++[portal.policies.detail.emptyActivity]+description = "Documents will appear here once this policy runs."+title = "No activity yet"++[portal.policies.offline]+description = "Your policies are saved and will appear once the connection is restored."+retry = "Retry"+title = "Backend unavailable"++[portal.policies.stats]+activeFor = "Active"+dataProcessed = "Data processed"+docsEnforced = "Docs enforced"++[portal.policies.status]+active = "Active"+paused = "Paused"++[portal.policies.summary.active]+description = "Enforcing on upload/export"+label = "Active policies"++[portal.policies.summary.categories]+description = "Available to configure"+label = "Categories"++[portal.policies.summary.docsEnforced]+description = "Across active policies"+label = "Docs enforced"++[portal.policies.summary.paused]+description = "Configured but not firing"+label = "Paused"++[portal.policies.wizard.actions]+back = "Back"+cancel = "Cancel"+continue = "Continue"+enablePolicy = "Enable policy"+saveChanges = "Save changes"++[portal.policies.wizard.docTypes]+allDescription = "Set up an Ingestion (classification) policy to narrow this to specific document types."+allTitle = "All document types"+clear = "Clear"+heading = "Document types"+narrow = "Narrow"+selected_one = "{{count}} selected"+selected_other = "{{count}} selected"++[portal.policies.wizard.errors]+noTools = "Enable at least one tool in the workflow first."+saveFailed = "Couldn't save the policy. Please try again."++[portal.policies.wizard.output]+heading = "Output & run"++[portal.policies.wizard.output.filenameRule]+autoNumber = "Auto-number"+label = "Filename rule"+placeholder = "Text to add (optional)"+prefix = "Prefix"+suffix = "Suffix"++[portal.policies.wizard.output.outputAs]+label = "Output as"+newFile = "New file"+newVersion = "New version"++[portal.policies.wizard.output.retries]+delayLabel = "Retry delay (min)"+heading = "Retries"+maxLabel = "Max retries"++[portal.policies.wizard.output.runOn]+export = "Export"+helper = "When the policy fires: on upload, or before export."+label = "Run on"+upload = "Upload"++[portal.policies.wizard.settings]+heading = "Settings"++[portal.policies.wizard.sources]+emptyDescription = "Connect a source on the Sources page first, then attach it to a policy here."+emptyTitle = "No sources available"+heading = "Sources"+loading = "Loading sources…"++[portal.policies.wizard.tabs]+ariaLabel = "Setup steps"+settings = "Settings"+workflow = "Workflow"++[portal.policies.wizard.title]+edit = "Edit {{category}} policy"+setUp = "Set up {{category}} policy"++[portal.policies.wizard.workflow]+description = "The sequence of tools this policy runs on each document. Each tool is a Stirling endpoint; toggle the ones this policy should enforce."++[portal.policySummary]+activeSummary = "{{active}} / {{total}} active"+noRule = "No rule enforced yet"+subtitle = "Standing automations every document passes through, regardless of which pipeline handles it."+title = "What runs on your PDFs"++[portal.policySummary.action]+comingSoon = "Coming soon"+configure = "Configure"+setUp = "Set up"++[portal.policySummary.column]+activeRule = "Active rule"+policy = "Policy"+status = "Status"++[portal.policySummary.empty]+description = "Once policies are configured, the categories appear here."+title = "No policies yet"++[portal.policySummary.state]+active = "Active"+off = "Off"+soon = "Soon"++[portal.processingStatus]+managePlan = "Manage plan"+pdfsThisMonth = "PDFs this month"+progressLabel = "{{used}} of {{cap}} PDFs used this month"+upgrade = "Upgrade"+volumeSuffix = "PDFs processed · last 30 days"++[portal.procurement]+enterpriseBadge = "Enterprise"+subtitle = "Get your team evaluated, contracted, and onboarded. Every document in one place."+title = "Procurement"++[portal.procurement.action]+download = "Download"+pay = "Pay now"+request = "Request"+sign = "Review & sign"+upload = "Upload"++[portal.procurement.docs]+count_one = "{{count}} doc"+count_other = "{{count}} docs"+done = "Done"+here = "You're here"+hide = "Hide"+optional = "Optional"+paidAddon = "Paid add-on"+show = "Show"+subtitle = "Everything you need at each step of the journey, surfaced as the deal moves through it."+supportingSubtitle = "SOC 2, security reviews, tax forms and more, ready when your security or procurement team asks. Some carry a one-time fee."+supportingTitle = "Supporting your evaluation"+title = "Documents"+upcoming = "Upcoming"++[portal.procurement.journey]+daysLeft_one = "{{count}} day left"+daysLeft_other = "{{count}} days left"+engineerLabel = "Your solutions engineer"+eyebrow = "Your rollout"+live = "You're live on Stirling Enterprise"+nextStep = "Next step: {{action}}"+subtitle = "Your solutions engineer is on every step. One next action at a time; the full checklist is below."+title = "From trial to live, one guided path"+trialTitle = "Enterprise trial"++[portal.procurement.locked]+description = "Trial keys, committed-volume quotes, the one-signature agreement, payment, and your document ledger all live here once you start an enterprise evaluation."+eyebrow = "Enterprise only"+talkToSales = "Talk to sales"+title = "The procurement track opens with Enterprise"++[portal.procurement.modal]+cancel = "Cancel"+chooseFile = "Choose file"+downloadBody = "Your download will begin shortly."+downloadCta = "Download"+downloadTitle = "Download"+noFile = "No file selected"+payBody = "Pay your committed contract by card or bank transfer through Stripe. Your workspace provisions as soon as payment clears."+payCta = "Continue to Stripe"+payTitle = "Confirm payment"+requestBodyFree = "We generate this on demand. Confirm and your solutions engineer will send it across shortly."+requestBodyPaid = "This is a paid add-on. Confirm and your solutions engineer will scope it and send the paperwork."+requestCta = "Request"+requestTitle = "Request this document"+signBody = "Opens the Stirling Enterprise Agreement for e-signature: one signature covers the MSA, order form, EULA and DPA. We countersign automatically and you advance to payment."+signCta = "Open for signature"+signTitle = "Review and sign your agreement"+uploadBody = "Send us your PO and we invoice against it on your terms. Drag in the PDF or pick a file below."+uploadCta = "Upload purchase order"+uploadTitle = "Upload your purchase order"++[portal.procurement.status]+action = "Action needed"+available = "Available"+complete = "Complete"+pending = "Pending"+request = "On request"++[portal.recentActivity]+title = "Recent activity"+viewAll = "View all"++[portal.recentActivity.empty]+description = "Pipeline runs, deploys and agent events will appear here."+title = "Nothing here yet"++[portal.search]+ariaLabel = "Search"+placeholder = "Search Stirling — endpoints, pipelines, docs…"++[portal.search.empty]+noActionsDescription = "Quick actions will appear here once they're available."+noActionsTitle = "No quick actions"+noMatches = "No matches for \"{{query}}\""+noMatchesDescription = "Try a different keyword or browse the catalogue."++[portal.settings]+ariaLabel = "Settings"+cancel = "Cancel"+enterpriseBadge = "Enterprise"+footerNote = "Changes apply to this workspace."+saveChanges = "Save changes"++[portal.settings.appearance]+themeSub = "Choose how the portal looks on this device."+themeTitle = "Theme"++[portal.settings.appearance.dark]+hint = "Dim surfaces"+label = "Dark"++[portal.settings.appearance.light]+hint = "Bright surfaces"+label = "Light"++[portal.settings.authentication]+sessionTimeout = "Session timeout"+sessionTimeoutHelper = "Members re-authenticate after this idle period."+sub = "Organisation-wide authentication controls."+title = "Sign-in policy"++[portal.settings.authentication.mfa]+description = "Require every member to complete MFA at sign-in."+label = "Enforce two-factor (MFA)"++[portal.settings.authentication.scim]+description = "Sync members and roles from your directory."+label = "SCIM provisioning"++[portal.settings.authentication.sso]+description = "Federate sign-in through your identity provider."+label = "Single sign-on (SAML)"++[portal.settings.authentication.timeout]+1440 = "24 hours"+240 = "4 hours"+480 = "8 hours"+60 = "1 hour"+720 = "12 hours"++[portal.settings.earlyAccess]+sub = "Opt into features still in preview."+title = "Preview features"++[portal.settings.groups]+account = "Account"+admin = "Admin"+workspace = "Workspace"++[portal.settings.notifications]+sub = "Pick which events reach your inbox."+title = "Email notifications"++[portal.settings.notifications.pipeline-failures]+description = "A run errors out or a step times out."+label = "Pipeline failures"++[portal.settings.notifications.pipeline-success]+description = "Every successful pipeline run finishes."+label = "Pipeline completions"++[portal.settings.notifications.product-updates]+description = "New operations, sources, and release notes."+label = "Product updates"++[portal.settings.notifications.security-alerts]+description = "New API keys, sign-ins, or permission changes."+label = "Security alerts"++[portal.settings.notifications.usage-alerts]+description = "You approach a plan limit or rate cap."+label = "Usage & quota alerts"++[portal.settings.notifications.weekly-digest]+description = "A Monday summary of volume and health."+label = "Weekly digest"++[portal.settings.profile]+accountFallback = "Account"+changePhoto = "Change photo"+email = "Email"+emailHelper = "Used for sign-in and notification delivery."+emailPlaceholder = "[email protected]"+fullName = "Full name"+namePlaceholder = "Your name"++[portal.settings.sections]+account-link = "Account link"+appearance = "Appearance"+authentication = "Authentication"+early-access = "Early access"+general = "General"+notifications = "Notifications"+profile = "Profile"+sessions = "Active sessions"++[portal.settings.sessions]+revoke = "Revoke"+sub = "Devices currently signed in to this account."+thisDevice = "This device"+title = "Active sessions"++[portal.settings.workspace]+manageBilling = "Manage billing"+nameLabel = "Workspace name"+namePlaceholder = "Workspace name"+plan = "Plan"+regionEnterpriseSuffix = "{{region}} · Enterprise"+regionHelper = "Where documents are processed and stored at rest."+regionLabel = "Data residency region"+seats = "Seats"+seatsUsed = "{{used}} of {{total}} used"++[portal.shell.header]+accountFallback = "Account"+accountMenu = "Account menu"+darkMode = "Dark mode"+lightMode = "Light mode"+search = "Search"+searchPlaceholder = "Search…"+signOut = "Sign out"+switchToDark = "Switch to dark theme"+switchToLight = "Switch to light theme"++[portal.shell.sidebar]+appEditor = "Editor"+appProcessor = "Processor"+brandSuffix = "Stirling Processor"+docsCount = "{{docs}} docs"+docsProcessed = "Docs processed"+linkAccount = "Link Stirling account"+planEnterprise = "Enterprise plan"+planProcessor = "Processor plan"+primaryNav = "Primary navigation"+switchApp = "Switch app"++[portal.sources]+subtitle = "Reusable input connections that feed documents into Stirling. Configure a connection once, then reference it from any number of policies. Click a row for its config and which policies use it."+title = "Sources"++[portal.sources.actions]+agentBuilder = "Agent Builder"+connectSource = "Connect source"++[portal.sources.delete]+body = "Delete \"{{name}}\"? This can't be undone. Policies that reference it would need to be updated."+cancel = "Cancel"+confirm = "Delete"+title = "Delete source?"++[portal.sources.detail]+closeAriaLabel = "Close detail"+delete = "Delete source"+docs24h = "Last 24h"+docs30d = "Last 30 days"+docsTotal = "Total seen"+docsTrend = "Documents over the last 30 days"+documents = "Documents"+edit = "Edit"+notReferenced = "Not referenced by any policy, so it's safe to delete."+pause = "Pause"+resume = "Resume"+subtitle = "{{type}} · {{status}}"+usedBy = "Used by"++[portal.sources.empty]+description = "Connect a folder (and, soon, cloud storage) so your policies have somewhere to pull documents from."+title = "No sources connected yet"++[portal.sources.kpi]+inUse = "In use"+total = "Connections"+unused = "Unused"++[portal.sources.status]+active = "Active"+disabled = "Disabled"+unused = "Unused"++[portal.sources.table]+source = "Source"+status = "Status"+usedBy = "Policies"++[portal.sources.types.editor]+label = "Editor"++[portal.sources.types.folder]+description = "Watch a directory on the server for new documents."+label = "Folder"++[portal.sources.types.folder.fields.directory]+helperText = "Absolute path Stirling watches for files to process."+label = "Directory path"+placeholder = "/data/incoming"++[portal.sources.types.folder.fields.mode]+label = "Read mode"++[portal.sources.types.folder.fields.mode.options]+consume = "Consume: process each file once"+snapshot = "Snapshot: re-read the folder every run"++[portal.sources.types.unknown]+label = "Source"++[portal.sources.wizard]+back = "Back"+cancel = "Cancel"+continue = "Continue"+editTitle = "Edit source"+name = "Name"+namePlaceholder = "e.g. Claims intake"+save = "Save changes"+subtitle = "Step {{current}} of {{total}} · {{label}}"+title = "Connect a source"+type = "Type"++[portal.sources.wizard.steps]+chooseType = "Choose type"+configure = "Configure"+review = "Review & connect"++[portal.usage]+managePayment = "Manage Payment"+subtitle = "Consumption, invoices, and plan management for every PDF Stirling has billed, in one console."+title = "Usage & billing"++[portal.usage.error]+loadWallet = "Couldn't load wallet"+openStripePortal = "Couldn't open Stripe portal"+walletUnavailable = "Wallet unavailable: {{status}} {{statusText}}"++[portal.usage.finalizing]+body = "It can take a few seconds for your subscription to activate. This page updates automatically."+title = "Finalizing your subscription…"++[portal.usage.sessionExpired]+action = "Sign in again"+body = "Your Stirling account session has expired. Sign in again to view billing — your instance stays linked."+title = "Session expired"++[portal.usageChart]+defaultLabel = "Docs processed · last 30 days"+delta = "{{pct}}% vs prior 30d"+docsValue = "{{value}} docs"+srAnnounce = "{{date}}: {{value}} docs"++[portal.useCases]+title = "Popular use cases"+viewAll = "View all pipelines"++[portal.useCases.items.authenticity]+blurb = "Cryptographic checks at the document boundary — signature validation, tamper detection, signing flows for outbound documents. Trust decisions in the pipeline, not your app code."+cta = "Try authenticity check"+eyebrow = "AUTHENTICITY"+title = "Verify signatures and detect tampering"++[portal.useCases.items.autoRouting]+blurb = "One classifier reads what arrived — KYC form, invoice, contract, COI — and routes to the right downstream pipeline. No manual triage, no docs in the wrong workflow."+cta = "Build a classifier pipeline"+eyebrow = "AUTO-ROUTING"+title = "Auto-classify and route incoming documents"++[portal.useCases.items.piiRedaction]+blurb = "Strip sensitive fields before storage, indexing, or LLM processing. Schema-aware, per-field audit, BYOK or HYOK keys. Compliance at the document boundary, not per pipeline."+cta = "See redaction pipelines"+eyebrow = "PII REDACTION"+title = "Redact PII before it leaves your stack"++[portal.useCases.items.trainingData]+blurb = "Batch-import an archive, redact PII, classify, chunk, and emit ready-to-load JSON for fine-tuning, eval sets, or RAG. Self-completing and replayable."+cta = "Build a training-data pipeline"+eyebrow = "TRAINING DATA"+title = "Turn PDFs into training data"++[portal.users]+subtitle = "The people in your organization and the access they hold — roles, status and security controls."+title = "Users"++[portal.users.access]+subtitle = "Seats, authentication and provisioning for your organization."+title = "Access & security"++[portal.users.access.auth]+title = "Authentication"++[portal.users.access.auth.requireMfa]+description = "Members must set up a second factor to sign in."+enforced = "Enforced org-wide on this plan."+label = "Require MFA"++[portal.users.access.auth.shortSessions]+description = "Sign members out after inactivity (currently {{timeout}})."+label = "Short-lived sessions"++[portal.users.access.scim]+active = "Active"+directory = "Directory"+lastSync = "Last sync"+note = "Members are created, updated and deactivated automatically from your identity provider."+off = "Off"+title = "SCIM provisioning"++[portal.users.access.seats]+title = "Seats"+unlimited = "Your plan includes unlimited seats."+usedLabel = "{{used}} of {{limit}} seats used"++[portal.users.access.sso]+connected = "Connected"+domains = "Domains"+manage = "Manage connection"+notConfigured = "Not configured"+provider = "Provider"+title = "SSO / SAML"++[portal.users.access.upgrade]+action = "Upgrade plan"+title = "Unlock team access controls"++[portal.users.empty]+description = "Invite your team to start collaborating on documents and pipelines."+title = "No members yet"++[portal.users.invite]+cancel = "Cancel"+email = "Email"+emailError = "Enter a valid email address"+emailPlaceholder = "[email protected]"+role = "Role"+roleHelper = "Determines what the member can do once they join."+send = "Send invite"+subtitle = "They'll receive an email to join your organization."++[portal.users.roles]+subtitle = "Every role exists on every plan — what each one can do is fixed across the org."+title = "Roles"++[portal.users.summary]+members = "Members"+pendingInvites = "Pending invites"+seatsUsed = "Seats used"++[portal.users.table]+actionsFor = "Actions for {{name}}"+changeRole = "Change role"+lastActive = "Last active"+member = "Member"+remove = "Remove from org"+role = "Role"+status = "Status"+suspend = "Suspend"++[portal.welcome]+ariaLabel = "Stirling product highlights"+pagination = "Carousel pagination"+slideLabel = "Slide {{number}}: {{title}}"++[portal.welcome.ornament.editor]+critical = "Critical"+ocrClean = "OCR-clean"+schemaMatch = "schema match 0.97"+signed = "signed"++[portal.welcome.slides.agents]+eyebrow = "AI Agents"+primary = "Try PDF Processor"+secondary = "View MCP docs"+sub = "Wire your agent via MCP, REST or tool definitions. Deterministic operations and guardrails — test with scenarios and evals before you ship."+title = "PDF Processor for AI Agents"++[portal.welcome.slides.editor]+eyebrow = "PDF Editor"+primary = "Install PDF Editor"+secondary = "Connect an instance"+sub = "Annotate, sign, redact, and review locally or in the cloud. Brought to the platform as the credibility anchor of the Stirling control plane."+title = "The #1 PDF Editor on GitHub"++[portal.welcome.slides.platform]+eyebrow = "Platform"+primary = "Try a PDF operation"+secondary = "Get an API key"+sub = "Ingest from agents, APIs and connectors. Run composable pipelines with evals and golden sets. Land in a vault with zero-standing-access controls."+title = "PDF Infrastructure for Developers"+[printFile]title = "Print File"diff --git a/frontend/portal/public/mockServiceWorker.js b/frontend/editor/public/mockServiceWorker.jssimilarity index 100%rename from frontend/portal/public/mockServiceWorker.jsrename to frontend/editor/public/mockServiceWorker.jsdiff --git a/frontend/editor/src/cloud/components/shared/config/configSections/SpendCapControl.tsx b/frontend/editor/src/cloud/components/shared/config/configSections/SpendCapControl.tsxindex f26d40f743..654691c2fc 100644--- a/frontend/editor/src/cloud/components/shared/config/configSections/SpendCapControl.tsx+++ b/frontend/editor/src/cloud/components/shared/config/configSections/SpendCapControl.tsx@@ -1,5 +1,5 @@/**- * Editor cloud adapter over the shared {@code @shared/billing} spend-cap control:+ * Editor cloud adapter over the shared {@code @app/billing} spend-cap control:* supplies the i18n copy (the shared control is copy-agnostic) and the editor's* {@code scc-*} styling. The public API (controlled {@code capUsd}/{@code* onChange}, optional {@code onSave}/{@code saveLabel}, {@code note}) is@@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next";import {DEFAULT_CAP_PRESETS,SpendCapControl as SharedSpendCapControl,-} from "@shared/billing";+} from "@app/billing";// eslint-disable-next-line no-restricted-importsimport "./SpendCapControl.css";diff --git a/frontend/editor/src/cloud/components/shared/config/configSections/usageMeters.tsx b/frontend/editor/src/cloud/components/shared/config/configSections/usageMeters.tsxindex 308fc97d32..4c8804027c 100644--- a/frontend/editor/src/cloud/components/shared/config/configSections/usageMeters.tsx+++ b/frontend/editor/src/cloud/components/shared/config/configSections/usageMeters.tsx@@ -7,7 +7,7 @@import { useMemo } from "react";import { useTranslation } from "react-i18next";import { useWallet, type Wallet } from "@app/hooks/useWallet";-import { currencySymbol, MeterBar, meterState } from "@shared/billing";+import { currencySymbol, MeterBar, meterState } from "@app/billing";import "@app/components/shared/config/configSections/Payg.css";import "@app/components/shared/config/configSections/PaygFree.css";diff --git a/frontend/editor/src/cloud/hooks/useWallet.ts b/frontend/editor/src/cloud/hooks/useWallet.tsindex 5a1b1d21cb..07e862fb8c 100644--- a/frontend/editor/src/cloud/hooks/useWallet.ts+++ b/frontend/editor/src/cloud/hooks/useWallet.ts@@ -57,10 +57,10 @@ import type {WalletMember,WalletCategoryBreakdown,WalletActivityRow,-} from "@shared/billing";+} from "@app/billing";// ─── Public types ───────────────────────────────────────────────────────-// The wallet contract lives in @shared/billing (shared with the admin portal).+// The wallet contract lives in @app/billing (shared with the admin portal).// Re-exported so existing `@app/hooks/useWallet` importers keep their imports.export type {Wallet,diff --git a/frontend/editor/src/cloud/tsconfig.json b/frontend/editor/src/cloud/tsconfig.jsonindex bf3eedb2e5..2b703ea335 100644--- a/frontend/editor/src/cloud/tsconfig.json+++ b/frontend/editor/src/cloud/tsconfig.json@@ -7,10 +7,10 @@"../../src/proprietary/*","../../src/core/*"],+ "@portal/*": ["../../src/portal/*"],"@cloud/*": ["../../src/cloud/*"],"@proprietary/*": ["../../src/proprietary/*"],- "@core/*": ["../../src/core/*"],- "@shared/*": ["../../../shared/*"]+ "@core/*": ["../../src/core/*"]}},"include": [diff --git a/frontend/shared/assets/Brand.stories.tsx b/frontend/editor/src/core/assets/Brand.stories.tsxsimilarity index 75%rename from frontend/shared/assets/Brand.stories.tsxrename to frontend/editor/src/core/assets/Brand.stories.tsxindex 87cf9f1257..886e7a023d 100644--- a/frontend/shared/assets/Brand.stories.tsx+++ b/frontend/editor/src/core/assets/Brand.stories.tsx@@ -2,16 +2,16 @@ import type { Meta, StoryObj } from "@storybook/react-vite";// Visual catalogue of the shared brand assets (shared/assets/brand) — the single// source of truth for the Stirling logos used across the apps.-import modernMarkDark from "@shared/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svg";-import modernMarkLight from "@shared/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svg";-import modernBlack from "@shared/assets/brand/modern-logo/StirlingPDFLogoBlackText.svg";-import modernWhite from "@shared/assets/brand/modern-logo/StirlingPDFLogoWhiteText.svg";-import modernGrey from "@shared/assets/brand/modern-logo/StirlingPDFLogoGreyText.svg";-import classicMarkDark from "@shared/assets/brand/classic-logo/StirlingPDFLogoNoTextDark.svg";-import classicMarkLight from "@shared/assets/brand/classic-logo/StirlingPDFLogoNoTextLight.svg";-import classicBlack from "@shared/assets/brand/classic-logo/StirlingPDFLogoBlackText.svg";-import classicWhite from "@shared/assets/brand/classic-logo/StirlingPDFLogoWhiteText.svg";-import classicGrey from "@shared/assets/brand/classic-logo/StirlingPDFLogoGreyText.svg";+import modernMarkDark from "@app/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svg";+import modernMarkLight from "@app/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svg";+import modernBlack from "@app/assets/brand/modern-logo/StirlingPDFLogoBlackText.svg";+import modernWhite from "@app/assets/brand/modern-logo/StirlingPDFLogoWhiteText.svg";+import modernGrey from "@app/assets/brand/modern-logo/StirlingPDFLogoGreyText.svg";+import classicMarkDark from "@app/assets/brand/classic-logo/StirlingPDFLogoNoTextDark.svg";+import classicMarkLight from "@app/assets/brand/classic-logo/StirlingPDFLogoNoTextLight.svg";+import classicBlack from "@app/assets/brand/classic-logo/StirlingPDFLogoBlackText.svg";+import classicWhite from "@app/assets/brand/classic-logo/StirlingPDFLogoWhiteText.svg";+import classicGrey from "@app/assets/brand/classic-logo/StirlingPDFLogoGreyText.svg";type Asset = { label: string; src: string; onDark?: boolean };type VariantSet = { variant: string; mark: Asset[]; wordmark: Asset[] };diff --git a/frontend/shared/assets/brand/classic-logo/Firstpage.png b/frontend/editor/src/core/assets/brand/classic-logo/Firstpage.pngsimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/Firstpage.pngrename to frontend/editor/src/core/assets/brand/classic-logo/Firstpage.pngdiff --git a/frontend/shared/assets/brand/classic-logo/StirlingPDFLogoBlackText.svg b/frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoBlackText.svgsimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/StirlingPDFLogoBlackText.svgrename to frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoBlackText.svgdiff --git a/frontend/shared/assets/brand/classic-logo/StirlingPDFLogoGreyText.svg b/frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoGreyText.svgsimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/StirlingPDFLogoGreyText.svgrename to frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoGreyText.svgdiff --git a/frontend/shared/assets/brand/classic-logo/StirlingPDFLogoNoTextDark.svg b/frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoNoTextDark.svgsimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/StirlingPDFLogoNoTextDark.svgrename to frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoNoTextDark.svgdiff --git a/frontend/shared/assets/brand/classic-logo/StirlingPDFLogoNoTextLight.svg b/frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoNoTextLight.svgsimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/StirlingPDFLogoNoTextLight.svgrename to frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoNoTextLight.svgdiff --git a/frontend/shared/assets/brand/classic-logo/StirlingPDFLogoWhiteText.svg b/frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoWhiteText.svgsimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/StirlingPDFLogoWhiteText.svgrename to frontend/editor/src/core/assets/brand/classic-logo/StirlingPDFLogoWhiteText.svgdiff --git a/frontend/shared/assets/brand/classic-logo/favicon.ico b/frontend/editor/src/core/assets/brand/classic-logo/favicon.icosimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/favicon.icorename to frontend/editor/src/core/assets/brand/classic-logo/favicon.icodiff --git a/frontend/shared/assets/brand/classic-logo/logo-tooltip.svg b/frontend/editor/src/core/assets/brand/classic-logo/logo-tooltip.svgsimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/logo-tooltip.svgrename to frontend/editor/src/core/assets/brand/classic-logo/logo-tooltip.svgdiff --git a/frontend/shared/assets/brand/classic-logo/logo192.png b/frontend/editor/src/core/assets/brand/classic-logo/logo192.pngsimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/logo192.pngrename to frontend/editor/src/core/assets/brand/classic-logo/logo192.pngdiff --git a/frontend/shared/assets/brand/classic-logo/logo512.png b/frontend/editor/src/core/assets/brand/classic-logo/logo512.pngsimilarity index 100%rename from frontend/shared/assets/brand/classic-logo/logo512.pngrename to frontend/editor/src/core/assets/brand/classic-logo/logo512.pngdiff --git a/frontend/shared/assets/brand/modern-logo/Firstpage.png b/frontend/editor/src/core/assets/brand/modern-logo/Firstpage.pngsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/Firstpage.pngrename to frontend/editor/src/core/assets/brand/modern-logo/Firstpage.pngdiff --git a/frontend/shared/assets/brand/modern-logo/LoginDarkModeHeader.svg b/frontend/editor/src/core/assets/brand/modern-logo/LoginDarkModeHeader.svgsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/LoginDarkModeHeader.svgrename to frontend/editor/src/core/assets/brand/modern-logo/LoginDarkModeHeader.svgdiff --git a/frontend/shared/assets/brand/modern-logo/LoginLightModeHeader.svg b/frontend/editor/src/core/assets/brand/modern-logo/LoginLightModeHeader.svgsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/LoginLightModeHeader.svgrename to frontend/editor/src/core/assets/brand/modern-logo/LoginLightModeHeader.svgdiff --git a/frontend/shared/assets/brand/modern-logo/StirlingPDFLogoBlackText.svg b/frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoBlackText.svgsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/StirlingPDFLogoBlackText.svgrename to frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoBlackText.svgdiff --git a/frontend/shared/assets/brand/modern-logo/StirlingPDFLogoGreyText.svg b/frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoGreyText.svgsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/StirlingPDFLogoGreyText.svgrename to frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoGreyText.svgdiff --git a/frontend/shared/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svg b/frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svgsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svgrename to frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svgdiff --git a/frontend/shared/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svg b/frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svgsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svgrename to frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svgdiff --git a/frontend/shared/assets/brand/modern-logo/StirlingPDFLogoWhiteText.svg b/frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoWhiteText.svgsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/StirlingPDFLogoWhiteText.svgrename to frontend/editor/src/core/assets/brand/modern-logo/StirlingPDFLogoWhiteText.svgdiff --git a/frontend/portal/public/favicon.ico b/frontend/editor/src/core/assets/brand/modern-logo/favicon.icosimilarity index 100%rename from frontend/portal/public/favicon.icorename to frontend/editor/src/core/assets/brand/modern-logo/favicon.icodiff --git a/frontend/shared/assets/brand/modern-logo/logo-tooltip.svg b/frontend/editor/src/core/assets/brand/modern-logo/logo-tooltip.svgsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/logo-tooltip.svgrename to frontend/editor/src/core/assets/brand/modern-logo/logo-tooltip.svgdiff --git a/frontend/shared/assets/brand/modern-logo/logo192.png b/frontend/editor/src/core/assets/brand/modern-logo/logo192.pngsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/logo192.pngrename to frontend/editor/src/core/assets/brand/modern-logo/logo192.pngdiff --git a/frontend/shared/assets/brand/modern-logo/logo512.png b/frontend/editor/src/core/assets/brand/modern-logo/logo512.pngsimilarity index 100%rename from frontend/shared/assets/brand/modern-logo/logo512.pngrename to frontend/editor/src/core/assets/brand/modern-logo/logo512.pngdiff --git a/frontend/shared/assets/login/AddToPDF.png b/frontend/editor/src/core/assets/login/AddToPDF.pngsimilarity index 100%rename from frontend/shared/assets/login/AddToPDF.pngrename to frontend/editor/src/core/assets/login/AddToPDF.pngdiff --git a/frontend/shared/assets/login/Firstpage.png b/frontend/editor/src/core/assets/login/Firstpage.pngsimilarity index 100%rename from frontend/shared/assets/login/Firstpage.pngrename to frontend/editor/src/core/assets/login/Firstpage.pngdiff --git a/frontend/shared/assets/login/LoginBackgroundPanel.png b/frontend/editor/src/core/assets/login/LoginBackgroundPanel.pngsimilarity index 100%rename from frontend/shared/assets/login/LoginBackgroundPanel.pngrename to frontend/editor/src/core/assets/login/LoginBackgroundPanel.pngdiff --git a/frontend/shared/assets/login/SecurePDF.png b/frontend/editor/src/core/assets/login/SecurePDF.pngsimilarity index 100%rename from frontend/shared/assets/login/SecurePDF.pngrename to frontend/editor/src/core/assets/login/SecurePDF.pngdiff --git a/frontend/shared/assets/login/apple.svg b/frontend/editor/src/core/assets/login/apple.svgsimilarity index 100%rename from frontend/shared/assets/login/apple.svgrename to frontend/editor/src/core/assets/login/apple.svgdiff --git a/frontend/shared/assets/login/authentik.svg b/frontend/editor/src/core/assets/login/authentik.svgsimilarity index 100%rename from frontend/shared/assets/login/authentik.svgrename to frontend/editor/src/core/assets/login/authentik.svgdiff --git a/frontend/shared/assets/login/cloudron.svg b/frontend/editor/src/core/assets/login/cloudron.svgsimilarity index 100%rename from frontend/shared/assets/login/cloudron.svgrename to frontend/editor/src/core/assets/login/cloudron.svgdiff --git a/frontend/shared/assets/login/github.svg b/frontend/editor/src/core/assets/login/github.svgsimilarity index 100%rename from frontend/shared/assets/login/github.svgrename to frontend/editor/src/core/assets/login/github.svgdiff --git a/frontend/shared/assets/login/google.svg b/frontend/editor/src/core/assets/login/google.svgsimilarity index 100%rename from frontend/shared/assets/login/google.svgrename to frontend/editor/src/core/assets/login/google.svgdiff --git a/frontend/shared/assets/login/keycloak.svg b/frontend/editor/src/core/assets/login/keycloak.svgsimilarity index 100%rename from frontend/shared/assets/login/keycloak.svgrename to frontend/editor/src/core/assets/login/keycloak.svgdiff --git a/frontend/shared/assets/login/microsoft.svg b/frontend/editor/src/core/assets/login/microsoft.svgsimilarity index 100%rename from frontend/shared/assets/login/microsoft.svgrename to frontend/editor/src/core/assets/login/microsoft.svgdiff --git a/frontend/shared/assets/login/oidc.svg b/frontend/editor/src/core/assets/login/oidc.svgsimilarity index 100%rename from frontend/shared/assets/login/oidc.svgrename to frontend/editor/src/core/assets/login/oidc.svgdiff --git a/frontend/shared/auth/ui/oauthIcons.ts b/frontend/editor/src/core/auth/ui/oauthIcons.tssimilarity index 67%rename from frontend/shared/auth/ui/oauthIcons.tsrename to frontend/editor/src/core/auth/ui/oauthIcons.tsindex c588274b92..f0d879786f 100644--- a/frontend/shared/auth/ui/oauthIcons.ts+++ b/frontend/editor/src/core/auth/ui/oauthIcons.ts@@ -6,14 +6,14 @@* editor's saas/desktop login buttons, and the config provider list) share one* copy that works in both the editor and the portal bundles.*/-import googleIcon from "@shared/assets/login/google.svg";-import githubIcon from "@shared/assets/login/github.svg";-import appleIcon from "@shared/assets/login/apple.svg";-import microsoftIcon from "@shared/assets/login/microsoft.svg";-import keycloakIcon from "@shared/assets/login/keycloak.svg";-import cloudronIcon from "@shared/assets/login/cloudron.svg";-import authentikIcon from "@shared/assets/login/authentik.svg";-import oidcIcon from "@shared/assets/login/oidc.svg";+import googleIcon from "@app/assets/login/google.svg";+import githubIcon from "@app/assets/login/github.svg";+import appleIcon from "@app/assets/login/apple.svg";+import microsoftIcon from "@app/assets/login/microsoft.svg";+import keycloakIcon from "@app/assets/login/keycloak.svg";+import cloudronIcon from "@app/assets/login/cloudron.svg";+import authentikIcon from "@app/assets/login/authentik.svg";+import oidcIcon from "@app/assets/login/oidc.svg";/** Generic fallback icon (filename) for unknown providers. */export const GENERIC_PROVIDER_ICON = "oidc.svg";diff --git a/frontend/editor/src/core/components/shared/ThemeProvider.tsx b/frontend/editor/src/core/components/shared/ThemeProvider.tsxindex 2dda9b8d39..bf15ce187f 100644--- a/frontend/editor/src/core/components/shared/ThemeProvider.tsx+++ b/frontend/editor/src/core/components/shared/ThemeProvider.tsx@@ -18,8 +18,8 @@ import {getSystemTheme,resolveColorScheme,} from "@app/constants/theme";-// SUI shared design-system tokens (used by @shared/components); key on `data-theme`.-import "@shared/tokens/tokens.css";+// SUI shared design-system tokens (used by @app/ui); key on `data-theme`.+import "@app/tokens/tokens.css";interface ThemeContextType {themeMode: ThemeMode;diff --git a/frontend/editor/src/core/components/shared/ToolPanelHeader.css b/frontend/editor/src/core/components/shared/ToolPanelHeader.cssnew file mode 100644index 0000000000..f1d99d1913--- /dev/null+++ b/frontend/editor/src/core/components/shared/ToolPanelHeader.css@@ -0,0 +1,93 @@+/* ===================== PanelHeader (core) ===================== */+/* Header for the active-tool rail. Core-owned so the OSS build has no */+/* design-system dependency; mirrors the shared rail header treatment so it */+/* reads well in both light and dark mode (thin border, no heavy fill). */++.sui-panelhdr {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ padding: 1rem 1rem 0.75rem;+ flex-shrink: 0;+}++.sui-panelhdr__bar {+ display: inline-flex;+ align-items: center;+ gap: 0.5rem;+ flex: 1;+ min-width: 0;+ padding: 0.4rem 0.75rem 0.4rem 0.4rem;+ border: 1px solid var(--border-subtle, var(--mantine-color-default-border));+ border-radius: 9999px;+ background: var(--mantine-color-body);+ text-align: left;+ color: inherit;+}++.sui-panelhdr__icon {+ position: relative;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 1.75rem;+ height: 1.75rem;+ border-radius: 9999px;+ background: var(--mantine-color-blue-light);+ color: var(--mantine-color-blue-filled);+ flex-shrink: 0;+}++.sui-panelhdr__icon svg {+ font-size: 1rem;+ width: 1rem;+ height: 1rem;+}++/* ToolIcon wraps its glyph in .tool-button-icon with its own margin/transform;+ reset them so the glyph sits dead-centre in the circular badge. */+.sui-panelhdr__icon .tool-button-icon {+ margin: 0 !important;+ transform: none !important;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ line-height: 1;+}++.sui-panelhdr__label {+ flex: 1;+ min-width: 0;+ font-size: 0.9rem;+ font-weight: 600;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ color: var(--mantine-color-text);+}++/* Dark mode: let the header blend into the rail — just a thin border, no fill —+ so it doesn't read as a clashing lighter card on the dark toolbar. */+[data-mantine-color-scheme="dark"] .sui-panelhdr__bar {+ background: transparent;+ border-color: var(--border-subtle, var(--mantine-color-default-border));+}++[data-mantine-color-scheme="dark"] .sui-panelhdr__icon {+ background: color-mix(+ in srgb,+ var(--mantine-color-blue-filled) 18%,+ transparent+ );+ color: var(--mantine-color-blue-3, var(--mantine-color-blue-filled));+}++/* Dark mode: the subtle gray close button is too dim against the dark rail —+ brighten it to a clearly-visible light grey (near-white on hover). */+[data-mantine-color-scheme="dark"] .sui-panelhdr__close {+ color: var(--mantine-color-gray-4);+}++[data-mantine-color-scheme="dark"] .sui-panelhdr__close:hover {+ color: var(--mantine-color-gray-2);+}diff --git a/frontend/editor/src/core/components/shared/ToolPanelHeader.tsx b/frontend/editor/src/core/components/shared/ToolPanelHeader.tsxnew file mode 100644index 0000000000..e34ca4c6c2--- /dev/null+++ b/frontend/editor/src/core/components/shared/ToolPanelHeader.tsx@@ -0,0 +1,53 @@+import type { ReactNode } from "react";+import { ActionIcon } from "@mantine/core";+import CloseIcon from "@mui/icons-material/Close";+import "@app/components/shared/ToolPanelHeader.css";++export interface ToolPanelHeaderProps {+ /** Glyph rendered in the tinted circular badge at the header's leading edge. */+ icon: ReactNode;+ /** Header title. */+ title: ReactNode;+ /** Close (X) handler. The trailing close button renders only when supplied. */+ onClose?: () => void;+ /** aria-label for the close button. */+ closeLabel?: string;+}++/**+ * Header for the active-tool rail surface: a tinted icon badge + title in a+ * rounded bar with a trailing close button.+ *+ * Core-owned so the OSS build carries no design-system dependency. It mirrors+ * the shared rail header's styling for the simple (non-menu) case the tool panel+ * needs; the richer variant (dropdown menu, accents, loading dot) lives in the+ * design system for the AI chat and Policies surfaces.+ */+export function ToolPanelHeader({+ icon,+ title,+ onClose,+ closeLabel,+}: ToolPanelHeaderProps) {+ return (+ <div className="sui-panelhdr">+ <div className="sui-panelhdr__bar">+ <span className="sui-panelhdr__icon">{icon}</span>+ <span className="sui-panelhdr__label">{title}</span>+ </div>+ {onClose && (+ <ActionIcon+ className="sui-panelhdr__close"+ variant="subtle"+ color="gray"+ radius="xl"+ size="md"+ onClick={onClose}+ aria-label={closeLabel}+ >+ <CloseIcon sx={{ fontSize: 18 }} />+ </ActionIcon>+ )}+ </div>+ );+}diff --git a/frontend/editor/src/core/components/shared/config/configSections/providerDefinitions.ts b/frontend/editor/src/core/components/shared/config/configSections/providerDefinitions.tsindex 6b5983822f..72dc675f8f 100644--- a/frontend/editor/src/core/components/shared/config/configSections/providerDefinitions.ts+++ b/frontend/editor/src/core/components/shared/config/configSections/providerDefinitions.ts@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { oauthIconUrl } from "@shared/auth/ui/oauthIcons";+import { oauthIconUrl } from "@app/auth/ui/oauthIcons";export type ProviderType = "oauth2" | "saml2" | "telegram" | "googledrive";diff --git a/frontend/editor/src/core/components/tools/RightSidebar.tsx b/frontend/editor/src/core/components/tools/RightSidebar.tsxindex bfd98d7b32..7e3aa04629 100644--- a/frontend/editor/src/core/components/tools/RightSidebar.tsx+++ b/frontend/editor/src/core/components/tools/RightSidebar.tsx@@ -19,7 +19,7 @@ import { useFavoriteToolItems } from "@app/hooks/tools/useFavoriteToolItems";import { useToolSections } from "@app/hooks/useToolSections";import type { SubcategoryGroup } from "@app/hooks/useToolSections";import { ToolIcon } from "@app/components/shared/ToolIcon";-import { PanelHeader } from "@shared/components/PanelHeader";+import { ToolPanelHeader } from "@app/components/shared/ToolPanelHeader";import { Tooltip as AppTooltip } from "@app/components/shared/Tooltip";import { withViewTransition } from "@app/utils/viewTransition";import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";@@ -291,7 +291,7 @@ export default function RightSidebar() {<>{!showPolicies &&(activeTool ? (- <PanelHeader+ <ToolPanelHeadericon={<ToolIconicon={activeTool.icon}diff --git a/frontend/editor/src/core/env.test.ts b/frontend/editor/src/core/env.test.tsindex af218623ec..a69607cd39 100644--- a/frontend/editor/src/core/env.test.ts+++ b/frontend/editor/src/core/env.test.ts@@ -50,6 +50,10 @@ function findViteEnvVars(srcDir: string): Set<string> {describe("env vars", () => {it("every VITE_ var used in source is present in an example env file", () => {const baseEnv = readFileSync(join(frontendRoot, ".env"), "utf-8");+ const proprietaryEnv = readFileSync(+ join(frontendRoot, ".env.proprietary"),+ "utf-8",+ );const desktopEnv = readFileSync(join(frontendRoot, ".env.desktop"),"utf-8",@@ -58,6 +62,7 @@ describe("env vars", () => {const declaredKeys = new Set([...parseEnvKeys(baseEnv),+ ...parseEnvKeys(proprietaryEnv),...parseEnvKeys(desktopEnv),...parseEnvKeys(saasEnv),]);diff --git a/frontend/editor/src/core/hooks/useLogoAssets.test.ts b/frontend/editor/src/core/hooks/useLogoAssets.test.tsindex b22701dedd..3d83fb35f4 100644--- a/frontend/editor/src/core/hooks/useLogoAssets.test.ts+++ b/frontend/editor/src/core/hooks/useLogoAssets.test.ts@@ -10,11 +10,11 @@ import type { LogoVariant } from "@app/services/preferencesService";*/describe("useLogoAssets - Logo Asset Files", () => {const publicDir = path.resolve(__dirname, "../../../public");- // Brand logo assets live in the shared design system; the editor's vite- // config copies shared/assets/brand/<folder>/* into the served root at build- // time (see viteStaticCopy in editor/vite.config.ts), so useLogoAssets can- // keep referencing them by their public-URL path. Validate them at source.- const brandDir = path.resolve(__dirname, "../../../../shared/assets/brand");+ // Brand logo assets live in core; the editor's vite config copies+ // core/assets/brand/<folder>/* into the served root at build time (see+ // viteStaticCopy in editor/vite.config.ts), so useLogoAssets can keep+ // referencing them by their public-URL path. Validate them at source.+ const brandDir = path.resolve(__dirname, "../assets/brand");// All asset files that useLogoAssets referencesconst requiredAssets = [diff --git a/frontend/editor/src/core/i18n.ts b/frontend/editor/src/core/i18n.tsindex 82b860b467..9663a1c2e2 100644--- a/frontend/editor/src/core/i18n.ts+++ b/frontend/editor/src/core/i18n.ts@@ -1,7 +1,7 @@import i18n from "i18next";import { initReactI18next } from "react-i18next";import LanguageDetector from "i18next-browser-languagedetector";-import TomlBackend from "@shared/i18n/tomlBackend";+import TomlBackend from "@app/i18n/tomlBackend";import {supportedLanguages,rtlLanguages,@@ -10,10 +10,10 @@ import {normalizeLanguageCode,toUnderscoreFormat,toUnderscoreLanguages,-} from "@shared/i18n/languages";+} from "@app/i18n/languages";// Language metadata and code helpers are shared with the portal via-// @shared/i18n. Re-export them so existing `@app/i18n` consumers are unchanged.+// @app/i18n. Re-export them so existing `@app/i18n` consumers are unchanged.export {supportedLanguages,rtlLanguages,diff --git a/frontend/editor/src/core/i18n/config.ts b/frontend/editor/src/core/i18n/config.tsindex 47e028c1f4..02b79f06b1 100644--- a/frontend/editor/src/core/i18n/config.ts+++ b/frontend/editor/src/core/i18n/config.ts@@ -1,6 +1,6 @@import i18n from "i18next";import { initReactI18next } from "react-i18next";-import TomlBackend from "@shared/i18n/tomlBackend";+import TomlBackend from "@app/i18n/tomlBackend";i18n.use(TomlBackend)diff --git a/frontend/shared/i18n/languages.ts b/frontend/editor/src/core/i18n/languages.tssimilarity index 100%rename from frontend/shared/i18n/languages.tsrename to frontend/editor/src/core/i18n/languages.tsdiff --git a/frontend/shared/i18n/tomlBackend.ts b/frontend/editor/src/core/i18n/tomlBackend.tssimilarity index 100%rename from frontend/shared/i18n/tomlBackend.tsrename to frontend/editor/src/core/i18n/tomlBackend.tsdiff --git a/frontend/shared/i18n/translationAudit.ts b/frontend/editor/src/core/i18n/translationAudit.tssimilarity index 90%rename from frontend/shared/i18n/translationAudit.tsrename to frontend/editor/src/core/i18n/translationAudit.tsindex 50cd1b2c76..e2cc309c72 100644--- a/frontend/shared/i18n/translationAudit.ts+++ b/frontend/editor/src/core/i18n/translationAudit.ts@@ -19,8 +19,8 @@ import { fileURLToPath } from "url";import ts from "typescript";import { parse } from "smol-toml";-const HERE = path.dirname(fileURLToPath(import.meta.url)); // frontend/shared/i18n-const FRONTEND_ROOT = path.resolve(HERE, "../.."); // frontend+const HERE = path.dirname(fileURLToPath(import.meta.url)); // frontend/editor/src/core/i18n+const FRONTEND_ROOT = path.resolve(HERE, "../../../.."); // frontend/** Repo root, for rendering source paths relative in CI annotations. */export const REPO_ROOT = path.resolve(FRONTEND_ROOT, "..");@@ -29,12 +29,6 @@ export interface TranslationProject {name: string;/** Absolute path to the source tree to scan. */srcRoot: string;- /**- * Extra source trees that also contribute used keys (e.g. the shared layer- * (frontend/shared), whose components (login UI, etc.) are rendered by both- * apps and reference each app's locale keys).- */- extraRoots?: string[];/** Absolute path to the en-US source locale. */localeFile: string;/** Static keys flagged as missing that are genuinely fine (false positives). */@@ -68,11 +62,6 @@ const PLURAL_SUFFIX_RE = /_(zero|one|two|few|many|other)$/;const front = (rel: string): string => path.join(FRONTEND_ROOT, rel);-// The shared layer is rendered by both apps, so its translation usage counts-// toward each project (or keys used only from shared look unused, and a shared-// component's keys go unvalidated against an app's locale).-const SHARED_SRC = front("shared");-/*** The projects the i18n suites guard. Each carries its own ignore lists: the* editor exempts a few runtime-assembled key families; the portal starts clean.@@ -80,8 +69,11 @@ const SHARED_SRC = front("shared");export const I18N_PROJECTS: TranslationProject[] = [{name: "editor",+ // One project over the whole editor tree, including the portal layer. Portal+ // strings live under portal.* in the shared locale and are referenced with+ // that prefix in source (t("portal.users.title")), so they validate here+ // like any other key.srcRoot: front("editor/src"),- extraRoots: [SHARED_SRC],localeFile: front("editor/public/locales/en-US/translation.toml"),ignoredKeyPatterns: [// SignSettings / SavedSignaturesSection resolve every key as@@ -93,24 +85,14 @@ export const I18N_PROJECTS: TranslationProject[] = [/^account\./,// [language] direction is read by the i18n layer, never as a UI string./^language\.direction$/,+ // Portal source-type copy is referenced via metadata keys in+ // components/sources/sourceTypes.ts (t(field.labelKey)), invisible to the+ // static scan.+ /^portal\.sources\.types\./,],minUsedKeys: 100,minLocaleKeys: 100,},- {- name: "portal",- srcRoot: front("portal/src"),- extraRoots: [SHARED_SRC],- localeFile: front("portal/public/locales/en-US/translation.toml"),- ignoredKeyPatterns: [- // Source-type copy is referenced via metadata keys in- // components/sources/sourceTypes.ts (t(field.labelKey)), so the static- // scan can't see these as used.- /^sources\.types\./,- ],- minUsedKeys: 20,- minLocaleKeys: 20,- },];// Locale tables are shallow by design; the cap only trips on a pathological@@ -189,11 +171,6 @@ const listSourceFiles = (roots: string[]): string[] =>).filter((file) => !IGNORED_FILE_PATTERNS.some((re) => re.test(file)));-const projectRoots = (project: TranslationProject): string[] => [- project.srcRoot,- ...(project.extraRoots ?? []),-];-const hasPluralCoverage = (key: string, available: Set<string>): boolean =>[...available].some((k) => k.startsWith(`${key}_`) && PLURAL_SUFFIX_RE.test(k),@@ -347,7 +324,7 @@ export function findMissingKeys(project: TranslationProject): {return false;};- const used = listSourceFiles(projectRoots(project))+ const used = listSourceFiles([project.srcRoot]).flatMap(extractStaticKeys).filter(({ key }) => !ignored.has(key));const missing = used.filter(({ key }) => !resolves(key));@@ -360,7 +337,7 @@ export function findUnusedKeys(project: TranslationProject): {localeCount: number;} {const localeKeys = Array.from(collectLocaleKeys(project.localeFile));- const files = listSourceFiles(projectRoots(project));+ const files = listSourceFiles([project.srcRoot]);const source = files.map((file) => fs.readFileSync(file, "utf8")).join("\n");const shapes = new Set<string>();diff --git a/frontend/editor/src/core/routes/adminRouteExtensions.tsx b/frontend/editor/src/core/routes/adminRouteExtensions.tsxnew file mode 100644index 0000000000..657d4799a3--- /dev/null+++ b/frontend/editor/src/core/routes/adminRouteExtensions.tsx@@ -0,0 +1,10 @@+import type { ReactElement } from "react";++/**+ * Admin-only route-set contributed by higher layers (the portal). The OSS core+ * build ships none, so this stub returns an empty list and the portal chunk is+ * never referenced in the core bundle.+ */+export function getAdminRouteExtensions(): ReactElement[] {+ return [];+}diff --git a/frontend/editor/src/core/tests/missingTranslations.test.ts b/frontend/editor/src/core/tests/missingTranslations.test.tsindex f98022559b..617699e43a 100644--- a/frontend/editor/src/core/tests/missingTranslations.test.ts+++ b/frontend/editor/src/core/tests/missingTranslations.test.ts@@ -5,10 +5,10 @@ import {I18N_PROJECTS,REPO_ROOT,findMissingKeys,-} from "@shared/i18n/translationAudit";+} from "@app/i18n/translationAudit";// One suite per frontend app (editor + portal). The scan logic lives in-// @shared/i18n/translationAudit so both apps share one implementation.+// @app/i18n/translationAudit so both apps share one implementation.describe.each(I18N_PROJECTS)("Missing translation coverage — $name",(project) => {diff --git a/frontend/editor/src/core/tests/unusedTranslations.test.ts b/frontend/editor/src/core/tests/unusedTranslations.test.tsindex 1193c737bf..f0d0fbce93 100644--- a/frontend/editor/src/core/tests/unusedTranslations.test.ts+++ b/frontend/editor/src/core/tests/unusedTranslations.test.ts@@ -5,10 +5,10 @@ import {I18N_PROJECTS,REPO_ROOT,findUnusedKeys,-} from "@shared/i18n/translationAudit";+} from "@app/i18n/translationAudit";// One suite per frontend app (editor + portal). The scan logic lives in-// @shared/i18n/translationAudit so both apps share one implementation; each+// @app/i18n/translationAudit so both apps share one implementation; each// project carries its own ignoredKeyPatterns for runtime-assembled keys.describe.each(I18N_PROJECTS)("Unused translation coverage — $name",@@ -38,7 +38,7 @@ describe.each(I18N_PROJECTS)(`Found ${unused.length} unused en-US translation key(s). ` +`Remove them from ${localeRelative}, or (if the usage is too ` +`dynamic for the heuristic to spot) add a pattern to this ` +- `project's ignoredKeyPatterns in @shared/i18n/translationAudit.`,+ `project's ignoredKeyPatterns in @app/i18n/translationAudit.`,).toEqual([]);},);diff --git a/frontend/shared/tokens/Tokens.stories.tsx b/frontend/editor/src/core/tokens/Tokens.stories.tsxsimilarity index 100%rename from frontend/shared/tokens/Tokens.stories.tsxrename to frontend/editor/src/core/tokens/Tokens.stories.tsxdiff --git a/frontend/shared/tokens/base.css b/frontend/editor/src/core/tokens/base.csssimilarity index 100%rename from frontend/shared/tokens/base.cssrename to frontend/editor/src/core/tokens/base.cssdiff --git a/frontend/shared/tokens/tokens.css b/frontend/editor/src/core/tokens/tokens.csssimilarity index 100%rename from frontend/shared/tokens/tokens.cssrename to frontend/editor/src/core/tokens/tokens.cssdiff --git a/frontend/shared/tokens/tokens.ts b/frontend/editor/src/core/tokens/tokens.tssimilarity index 100%rename from frontend/shared/tokens/tokens.tsrename to frontend/editor/src/core/tokens/tokens.tsdiff --git a/frontend/editor/src/core/tsconfig.json b/frontend/editor/src/core/tsconfig.jsonindex 781d894b6d..08bf588c6a 100644--- a/frontend/editor/src/core/tsconfig.json+++ b/frontend/editor/src/core/tsconfig.json@@ -2,8 +2,7 @@"extends": "../../tsconfig.json","compilerOptions": {"paths": {- "@app/*": ["../../src/core/*"],- "@shared/*": ["../../../shared/*"]+ "@app/*": ["../../src/core/*"]}},"include": ["../global.d.ts", "../*.js", "../*.ts", "../*.tsx", "."]diff --git a/frontend/editor/src/desktop/components/SetupWizard/DesktopAuthLayout.tsx b/frontend/editor/src/desktop/components/SetupWizard/DesktopAuthLayout.tsxindex ad783e9f76..f5e64f2927 100644--- a/frontend/editor/src/desktop/components/SetupWizard/DesktopAuthLayout.tsx+++ b/frontend/editor/src/desktop/components/SetupWizard/DesktopAuthLayout.tsx@@ -1,8 +1,8 @@import React, { useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import LoginRightCarousel from "@shared/auth/ui/LoginRightCarousel";+import LoginRightCarousel from "@app/auth/ui/LoginRightCarousel";import buildLoginSlides from "@app/components/shared/loginSlides";-import styles from "@shared/auth/ui/AuthShell.module.css";+import styles from "@app/auth/ui/AuthShell.module.css";import { useLogoVariant } from "@app/hooks/useLogoVariant";interface DesktopAuthLayoutProps {diff --git a/frontend/editor/src/desktop/components/SetupWizard/DesktopOAuthButtons.tsx b/frontend/editor/src/desktop/components/SetupWizard/DesktopOAuthButtons.tsxindex c2da65845b..c9813d818e 100644--- a/frontend/editor/src/desktop/components/SetupWizard/DesktopOAuthButtons.tsx+++ b/frontend/editor/src/desktop/components/SetupWizard/DesktopOAuthButtons.tsx@@ -2,7 +2,7 @@ import React, { useState } from "react";import { useTranslation } from "react-i18next";import { authService, UserInfo } from "@app/services/authService";import { buildOAuthCallbackHtml } from "@app/utils/oauthCallbackHtml";-import { oauthIconUrl } from "@shared/auth/ui/oauthIcons";+import { oauthIconUrl } from "@app/auth/ui/oauthIcons";import { STIRLING_SAAS_URL } from "@app/constants/connection";import "@app/components/SetupWizard/desktopOAuth.css";diff --git a/frontend/editor/src/desktop/components/SetupWizard/SaaSLoginScreen.tsx b/frontend/editor/src/desktop/components/SetupWizard/SaaSLoginScreen.tsxindex 7f679052a3..dc346ef9ac 100644--- a/frontend/editor/src/desktop/components/SetupWizard/SaaSLoginScreen.tsx+++ b/frontend/editor/src/desktop/components/SetupWizard/SaaSLoginScreen.tsx@@ -1,13 +1,13 @@import React, { useState } from "react";import { useTranslation } from "react-i18next";import LoginHeader from "@app/routes/login/LoginHeader";-import ErrorMessage from "@shared/auth/ui/ErrorMessage";-import EmailPasswordForm from "@shared/auth/ui/EmailPasswordForm";+import ErrorMessage from "@app/auth/ui/ErrorMessage";+import EmailPasswordForm from "@app/auth/ui/EmailPasswordForm";import DividerWithText from "@app/components/shared/DividerWithText";import { DesktopOAuthButtons } from "@app/components/SetupWizard/DesktopOAuthButtons";import { SelfHostedLink } from "@app/components/SetupWizard/SelfHostedLink";import { UserInfo } from "@app/services/authService";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";interface SaaSLoginScreenProps {serverUrl: string;diff --git a/frontend/editor/src/desktop/components/SetupWizard/SaaSSignupScreen.tsx b/frontend/editor/src/desktop/components/SetupWizard/SaaSSignupScreen.tsxindex bcc7bf88c7..a3765c2c98 100644--- a/frontend/editor/src/desktop/components/SetupWizard/SaaSSignupScreen.tsx+++ b/frontend/editor/src/desktop/components/SetupWizard/SaaSSignupScreen.tsx@@ -1,14 +1,14 @@import React, { useState } from "react";import { useTranslation } from "react-i18next";import LoginHeader from "@app/routes/login/LoginHeader";-import ErrorMessage from "@shared/auth/ui/ErrorMessage";+import ErrorMessage from "@app/auth/ui/ErrorMessage";import SignupForm from "@app/routes/signup/SignupForm";import {useSignupFormValidation,SignupFieldErrors,} from "@app/routes/signup/SignupFormValidation";import { authService } from "@app/services/authService";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";interface SaaSSignupScreenProps {loading: boolean;diff --git a/frontend/editor/src/desktop/components/SetupWizard/SelfHostedLink.tsx b/frontend/editor/src/desktop/components/SetupWizard/SelfHostedLink.tsxindex 739c02516d..8d5c98fe6e 100644--- a/frontend/editor/src/desktop/components/SetupWizard/SelfHostedLink.tsx+++ b/frontend/editor/src/desktop/components/SetupWizard/SelfHostedLink.tsx@@ -1,6 +1,6 @@import React from "react";import { useTranslation } from "react-i18next";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";interface SelfHostedLinkProps {onClick: () => void;diff --git a/frontend/editor/src/desktop/components/SetupWizard/SelfHostedLoginScreen.tsx b/frontend/editor/src/desktop/components/SetupWizard/SelfHostedLoginScreen.tsxindex ff2d743809..34a26a8fa0 100644--- a/frontend/editor/src/desktop/components/SetupWizard/SelfHostedLoginScreen.tsx+++ b/frontend/editor/src/desktop/components/SetupWizard/SelfHostedLoginScreen.tsx@@ -2,13 +2,13 @@ import React, { useState } from "react";import { useTranslation } from "react-i18next";import { Text } from "@mantine/core";import LoginHeader from "@app/routes/login/LoginHeader";-import ErrorMessage from "@shared/auth/ui/ErrorMessage";-import EmailPasswordForm from "@shared/auth/ui/EmailPasswordForm";+import ErrorMessage from "@app/auth/ui/ErrorMessage";+import EmailPasswordForm from "@app/auth/ui/EmailPasswordForm";import DividerWithText from "@app/components/shared/DividerWithText";import { DesktopOAuthButtons } from "@app/components/SetupWizard/DesktopOAuthButtons";import { UserInfo } from "@app/services/authService";import { SSOProviderConfig } from "@app/services/connectionModeService";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";interface SelfHostedLoginScreenProps {serverUrl: string;diff --git a/frontend/editor/src/desktop/components/SetupWizard/ServerSelectionScreen.tsx b/frontend/editor/src/desktop/components/SetupWizard/ServerSelectionScreen.tsxindex 7ddf7b3cb2..c3fc2f3846 100644--- a/frontend/editor/src/desktop/components/SetupWizard/ServerSelectionScreen.tsx+++ b/frontend/editor/src/desktop/components/SetupWizard/ServerSelectionScreen.tsx@@ -1,10 +1,10 @@import React from "react";import { useTranslation } from "react-i18next";import LoginHeader from "@app/routes/login/LoginHeader";-import ErrorMessage from "@shared/auth/ui/ErrorMessage";+import ErrorMessage from "@app/auth/ui/ErrorMessage";import { ServerSelection } from "@app/components/SetupWizard/ServerSelection";import { ServerConfig } from "@app/services/connectionModeService";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";interface ServerSelectionScreenProps {onSelect: (config: ServerConfig) => void;diff --git a/frontend/editor/src/desktop/components/SetupWizard/index.tsx b/frontend/editor/src/desktop/components/SetupWizard/index.tsxindex e218f06e0c..2f6ddaba2b 100644--- a/frontend/editor/src/desktop/components/SetupWizard/index.tsx+++ b/frontend/editor/src/desktop/components/SetupWizard/index.tsx@@ -19,7 +19,7 @@ import {import { tauriBackendService } from "@app/services/tauriBackendService";import { STIRLING_SAAS_URL } from "@app/constants/connection";import { listen } from "@tauri-apps/api/event";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import { DisabledButtonWithTooltip } from "@app/components/shared/DisabledButtonWithTooltip";enum SetupStep {diff --git a/frontend/editor/src/desktop/routes/adminRouteExtensions.tsx b/frontend/editor/src/desktop/routes/adminRouteExtensions.tsxnew file mode 100644index 0000000000..afd92050bc--- /dev/null+++ b/frontend/editor/src/desktop/routes/adminRouteExtensions.tsx@@ -0,0 +1,10 @@+import type { ReactElement } from "react";++/**+ * Desktop inherits proprietary's App but must NOT ship the portal. Shadowing+ * the seam back to empty means the desktop bundle never references PortalApp,+ * so the portal chunk is not emitted (and @portal never has to resolve there).+ */+export function getAdminRouteExtensions(): ReactElement[] {+ return [];+}diff --git a/frontend/editor/src/desktop/tsconfig.json b/frontend/editor/src/desktop/tsconfig.jsonindex 27f094be66..e7f83893c4 100644--- a/frontend/editor/src/desktop/tsconfig.json+++ b/frontend/editor/src/desktop/tsconfig.json@@ -10,8 +10,7 @@],"@cloud/*": ["../../src/cloud/*"],"@proprietary/*": ["../../src/proprietary/*"],- "@core/*": ["../../src/core/*"],- "@shared/*": ["../../../shared/*"]+ "@core/*": ["../../src/core/*"]}},"include": [diff --git a/frontend/portal/LICENSE b/frontend/editor/src/portal/LICENSEsimilarity index 100%rename from frontend/portal/LICENSErename to frontend/editor/src/portal/LICENSEdiff --git a/frontend/portal/MOCKS.md b/frontend/editor/src/portal/MOCKS.mdsimilarity index 100%rename from frontend/portal/MOCKS.mdrename to frontend/editor/src/portal/MOCKS.mddiff --git a/frontend/portal/src/App.tsx b/frontend/editor/src/portal/PortalApp.tsxsimilarity index 81%rename from frontend/portal/src/App.tsxrename to frontend/editor/src/portal/PortalApp.tsxindex cd1195cde3..1494e23cdf 100644--- a/frontend/portal/src/App.tsx+++ b/frontend/editor/src/portal/PortalApp.tsx@@ -1,12 +1,12 @@import { useEffect, type ReactNode } from "react";-import { BrowserRouter, useLocation } from "react-router-dom";+import { useLocation } from "react-router-dom";import { MantineProvider } from "@mantine/core";-import { AuthProvider } from "@shared/auth";+import { AuthProvider } from "@app/auth";import { ErrorBoundary } from "@portal/components/ErrorBoundary";import { ThemeProvider, useTheme } from "@portal/contexts/ThemeContext";import { TierProvider } from "@portal/contexts/TierContext";import { LinkProvider, useLink } from "@portal/contexts/LinkContext";-import type { SupabaseLoginSession } from "@shared/auth/ui/useSupabaseLogin";+import type { SupabaseLoginSession } from "@app/auth/ui/useSupabaseLogin";import { UIProvider, useUI } from "@portal/contexts/UIContext";import { mantineTheme } from "@portal/theme/mantineTheme";import { AppShell } from "@portal/components/AppShell";@@ -21,6 +21,8 @@ import {useAccountLinkContext,} from "@portal/contexts/AccountLinkContext";import { ViewRouter } from "@portal/ViewRouter";+// Reset + typography, scoped to .portal-scope below.+import "@portal/theme/base.css";/*** Binds Mantine's colour scheme to the portal's own ThemeProvider so Mantine@@ -117,22 +119,24 @@ function RoutedContent() {);}-export function App() {- // Honour the Vite base path so the portal routes correctly when served under a- // subpath (e.g. "/portal" behind the single-origin proxy). BASE_URL is "./"- // for a standalone build, which isn't a valid router basename, so only pass it- // when it's an absolute subpath.- const baseUrl = import.meta.env.BASE_URL;- const basename = baseUrl.startsWith("/") ? baseUrl : undefined;+/**+ * The portal, mounted as a route-set under /portal/* inside the editor app (via+ * the admin-route seam). It supplies its own providers and its own i18next+ * instance (the `portal` namespace), but NOT a router — the editor's+ * <BrowserRouter> is the one and only router; the portal's routes are relative+ * to the /portal mount (see ViewRouter).+ */+export function PortalApp() {return (<ThemeProvider><PortalMantineProvider>- <AuthProvider mode="spring">- <LinkProvider initialState="unlinked">- {/* TierProvider sits INSIDE LinkProvider so it can derive the tier+ {/* Scopes base.css to the portal so it doesn't restyle the host editor. */}+ <div className="portal-scope">+ <AuthProvider mode="spring">+ <LinkProvider initialState="unlinked">+ {/* TierProvider sits INSIDE LinkProvider so it can derive the tierfrom the real link/subscription state when MSW mocks are off. */}- <TierProvider initialTier="pro">- <BrowserRouter basename={basename}>+ <TierProvider initialTier="pro"><UIProvider><GlobalShortcuts /><AuthGate>@@ -148,10 +152,10 @@ export function App() {</AccountLinkProvider></AuthGate></UIProvider>- </BrowserRouter>- </TierProvider>- </LinkProvider>- </AuthProvider>+ </TierProvider>+ </LinkProvider>+ </AuthProvider>+ </div></PortalMantineProvider></ThemeProvider>);diff --git a/frontend/portal/UI_CONVENTIONS.md b/frontend/editor/src/portal/UI_CONVENTIONS.mdsimilarity index 95%rename from frontend/portal/UI_CONVENTIONS.mdrename to frontend/editor/src/portal/UI_CONVENTIONS.mdindex c4d51b5819..40879e2199 100644--- a/frontend/portal/UI_CONVENTIONS.md+++ b/frontend/editor/src/portal/UI_CONVENTIONS.md@@ -3,7 +3,7 @@The portal has two component sources. The rule:> **Simple, presentational, brand-defining UI → our SUI design system-> (`@shared/components`). Complex, stateful, or accessibility-hard widgets →+> (`@app/ui`). Complex, stateful, or accessibility-hard widgets →> Mantine.** Don't reinvent what Mantine already does well; do own the look of> the simple, high-frequency pieces.@@ -13,7 +13,7 @@ follow the same light/dark switch and brand colours as SUI. **The provider isintentional** — it exists precisely so we can drop Mantine widgets in where theyearn their keep.-## Use SUI (`@shared/components`) — our own style+## Use SUI (`@app/ui`) — our own styleLayout and presentational primitives we want full brand control over and thatare cheap to own:diff --git a/frontend/editor/src/portal/ViewRouter.tsx b/frontend/editor/src/portal/ViewRouter.tsxnew file mode 100644index 0000000000..2b09a24507--- /dev/null+++ b/frontend/editor/src/portal/ViewRouter.tsx@@ -0,0 +1,58 @@+import { Navigate, Route, Routes } from "react-router-dom";+import { Home } from "@portal/views/Home";+import { Users } from "@portal/views/Users";+import { Documents } from "@portal/views/Documents";+import { Pipelines } from "@portal/views/Pipelines";+import { Sources } from "@portal/views/Sources";+import { AgentBuilder } from "@portal/views/AgentBuilder";+import { Policies } from "@portal/views/Policies";+import { Components } from "@portal/views/Components";+import { EditorAdmin } from "@portal/views/EditorAdmin";+import { Infrastructure } from "@portal/views/Infrastructure";+import { Usage } from "@portal/views/Usage";+import { DeveloperDocs } from "@portal/views/DeveloperDocs";+import { Procurement } from "@portal/views/Procurement";+import { VIEW_PATHS, toPortalPath } from "@portal/contexts/ViewContext";++// The portal mounts as a route-set under /portal/* in the editor app, so these+// child routes are relative to that base: strip the leading slash from the+// logical VIEW_PATHS, and home is the index route. Redirects use toPortalPath+// so they resolve to the portal, not the editor root.+const rel = (viewPath: string) => viewPath.replace(/^\//, "");++export function ViewRouter() {+ return (+ <Routes>+ <Route index element={<Home />} />+ <Route path={rel(VIEW_PATHS.users)} element={<Users />} />+ <Route path={rel(VIEW_PATHS.pipelines)} element={<Pipelines />} />+ <Route path={rel(VIEW_PATHS.sources)} element={<Sources />} />+ <Route+ path={rel(VIEW_PATHS["agent-builder"])}+ element={<AgentBuilder />}+ />+ <Route path={rel(VIEW_PATHS.policies)} element={<Policies />} />+ <Route path={rel(VIEW_PATHS.documents)} element={<Documents />} />+ <Route path={rel(VIEW_PATHS.components)} element={<Components />} />+ <Route path={rel(VIEW_PATHS.editor)} element={<EditorAdmin />} />+ <Route+ path={rel(VIEW_PATHS.infrastructure)}+ element={<Infrastructure />}+ />+ <Route path={rel(VIEW_PATHS.usage)} element={<Usage />} />+ <Route path={rel(VIEW_PATHS.procurement)} element={<Procurement />} />+ <Route path={rel(VIEW_PATHS.docs)} element={<DeveloperDocs />} />+ {/* Account-link is now a Settings panel; redirect legacy bookmarks home. */}+ <Route+ path="account-link"+ element={<Navigate to={toPortalPath(VIEW_PATHS.home)} replace />}+ />+ {/* Settings is a modal overlay, not a route (see AppShell + UIContext). */}+ {/* Unknown paths land on Home. */}+ <Route+ path="*"+ element={<Navigate to={toPortalPath(VIEW_PATHS.home)} replace />}+ />+ </Routes>+ );+}diff --git a/frontend/portal/src/api/agents.ts b/frontend/editor/src/portal/api/agents.tssimilarity index 100%rename from frontend/portal/src/api/agents.tsrename to frontend/editor/src/portal/api/agents.tsdiff --git a/frontend/portal/src/api/assistant.ts b/frontend/editor/src/portal/api/assistant.tssimilarity index 100%rename from frontend/portal/src/api/assistant.tsrename to frontend/editor/src/portal/api/assistant.tsdiff --git a/frontend/portal/src/api/billing.ts b/frontend/editor/src/portal/api/billing.tssimilarity index 95%rename from frontend/portal/src/api/billing.tsrename to frontend/editor/src/portal/api/billing.tsindex 7c87bb5ca5..fbb8673a26 100644--- a/frontend/portal/src/api/billing.ts+++ b/frontend/editor/src/portal/api/billing.ts@@ -1,10 +1,10 @@import { apiClient } from "@portal/api/http";-import type { Wallet } from "@shared/billing";+import type { Wallet } from "@app/billing";/*** Real wallet + billing surface. All calls go to apiClient.saas — the hosted* SaaS Java backend, authed by the admin's Supabase JWT. The wallet contract- * itself lives in {@code @shared/billing} (shared with the editor cloud surface).+ * itself lives in {@code @app/billing} (shared with the editor cloud surface).*/// Re-export the shared contract so existing `@portal/api/billing` importers keep working.@@ -15,7 +15,7 @@ export type {WalletMember,WalletCategoryBreakdown,WalletActivityRow,-} from "@shared/billing";+} from "@app/billing";export async function fetchWallet(): Promise<Wallet> {return apiClient.saas.json<Wallet>("/api/v1/payg/wallet");diff --git a/frontend/portal/src/api/docs.ts b/frontend/editor/src/portal/api/docs.tssimilarity index 100%rename from frontend/portal/src/api/docs.tsrename to frontend/editor/src/portal/api/docs.tsdiff --git a/frontend/portal/src/api/documents.ts b/frontend/editor/src/portal/api/documents.tssimilarity index 100%rename from frontend/portal/src/api/documents.tsrename to frontend/editor/src/portal/api/documents.tsdiff --git a/frontend/portal/src/api/editorDeploy.ts b/frontend/editor/src/portal/api/editorDeploy.tssimilarity index 100%rename from frontend/portal/src/api/editorDeploy.tsrename to frontend/editor/src/portal/api/editorDeploy.tsdiff --git a/frontend/portal/src/api/home.ts b/frontend/editor/src/portal/api/home.tssimilarity index 100%rename from frontend/portal/src/api/home.tsrename to frontend/editor/src/portal/api/home.tsdiff --git a/frontend/portal/src/api/http.test.ts b/frontend/editor/src/portal/api/http.test.tssimilarity index 96%rename from frontend/portal/src/api/http.test.tsrename to frontend/editor/src/portal/api/http.test.tsindex 085948c77f..031327c0cf 100644--- a/frontend/portal/src/api/http.test.ts+++ b/frontend/editor/src/portal/api/http.test.ts@@ -12,8 +12,8 @@ const { getSession, getStoredTokenMock } = vi.hoisted(() => ({getStoredTokenMock: vi.fn(),}));-vi.mock("@shared/auth", () => ({ getStoredToken: getStoredTokenMock }));-vi.mock("@shared/auth/supabase/supabaseClient", () => ({+vi.mock("@app/auth", () => ({ getStoredToken: getStoredTokenMock }));+vi.mock("@app/auth/supabase/supabaseClient", () => ({getSupabaseClient: () => ({ auth: { getSession } }),configureSupabase: vi.fn(),}));diff --git a/frontend/portal/src/api/http.ts b/frontend/editor/src/portal/api/http.tssimilarity index 97%rename from frontend/portal/src/api/http.tsrename to frontend/editor/src/portal/api/http.tsindex a37df3ce81..9f7b28da03 100644--- a/frontend/portal/src/api/http.ts+++ b/frontend/editor/src/portal/api/http.ts@@ -5,7 +5,7 @@** apiClient.local Same-origin (vite proxy → this instance's local* Stirling backend on :8080). Spring admin bearer- * (`stirling_jwt` from @shared/auth) auto-attached.+ * (`stirling_jwt` from @app/auth) auto-attached.* USE FOR: actions on this instance —* /api/v1/account-link/{status,link,unlink}, etc.*@@ -39,8 +39,8 @@* entitlement calls. It never enters the portal — the browser is the human* admin and uses the Supabase JWT for SaaS reads. Don't add it here.*/-import { clearStoredToken, getStoredToken } from "@shared/auth";-import { getSupabaseClient } from "@shared/auth/supabase/supabaseClient";+import { clearStoredToken, getStoredToken } from "@app/auth";+import { getSupabaseClient } from "@app/auth/supabase/supabaseClient";import { ensureSaasSupabase } from "@portal/auth/saasSupabase";/** Read the SaaS base URL at call time so tests can stub it via vi.stubEnv. */diff --git a/frontend/portal/src/api/infrastructure.ts b/frontend/editor/src/portal/api/infrastructure.tssimilarity index 100%rename from frontend/portal/src/api/infrastructure.tsrename to frontend/editor/src/portal/api/infrastructure.tsdiff --git a/frontend/portal/src/api/link.test.ts b/frontend/editor/src/portal/api/link.test.tssimilarity index 98%rename from frontend/portal/src/api/link.test.tsrename to frontend/editor/src/portal/api/link.test.tsindex e6d9b12703..2f5260486a 100644--- a/frontend/portal/src/api/link.test.ts+++ b/frontend/editor/src/portal/api/link.test.ts@@ -20,7 +20,7 @@ const { getSession } = vi.hoisted(() => ({data: { session: { access_token: "supabase_jwt_test" } },}),}));-vi.mock("@shared/auth/supabase/supabaseClient", () => ({+vi.mock("@app/auth/supabase/supabaseClient", () => ({getSupabaseClient: () => ({ auth: { getSession } }),configureSupabase: vi.fn(),}));diff --git a/frontend/portal/src/api/link.ts b/frontend/editor/src/portal/api/link.tssimilarity index 100%rename from frontend/portal/src/api/link.tsrename to frontend/editor/src/portal/api/link.tsdiff --git a/frontend/portal/src/api/notifications.ts b/frontend/editor/src/portal/api/notifications.tssimilarity index 100%rename from frontend/portal/src/api/notifications.tsrename to frontend/editor/src/portal/api/notifications.tsdiff --git a/frontend/portal/src/api/ops.ts b/frontend/editor/src/portal/api/ops.tssimilarity index 100%rename from frontend/portal/src/api/ops.tsrename to frontend/editor/src/portal/api/ops.tsdiff --git a/frontend/portal/src/api/pipelines.ts b/frontend/editor/src/portal/api/pipelines.tssimilarity index 100%rename from frontend/portal/src/api/pipelines.tsrename to frontend/editor/src/portal/api/pipelines.tsdiff --git a/frontend/portal/src/api/policies.ts b/frontend/editor/src/portal/api/policies.tssimilarity index 95%rename from frontend/portal/src/api/policies.tsrename to frontend/editor/src/portal/api/policies.tsindex 70eccd5cfb..e225449a16 100644--- a/frontend/portal/src/api/policies.ts+++ b/frontend/editor/src/portal/api/policies.ts@@ -11,9 +11,9 @@*/import { apiClient } from "@portal/api/http";-import { fromWirePolicy, toWirePolicy } from "@shared/policies/codec";-import { runsToActivity, runsToStats } from "@shared/policies/runs";-import type { PolicyDecodedState, WirePolicy } from "@shared/policies/types";+import { fromWirePolicy, toWirePolicy } from "@app/policies/codec";+import { runsToActivity, runsToStats } from "@app/policies/runs";+import type { PolicyDecodedState, WirePolicy } from "@app/policies/types";import {POLICY_CATEGORIES,POLICY_CONFIG,@@ -25,7 +25,7 @@ import {type PolicyState,type PolicyStatus,} from "@portal/mocks/policies";-import type { PolicyRunView } from "@shared/policies/types";+import type { PolicyRunView } from "@app/policies/types";export type {CatalogueEntry,@@ -58,7 +58,7 @@ export {} from "@portal/mocks/policies";// Re-export the wire step type under the legacy name components depend on.-export type { WirePipelineStep as PipelineStep } from "@shared/policies/types";+export type { WirePipelineStep as PipelineStep } from "@app/policies/types";// ── Client-side catalogue assembly ───────────────────────────────────────────diff --git a/frontend/portal/src/api/procurement.ts b/frontend/editor/src/portal/api/procurement.tssimilarity index 100%rename from frontend/portal/src/api/procurement.tsrename to frontend/editor/src/portal/api/procurement.tsdiff --git a/frontend/portal/src/api/sdkComponents.ts b/frontend/editor/src/portal/api/sdkComponents.tssimilarity index 100%rename from frontend/portal/src/api/sdkComponents.tsrename to frontend/editor/src/portal/api/sdkComponents.tsdiff --git a/frontend/portal/src/api/search.ts b/frontend/editor/src/portal/api/search.tssimilarity index 100%rename from frontend/portal/src/api/search.tsrename to frontend/editor/src/portal/api/search.tsdiff --git a/frontend/portal/src/api/settings.ts b/frontend/editor/src/portal/api/settings.tssimilarity index 100%rename from frontend/portal/src/api/settings.tsrename to frontend/editor/src/portal/api/settings.tsdiff --git a/frontend/portal/src/api/sources.ts b/frontend/editor/src/portal/api/sources.tssimilarity index 100%rename from frontend/portal/src/api/sources.tsrename to frontend/editor/src/portal/api/sources.tsdiff --git a/frontend/portal/src/api/users.ts b/frontend/editor/src/portal/api/users.tssimilarity index 100%rename from frontend/portal/src/api/users.tsrename to frontend/editor/src/portal/api/users.tsdiff --git a/frontend/portal/src/auth/editorUrl.ts b/frontend/editor/src/portal/auth/editorUrl.tssimilarity index 86%rename from frontend/portal/src/auth/editorUrl.tsrename to frontend/editor/src/portal/auth/editorUrl.tsindex 2cf77c75b1..43eb466cb7 100644--- a/frontend/portal/src/auth/editorUrl.ts+++ b/frontend/editor/src/portal/auth/editorUrl.ts@@ -5,6 +5,6 @@* Sourced from VITE_EDITOR_URL so it's configurable per deploy rather than* hardcoded. The committed default is "/" (production serves the editor at the* root on the same origin as the portal). For dev cross-app navigation to a- * separately-running editor, set VITE_EDITOR_URL in portal/.env.local.+ * separately-running editor, set VITE_EDITOR_URL in editor/.env.local.*/export const EDITOR_URL = import.meta.env.VITE_EDITOR_URL;diff --git a/frontend/portal/src/auth/saasSupabase.ts b/frontend/editor/src/portal/auth/saasSupabase.tssimilarity index 97%rename from frontend/portal/src/auth/saasSupabase.tsrename to frontend/editor/src/portal/auth/saasSupabase.tsindex 25a8a6ed6b..813a2f7cad 100644--- a/frontend/portal/src/auth/saasSupabase.ts+++ b/frontend/editor/src/portal/auth/saasSupabase.ts@@ -1,7 +1,7 @@import {configureSupabase,getSupabaseClient,-} from "@shared/auth/supabase/supabaseClient";+} from "@app/auth/supabase/supabaseClient";/*** Configures the shared Supabase client against the hosted SaaS project so thediff --git a/frontend/portal/src/auth/saasSupabaseLogin.test.ts b/frontend/editor/src/portal/auth/saasSupabaseLogin.test.tssimilarity index 96%rename from frontend/portal/src/auth/saasSupabaseLogin.test.tsrename to frontend/editor/src/portal/auth/saasSupabaseLogin.test.tsindex 5517897ec9..f1d991a3c0 100644--- a/frontend/portal/src/auth/saasSupabaseLogin.test.ts+++ b/frontend/editor/src/portal/auth/saasSupabaseLogin.test.ts@@ -8,11 +8,11 @@ const { signInWithPassword, signInWithOAuth } = vi.hoisted(() => ({signInWithOAuth: vi.fn(),}));-vi.mock("@shared/auth/supabase/supabaseClient", () => ({+vi.mock("@app/auth/supabase/supabaseClient", () => ({getSupabaseClient: () => ({ auth: { signInWithPassword, signInWithOAuth } }),}));-import { useSupabaseLogin } from "@shared/auth/ui/useSupabaseLogin";+import { useSupabaseLogin } from "@app/auth/ui/useSupabaseLogin";describe("useSupabaseLogin (in-app account-link login)", () => {beforeEach(() => {diff --git a/frontend/portal/src/billing/sharedBillingFormat.test.ts b/frontend/editor/src/portal/billing/sharedBillingFormat.test.tssimilarity index 96%rename from frontend/portal/src/billing/sharedBillingFormat.test.tsrename to frontend/editor/src/portal/billing/sharedBillingFormat.test.tsindex 8882df796b..d7ccd22df7 100644--- a/frontend/portal/src/billing/sharedBillingFormat.test.ts+++ b/frontend/editor/src/portal/billing/sharedBillingFormat.test.ts@@ -5,10 +5,10 @@ import {formatMinor,formatPeriodDate,meterState,-} from "@shared/billing";+} from "@app/billing";/**- * Unit tests for the @shared/billing money/meter helpers the portal billing+ * Unit tests for the @app/billing money/meter helpers the portal billing* surface (and the editor cloud surface) depend on. docCapForMoney mirrors the* backend's cap→PDF conversion and meterState mirrors the BE warn/degrade bands,* so these invariants matter beyond cosmetics.diff --git a/frontend/portal/src/billing/stripe.test.ts b/frontend/editor/src/portal/billing/stripe.test.tssimilarity index 98%rename from frontend/portal/src/billing/stripe.test.tsrename to frontend/editor/src/portal/billing/stripe.test.tsindex eeb9e16dcd..53a732fb63 100644--- a/frontend/portal/src/billing/stripe.test.ts+++ b/frontend/editor/src/portal/billing/stripe.test.ts@@ -11,7 +11,7 @@ const { getClient, invoke } = vi.hoisted(() => ({}));vi.mock("@portal/auth/saasSupabase", () => ({ ensureSaasSupabase: vi.fn() }));-vi.mock("@shared/auth/supabase/supabaseClient", () => ({+vi.mock("@app/auth/supabase/supabaseClient", () => ({getSupabaseClient: () => getClient(),configureSupabase: vi.fn(),}));diff --git a/frontend/portal/src/billing/stripe.ts b/frontend/editor/src/portal/billing/stripe.tssimilarity index 98%rename from frontend/portal/src/billing/stripe.tsrename to frontend/editor/src/portal/billing/stripe.tsindex 068046ef37..87fa82cf7b 100644--- a/frontend/portal/src/billing/stripe.ts+++ b/frontend/editor/src/portal/billing/stripe.ts@@ -1,4 +1,4 @@-import { getSupabaseClient } from "@shared/auth/supabase/supabaseClient";+import { getSupabaseClient } from "@app/auth/supabase/supabaseClient";import { ensureSaasSupabase } from "@portal/auth/saasSupabase";/**diff --git a/frontend/portal/src/components/AppShell.css b/frontend/editor/src/portal/components/AppShell.csssimilarity index 100%rename from frontend/portal/src/components/AppShell.cssrename to frontend/editor/src/portal/components/AppShell.cssdiff --git a/frontend/portal/src/components/AppShell.tsx b/frontend/editor/src/portal/components/AppShell.tsxsimilarity index 100%rename from frontend/portal/src/components/AppShell.tsxrename to frontend/editor/src/portal/components/AppShell.tsxdiff --git a/frontend/portal/src/components/AssistantButton.css b/frontend/editor/src/portal/components/AssistantButton.csssimilarity index 100%rename from frontend/portal/src/components/AssistantButton.cssrename to frontend/editor/src/portal/components/AssistantButton.cssdiff --git a/frontend/portal/src/components/AssistantButton.tsx b/frontend/editor/src/portal/components/AssistantButton.tsxsimilarity index 87%rename from frontend/portal/src/components/AssistantButton.tsxrename to frontend/editor/src/portal/components/AssistantButton.tsxindex e88130094b..7f3586c8cc 100644--- a/frontend/portal/src/components/AssistantButton.tsx+++ b/frontend/editor/src/portal/components/AssistantButton.tsx@@ -11,9 +11,11 @@ export function AssistantButton() {type="button"className={"portal-assistant-btn" + (assistantOpen ? " is-active" : "")}onClick={toggleAssistant}- aria-label={assistantOpen ? t("assistant.close") : t("assistant.open")}+ aria-label={+ assistantOpen ? t("portal.assistant.close") : t("portal.assistant.open")+ }aria-expanded={assistantOpen}- title={t("assistant.title")}+ title={t("portal.assistant.title")}>{assistantOpen ? (<svgdiff --git a/frontend/portal/src/components/AssistantPanel.css b/frontend/editor/src/portal/components/AssistantPanel.csssimilarity index 100%rename from frontend/portal/src/components/AssistantPanel.cssrename to frontend/editor/src/portal/components/AssistantPanel.cssdiff --git a/frontend/portal/src/components/AssistantPanel.stories.tsx b/frontend/editor/src/portal/components/AssistantPanel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/AssistantPanel.stories.tsxrename to frontend/editor/src/portal/components/AssistantPanel.stories.tsxdiff --git a/frontend/portal/src/components/AssistantPanel.tsx b/frontend/editor/src/portal/components/AssistantPanel.tsxsimilarity index 89%rename from frontend/portal/src/components/AssistantPanel.tsxrename to frontend/editor/src/portal/components/AssistantPanel.tsxindex 2015f834e1..521f46f621 100644--- a/frontend/portal/src/components/AssistantPanel.tsx+++ b/frontend/editor/src/portal/components/AssistantPanel.tsx@@ -71,8 +71,8 @@ export function AssistantPanel() {role: "assistant",text:err instanceof Error- ? t("assistant.errorWithDetail", { detail: err.message })- : t("assistant.error"),+ ? t("portal.assistant.errorWithDetail", { detail: err.message })+ : t("portal.assistant.error"),};setMessages((prev) => [...prev, failMsg]);} finally {@@ -86,20 +86,20 @@ export function AssistantPanel() {<asideclassName="portal-assistant"role="dialog"- aria-label={t("assistant.title")}+ aria-label={t("portal.assistant.title")}><header className="portal-assistant__header"><div className="portal-assistant__header-left"><SparklesIcon size={16} /><span className="portal-assistant__title">- {t("assistant.title")}+ {t("portal.assistant.title")}</span></div><buttontype="button"className="portal-assistant__close"onClick={closeAssistant}- aria-label={t("assistant.close")}+ aria-label={t("portal.assistant.close")}><CloseIcon size={16} /></button>@@ -109,7 +109,7 @@ export function AssistantPanel() {{messages.length === 0 && suggestions && (<div className="portal-assistant__suggestions"><div className="portal-assistant__suggestions-eyebrow">- {t("assistant.tryAsking")}+ {t("portal.assistant.tryAsking")}</div><div className="portal-assistant__suggestions-list">{suggestions.map((s) => (@@ -140,7 +140,7 @@ export function AssistantPanel() {<div className="portal-assistant__bubble portal-assistant__bubble--assistant"><spanclassName="portal-assistant__typing"- aria-label={t("assistant.typing")}+ aria-label={t("portal.assistant.typing")}><span /><span />@@ -161,8 +161,8 @@ export function AssistantPanel() {ref={inputRef}value={input}onChange={(e) => setInput(e.target.value)}- placeholder={t("assistant.inputPlaceholder")}- aria-label={t("assistant.inputAriaLabel")}+ placeholder={t("portal.assistant.inputPlaceholder")}+ aria-label={t("portal.assistant.inputAriaLabel")}className="portal-assistant__input"disabled={typing}/>@@ -170,7 +170,7 @@ export function AssistantPanel() {type="submit"className="portal-assistant__send"disabled={!input.trim() || typing}- aria-label={t("assistant.send")}+ aria-label={t("portal.assistant.send")}><SendIcon size={14} /></button>diff --git a/frontend/portal/src/components/AuthGate.tsx b/frontend/editor/src/portal/components/AuthGate.tsxsimilarity index 83%rename from frontend/portal/src/components/AuthGate.tsxrename to frontend/editor/src/portal/components/AuthGate.tsxindex 6d923abd12..a7f4e58ef5 100644--- a/frontend/portal/src/components/AuthGate.tsx+++ b/frontend/editor/src/portal/components/AuthGate.tsx@@ -1,7 +1,7 @@import { type ReactNode } from "react";import { useTranslation } from "react-i18next";-import { RequirePortalAccess } from "@shared/auth";-import { Spinner } from "@shared/components";+import { RequirePortalAccess } from "@app/auth";+import { Spinner } from "@app/ui";import { LoginScreen } from "@portal/components/LoginScreen";import { EDITOR_URL } from "@portal/auth/editorUrl";@@ -36,12 +36,12 @@ export function AuthGate({ children }: { children: ReactNode }) {onForbidden={redirectToEditor}loading={<FullScreenMessage>- <Spinner size="lg" label={t("auth.loading", "Loading")} />+ <Spinner size="lg" label={t("portal.auth.loading", "Loading")} /></FullScreenMessage>}forbidden={<FullScreenMessage>- {t("auth.redirectingToEditor", "Redirecting to the editor...")}+ {t("portal.auth.redirectingToEditor", "Redirecting to the editor...")}</FullScreenMessage>}>diff --git a/frontend/portal/src/components/ChatFABWidget.stories.tsx b/frontend/editor/src/portal/components/ChatFABWidget.stories.tsxsimilarity index 98%rename from frontend/portal/src/components/ChatFABWidget.stories.tsxrename to frontend/editor/src/portal/components/ChatFABWidget.stories.tsxindex 1d49dc8e5b..db9b006173 100644--- a/frontend/portal/src/components/ChatFABWidget.stories.tsx+++ b/frontend/editor/src/portal/components/ChatFABWidget.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react-vite";import { useRef, useState } from "react";-import { ChatFABButton } from "@shared/components/ChatFABButton";-import { ChatFABWindow } from "@shared/components/ChatFABWindow";+import { ChatFABButton } from "@app/ui/ChatFABButton";+import { ChatFABWindow } from "@app/ui/ChatFABWindow";/*** Full ChatFAB widget demo — composed from ChatFABButton + ChatFABWindow.diff --git a/frontend/portal/src/components/ErrorBoundary.test.tsx b/frontend/editor/src/portal/components/ErrorBoundary.test.tsxsimilarity index 81%rename from frontend/portal/src/components/ErrorBoundary.test.tsxrename to frontend/editor/src/portal/components/ErrorBoundary.test.tsxindex 91c22effca..4e84344e77 100644--- a/frontend/portal/src/components/ErrorBoundary.test.tsx+++ b/frontend/editor/src/portal/components/ErrorBoundary.test.tsx@@ -25,8 +25,10 @@ describe("ErrorBoundary", () => {<Boom /></ErrorBoundary>,);- expect(screen.getByText("errorBoundary.title")).toBeInTheDocument();- expect(screen.getByText("errorBoundary.description")).toBeInTheDocument();+ expect(screen.getByText("portal.errorBoundary.title")).toBeInTheDocument();+ expect(+ screen.getByText("portal.errorBoundary.description"),+ ).toBeInTheDocument();spy.mockRestore();});@@ -51,14 +53,16 @@ describe("ErrorBoundary", () => {);// Fallback is shown.- expect(screen.getByText("errorBoundary.title")).toBeInTheDocument();+ expect(screen.getByText("portal.errorBoundary.title")).toBeInTheDocument();// Stop throwing, then click retry to clear the boundary's error state.shouldThrow = false;- fireEvent.click(screen.getByText("errorBoundary.retry"));+ fireEvent.click(screen.getByText("portal.errorBoundary.retry"));expect(screen.getByText("recovered content")).toBeInTheDocument();- expect(screen.queryByText("errorBoundary.title")).not.toBeInTheDocument();+ expect(+ screen.queryByText("portal.errorBoundary.title"),+ ).not.toBeInTheDocument();spy.mockRestore();});});diff --git a/frontend/portal/src/components/ErrorBoundary.tsx b/frontend/editor/src/portal/components/ErrorBoundary.tsxsimilarity index 88%rename from frontend/portal/src/components/ErrorBoundary.tsxrename to frontend/editor/src/portal/components/ErrorBoundary.tsxindex f97d208a31..4c5dad9b0e 100644--- a/frontend/portal/src/components/ErrorBoundary.tsx+++ b/frontend/editor/src/portal/components/ErrorBoundary.tsx@@ -1,6 +1,6 @@import { Component, type ErrorInfo, type ReactNode } from "react";import { useTranslation } from "react-i18next";-import { Button, EmptyState } from "@shared/components";+import { Button, EmptyState } from "@app/ui";/*** Default fallback for {@link ErrorBoundary}. Split into a function component so@@ -11,9 +11,11 @@ function DefaultErrorFallback({ onRetry }: { onRetry: () => void }) {const { t } = useTranslation();return (<EmptyState- title={t("errorBoundary.title")}- description={t("errorBoundary.description")}- actions={<Button onClick={onRetry}>{t("errorBoundary.retry")}</Button>}+ title={t("portal.errorBoundary.title")}+ description={t("portal.errorBoundary.description")}+ actions={+ <Button onClick={onRetry}>{t("portal.errorBoundary.retry")}</Button>+ }/>);}diff --git a/frontend/portal/src/components/Header.css b/frontend/editor/src/portal/components/Header.csssimilarity index 100%rename from frontend/portal/src/components/Header.cssrename to frontend/editor/src/portal/components/Header.cssdiff --git a/frontend/portal/src/components/Header.stories.tsx b/frontend/editor/src/portal/components/Header.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/Header.stories.tsxrename to frontend/editor/src/portal/components/Header.stories.tsxdiff --git a/frontend/portal/src/components/Header.tsx b/frontend/editor/src/portal/components/Header.tsxsimilarity index 85%rename from frontend/portal/src/components/Header.tsxrename to frontend/editor/src/portal/components/Header.tsxindex 8783e9bafc..7194094171 100644--- a/frontend/portal/src/components/Header.tsx+++ b/frontend/editor/src/portal/components/Header.tsx@@ -1,6 +1,6 @@import { useTranslation } from "react-i18next";-import { Avatar, Dropdown } from "@shared/components";-import { useAuth } from "@shared/auth";+import { Avatar, Dropdown } from "@app/ui";+import { useAuth } from "@app/auth";import { useTheme } from "@portal/contexts/ThemeContext";import { useTier, TIER_INFO, type Tier } from "@portal/contexts/TierContext";import { useView } from "@portal/contexts/ViewContext";@@ -25,13 +25,13 @@ function ThemeToggle() {onClick={toggle}aria-label={theme === "light"- ? t("shell.header.switchToDark")- : t("shell.header.switchToLight")+ ? t("portal.shell.header.switchToDark")+ : t("portal.shell.header.switchToLight")}title={theme === "light"- ? t("shell.header.darkMode")- : t("shell.header.lightMode")+ ? t("portal.shell.header.darkMode")+ : t("portal.shell.header.lightMode")}>{theme === "light" ? <MoonIcon size={16} /> : <SunIcon size={16} />}@@ -84,14 +84,15 @@ function TierSwitcher() {function UserMenu() {const { t } = useTranslation();const { displayName, signOut } = useAuth();- const name = displayName ?? t("shell.header.accountFallback", "Account");+ const name =+ displayName ?? t("portal.shell.header.accountFallback", "Account");return (<Dropdown.Root align="end"><Dropdown.Trigger><buttontype="button"className="portal-header__user"- aria-label={t("shell.header.accountMenu", "Account menu")}+ aria-label={t("portal.shell.header.accountMenu", "Account menu")}title={name}><Avatar name={name} size="md" tone="blue" />@@ -100,7 +101,7 @@ function UserMenu() {<Dropdown.Menu width="12rem"><Dropdown.Item disabled>{name}</Dropdown.Item><Dropdown.Item onSelect={() => void signOut()}>- {t("shell.header.signOut", "Sign out")}+ {t("portal.shell.header.signOut", "Sign out")}</Dropdown.Item></Dropdown.Menu></Dropdown.Root>@@ -115,19 +116,19 @@ export function Header() {<header className="portal-header"><div className="portal-header__left"><span className="portal-header__breadcrumb">- {t(`nav.${activeView}`)}+ {t(`portal.nav.${activeView}`)}</span></div><buttontype="button"className="portal-header__search"- aria-label={t("shell.header.search")}+ aria-label={t("portal.shell.header.search")}onClick={openSearch}><SearchIcon size={14} /><span className="portal-header__search-placeholder">- {t("shell.header.searchPlaceholder")}+ {t("portal.shell.header.searchPlaceholder")}</span><span className="portal-header__search-kbd" aria-hidden>⌘Kdiff --git a/frontend/portal/src/components/LoginScreen.tsx b/frontend/editor/src/portal/components/LoginScreen.tsxsimilarity index 68%rename from frontend/portal/src/components/LoginScreen.tsxrename to frontend/editor/src/portal/components/LoginScreen.tsxindex a44c5aa6e0..7abf518a0c 100644--- a/frontend/portal/src/components/LoginScreen.tsx+++ b/frontend/editor/src/portal/components/LoginScreen.tsx@@ -1,18 +1,18 @@import { useEffect, useMemo } from "react";import { useTranslation } from "react-i18next";-import { AuthShell } from "@shared/auth/ui/AuthShell";-import LoginRightCarousel from "@shared/auth/ui/LoginRightCarousel";-import { buildDefaultLoginSlides } from "@shared/auth/ui/loginSlides";-import SpringLoginForm from "@shared/auth/ui/SpringLoginForm";-import { useSpringLogin } from "@shared/auth/ui/useSpringLogin";-import "@shared/auth/ui/auth-theme.css";-import "@shared/auth/ui/auth.css";-import loginHeader from "@shared/assets/brand/modern-logo/LoginLightModeHeader.svg";+import { AuthShell } from "@app/auth/ui/AuthShell";+import LoginRightCarousel from "@app/auth/ui/LoginRightCarousel";+import { buildDefaultLoginSlides } from "@app/auth/ui/loginSlides";+import SpringLoginForm from "@app/auth/ui/SpringLoginForm";+import { useSpringLogin } from "@app/auth/ui/useSpringLogin";+import "@app/auth/ui/auth-theme.css";+import "@app/auth/ui/auth.css";+import loginHeader from "@app/assets/brand/modern-logo/LoginLightModeHeader.svg";/*** Full-screen login shown by the portal's auth gate. Renders the same screen as* the editor: the shared AuthShell + carousel, with the form body and Spring- * auth wiring from @shared/auth/ui (SpringLoginForm + useSpringLogin). The gate+ * auth wiring from @app/auth/ui (SpringLoginForm + useSpringLogin). The gate* handles "already logged in", so this only needs to collect credentials.*/export function LoginScreen() {diff --git a/frontend/portal/src/components/MocksToggle.css b/frontend/editor/src/portal/components/MocksToggle.csssimilarity index 100%rename from frontend/portal/src/components/MocksToggle.cssrename to frontend/editor/src/portal/components/MocksToggle.cssdiff --git a/frontend/portal/src/components/MocksToggle.tsx b/frontend/editor/src/portal/components/MocksToggle.tsxsimilarity index 89%rename from frontend/portal/src/components/MocksToggle.tsxrename to frontend/editor/src/portal/components/MocksToggle.tsxindex a78e376eb6..83fce02c21 100644--- a/frontend/portal/src/components/MocksToggle.tsx+++ b/frontend/editor/src/portal/components/MocksToggle.tsx@@ -41,11 +41,13 @@ export function MocksToggle() {}onClick={toggle}aria-pressed={enabled}- title={enabled ? t("mocks.tooltip.on") : t("mocks.tooltip.off")}+ title={+ enabled ? t("portal.mocks.tooltip.on") : t("portal.mocks.tooltip.off")+ }><span className="portal-mocks-toggle__dot" aria-hidden /><span className="portal-mocks-toggle__label">- {enabled ? t("mocks.label.on") : t("mocks.label.off")}+ {enabled ? t("portal.mocks.label.on") : t("portal.mocks.label.off")}</span></button>);diff --git a/frontend/portal/src/components/NotificationsDropdown.css b/frontend/editor/src/portal/components/NotificationsDropdown.csssimilarity index 100%rename from frontend/portal/src/components/NotificationsDropdown.cssrename to frontend/editor/src/portal/components/NotificationsDropdown.cssdiff --git a/frontend/portal/src/components/NotificationsDropdown.stories.tsx b/frontend/editor/src/portal/components/NotificationsDropdown.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/NotificationsDropdown.stories.tsxrename to frontend/editor/src/portal/components/NotificationsDropdown.stories.tsxdiff --git a/frontend/portal/src/components/NotificationsDropdown.tsx b/frontend/editor/src/portal/components/NotificationsDropdown.tsxsimilarity index 85%rename from frontend/portal/src/components/NotificationsDropdown.tsxrename to frontend/editor/src/portal/components/NotificationsDropdown.tsxindex c93a2f9f33..4a0d84d5c3 100644--- a/frontend/portal/src/components/NotificationsDropdown.tsx+++ b/frontend/editor/src/portal/components/NotificationsDropdown.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Dropdown, EmptyState, Skeleton } from "@shared/components";+import { Dropdown, EmptyState, Skeleton } from "@app/ui";import { BellIcon } from "@portal/components/icons";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -50,10 +50,10 @@ export function NotificationsDropdown() {className="portal-header__icon-btn portal-header__icon-btn--badge"aria-label={hasUnread- ? t("notifications.ariaLabel.unread", {+ ? t("portal.notifications.ariaLabel.unread", {count: visible.length,})- : t("notifications.ariaLabel.none")+ : t("portal.notifications.ariaLabel.none")}><BellIcon size={16} />@@ -65,19 +65,19 @@ export function NotificationsDropdown() {<Dropdown.Menu width="22.5rem" className="portal-notif__menu"><div className="portal-notif__header"><span className="portal-notif__title">- {t("notifications.title")}+ {t("portal.notifications.title")}</span>{hasUnread ? (<span className="portal-notif__count">- {t("notifications.count.new", { count: visible.length })}+ {t("portal.notifications.count.new", { count: visible.length })}</span>) : isLoading ? (<span className="portal-notif__count portal-notif__count--quiet">- {t("notifications.count.loading")}+ {t("portal.notifications.count.loading")}</span>) : (<span className="portal-notif__count portal-notif__count--quiet">- {t("notifications.count.allRead")}+ {t("portal.notifications.count.allRead")}</span>)}</div>@@ -92,8 +92,8 @@ export function NotificationsDropdown() {{isEmpty && (<EmptyStatesize="compact"- title={t("notifications.empty.title")}- description={t("notifications.empty.description")}+ title={t("portal.notifications.empty.title")}+ description={t("portal.notifications.empty.description")}/>)}{!isLoading && !isEmpty && (@@ -121,10 +121,10 @@ export function NotificationsDropdown() {onClick={onMarkAllRead}disabled={!hasUnread}>- {t("notifications.markAllRead")}+ {t("portal.notifications.markAllRead")}</button><button type="button" className="portal-notif__action">- {t("notifications.viewAll")}+ {t("portal.notifications.viewAll")}</button></div></Dropdown.Menu>diff --git a/frontend/portal/src/components/PipelineForkWizard.css b/frontend/editor/src/portal/components/PipelineForkWizard.csssimilarity index 100%rename from frontend/portal/src/components/PipelineForkWizard.cssrename to frontend/editor/src/portal/components/PipelineForkWizard.cssdiff --git a/frontend/portal/src/components/PipelineForkWizard.stories.tsx b/frontend/editor/src/portal/components/PipelineForkWizard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/PipelineForkWizard.stories.tsxrename to frontend/editor/src/portal/components/PipelineForkWizard.stories.tsxdiff --git a/frontend/portal/src/components/PipelineForkWizard.tsx b/frontend/editor/src/portal/components/PipelineForkWizard.tsxsimilarity index 90%rename from frontend/portal/src/components/PipelineForkWizard.tsxrename to frontend/editor/src/portal/components/PipelineForkWizard.tsxindex a357a6bb75..838afda3db 100644--- a/frontend/portal/src/components/PipelineForkWizard.tsx+++ b/frontend/editor/src/portal/components/PipelineForkWizard.tsx@@ -1,6 +1,6 @@import { useEffect, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import { Button, Card, Chip, StatusBadge } from "@shared/components";+import { Button, Card, Chip, StatusBadge } from "@app/ui";import { useView } from "@portal/contexts/ViewContext";import {PIPELINE_STAGES,@@ -70,14 +70,14 @@ export function PipelineForkWizard() {<Card padding="loose" className="portal-fork"><header className="portal-fork__head"><div>- <h2 className="portal-fork__title">{t("forkWizard.title")}</h2>- <p className="portal-fork__sub">{t("forkWizard.subtitle")}</p>+ <h2 className="portal-fork__title">{t("portal.forkWizard.title")}</h2>+ <p className="portal-fork__sub">{t("portal.forkWizard.subtitle")}</p></div>{phase !== "pick" && template && (<StatusBadge tone={phase === "ready" ? "success" : "info"} size="sm">{phase === "ready"- ? t("forkWizard.status.ready")- : t("forkWizard.status.building")}+ ? t("portal.forkWizard.status.ready")+ : t("portal.forkWizard.status.building")}</StatusBadge>)}</header>@@ -141,8 +141,8 @@ export function PipelineForkWizard() {<div className="portal-fork__build-actions"><Button variant="ghost" size="sm" onClick={reset}>{phase === "ready"- ? t("forkWizard.action.pickAnother")- : t("forkWizard.action.cancel")}+ ? t("portal.forkWizard.action.pickAnother")+ : t("portal.forkWizard.action.cancel")}</Button><Buttonvariant="gradient"@@ -152,8 +152,8 @@ export function PipelineForkWizard() {trailingIcon={<span aria-hidden>→</span>}>{phase === "ready"- ? t("forkWizard.action.deploy")- : t("forkWizard.status.building")}+ ? t("portal.forkWizard.action.deploy")+ : t("portal.forkWizard.status.building")}</Button></div></div>diff --git a/frontend/portal/src/components/PolicySummary.css b/frontend/editor/src/portal/components/PolicySummary.csssimilarity index 100%rename from frontend/portal/src/components/PolicySummary.cssrename to frontend/editor/src/portal/components/PolicySummary.cssdiff --git a/frontend/portal/src/components/PolicySummary.stories.tsx b/frontend/editor/src/portal/components/PolicySummary.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/PolicySummary.stories.tsxrename to frontend/editor/src/portal/components/PolicySummary.stories.tsxdiff --git a/frontend/portal/src/components/PolicySummary.tsx b/frontend/editor/src/portal/components/PolicySummary.tsxsimilarity index 81%rename from frontend/portal/src/components/PolicySummary.tsxrename to frontend/editor/src/portal/components/PolicySummary.tsxindex 57199bc8f7..084e7e5b69 100644--- a/frontend/portal/src/components/PolicySummary.tsx+++ b/frontend/editor/src/portal/components/PolicySummary.tsx@@ -7,7 +7,7 @@ import {StatusBadge,Table,type TableColumn,-} from "@shared/components";+} from "@app/ui";import { useView } from "@portal/contexts/ViewContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -37,9 +37,9 @@ const STATE_BADGE: Record<RowState,{ tone: "success" | "neutral" | "info"; labelKey: string }> = {- active: { tone: "success", labelKey: "policySummary.state.active" },- off: { tone: "neutral", labelKey: "policySummary.state.off" },- locked: { tone: "info", labelKey: "policySummary.state.soon" },+ active: { tone: "success", labelKey: "portal.policySummary.state.active" },+ off: { tone: "neutral", labelKey: "portal.policySummary.state.off" },+ locked: { tone: "info", labelKey: "portal.policySummary.state.soon" },};function toRow(entry: CatalogueEntry): PolicyRow {@@ -60,7 +60,7 @@ export function PolicySummary() {const columns: TableColumn<PolicyRow>[] = [{key: "category",- header: t("policySummary.column.policy"),+ header: t("portal.policySummary.column.policy"),render: ({ entry }) => (<div className="portal-policysum__cat"><span className="portal-policysum__icon" aria-hidden>@@ -75,7 +75,7 @@ export function PolicySummary() {},{key: "status",- header: t("policySummary.column.status"),+ header: t("portal.policySummary.column.status"),width: "7rem",render: ({ state }) => {const badge = STATE_BADGE[state];@@ -88,12 +88,12 @@ export function PolicySummary() {},{key: "rule",- header: t("policySummary.column.activeRule"),+ header: t("portal.policySummary.column.activeRule"),render: ({ entry, state }) => (<span className="portal-policysum__rule">{state === "active"? entry.config.summary- : t("policySummary.noRule")}+ : t("portal.policySummary.noRule")}</span>),},@@ -106,7 +106,7 @@ export function PolicySummary() {if (state === "locked") {return (<Button size="sm" variant="ghost" onClick={goToPolicies}>- {t("policySummary.action.comingSoon")}+ {t("portal.policySummary.action.comingSoon")}</Button>);}@@ -117,8 +117,8 @@ export function PolicySummary() {onClick={goToPolicies}>{state === "active"- ? t("policySummary.action.configure")- : t("policySummary.action.setUp")}+ ? t("portal.policySummary.action.configure")+ : t("portal.policySummary.action.setUp")}</Button>);},@@ -128,20 +128,23 @@ export function PolicySummary() {const rows: PolicyRow[] = data?.catalogue?.map(toRow) ?? [];return (- <section className="portal-policysum" aria-label={t("policySummary.title")}>+ <section+ className="portal-policysum"+ aria-label={t("portal.policySummary.title")}+ ><Card padding="none"><header className="portal-policysum__head"><div><h2 className="portal-policysum__title">- {t("policySummary.title")}+ {t("portal.policySummary.title")}</h2><p className="portal-policysum__sub">- {t("policySummary.subtitle")}+ {t("portal.policySummary.subtitle")}</p></div>{data?.summary && (<StatusBadge tone="info" size="sm">- {t("policySummary.activeSummary", {+ {t("portal.policySummary.activeSummary", {active: data.summary.active,total: data.summary.categories,})}@@ -163,8 +166,8 @@ export function PolicySummary() {{isEmpty && (<EmptyStatesize="compact"- title={t("policySummary.empty.title")}- description={t("policySummary.empty.description")}+ title={t("portal.policySummary.empty.title")}+ description={t("portal.policySummary.empty.description")}/>)}diff --git a/frontend/portal/src/components/PopularUseCases.css b/frontend/editor/src/portal/components/PopularUseCases.csssimilarity index 100%rename from frontend/portal/src/components/PopularUseCases.cssrename to frontend/editor/src/portal/components/PopularUseCases.cssdiff --git a/frontend/portal/src/components/PopularUseCases.tsx b/frontend/editor/src/portal/components/PopularUseCases.tsxsimilarity index 79%rename from frontend/portal/src/components/PopularUseCases.tsxrename to frontend/editor/src/portal/components/PopularUseCases.tsxindex 6f99f74453..b85912761f 100644--- a/frontend/portal/src/components/PopularUseCases.tsx+++ b/frontend/editor/src/portal/components/PopularUseCases.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, type CardProps } from "@shared/components";+import { Card, type CardProps } from "@app/ui";import { useView } from "@portal/contexts/ViewContext";import "@portal/components/PopularUseCases.css";@@ -36,15 +36,18 @@ export function PopularUseCases() {const { t } = useTranslation();const { setActiveView } = useView();return (- <section className="portal-usecases" aria-label={t("useCases.title")}>+ <section+ className="portal-usecases"+ aria-label={t("portal.useCases.title")}+ ><header className="portal-usecases__head">- <h2 className="portal-usecases__title">{t("useCases.title")}</h2>+ <h2 className="portal-usecases__title">{t("portal.useCases.title")}</h2><buttontype="button"className="portal-usecases__viewall"onClick={() => setActiveView("pipelines")}>- {t("useCases.viewAll")} <span aria-hidden>→</span>+ {t("portal.useCases.viewAll")} <span aria-hidden>→</span></button></header><div className="portal-usecases__grid">@@ -59,13 +62,13 @@ export function PopularUseCases() {className="portal-usecases__eyebrow"style={{ color: ACCENT_COLOR[uc.accent] }}>- {t(`useCases.items.${uc.key}.eyebrow`)}+ {t(`portal.useCases.items.${uc.key}.eyebrow`)}</span><h3 className="portal-usecases__card-title">- {t(`useCases.items.${uc.key}.title`)}+ {t(`portal.useCases.items.${uc.key}.title`)}</h3><p className="portal-usecases__blurb">- {t(`useCases.items.${uc.key}.blurb`)}+ {t(`portal.useCases.items.${uc.key}.blurb`)}</p><buttontype="button"@@ -73,7 +76,8 @@ export function PopularUseCases() {style={{ color: ACCENT_COLOR[uc.accent] }}onClick={() => setActiveView("pipelines")}>- {t(`useCases.items.${uc.key}.cta`)} <span aria-hidden>→</span>+ {t(`portal.useCases.items.${uc.key}.cta`)}{" "}+ <span aria-hidden>→</span></button></Card>))}diff --git a/frontend/portal/src/components/ProcessingStatusStrip.css b/frontend/editor/src/portal/components/ProcessingStatusStrip.csssimilarity index 100%rename from frontend/portal/src/components/ProcessingStatusStrip.cssrename to frontend/editor/src/portal/components/ProcessingStatusStrip.cssdiff --git a/frontend/portal/src/components/ProcessingStatusStrip.stories.tsx b/frontend/editor/src/portal/components/ProcessingStatusStrip.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/ProcessingStatusStrip.stories.tsxrename to frontend/editor/src/portal/components/ProcessingStatusStrip.stories.tsxdiff --git a/frontend/portal/src/components/ProcessingStatusStrip.tsx b/frontend/editor/src/portal/components/ProcessingStatusStrip.tsxsimilarity index 89%rename from frontend/portal/src/components/ProcessingStatusStrip.tsxrename to frontend/editor/src/portal/components/ProcessingStatusStrip.tsxindex 05adba3e40..9aa3025f98 100644--- a/frontend/portal/src/components/ProcessingStatusStrip.tsx+++ b/frontend/editor/src/portal/components/ProcessingStatusStrip.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Banner, Button, ProgressBar, Skeleton } from "@shared/components";+import { Banner, Button, ProgressBar, Skeleton } from "@app/ui";import { TIER_INFO, useTier } from "@portal/contexts/TierContext";import { useView } from "@portal/contexts/ViewContext";import { useAsync } from "@portal/hooks/useAsync";@@ -60,7 +60,7 @@ export function ProcessingStatusStrip() {variant="outline"onClick={() => setActiveView("usage")}>- {t("processingStatus.upgrade")}+ {t("portal.processingStatus.upgrade")}</Button>) : undefined}@@ -68,7 +68,7 @@ export function ProcessingStatusStrip() {<div className="portal-statusstrip__free-row"><span className="portal-statusstrip__free-label"><strong>{used.toLocaleString()}</strong> / {cap.toLocaleString()}{" "}- {t("processingStatus.pdfsThisMonth")}+ {t("portal.processingStatus.pdfsThisMonth")}</span><span className="portal-statusstrip__free-pct">{Math.round(ratio * 100)}%@@ -77,7 +77,7 @@ export function ProcessingStatusStrip() {<ProgressBarvalue={ratio}thresholded- label={t("processingStatus.progressLabel", { used, cap })}+ label={t("portal.processingStatus.progressLabel", { used, cap })}/></Banner>);@@ -99,7 +99,8 @@ export function ProcessingStatusStrip() {·</span><span className="portal-statusstrip__volume">- <strong>{volume ?? "—"}</strong> {t("processingStatus.volumeSuffix")}+ <strong>{volume ?? "—"}</strong>{" "}+ {t("portal.processingStatus.volumeSuffix")}</span><Buttonsize="sm"@@ -107,7 +108,7 @@ export function ProcessingStatusStrip() {className="portal-statusstrip__manage"onClick={() => setActiveView("usage")}>- {t("processingStatus.managePlan")}+ {t("portal.processingStatus.managePlan")}</Button></div>);diff --git a/frontend/portal/src/components/RecentActivity.css b/frontend/editor/src/portal/components/RecentActivity.csssimilarity index 100%rename from frontend/portal/src/components/RecentActivity.cssrename to frontend/editor/src/portal/components/RecentActivity.cssdiff --git a/frontend/portal/src/components/RecentActivity.stories.tsx b/frontend/editor/src/portal/components/RecentActivity.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/RecentActivity.stories.tsxrename to frontend/editor/src/portal/components/RecentActivity.stories.tsxdiff --git a/frontend/portal/src/components/RecentActivity.tsx b/frontend/editor/src/portal/components/RecentActivity.tsxsimilarity index 87%rename from frontend/portal/src/components/RecentActivity.tsxrename to frontend/editor/src/portal/components/RecentActivity.tsxindex 024eb2f6ce..8934a5f0bd 100644--- a/frontend/portal/src/components/RecentActivity.tsx+++ b/frontend/editor/src/portal/components/RecentActivity.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, EmptyState, Skeleton, StatusBadge } from "@shared/components";+import { Card, EmptyState, Skeleton, StatusBadge } from "@app/ui";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {fetchRecentActivity,@@ -27,12 +27,14 @@ export function RecentActivity() {<Cardpadding="none"className="portal-activity"- aria-label={t("recentActivity.title")}+ aria-label={t("portal.recentActivity.title")}><header className="portal-activity__head">- <h2 className="portal-activity__title">{t("recentActivity.title")}</h2>+ <h2 className="portal-activity__title">+ {t("portal.recentActivity.title")}+ </h2><button type="button" className="portal-activity__more">- {t("recentActivity.viewAll")} →+ {t("portal.recentActivity.viewAll")} →</button></header>@@ -56,8 +58,8 @@ export function RecentActivity() {{isEmpty && (<EmptyStatesize="compact"- title={t("recentActivity.empty.title")}- description={t("recentActivity.empty.description")}+ title={t("portal.recentActivity.empty.title")}+ description={t("portal.recentActivity.empty.description")}/>)}diff --git a/frontend/portal/src/components/SearchModal.css b/frontend/editor/src/portal/components/SearchModal.csssimilarity index 100%rename from frontend/portal/src/components/SearchModal.cssrename to frontend/editor/src/portal/components/SearchModal.cssdiff --git a/frontend/portal/src/components/SearchModal.stories.tsx b/frontend/editor/src/portal/components/SearchModal.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/SearchModal.stories.tsxrename to frontend/editor/src/portal/components/SearchModal.stories.tsxdiff --git a/frontend/portal/src/components/SearchModal.tsx b/frontend/editor/src/portal/components/SearchModal.tsxsimilarity index 88%rename from frontend/portal/src/components/SearchModal.tsxrename to frontend/editor/src/portal/components/SearchModal.tsxindex df27a86732..ca66f9365e 100644--- a/frontend/portal/src/components/SearchModal.tsx+++ b/frontend/editor/src/portal/components/SearchModal.tsx@@ -1,6 +1,6 @@import { useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import { EmptyState, Modal, Skeleton } from "@shared/components";+import { EmptyState, Modal, Skeleton } from "@app/ui";import { useUI } from "@portal/contexts/UIContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import { fetchQuickActions, type QuickAction } from "@portal/api/search";@@ -50,7 +50,7 @@ export function SearchModal() {open={searchOpen}onClose={closeSearch}width="lg"- ariaLabel={t("search.ariaLabel")}+ ariaLabel={t("portal.search.ariaLabel")}><div className="portal-search"><div className="portal-search__input-row">@@ -59,8 +59,8 @@ export function SearchModal() {ref={inputRef}value={query}onChange={(e) => setQuery(e.target.value)}- placeholder={t("search.placeholder")}- aria-label={t("search.ariaLabel")}+ placeholder={t("portal.search.placeholder")}+ aria-label={t("portal.search.ariaLabel")}className="portal-search__input"autoComplete="off"spellCheck={false}@@ -84,13 +84,13 @@ export function SearchModal() {size="compact"title={query.trim()- ? t("search.empty.noMatches", { query: query.trim() })- : t("search.empty.noActionsTitle")+ ? t("portal.search.empty.noMatches", { query: query.trim() })+ : t("portal.search.empty.noActionsTitle")}description={query.trim()- ? t("search.empty.noMatchesDescription")- : t("search.empty.noActionsDescription")+ ? t("portal.search.empty.noMatchesDescription")+ : t("portal.search.empty.noActionsDescription")}/>)}diff --git a/frontend/portal/src/components/SettingsModal.css b/frontend/editor/src/portal/components/SettingsModal.csssimilarity index 100%rename from frontend/portal/src/components/SettingsModal.cssrename to frontend/editor/src/portal/components/SettingsModal.cssdiff --git a/frontend/portal/src/components/SettingsModal.tsx b/frontend/editor/src/portal/components/SettingsModal.tsxsimilarity index 85%rename from frontend/portal/src/components/SettingsModal.tsxrename to frontend/editor/src/portal/components/SettingsModal.tsxindex 7cb4ad8c44..aa01c2ba0e 100644--- a/frontend/portal/src/components/SettingsModal.tsx+++ b/frontend/editor/src/portal/components/SettingsModal.tsx@@ -13,7 +13,7 @@ import {ToggleSwitch,type SelectOption,type SettingsNavSection,-} from "@shared/components";+} from "@app/ui";import { useTier, type Tier } from "@portal/contexts/TierContext";import { useTheme, type Theme } from "@portal/contexts/ThemeContext";import { useAsync } from "@portal/hooks/useAsync";@@ -118,56 +118,56 @@ export function SettingsModal({const navSections = useMemo<SettingsNavSection[]>(() => [{- title: t("settings.groups.account"),+ title: t("portal.settings.groups.account"),items: [{key: "profile",- label: t("settings.sections.profile"),+ label: t("portal.settings.sections.profile"),icon: <UsersIcon size={16} />,},{key: "appearance",- label: t("settings.sections.appearance"),+ label: t("portal.settings.sections.appearance"),icon: <SunIcon size={16} />,},{key: "notifications",- label: t("settings.sections.notifications"),+ label: t("portal.settings.sections.notifications"),icon: <BellIcon size={16} />,},],},{- title: t("settings.groups.workspace"),+ title: t("portal.settings.groups.workspace"),items: [{key: "general",- label: t("settings.sections.general"),+ label: t("portal.settings.sections.general"),icon: <SettingsIcon size={16} />,},],},{- title: t("settings.groups.admin"),+ title: t("portal.settings.groups.admin"),items: [{key: "account-link",- label: t("settings.sections.account-link"),+ label: t("portal.settings.sections.account-link"),icon: <LinkIcon size={16} />,},{key: "authentication",- label: t("settings.sections.authentication"),+ label: t("portal.settings.sections.authentication"),icon: <PoliciesIcon size={16} />,},{key: "sessions",- label: t("settings.sections.sessions"),+ label: t("portal.settings.sections.sessions"),icon: <InfrastructureIcon size={16} />,},{key: "early-access",- label: t("settings.sections.early-access"),+ label: t("portal.settings.sections.early-access"),icon: <SparklesIcon size={16} />,},],@@ -231,7 +231,9 @@ export function SettingsModal({value: r.value,label:r.enterpriseOnly && tier !== "enterprise"- ? t("settings.workspace.regionEnterpriseSuffix", { region: r.label })+ ? t("portal.settings.workspace.regionEnterpriseSuffix", {+ region: r.label,+ }): r.label,disabled: r.enterpriseOnly && tier !== "enterprise",}));@@ -244,25 +246,25 @@ export function SettingsModal({open={open}onClose={onClose}width="xl"- ariaLabel={t("settings.ariaLabel")}+ ariaLabel={t("portal.settings.ariaLabel")}className="portal-settings"><SettingsShellsections={navSections}activeKey={section}onSelect={(k) => setSection(k as SettingsSection)}- title={t(`settings.sections.${section}`)}+ title={t(`portal.settings.sections.${section}`)}onClose={onClose}footer={<><span className="portal-settings__footer-note">- {t("settings.footerNote")}+ {t("portal.settings.footerNote")}</span><Button variant="ghost" onClick={onClose}>- {t("settings.cancel")}+ {t("portal.settings.cancel")}</Button><Button variant="gradient" onClick={onClose}>- {t("settings.saveChanges")}+ {t("portal.settings.saveChanges")}</Button></>}@@ -384,13 +386,13 @@ function ProfilePanel({<div className="portal-settings__identity"><Avatarsrc={avatarUrl}- name={name || t("settings.profile.accountFallback")}+ name={name || t("portal.settings.profile.accountFallback")}size="lg"tone="blue"/><div className="portal-settings__identity-meta"><div className="portal-settings__identity-name">- {name || t("settings.profile.accountFallback")}+ {name || t("portal.settings.profile.accountFallback")}{role && (<StatusBadge tone="info" size="sm" showDot={false}>{role}@@ -400,27 +402,27 @@ function ProfilePanel({<span className="portal-settings__identity-email">{email}</span></div><Button variant="outline" size="sm" disabled>- {t("settings.profile.changePhoto")}+ {t("portal.settings.profile.changePhoto")}</Button></div>- <FormField label={t("settings.profile.fullName")}>+ <FormField label={t("portal.settings.profile.fullName")}><Inputvalue={name}onChange={(e) => onName(e.target.value)}- placeholder={t("settings.profile.namePlaceholder")}+ placeholder={t("portal.settings.profile.namePlaceholder")}/></FormField><FormField- label={t("settings.profile.email")}- helperText={t("settings.profile.emailHelper")}+ label={t("portal.settings.profile.email")}+ helperText={t("portal.settings.profile.emailHelper")}><Inputtype="email"value={email}onChange={(e) => onEmail(e.target.value)}- placeholder={t("settings.profile.emailPlaceholder")}+ placeholder={t("portal.settings.profile.emailPlaceholder")}/></FormField></div>@@ -444,16 +446,16 @@ function AppearancePanel({<div className="portal-settings__group"><div className="portal-settings__group-head"><h3 className="portal-settings__group-title">- {t("settings.appearance.themeTitle")}+ {t("portal.settings.appearance.themeTitle")}</h3><p className="portal-settings__group-sub">- {t("settings.appearance.themeSub")}+ {t("portal.settings.appearance.themeSub")}</p></div><divclassName="portal-settings__theme"role="radiogroup"- aria-label={t("settings.appearance.themeTitle")}+ aria-label={t("portal.settings.appearance.themeTitle")}>{THEME_OPTIONS.map((opt) => (<button@@ -475,8 +477,10 @@ function AppearancePanel({<span /></span><span className="portal-settings__theme-text">- <strong>{t(`settings.appearance.${opt.value}.label`)}</strong>- <span>{t(`settings.appearance.${opt.value}.hint`)}</span>+ <strong>+ {t(`portal.settings.appearance.${opt.value}.label`)}+ </strong>+ <span>{t(`portal.settings.appearance.${opt.value}.hint`)}</span></span></button>))}@@ -507,10 +511,10 @@ function NotificationsPanel({<div className="portal-settings__group"><div className="portal-settings__group-head"><h3 className="portal-settings__group-title">- {t("settings.notifications.title")}+ {t("portal.settings.notifications.title")}</h3><p className="portal-settings__group-sub">- {t("settings.notifications.sub")}+ {t("portal.settings.notifications.sub")}</p></div>@@ -537,8 +541,12 @@ function NotificationsPanel({return (<div key={id} className="portal-settings__notif-row"><div className="portal-settings__notif-text">- <strong>{t(`settings.notifications.${id}.label`)}</strong>- <span>{t(`settings.notifications.${id}.description`)}</span>+ <strong>+ {t(`portal.settings.notifications.${id}.label`)}+ </strong>+ <span>+ {t(`portal.settings.notifications.${id}.description`)}+ </span></div><ToggleSwitchchecked={notifications[id] ?? false}@@ -590,17 +598,17 @@ function WorkspacePanel({return (<div className="portal-settings__section">- <FormField label={t("settings.workspace.nameLabel")}>+ <FormField label={t("portal.settings.workspace.nameLabel")}><Inputvalue={workspaceName}onChange={(e) => onWorkspaceName(e.target.value)}- placeholder={t("settings.workspace.namePlaceholder")}+ placeholder={t("portal.settings.workspace.namePlaceholder")}/></FormField><FormField- label={t("settings.workspace.regionLabel")}- helperText={t("settings.workspace.regionHelper")}+ label={t("portal.settings.workspace.regionLabel")}+ helperText={t("portal.settings.workspace.regionHelper")}><Selectvalue={region}@@ -612,7 +620,7 @@ function WorkspacePanel({<div className="portal-settings__plan"><div className="portal-settings__plan-row"><span className="portal-settings__plan-label">- {t("settings.workspace.plan")}+ {t("portal.settings.workspace.plan")}</span><StatusBadge tone="purple" size="sm">{planLabel ?? "—"}@@ -621,10 +629,10 @@ function WorkspacePanel({{seats && (<div className="portal-settings__plan-row"><span className="portal-settings__plan-label">- {t("settings.workspace.seats")}+ {t("portal.settings.workspace.seats")}</span><span className="portal-settings__plan-value">- {t("settings.workspace.seatsUsed", {+ {t("portal.settings.workspace.seatsUsed", {used: seats.used,total: seats.total,})}@@ -632,7 +640,7 @@ function WorkspacePanel({</div>)}<Button variant="outline" size="sm" disabled>- {t("settings.workspace.manageBilling")}+ {t("portal.settings.workspace.manageBilling")}</Button></div></div>@@ -674,18 +682,18 @@ function AuthenticationPanel({<div className="portal-settings__group"><div className="portal-settings__group-head"><h3 className="portal-settings__group-title">- {t("settings.authentication.title")}+ {t("portal.settings.authentication.title")}</h3><p className="portal-settings__group-sub">- {t("settings.authentication.sub")}+ {t("portal.settings.authentication.sub")}</p></div><div className="portal-settings__notifs"><div className="portal-settings__notif-row"><div className="portal-settings__notif-text">- <strong>{t("settings.authentication.mfa.label")}</strong>- <span>{t("settings.authentication.mfa.description")}</span>+ <strong>{t("portal.settings.authentication.mfa.label")}</strong>+ <span>{t("portal.settings.authentication.mfa.description")}</span></div><ToggleSwitchchecked={security.mfaEnforced}@@ -696,14 +704,14 @@ function AuthenticationPanel({<div className="portal-settings__notif-row"><div className="portal-settings__notif-text"><span className="portal-settings__row-label">- <strong>{t("settings.authentication.sso.label")}</strong>+ <strong>{t("portal.settings.authentication.sso.label")}</strong>{!isEnterprise && (<StatusBadge tone="info" size="sm" showDot={false}>- {t("settings.enterpriseBadge")}+ {t("portal.settings.enterpriseBadge")}</StatusBadge>)}</span>- <span>{t("settings.authentication.sso.description")}</span>+ <span>{t("portal.settings.authentication.sso.description")}</span></div><ToggleSwitchchecked={isEnterprise && security.ssoEnabled}@@ -715,14 +723,18 @@ function AuthenticationPanel({<div className="portal-settings__notif-row"><div className="portal-settings__notif-text"><span className="portal-settings__row-label">- <strong>{t("settings.authentication.scim.label")}</strong>+ <strong>+ {t("portal.settings.authentication.scim.label")}+ </strong>{!isEnterprise && (<StatusBadge tone="info" size="sm" showDot={false}>- {t("settings.enterpriseBadge")}+ {t("portal.settings.enterpriseBadge")}</StatusBadge>)}</span>- <span>{t("settings.authentication.scim.description")}</span>+ <span>+ {t("portal.settings.authentication.scim.description")}+ </span></div><ToggleSwitchchecked={isEnterprise && security.scimEnabled}@@ -733,8 +745,8 @@ function AuthenticationPanel({</div><FormField- label={t("settings.authentication.sessionTimeout")}- helperText={t("settings.authentication.sessionTimeoutHelper")}+ label={t("portal.settings.authentication.sessionTimeout")}+ helperText={t("portal.settings.authentication.sessionTimeoutHelper")}><Selectvalue={String(security.sessionTimeoutMins)}@@ -743,7 +755,7 @@ function AuthenticationPanel({}options={SESSION_TIMEOUT_VALUES.map((value) => ({value,- label: t(`settings.authentication.timeout.${value}`),+ label: t(`portal.settings.authentication.timeout.${value}`),}))}/></FormField>@@ -778,10 +790,10 @@ function SessionsPanel({<div className="portal-settings__group"><div className="portal-settings__group-head"><h3 className="portal-settings__group-title">- {t("settings.sessions.title")}+ {t("portal.settings.sessions.title")}</h3><p className="portal-settings__group-sub">- {t("settings.sessions.sub")}+ {t("portal.settings.sessions.sub")}</p></div><div className="portal-settings__notifs">@@ -795,12 +807,12 @@ function SessionsPanel({</div>{s.current ? (<StatusBadge tone="success" size="sm">- {t("settings.sessions.thisDevice")}+ {t("portal.settings.sessions.thisDevice")}</StatusBadge>) : (// TODO(backend): DELETE /v1/settings/sessions/{id}<Button variant="ghost" size="sm">- {t("settings.sessions.revoke")}+ {t("portal.settings.sessions.revoke")}</Button>)}</div>@@ -845,10 +857,10 @@ function EarlyAccessPanel({<div className="portal-settings__group"><div className="portal-settings__group-head"><h3 className="portal-settings__group-title">- {t("settings.earlyAccess.title")}+ {t("portal.settings.earlyAccess.title")}</h3><p className="portal-settings__group-sub">- {t("settings.earlyAccess.sub")}+ {t("portal.settings.earlyAccess.sub")}</p></div><div className="portal-settings__notifs">@@ -861,7 +873,7 @@ function EarlyAccessPanel({<strong>{f.label}</strong>{locked && (<StatusBadge tone="info" size="sm" showDot={false}>- {t("settings.enterpriseBadge")}+ {t("portal.settings.enterpriseBadge")}</StatusBadge>)}</span>diff --git a/frontend/portal/src/components/Sidebar.css b/frontend/editor/src/portal/components/Sidebar.csssimilarity index 100%rename from frontend/portal/src/components/Sidebar.cssrename to frontend/editor/src/portal/components/Sidebar.cssdiff --git a/frontend/portal/src/components/Sidebar.stories.tsx b/frontend/editor/src/portal/components/Sidebar.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/Sidebar.stories.tsxrename to frontend/editor/src/portal/components/Sidebar.stories.tsxdiff --git a/frontend/portal/src/components/Sidebar.tsx b/frontend/editor/src/portal/components/Sidebar.tsxsimilarity index 88%rename from frontend/portal/src/components/Sidebar.tsxrename to frontend/editor/src/portal/components/Sidebar.tsxindex ecfa0e7900..d9ced4ae65 100644--- a/frontend/portal/src/components/Sidebar.tsx+++ b/frontend/editor/src/portal/components/Sidebar.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Dropdown, NavItem } from "@shared/components";+import { Dropdown, NavItem } from "@app/ui";import { useView, type ViewId } from "@portal/contexts/ViewContext";import { useTier } from "@portal/contexts/TierContext";import { useTheme } from "@portal/contexts/ThemeContext";@@ -8,8 +8,8 @@ import { useLink } from "@portal/contexts/LinkContext";import { useAsync } from "@portal/hooks/useAsync";import { fetchHomeKpis, type KpiEntry } from "@portal/api/home";import { EDITOR_URL } from "@portal/auth/editorUrl";-import markLight from "@shared/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svg";-import markDark from "@shared/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svg";+import markLight from "@app/assets/brand/modern-logo/StirlingPDFLogoNoTextLight.svg";+import markDark from "@app/assets/brand/modern-logo/StirlingPDFLogoNoTextDark.svg";import {HomeIcon,UsersIcon,@@ -64,7 +64,7 @@ function LinkAccountFooterItem() {return (<NavItemid="account-link"- label={t("shell.sidebar.linkAccount", "Link Stirling account")}+ label={t("portal.shell.sidebar.linkAccount", "Link Stirling account")}icon={<LinkIcon />}onClick={() => openLinkModal()}/>@@ -93,7 +93,7 @@ function UsageFooter() {<div className="portal-sidebar__usage portal-sidebar__usage--free"><div className="portal-sidebar__usage-line"><span className="portal-sidebar__usage-label">- {t("shell.sidebar.docsProcessed")}+ {t("portal.shell.sidebar.docsProcessed")}</span><span className="portal-sidebar__usage-value">{docs ?? "—"}</span></div>@@ -114,8 +114,8 @@ function UsageFooter() {const planLabel =tier === "pro"- ? t("shell.sidebar.planProcessor", "Processor plan")- : t("shell.sidebar.planEnterprise", "Enterprise plan");+ ? t("portal.shell.sidebar.planProcessor", "Processor plan")+ : t("portal.shell.sidebar.planEnterprise", "Enterprise plan");return (<div className="portal-sidebar__usage">@@ -125,7 +125,7 @@ function UsageFooter() {{planLabel}</span><span className="portal-sidebar__usage-value">- {docs != null ? t("shell.sidebar.docsCount", { docs }) : "—"}+ {docs != null ? t("portal.shell.sidebar.docsCount", { docs }) : "—"}</span></div></div>@@ -151,7 +151,7 @@ export function Sidebar() {<NavItemkey={entry.id}id={entry.id}- label={t(`nav.${entry.id}`)}+ label={t(`portal.nav.${entry.id}`)}icon={entry.icon}isActive={activeView === entry.id}onClick={(id) => setActiveView(id as ViewId)}@@ -162,7 +162,7 @@ export function Sidebar() {return (<asideclassName="portal-sidebar"- aria-label={t("shell.sidebar.primaryNav")}+ aria-label={t("portal.shell.sidebar.primaryNav")}><div className="portal-sidebar__logo"><span className="portal-sidebar__brand">@@ -172,7 +172,7 @@ export function Sidebar() {alt="Stirling"/><span className="portal-sidebar__logo-suffix">- {t("shell.sidebar.brandSuffix")}+ {t("portal.shell.sidebar.brandSuffix")}</span></span>@@ -181,7 +181,7 @@ export function Sidebar() {<buttontype="button"className="portal-sidebar__app-switch-btn"- aria-label={t("shell.sidebar.switchApp")}+ aria-label={t("portal.shell.sidebar.switchApp")}><ChevronDownIcon size={14} /></button>@@ -197,7 +197,7 @@ export function Sidebar() {/>}>- {t("shell.sidebar.appProcessor")}+ {t("portal.shell.sidebar.appProcessor")}</Dropdown.Item><Dropdown.ItemonSelect={() => {@@ -211,7 +211,7 @@ export function Sidebar() {/>}>- {t("shell.sidebar.appEditor")}+ {t("portal.shell.sidebar.appEditor")}</Dropdown.Item></Dropdown.Menu></Dropdown.Root>@@ -235,7 +235,7 @@ export function Sidebar() {<LinkAccountFooterItem /><NavItemid="settings"- label={t("nav.settings")}+ label={t("portal.nav.settings")}icon={<SettingsIcon />}onClick={() => openSettings()}/>diff --git a/frontend/portal/src/components/SingleOpRunner.css b/frontend/editor/src/portal/components/SingleOpRunner.csssimilarity index 100%rename from frontend/portal/src/components/SingleOpRunner.cssrename to frontend/editor/src/portal/components/SingleOpRunner.cssdiff --git a/frontend/portal/src/components/SingleOpRunner.stories.tsx b/frontend/editor/src/portal/components/SingleOpRunner.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/SingleOpRunner.stories.tsxrename to frontend/editor/src/portal/components/SingleOpRunner.stories.tsxdiff --git a/frontend/portal/src/components/SingleOpRunner.tsx b/frontend/editor/src/portal/components/SingleOpRunner.tsxsimilarity index 84%rename from frontend/portal/src/components/SingleOpRunner.tsxrename to frontend/editor/src/portal/components/SingleOpRunner.tsxindex 6b5c447179..2ac89450ec 100644--- a/frontend/portal/src/components/SingleOpRunner.tsx+++ b/frontend/editor/src/portal/components/SingleOpRunner.tsx@@ -1,12 +1,6 @@import { useCallback, useEffect, useMemo, useState } from "react";import { useTranslation } from "react-i18next";-import {- Button,- EmptyState,- Modal,- Skeleton,- StatusBadge,-} from "@shared/components";+import { Button, EmptyState, Modal, Skeleton, StatusBadge } from "@app/ui";import { useView } from "@portal/contexts/ViewContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -145,8 +139,8 @@ export function SingleOpRunner({open={open}onClose={onClose}width="xl"- title={t("opRunner.title")}- subtitle={t("opRunner.subtitle")}+ title={t("portal.opRunner.title")}+ subtitle={t("portal.opRunner.subtitle")}footer={<><div className="portal-runner__footer-status">@@ -163,24 +157,24 @@ export function SingleOpRunner({)}{phase === "error" && (<StatusBadge tone="danger" size="sm">- {errorMsg ?? t("opRunner.status.failed")}+ {errorMsg ?? t("portal.opRunner.status.failed")}</StatusBadge>)}</div><Button variant="ghost" onClick={onClose}>- {t("opRunner.action.close")}+ {t("portal.opRunner.action.close")}</Button>{phase === "done" ? (<><Button variant="outline" onClick={reset}>- {t("opRunner.action.runAgain")}+ {t("portal.opRunner.action.runAgain")}</Button><Buttonvariant="gradient"onClick={buildPipelineWithOp}trailingIcon={<span aria-hidden>→</span>}>- {t("opRunner.action.openBuilder")}+ {t("portal.opRunner.action.openBuilder")}</Button></>) : (@@ -191,8 +185,8 @@ export function SingleOpRunner({trailingIcon={<span aria-hidden>→</span>}>{phase === "running"- ? t("opRunner.action.running")- : t("opRunner.action.run")}+ ? t("portal.opRunner.action.running")+ : t("portal.opRunner.action.run")}</Button>)}</>@@ -230,12 +224,12 @@ export function SingleOpRunner({{sample ? (<><strong>{sample}</strong>- <span>{t("opRunner.drop.replaceHint")}</span>+ <span>{t("portal.opRunner.drop.replaceHint")}</span></>) : (<>- <strong>{t("opRunner.drop.title")}</strong>- <span>{t("opRunner.drop.hint")}</span>+ <strong>{t("portal.opRunner.drop.title")}</strong>+ <span>{t("portal.opRunner.drop.hint")}</span></>)}</div>@@ -245,14 +239,14 @@ export function SingleOpRunner({onClick={pickSample}>{sample- ? t("opRunner.drop.pickAnother")- : t("opRunner.drop.useSample")}+ ? t("portal.opRunner.drop.pickAnother")+ : t("portal.opRunner.drop.useSample")}</button></div><div><div className="portal-runner__section-title">- {t("opRunner.featuredOps")}+ {t("portal.opRunner.featuredOps")}</div><div className="portal-runner__ops">{opsIsLoading &&@@ -270,8 +264,8 @@ export function SingleOpRunner({{opsIsEmpty && (<EmptyStatesize="compact"- title={t("opRunner.empty.title")}- description={t("opRunner.empty.description")}+ title={t("portal.opRunner.empty.title")}+ description={t("portal.opRunner.empty.description")}/>)}{ops?.map((op) => (@@ -307,18 +301,18 @@ export function SingleOpRunner({{phase === "idle" && selectedOp && (<div className="portal-runner__hint"><div className="portal-runner__hint-eyebrow">- {t("opRunner.hint.ready")}+ {t("portal.opRunner.hint.ready")}</div><h3>- {t("opRunner.hint.runOn.before")}{" "}+ {t("portal.opRunner.hint.runOn.before")}{" "}<code>{selectedOp.label}</code>{" "}- {t("opRunner.hint.runOn.middle")}{" "}- <code>{sample ?? t("opRunner.hint.aSample")}</code>+ {t("portal.opRunner.hint.runOn.middle")}{" "}+ <code>{sample ?? t("portal.opRunner.hint.aSample")}</code></h3><p>- {selectedOp.blurb}. {t("opRunner.hint.press")}{" "}- <kbd>{t("opRunner.action.run")}</kbd>{" "}- {t("opRunner.hint.toInvoke")}{" "}+ {selectedOp.blurb}. {t("portal.opRunner.hint.press")}{" "}+ <kbd>{t("portal.opRunner.action.run")}</kbd>{" "}+ {t("portal.opRunner.hint.toInvoke")}{" "}<code>POST {selectedOp.endpoint}</code>.</p></div>@@ -328,7 +322,9 @@ export function SingleOpRunner({<div className="portal-runner__spinner-lg" aria-hidden /><div className="portal-runner__running-text"><div className="portal-runner__running-title">- {t("opRunner.running.title", { label: selectedOp.label })}+ {t("portal.opRunner.running.title", {+ label: selectedOp.label,+ })}</div><code>POST {selectedOp.endpoint}</code></div>@@ -338,11 +334,13 @@ export function SingleOpRunner({<div className="portal-runner__result"><header className="portal-runner__result-head"><StatusBadge tone="success" size="sm">- {t("opRunner.status.completed")}+ {t("portal.opRunner.status.completed")}</StatusBadge><code>POST {selectedOp.endpoint}</code><span className="portal-runner__result-meta">- {t("opRunner.durationMs", { ms: runResult.durationMs })}+ {t("portal.opRunner.durationMs", {+ ms: runResult.durationMs,+ })}</span></header><pre className="portal-runner__result-code">@@ -356,10 +354,10 @@ export function SingleOpRunner({className="portal-runner__hint-eyebrow"style={{ color: "var(--color-red)" }}>- {t("opRunner.status.failed")}+ {t("portal.opRunner.status.failed")}</div>- <h3>{t("opRunner.error.title")}</h3>- <p>{errorMsg ?? t("opRunner.error.unknown")}</p>+ <h3>{t("portal.opRunner.error.title")}</h3>+ <p>{errorMsg ?? t("portal.opRunner.error.unknown")}</p></div>)}</section>diff --git a/frontend/portal/src/components/UsageAreaChart.css b/frontend/editor/src/portal/components/UsageAreaChart.csssimilarity index 100%rename from frontend/portal/src/components/UsageAreaChart.cssrename to frontend/editor/src/portal/components/UsageAreaChart.cssdiff --git a/frontend/portal/src/components/UsageAreaChart.stories.tsx b/frontend/editor/src/portal/components/UsageAreaChart.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/UsageAreaChart.stories.tsxrename to frontend/editor/src/portal/components/UsageAreaChart.stories.tsxdiff --git a/frontend/portal/src/components/UsageAreaChart.tsx b/frontend/editor/src/portal/components/UsageAreaChart.tsxsimilarity index 97%rename from frontend/portal/src/components/UsageAreaChart.tsxrename to frontend/editor/src/portal/components/UsageAreaChart.tsxindex 65fd0e3eec..ff9750d57c 100644--- a/frontend/portal/src/components/UsageAreaChart.tsx+++ b/frontend/editor/src/portal/components/UsageAreaChart.tsx@@ -35,7 +35,7 @@ export function UsageAreaChart({deltaPct,}: UsageAreaChartProps) {const { t } = useTranslation();- const totalLabel = totalLabelProp ?? t("usageChart.defaultLabel");+ const totalLabel = totalLabelProp ?? t("portal.usageChart.defaultLabel");const [hoverIndex, setHoverIndex] = useState<number | null>(null);const svgRef = useRef<SVGSVGElement | null>(null);@@ -153,7 +153,7 @@ export function UsageAreaChart({}><span aria-hidden>{deltaPct >= 0 ? "↑" : "↓"}</span>- {t("usageChart.delta", {+ {t("portal.usageChart.delta", {pct: Math.abs(Math.round(deltaPct * 100)),})}</div>@@ -265,7 +265,7 @@ export function UsageAreaChart({})}</div><div className="portal-chart__tooltip-value">- {t("usageChart.docsValue", {+ {t("portal.usageChart.docsValue", {value: hovered.raw.value.toLocaleString(),})}</div>@@ -273,7 +273,7 @@ export function UsageAreaChart({)}<div className="sr-only" aria-live="polite" aria-atomic="true">{hovered- ? t("usageChart.srAnnounce", {+ ? t("portal.usageChart.srAnnounce", {date: new Date(hovered.raw.date).toLocaleDateString(undefined, {weekday: "short",month: "short",diff --git a/frontend/portal/src/components/WelcomeCarousel.css b/frontend/editor/src/portal/components/WelcomeCarousel.csssimilarity index 100%rename from frontend/portal/src/components/WelcomeCarousel.cssrename to frontend/editor/src/portal/components/WelcomeCarousel.cssdiff --git a/frontend/portal/src/components/WelcomeCarousel.stories.tsx b/frontend/editor/src/portal/components/WelcomeCarousel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/WelcomeCarousel.stories.tsxrename to frontend/editor/src/portal/components/WelcomeCarousel.stories.tsxdiff --git a/frontend/portal/src/components/WelcomeCarousel.tsx b/frontend/editor/src/portal/components/WelcomeCarousel.tsxsimilarity index 82%rename from frontend/portal/src/components/WelcomeCarousel.tsxrename to frontend/editor/src/portal/components/WelcomeCarousel.tsxindex b485eee1a4..d0b01708e6 100644--- a/frontend/portal/src/components/WelcomeCarousel.tsx+++ b/frontend/editor/src/portal/components/WelcomeCarousel.tsx@@ -1,6 +1,6 @@import { useEffect, useState, type ReactNode } from "react";import { useTranslation } from "react-i18next";-import { Button, StatusBadge } from "@shared/components";+import { Button, StatusBadge } from "@app/ui";import { useView, type ViewId } from "@portal/contexts/ViewContext";import "@portal/components/WelcomeCarousel.css";@@ -21,18 +21,18 @@ function EditorOrnament() {return (<div className="portal-carousel__doc"><StatusBadge tone="danger" size="sm" pulse>- {t("welcome.ornament.editor.critical")}+ {t("portal.welcome.ornament.editor.critical")}</StatusBadge><div className="portal-carousel__doc-title">Vulnerability Assessment Report</div><div className="portal-carousel__doc-sub">CVE-2026-1847 · 12 pages</div><div className="portal-carousel__doc-meta">- <span>{t("welcome.ornament.editor.signed")}</span>+ <span>{t("portal.welcome.ornament.editor.signed")}</span><span>·</span>- <span>{t("welcome.ornament.editor.ocrClean")}</span>+ <span>{t("portal.welcome.ornament.editor.ocrClean")}</span><span>·</span>- <span>{t("welcome.ornament.editor.schemaMatch")}</span>+ <span>{t("portal.welcome.ornament.editor.schemaMatch")}</span></div></div>);@@ -88,9 +88,12 @@ const SLIDES: Slide[] = [{id: "editor",durationMs: 12000,- primary: { labelKey: "welcome.slides.editor.primary", target: "editor" },+ primary: {+ labelKey: "portal.welcome.slides.editor.primary",+ target: "editor",+ },secondary: {- labelKey: "welcome.slides.editor.secondary",+ labelKey: "portal.welcome.slides.editor.secondary",target: "editor",},ornament: <EditorOrnament />,@@ -98,9 +101,12 @@ const SLIDES: Slide[] = [{id: "platform",durationMs: 8000,- primary: { labelKey: "welcome.slides.platform.primary", action: "try-op" },+ primary: {+ labelKey: "portal.welcome.slides.platform.primary",+ action: "try-op",+ },secondary: {- labelKey: "welcome.slides.platform.secondary",+ labelKey: "portal.welcome.slides.platform.secondary",target: "infrastructure",},ornament: <PlatformOrnament />,@@ -108,8 +114,14 @@ const SLIDES: Slide[] = [{id: "agents",durationMs: 8000,- primary: { labelKey: "welcome.slides.agents.primary", target: "sources" },- secondary: { labelKey: "welcome.slides.agents.secondary", target: "docs" },+ primary: {+ labelKey: "portal.welcome.slides.agents.primary",+ target: "sources",+ },+ secondary: {+ labelKey: "portal.welcome.slides.agents.secondary",+ target: "docs",+ },ornament: <AgentOrnament />,},];@@ -157,19 +169,19 @@ export function WelcomeCarousel({ onTryOp }: WelcomeCarouselProps) {setPaused(false);}}}- aria-label={t("welcome.ariaLabel")}+ aria-label={t("portal.welcome.ariaLabel")}aria-roledescription="carousel"><div className="portal-carousel__inner" key={slide.id}><div className="portal-carousel__text"><div className="portal-carousel__eyebrow">- {t(`welcome.slides.${slide.id}.eyebrow`)}+ {t(`portal.welcome.slides.${slide.id}.eyebrow`)}</div><h1 className="portal-carousel__title">- {t(`welcome.slides.${slide.id}.title`)}+ {t(`portal.welcome.slides.${slide.id}.title`)}</h1><p className="portal-carousel__sub">- {t(`welcome.slides.${slide.id}.sub`)}+ {t(`portal.welcome.slides.${slide.id}.sub`)}</p><div className="portal-carousel__cta"><Button@@ -198,16 +210,16 @@ export function WelcomeCarousel({ onTryOp }: WelcomeCarouselProps) {<divclassName="portal-carousel__dots"role="group"- aria-label={t("welcome.pagination")}+ aria-label={t("portal.welcome.pagination")}>{SLIDES.map((s, i) => (<buttonkey={s.id}type="button"aria-current={i === index ? "true" : undefined}- aria-label={t("welcome.slideLabel", {+ aria-label={t("portal.welcome.slideLabel", {number: i + 1,- title: t(`welcome.slides.${s.id}.title`),+ title: t(`portal.welcome.slides.${s.id}.title`),})}className={"portal-carousel__dot" + (i === index ? " is-active" : "")diff --git a/frontend/portal/src/components/account-link/AccountLinkPanel.tsx b/frontend/editor/src/portal/components/account-link/AccountLinkPanel.tsxsimilarity index 90%rename from frontend/portal/src/components/account-link/AccountLinkPanel.tsxrename to frontend/editor/src/portal/components/account-link/AccountLinkPanel.tsxindex eaf3c86be6..48e4a9c562 100644--- a/frontend/portal/src/components/account-link/AccountLinkPanel.tsx+++ b/frontend/editor/src/portal/components/account-link/AccountLinkPanel.tsx@@ -1,6 +1,6 @@import { useCallback, useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Skeleton, StatusBadge } from "@shared/components";+import { Banner, Skeleton, StatusBadge } from "@app/ui";import { useAsync } from "@portal/hooks/useAsync";import { useAccountLinkContext } from "@portal/contexts/AccountLinkContext";import { useLink, LINK_INFO } from "@portal/contexts/LinkContext";@@ -58,7 +58,7 @@ export function AccountLinkPanel() {<div><p className="portal-link__page-sub">{t(- "accountLink.panel.sub",+ "portal.accountLink.panel.sub","Link this self-hosted org to its Stirling account so unattended processing bills against your org wallet.",)}</p>@@ -83,11 +83,11 @@ export function AccountLinkPanel() {<section className="portal-link__instances"><div className="portal-link__section-head"><h2 className="portal-link__section-title">- {t("accountLink.panel.instancesTitle", "Linked instances")}+ {t("portal.accountLink.panel.instancesTitle", "Linked instances")}</h2><p className="portal-link__section-sub">{t(- "accountLink.panel.instancesSub",+ "portal.accountLink.panel.instancesSub","Every self-hosted instance registered to this org. Revoke a credential to immediately cut off its unattended access.",)}</p>@@ -102,18 +102,18 @@ export function AccountLinkPanel() {<Bannertone="danger"title={t(- "accountLink.panel.loadError.title",+ "portal.accountLink.panel.loadError.title","Couldn't load linked instances",)}>{instancesState.error instanceof HttpError &&instancesState.error.status === 403? t(- "accountLink.panel.loadError.forbidden",+ "portal.accountLink.panel.loadError.forbidden","Only the team owner can view the org's linked instances.",): t(- "accountLink.panel.loadError.generic",+ "portal.accountLink.panel.loadError.generic","Couldn't load the team's linked instances. Try again in a moment.",)}</Banner>@@ -129,7 +129,7 @@ export function AccountLinkPanel() {<Bannertone="danger"title={t(- "accountLink.panel.revokeError",+ "portal.accountLink.panel.revokeError","Couldn't revoke instance",)}>diff --git a/frontend/portal/src/components/account-link/LinkAccountCard.stories.tsx b/frontend/editor/src/portal/components/account-link/LinkAccountCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/account-link/LinkAccountCard.stories.tsxrename to frontend/editor/src/portal/components/account-link/LinkAccountCard.stories.tsxdiff --git a/frontend/portal/src/components/account-link/LinkAccountCard.tsx b/frontend/editor/src/portal/components/account-link/LinkAccountCard.tsxsimilarity index 72%rename from frontend/portal/src/components/account-link/LinkAccountCard.tsxrename to frontend/editor/src/portal/components/account-link/LinkAccountCard.tsxindex f47accf391..1bf8a65bf2 100644--- a/frontend/portal/src/components/account-link/LinkAccountCard.tsx+++ b/frontend/editor/src/portal/components/account-link/LinkAccountCard.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Banner, Button, Card, StatusBadge } from "@shared/components";+import { Banner, Button, Card, StatusBadge } from "@app/ui";import type { UseAccountLink } from "@portal/hooks/useAccountLink";import { useUI } from "@portal/contexts/UIContext";@@ -24,19 +24,19 @@ export function LinkAccountCard({ link }: Props) {<div className="portal-link__card-head"><div><span className="portal-link__eyebrow">- {t("accountLink.card.eyebrow", "Account link")}+ {t("portal.accountLink.card.eyebrow", "Account link")}</span><h2 className="portal-link__title">{t(- "accountLink.card.title",+ "portal.accountLink.card.title","Link this org to its Stirling account",)}</h2></div><StatusBadge tone={linked ? "success" : "neutral"} size="sm">{linked- ? t("accountLink.card.linked", "Linked")- : t("accountLink.card.notLinked", "Not linked")}+ ? t("portal.accountLink.card.linked", "Linked")+ : t("portal.accountLink.card.notLinked", "Not linked")}</StatusBadge></div>@@ -44,14 +44,14 @@ export function LinkAccountCard({ link }: Props) {<Bannertone="neutral"title={t(- "accountLink.card.loginNotConfigured.title",+ "portal.accountLink.card.loginNotConfigured.title","SaaS login not configured",)}>- {t("accountLink.card.loginNotConfigured.before", "Set")}{" "}+ {t("portal.accountLink.card.loginNotConfigured.before", "Set")}{" "}<code>VITE_SAAS_SUPABASE_URL</code>{" "}{t(- "accountLink.card.loginNotConfigured.after",+ "portal.accountLink.card.loginNotConfigured.after","to enable account linking against the hosted Stirling account. In dev you can simulate sign-in from the link dialog.",)}</Banner>@@ -60,7 +60,7 @@ export function LinkAccountCard({ link }: Props) {{link.error && (<Bannertone="danger"- title={t("accountLink.card.error.title", "Couldn't link")}+ title={t("portal.accountLink.card.error.title", "Couldn't link")}>{link.error}</Banner>@@ -70,15 +70,15 @@ export function LinkAccountCard({ link }: Props) {<div className="portal-link__actions"><span className="portal-link__muted">{link.status?.name- ? t("accountLink.card.linkedAs", "Linked as {{name}}.", {+ ? t("portal.accountLink.card.linkedAs", "Linked as {{name}}.", {name: link.status.name,}): t(- "accountLink.card.linkedGeneric",+ "portal.accountLink.card.linkedGeneric","This instance is linked.",)}{" "}{t(- "accountLink.card.billingNote",+ "portal.accountLink.card.billingNote","Unattended processing bills against your org wallet.",)}</span>@@ -88,13 +88,16 @@ export function LinkAccountCard({ link }: Props) {loading={linking}onClick={link.unlink}>- {t("accountLink.card.unlink", "Unlink")}+ {t("portal.accountLink.card.unlink", "Unlink")}</Button></div>) : (<div className="portal-link__actions"><Button loading={linking} onClick={() => openLinkModal()}>- {t("accountLink.card.linkButton", "Link your Stirling account")}+ {t(+ "portal.accountLink.card.linkButton",+ "Link your Stirling account",+ )}</Button></div>)}diff --git a/frontend/portal/src/components/account-link/LinkAccountModal.tsx b/frontend/editor/src/portal/components/account-link/LinkAccountModal.tsxsimilarity index 76%rename from frontend/portal/src/components/account-link/LinkAccountModal.tsxrename to frontend/editor/src/portal/components/account-link/LinkAccountModal.tsxindex 8c23bbcd0f..2b07e12b3a 100644--- a/frontend/portal/src/components/account-link/LinkAccountModal.tsx+++ b/frontend/editor/src/portal/components/account-link/LinkAccountModal.tsx@@ -1,12 +1,12 @@import { useEffect } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button, Modal } from "@shared/components";-import SupabaseLoginForm from "@shared/auth/ui/SupabaseLoginForm";+import { Banner, Button, Modal } from "@app/ui";+import SupabaseLoginForm from "@app/auth/ui/SupabaseLoginForm";import {useSupabaseLogin,type SupabaseLoginSession,-} from "@shared/auth/ui/useSupabaseLogin";-import "@shared/auth/ui/auth-theme.css";+} from "@app/auth/ui/useSupabaseLogin";+import "@app/auth/ui/auth-theme.css";import {ensureSaasSupabase,isSaasSupabaseConfigured,@@ -66,17 +66,20 @@ export function LinkAccountModal({width="md"title={reauth- ? t("accountLink.modal.reauthTitle", "Sign in again")- : t("accountLink.modal.linkTitle", "Link your Stirling account")+ ? t("portal.accountLink.modal.reauthTitle", "Sign in again")+ : t(+ "portal.accountLink.modal.linkTitle",+ "Link your Stirling account",+ )}subtitle={reauth? t(- "accountLink.modal.reauthSubtitle",+ "portal.accountLink.modal.reauthSubtitle","Your session expired — sign back in to your Stirling account. Your instance stays linked.",): t(- "accountLink.modal.linkSubtitle",+ "portal.accountLink.modal.linkSubtitle","Sign in to the account this server should bill against.",)}@@ -88,16 +91,16 @@ export function LinkAccountModal({<Bannertone="neutral"title={t(- "accountLink.modal.loginNotConfigured.title",+ "portal.accountLink.modal.loginNotConfigured.title","SaaS login not configured",)}>- {t("accountLink.modal.loginNotConfigured.before", "Set")}{" "}+ {t("portal.accountLink.modal.loginNotConfigured.before", "Set")}{" "}<code>VITE_SAAS_SUPABASE_URL</code>{" "}- {t("accountLink.modal.loginNotConfigured.and", "and")}{" "}+ {t("portal.accountLink.modal.loginNotConfigured.and", "and")}{" "}<code>VITE_SAAS_SUPABASE_ANON_KEY</code>{" "}{t(- "accountLink.modal.loginNotConfigured.after",+ "portal.accountLink.modal.loginNotConfigured.after","to enable in-app linking against the hosted Stirling account.",)}</Banner>@@ -109,7 +112,10 @@ export function LinkAccountModal({onClose();}}>- {t("accountLink.modal.simulateSignIn", "Simulate sign-in (dev)")}+ {t(+ "portal.accountLink.modal.simulateSignIn",+ "Simulate sign-in (dev)",+ )}</Button>)}</div>diff --git a/frontend/portal/src/components/account-link/LinkGate.stories.tsx b/frontend/editor/src/portal/components/account-link/LinkGate.stories.tsxsimilarity index 93%rename from frontend/portal/src/components/account-link/LinkGate.stories.tsxrename to frontend/editor/src/portal/components/account-link/LinkGate.stories.tsxindex af2ac5c96b..60d9a9962c 100644--- a/frontend/portal/src/components/account-link/LinkGate.stories.tsx+++ b/frontend/editor/src/portal/components/account-link/LinkGate.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Card } from "@shared/components";+import { Card } from "@app/ui";import { LinkGate } from "@portal/components/account-link/LinkGate";const meta: Meta<typeof LinkGate> = {diff --git a/frontend/portal/src/components/account-link/LinkGate.tsx b/frontend/editor/src/portal/components/account-link/LinkGate.tsxsimilarity index 74%rename from frontend/portal/src/components/account-link/LinkGate.tsxrename to frontend/editor/src/portal/components/account-link/LinkGate.tsxindex de56c844e9..d5743d0041 100644--- a/frontend/portal/src/components/account-link/LinkGate.tsx+++ b/frontend/editor/src/portal/components/account-link/LinkGate.tsx@@ -1,6 +1,6 @@import type { ReactNode } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button } from "@shared/components";+import { Banner, Button } from "@app/ui";import { useLink } from "@portal/contexts/LinkContext";import { useUI } from "@portal/contexts/UIContext";@@ -29,18 +29,22 @@ export function LinkGate({ children, feature }: Props) {tone="info"title={feature- ? t("accountLink.gate.titleFeature", "Link to unlock {{feature}}", {- feature,- })- : t("accountLink.gate.title", "Link to unlock")+ ? t(+ "portal.accountLink.gate.titleFeature",+ "Link to unlock {{feature}}",+ {+ feature,+ },+ )+ : t("portal.accountLink.gate.title", "Link to unlock")}description={t(- "accountLink.gate.description",+ "portal.accountLink.gate.description","Link this org's Stirling account to use billable features.",)}action={<Button size="sm" onClick={() => openLinkModal()}>- {t("accountLink.gate.action", "Link account")}+ {t("portal.accountLink.gate.action", "Link account")}</Button>}/>diff --git a/frontend/portal/src/components/account-link/LinkedInstancesTable.stories.tsx b/frontend/editor/src/portal/components/account-link/LinkedInstancesTable.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/account-link/LinkedInstancesTable.stories.tsxrename to frontend/editor/src/portal/components/account-link/LinkedInstancesTable.stories.tsxdiff --git a/frontend/portal/src/components/account-link/LinkedInstancesTable.tsx b/frontend/editor/src/portal/components/account-link/LinkedInstancesTable.tsxsimilarity index 69%rename from frontend/portal/src/components/account-link/LinkedInstancesTable.tsxrename to frontend/editor/src/portal/components/account-link/LinkedInstancesTable.tsxindex a6460016d5..f6839596d3 100644--- a/frontend/portal/src/components/account-link/LinkedInstancesTable.tsx+++ b/frontend/editor/src/portal/components/account-link/LinkedInstancesTable.tsx@@ -7,7 +7,7 @@ import {StatusBadge,Table,type TableColumn,-} from "@shared/components";+} from "@app/ui";import type { LinkedInstanceRow } from "@portal/api/link";interface Props {@@ -19,20 +19,21 @@ interface Props {}function relativeTime(iso: string | null, t: TFunction): string {- if (!iso) return t("accountLink.instances.time.never", "never");+ if (!iso) return t("portal.accountLink.instances.time.never", "never");const diffMs = Date.now() - new Date(iso).getTime();const mins = Math.round(diffMs / 60_000);- if (mins < 1) return t("accountLink.instances.time.justNow", "just now");+ if (mins < 1)+ return t("portal.accountLink.instances.time.justNow", "just now");if (mins < 60)- return t("accountLink.instances.time.minutesAgo", "{{count}}m ago", {+ return t("portal.accountLink.instances.time.minutesAgo", "{{count}}m ago", {count: mins,});const hrs = Math.round(mins / 60);if (hrs < 24)- return t("accountLink.instances.time.hoursAgo", "{{count}}h ago", {+ return t("portal.accountLink.instances.time.hoursAgo", "{{count}}h ago", {count: hrs,});- return t("accountLink.instances.time.daysAgo", "{{count}}d ago", {+ return t("portal.accountLink.instances.time.daysAgo", "{{count}}d ago", {count: Math.round(hrs / 24),});}@@ -47,11 +48,12 @@ export function LinkedInstancesTable({const cols: TableColumn<LinkedInstanceRow>[] = [{key: "name",- header: t("accountLink.instances.columns.instance", "Instance"),+ header: t("portal.accountLink.instances.columns.instance", "Instance"),render: (i) => (<div className="portal-link__cell-stack"><span className="portal-link__cell-strong">- {i.name ?? t("accountLink.instances.unnamed", "Unnamed instance")}+ {i.name ??+ t("portal.accountLink.instances.unnamed", "Unnamed instance")}</span><code className="portal-link__device-id">{i.deviceId}</code></div>@@ -59,21 +61,21 @@ export function LinkedInstancesTable({},{key: "status",- header: t("accountLink.instances.columns.status", "Status"),+ header: t("portal.accountLink.instances.columns.status", "Status"),render: (i) =>i.revoked ? (<StatusBadge tone="danger" size="sm">- {t("accountLink.instances.revoked", "Revoked")}+ {t("portal.accountLink.instances.revoked", "Revoked")}</StatusBadge>) : (<StatusBadge tone="success" size="sm" pulse>- {t("accountLink.instances.active", "Active")}+ {t("portal.accountLink.instances.active", "Active")}</StatusBadge>),},{key: "lastSeen",- header: t("accountLink.instances.columns.lastSeen", "Last seen"),+ header: t("portal.accountLink.instances.columns.lastSeen", "Last seen"),render: (i) => (<span className="portal-link__muted">{relativeTime(i.lastSeenAt, t)}@@ -82,7 +84,7 @@ export function LinkedInstancesTable({},{key: "created",- header: t("accountLink.instances.columns.linked", "Linked"),+ header: t("portal.accountLink.instances.columns.linked", "Linked"),render: (i) => (<span className="portal-link__muted">{relativeTime(i.createdAt, t)}@@ -102,7 +104,7 @@ export function LinkedInstancesTable({loading={revokingId === i.instanceId}onClick={() => onRevoke(i)}>- {t("accountLink.instances.revoke", "Revoke")}+ {t("portal.accountLink.instances.revoke", "Revoke")}</Button>),},@@ -113,9 +115,12 @@ export function LinkedInstancesTable({{instances.length === 0 ? (<EmptyStatesize="compact"- title={t("accountLink.instances.empty.title", "No linked instances")}+ title={t(+ "portal.accountLink.instances.empty.title",+ "No linked instances",+ )}description={t(- "accountLink.instances.empty.description",+ "portal.accountLink.instances.empty.description","Link this org's account, then register your self-hosted instances to see them here.",)}/>diff --git a/frontend/portal/src/components/agent-builder/AgentBuilderPanel.stories.tsx b/frontend/editor/src/portal/components/agent-builder/AgentBuilderPanel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/agent-builder/AgentBuilderPanel.stories.tsxrename to frontend/editor/src/portal/components/agent-builder/AgentBuilderPanel.stories.tsxdiff --git a/frontend/portal/src/components/agent-builder/AgentBuilderPanel.tsx b/frontend/editor/src/portal/components/agent-builder/AgentBuilderPanel.tsxsimilarity index 87%rename from frontend/portal/src/components/agent-builder/AgentBuilderPanel.tsxrename to frontend/editor/src/portal/components/agent-builder/AgentBuilderPanel.tsxindex 46b45231b2..20cbcab89c 100644--- a/frontend/portal/src/components/agent-builder/AgentBuilderPanel.tsx+++ b/frontend/editor/src/portal/components/agent-builder/AgentBuilderPanel.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { StatusBadge, Tabs, type TabItem } from "@shared/components";+import { StatusBadge, Tabs, type TabItem } from "@app/ui";import { type Agent, AGENT_STATUS_TONE } from "@portal/api/agents";import { ScenariosPanel } from "@portal/components/agent-builder/ScenariosPanel";import { ToolsPanel } from "@portal/components/agent-builder/ToolsPanel";@@ -27,18 +27,18 @@ export function AgentBuilderPanel({const tabs: TabItem<BuilderTab>[] = [{key: "scenarios",- label: t("agentBuilder.tabs.scenarios"),+ label: t("portal.agentBuilder.tabs.scenarios"),count: agent.scenarios.length,},- { key: "tools", label: t("agentBuilder.tabs.tools") },+ { key: "tools", label: t("portal.agentBuilder.tabs.tools") },{key: "evals",- label: t("agentBuilder.tabs.evals"),+ label: t("portal.agentBuilder.tabs.evals"),count: agent.evalsTotal > 0 ? agent.evalsTotal : undefined,},{key: "versions",- label: t("agentBuilder.tabs.versions"),+ label: t("portal.agentBuilder.tabs.versions"),count: agent.versions.length,},];@@ -66,7 +66,7 @@ export function AgentBuilderPanel({activeKey={tab}onChange={setTab}variant="underline"- ariaLabel={t("agentBuilder.sectionsAriaLabel")}+ ariaLabel={t("portal.agentBuilder.sectionsAriaLabel")}/>{tab === "scenarios" && <ScenariosPanel agent={agent} />}diff --git a/frontend/portal/src/components/agent-builder/AgentKpiStrip.stories.tsx b/frontend/editor/src/portal/components/agent-builder/AgentKpiStrip.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/agent-builder/AgentKpiStrip.stories.tsxrename to frontend/editor/src/portal/components/agent-builder/AgentKpiStrip.stories.tsxdiff --git a/frontend/portal/src/components/agent-builder/AgentKpiStrip.tsx b/frontend/editor/src/portal/components/agent-builder/AgentKpiStrip.tsxsimilarity index 70%rename from frontend/portal/src/components/agent-builder/AgentKpiStrip.tsxrename to frontend/editor/src/portal/components/agent-builder/AgentKpiStrip.tsxindex 029d300f29..0d3b729920 100644--- a/frontend/portal/src/components/agent-builder/AgentKpiStrip.tsx+++ b/frontend/editor/src/portal/components/agent-builder/AgentKpiStrip.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { MetricCard, MetricStrip } from "@shared/components";+import { MetricCard, MetricStrip } from "@app/ui";import type { AgentsSummary } from "@portal/api/agents";interface AgentKpiStripProps {@@ -16,10 +16,10 @@ export function AgentKpiStrip({ summary, loading }: AgentKpiStripProps) {* states; only values flow from the API.*/const kpiLabels = [- t("agentBuilder.kpi.activeAgents"),- t("agentBuilder.kpi.avgPassRate"),- t("agentBuilder.kpi.scenarios"),- t("agentBuilder.kpi.latestPublished"),+ t("portal.agentBuilder.kpi.activeAgents"),+ t("portal.agentBuilder.kpi.avgPassRate"),+ t("portal.agentBuilder.kpi.scenarios"),+ t("portal.agentBuilder.kpi.latestPublished"),] as const;const values: (string | number)[] = summary@@ -33,10 +33,12 @@ export function AgentKpiStrip({ summary, loading }: AgentKpiStripProps) {const descriptions: (string | undefined)[] = summary? [- t("agentBuilder.kpi.totalDescription", { count: summary.totalAgents }),- t("agentBuilder.kpi.acrossGoldenSets"),- t("agentBuilder.kpi.testCases"),- t("agentBuilder.kpi.fleetWide"),+ t("portal.agentBuilder.kpi.totalDescription", {+ count: summary.totalAgents,+ }),+ t("portal.agentBuilder.kpi.acrossGoldenSets"),+ t("portal.agentBuilder.kpi.testCases"),+ t("portal.agentBuilder.kpi.fleetWide"),]: [];diff --git a/frontend/portal/src/components/agent-builder/AgentSelector.stories.tsx b/frontend/editor/src/portal/components/agent-builder/AgentSelector.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/agent-builder/AgentSelector.stories.tsxrename to frontend/editor/src/portal/components/agent-builder/AgentSelector.stories.tsxdiff --git a/frontend/portal/src/components/agent-builder/AgentSelector.tsx b/frontend/editor/src/portal/components/agent-builder/AgentSelector.tsxsimilarity index 93%rename from frontend/portal/src/components/agent-builder/AgentSelector.tsxrename to frontend/editor/src/portal/components/agent-builder/AgentSelector.tsxindex 73248b8128..f6734721b8 100644--- a/frontend/portal/src/components/agent-builder/AgentSelector.tsx+++ b/frontend/editor/src/portal/components/agent-builder/AgentSelector.tsx@@ -1,6 +1,6 @@import { useTranslation } from "react-i18next";import { type Agent, AGENT_STATUS_TONE } from "@portal/api/agents";-import { StatusBadge } from "@shared/components";+import { StatusBadge } from "@app/ui";import "@portal/views/AgentBuilder.css";interface AgentSelectorProps {@@ -19,7 +19,7 @@ export function AgentSelector({return (<navclassName="portal-agents__selector"- aria-label={t("agentBuilder.selectorAriaLabel")}+ aria-label={t("portal.agentBuilder.selectorAriaLabel")}>{agents.map((a) => (<buttondiff --git a/frontend/portal/src/components/agent-builder/BootstrapDialog.stories.tsx b/frontend/editor/src/portal/components/agent-builder/BootstrapDialog.stories.tsxsimilarity index 95%rename from frontend/portal/src/components/agent-builder/BootstrapDialog.stories.tsxrename to frontend/editor/src/portal/components/agent-builder/BootstrapDialog.stories.tsxindex 8e96e7ac76..086ac982dc 100644--- a/frontend/portal/src/components/agent-builder/BootstrapDialog.stories.tsx+++ b/frontend/editor/src/portal/components/agent-builder/BootstrapDialog.stories.tsx@@ -1,6 +1,6 @@import { useState } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import { Button } from "@shared/components";+import { Button } from "@app/ui";import { BootstrapDialog } from "@portal/components/agent-builder/BootstrapDialog";const meta: Meta<typeof BootstrapDialog> = {diff --git a/frontend/portal/src/components/agent-builder/BootstrapDialog.tsx b/frontend/editor/src/portal/components/agent-builder/BootstrapDialog.tsxsimilarity index 82%rename from frontend/portal/src/components/agent-builder/BootstrapDialog.tsxrename to frontend/editor/src/portal/components/agent-builder/BootstrapDialog.tsxindex 61b6a01f09..24bf1205f7 100644--- a/frontend/portal/src/components/agent-builder/BootstrapDialog.tsx+++ b/frontend/editor/src/portal/components/agent-builder/BootstrapDialog.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Button, Modal } from "@shared/components";+import { Button, Modal } from "@app/ui";import "@portal/views/AgentBuilder.css";interface BootstrapDialogProps {@@ -33,22 +33,22 @@ export function BootstrapDialog({ open, onClose }: BootstrapDialogProps) {open={open}onClose={close}width="md"- title={t("agentBuilder.bootstrap.title")}- subtitle={t("agentBuilder.bootstrap.subtitle")}+ title={t("portal.agentBuilder.bootstrap.title")}+ subtitle={t("portal.agentBuilder.bootstrap.subtitle")}footer={<div className="portal-agents__dialog-footer"><Button variant="ghost" size="sm" onClick={close}>- {t("agentBuilder.bootstrap.cancel")}+ {t("portal.agentBuilder.bootstrap.cancel")}</Button><Button size="sm" onClick={bootstrap} disabled={!fileName}>- {t("agentBuilder.bootstrap.submit")}+ {t("portal.agentBuilder.bootstrap.submit")}</Button></div>}><div className="portal-agents__bootstrap"><p className="portal-agents__bootstrap-lead">- {t("agentBuilder.bootstrap.lead")}+ {t("portal.agentBuilder.bootstrap.lead")}</p><label className="portal-agents__dropzone"><input@@ -61,7 +61,7 @@ export function BootstrapDialog({ open, onClose }: BootstrapDialogProps) {⇪</span><span className="portal-agents__dropzone-text">- {fileName ?? t("agentBuilder.bootstrap.dropzoneText")}+ {fileName ?? t("portal.agentBuilder.bootstrap.dropzoneText")}</span></label></div>diff --git a/frontend/portal/src/components/agent-builder/EvalsPanel.stories.tsx b/frontend/editor/src/portal/components/agent-builder/EvalsPanel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/agent-builder/EvalsPanel.stories.tsxrename to frontend/editor/src/portal/components/agent-builder/EvalsPanel.stories.tsxdiff --git a/frontend/portal/src/components/agent-builder/EvalsPanel.tsx b/frontend/editor/src/portal/components/agent-builder/EvalsPanel.tsxsimilarity index 73%rename from frontend/portal/src/components/agent-builder/EvalsPanel.tsxrename to frontend/editor/src/portal/components/agent-builder/EvalsPanel.tsxindex 651f6c1d69..3f1580652f 100644--- a/frontend/portal/src/components/agent-builder/EvalsPanel.tsx+++ b/frontend/editor/src/portal/components/agent-builder/EvalsPanel.tsx@@ -7,7 +7,7 @@ import {StatusBadge,Table,type TableColumn,-} from "@shared/components";+} from "@app/ui";import type { Agent, EvalCase } from "@portal/api/agents";import "@portal/views/AgentBuilder.css";@@ -22,32 +22,32 @@ export function EvalsPanel({ agent }: EvalsPanelProps) {const columns: TableColumn<EvalCase>[] = [{key: "name",- header: t("agentBuilder.evals.columnCase"),+ header: t("portal.agentBuilder.evals.columnCase"),render: (c) => c.name,},{key: "result",- header: t("agentBuilder.evals.columnResult"),+ header: t("portal.agentBuilder.evals.columnResult"),render: (c) =>c.passing === null ? (<span className="portal-agents__muted">- {t("agentBuilder.evals.notRun")}+ {t("portal.agentBuilder.evals.notRun")}</span>) : (<StatusBadge tone={c.passing ? "success" : "danger"} size="sm">{c.passing- ? t("agentBuilder.evals.pass")- : t("agentBuilder.evals.fail")}+ ? t("portal.agentBuilder.evals.pass")+ : t("portal.agentBuilder.evals.fail")}</StatusBadge>),},{key: "latency",- header: t("agentBuilder.evals.columnLatency"),+ header: t("portal.agentBuilder.evals.columnLatency"),align: "right",render: (c) => (<span className="portal-agents__mono">- {t("agentBuilder.evals.latencyMs", { ms: c.latencyMs })}+ {t("portal.agentBuilder.evals.latencyMs", { ms: c.latencyMs })}</span>),},@@ -57,8 +57,8 @@ export function EvalsPanel({ agent }: EvalsPanelProps) {return (<div className="portal-agents__panel"><EmptyState- title={t("agentBuilder.evals.empty.title")}- description={t("agentBuilder.evals.empty.description")}+ title={t("portal.agentBuilder.evals.empty.title")}+ description={t("portal.agentBuilder.evals.empty.description")}size="compact"/></div>@@ -77,29 +77,29 @@ export function EvalsPanel({ agent }: EvalsPanelProps) {<div className="portal-agents__eval-head"><div className="portal-agents__stat-grid portal-agents__stat-grid--two"><StatTile- label={t("agentBuilder.evals.passRate")}+ label={t("portal.agentBuilder.evals.passRate")}value={`${Math.round(rate * 100)}%`}tone={rate >= 0.95 ? "success" : rate >= 0.8 ? "warning" : "danger"}/><StatTile- label={t("agentBuilder.evals.casesPassing")}+ label={t("portal.agentBuilder.evals.casesPassing")}value={`${agent.evalsPassing} / ${agent.evalsTotal}`}/></div><Button size="sm" variant="outline" onClick={runEvals}>- {t("agentBuilder.evals.runEvals")}+ {t("portal.agentBuilder.evals.runEvals")}</Button></div><div className="portal-agents__bar-row"><div className="portal-agents__bar-head">- <span>{t("agentBuilder.evals.goldenSetPassRate")}</span>+ <span>{t("portal.agentBuilder.evals.goldenSetPassRate")}</span><strong>{Math.round(rate * 100)}%</strong></div><ProgressBarvalue={rate}color={rate >= 0.95 ? "var(--color-green)" : "var(--color-amber)"}- label={t("agentBuilder.evals.goldenSetPassRate")}+ label={t("portal.agentBuilder.evals.goldenSetPassRate")}/></div>diff --git a/frontend/portal/src/components/agent-builder/ScenariosPanel.stories.tsx b/frontend/editor/src/portal/components/agent-builder/ScenariosPanel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/agent-builder/ScenariosPanel.stories.tsxrename to frontend/editor/src/portal/components/agent-builder/ScenariosPanel.stories.tsxdiff --git a/frontend/portal/src/components/agent-builder/ScenariosPanel.tsx b/frontend/editor/src/portal/components/agent-builder/ScenariosPanel.tsxsimilarity index 79%rename from frontend/portal/src/components/agent-builder/ScenariosPanel.tsxrename to frontend/editor/src/portal/components/agent-builder/ScenariosPanel.tsxindex f355dfa4d0..f4057ea2b6 100644--- a/frontend/portal/src/components/agent-builder/ScenariosPanel.tsx+++ b/frontend/editor/src/portal/components/agent-builder/ScenariosPanel.tsx@@ -1,12 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import {- Button,- Chip,- FormField,- Input,- StatusBadge,-} from "@shared/components";+import { Button, Chip, FormField, Input, StatusBadge } from "@app/ui";import type { Agent, Scenario } from "@portal/api/agents";import "@portal/views/AgentBuilder.css";@@ -64,8 +58,8 @@ export function ScenariosPanel({ agent }: ScenariosPanelProps) {showDot={false}>{s.enabled- ? t("agentBuilder.scenarios.inEval")- : t("agentBuilder.scenarios.muted")}+ ? t("portal.agentBuilder.scenarios.inEval")+ : t("portal.agentBuilder.scenarios.muted")}</StatusBadge></div><span className="portal-agents__scenario-expect">@@ -78,8 +72,8 @@ export function ScenariosPanel({ agent }: ScenariosPanelProps) {onClick={() => toggleEnabled(s.id)}>{s.enabled- ? t("agentBuilder.scenarios.mute")- : t("agentBuilder.scenarios.enable")}+ ? t("portal.agentBuilder.scenarios.mute")+ : t("portal.agentBuilder.scenarios.enable")}</Button></li>))}@@ -87,25 +81,29 @@ export function ScenariosPanel({ agent }: ScenariosPanelProps) {<div className="portal-agents__scenario-add"><Chip tone="blue" size="sm">- {t("agentBuilder.scenarios.addScenario")}+ {t("portal.agentBuilder.scenarios.addScenario")}</Chip><div className="portal-agents__scenario-form">- <FormField label={t("agentBuilder.scenarios.nameLabel")}>+ <FormField label={t("portal.agentBuilder.scenarios.nameLabel")}><Inputvalue={name}onChange={(e) => setName(e.target.value)}- placeholder={t("agentBuilder.scenarios.namePlaceholder")}+ placeholder={t("portal.agentBuilder.scenarios.namePlaceholder")}/></FormField>- <FormField label={t("agentBuilder.scenarios.expectationLabel")}>+ <FormField+ label={t("portal.agentBuilder.scenarios.expectationLabel")}+ ><Inputvalue={expectation}onChange={(e) => setExpectation(e.target.value)}- placeholder={t("agentBuilder.scenarios.expectationPlaceholder")}+ placeholder={t(+ "portal.agentBuilder.scenarios.expectationPlaceholder",+ )}/></FormField><Button size="sm" onClick={addScenario} disabled={!canAdd}>- {t("agentBuilder.scenarios.add")}+ {t("portal.agentBuilder.scenarios.add")}</Button></div></div>diff --git a/frontend/portal/src/components/agent-builder/ToolsPanel.stories.tsx b/frontend/editor/src/portal/components/agent-builder/ToolsPanel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/agent-builder/ToolsPanel.stories.tsxrename to frontend/editor/src/portal/components/agent-builder/ToolsPanel.stories.tsxdiff --git a/frontend/portal/src/components/agent-builder/ToolsPanel.tsx b/frontend/editor/src/portal/components/agent-builder/ToolsPanel.tsxsimilarity index 83%rename from frontend/portal/src/components/agent-builder/ToolsPanel.tsxrename to frontend/editor/src/portal/components/agent-builder/ToolsPanel.tsxindex 81e0f57af4..4dde8ff54d 100644--- a/frontend/portal/src/components/agent-builder/ToolsPanel.tsx+++ b/frontend/editor/src/portal/components/agent-builder/ToolsPanel.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Chip, ToggleSwitch } from "@shared/components";+import { Chip, ToggleSwitch } from "@app/ui";import { type Agent, type ToolMode, TOOL_CATALOGUE } from "@portal/api/agents";import "@portal/views/AgentBuilder.css";@@ -40,27 +40,27 @@ export function ToolsPanel({ agent, governanceUnlocked }: ToolsPanelProps) {checked={restricted}onChange={setRestricted}disabled={!governanceUnlocked}- label={t("agentBuilder.tools.restrictedAccess")}+ label={t("portal.agentBuilder.tools.restrictedAccess")}description={governanceUnlocked- ? t("agentBuilder.tools.restrictedDescription")- : t("agentBuilder.tools.governanceGate")+ ? t("portal.agentBuilder.tools.restrictedDescription")+ : t("portal.agentBuilder.tools.governanceGate")}/><Chip tone={restricted ? "amber" : "green"} size="sm">{restricted- ? t("agentBuilder.tools.restricted")- : t("agentBuilder.tools.broadAccess")}+ ? t("portal.agentBuilder.tools.restricted")+ : t("portal.agentBuilder.tools.broadAccess")}</Chip></div>{restricted && (<div className="portal-agents__detail-section"><span className="portal-agents__detail-heading">- {t("agentBuilder.tools.deniedTools")}+ {t("portal.agentBuilder.tools.deniedTools")}</span><p className="portal-agents__hint">- {t("agentBuilder.tools.deniedHint")}+ {t("portal.agentBuilder.tools.deniedHint")}</p><div className="portal-agents__chips">{TOOL_CATALOGUE.map((tool) => {diff --git a/frontend/portal/src/components/agent-builder/VersionsPanel.stories.tsx b/frontend/editor/src/portal/components/agent-builder/VersionsPanel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/agent-builder/VersionsPanel.stories.tsxrename to frontend/editor/src/portal/components/agent-builder/VersionsPanel.stories.tsxdiff --git a/frontend/portal/src/components/agent-builder/VersionsPanel.tsx b/frontend/editor/src/portal/components/agent-builder/VersionsPanel.tsxsimilarity index 91%rename from frontend/portal/src/components/agent-builder/VersionsPanel.tsxrename to frontend/editor/src/portal/components/agent-builder/VersionsPanel.tsxindex b05e2fa7fc..88edc7993c 100644--- a/frontend/portal/src/components/agent-builder/VersionsPanel.tsx+++ b/frontend/editor/src/portal/components/agent-builder/VersionsPanel.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Button, StatusBadge } from "@shared/components";+import { Button, StatusBadge } from "@app/ui";import { type Agent, AGENT_STATUS_TONE } from "@portal/api/agents";import "@portal/views/AgentBuilder.css";@@ -56,7 +56,7 @@ export function VersionsPanel({ agent, historyUnlocked }: VersionsPanelProps) {</StatusBadge>{isCurrent && (<StatusBadge tone="info" size="sm" showDot={false}>- {t("agentBuilder.versions.current")}+ {t("portal.agentBuilder.versions.current")}</StatusBadge>)}</div>@@ -72,7 +72,7 @@ export function VersionsPanel({ agent, historyUnlocked }: VersionsPanelProps) {variant="outline"onClick={() => publish(v.version)}>- {t("agentBuilder.versions.publish")}+ {t("portal.agentBuilder.versions.publish")}</Button>)}{v.status === "published" && !isCurrent && (@@ -81,7 +81,7 @@ export function VersionsPanel({ agent, historyUnlocked }: VersionsPanelProps) {variant="ghost"onClick={() => rollback(v.version)}>- {t("agentBuilder.versions.rollBack")}+ {t("portal.agentBuilder.versions.rollBack")}</Button>)}</div>@@ -92,7 +92,7 @@ export function VersionsPanel({ agent, historyUnlocked }: VersionsPanelProps) {{!historyUnlocked && publishedExists && (<p className="portal-agents__hint">- {t("agentBuilder.versions.historyGate")}+ {t("portal.agentBuilder.versions.historyGate")}</p>)}</div>diff --git a/frontend/portal/src/components/billing/EnterpriseUpsell.stories.tsx b/frontend/editor/src/portal/components/billing/EnterpriseUpsell.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/EnterpriseUpsell.stories.tsxrename to frontend/editor/src/portal/components/billing/EnterpriseUpsell.stories.tsxdiff --git a/frontend/portal/src/components/billing/EnterpriseUpsell.tsx b/frontend/editor/src/portal/components/billing/EnterpriseUpsell.tsxsimilarity index 74%rename from frontend/portal/src/components/billing/EnterpriseUpsell.tsxrename to frontend/editor/src/portal/components/billing/EnterpriseUpsell.tsxindex 9ad3cbeae7..b303c530ff 100644--- a/frontend/portal/src/components/billing/EnterpriseUpsell.tsx+++ b/frontend/editor/src/portal/components/billing/EnterpriseUpsell.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Button, Card } from "@shared/components";+import { Button, Card } from "@app/ui";interface Props {/** Render without the Card wrapper, to embed inside another card's column. */@@ -15,23 +15,29 @@ export function EnterpriseUpsell({ bare = false }: Props) {const body = (<><span className="portal-billing__eyebrow">- {t("billing.enterpriseUpsell.eyebrow", "Volume discount · 1M+ PDFs")}+ {t(+ "portal.billing.enterpriseUpsell.eyebrow",+ "Volume discount · 1M+ PDFs",+ )}</span><div className="portal-billing__enterprise-head"><div><h3 className="portal-billing__section-title">- {t("billing.enterpriseUpsell.title", "Stirling Enterprise")}+ {t("portal.billing.enterpriseUpsell.title", "Stirling Enterprise")}</h3><p className="portal-billing__section-sub">{t(- "billing.enterpriseUpsell.description",+ "portal.billing.enterpriseUpsell.description","Committed volume discounts, air-gapped deployment, custom MSA and security reviews, and 3rd-party distributor partnerships.",)}</p></div>{/* Destination wired when the enterprise/sales URL is confirmed. */}<Button variant="gradient" size="sm" disabled>- {t("billing.enterpriseUpsell.cta", "Build your Enterprise quote")}+ {t(+ "portal.billing.enterpriseUpsell.cta",+ "Build your Enterprise quote",+ )}</Button></div></>diff --git a/frontend/portal/src/components/billing/FreePdfEditorsCard.stories.tsx b/frontend/editor/src/portal/components/billing/FreePdfEditorsCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/FreePdfEditorsCard.stories.tsxrename to frontend/editor/src/portal/components/billing/FreePdfEditorsCard.stories.tsxdiff --git a/frontend/portal/src/components/billing/FreePdfEditorsCard.tsx b/frontend/editor/src/portal/components/billing/FreePdfEditorsCard.tsxsimilarity index 75%rename from frontend/portal/src/components/billing/FreePdfEditorsCard.tsxrename to frontend/editor/src/portal/components/billing/FreePdfEditorsCard.tsxindex 2744e26d08..77cbdbad5b 100644--- a/frontend/portal/src/components/billing/FreePdfEditorsCard.tsx+++ b/frontend/editor/src/portal/components/billing/FreePdfEditorsCard.tsx@@ -1,12 +1,6 @@import { useNavigate } from "react-router-dom";import { useTranslation } from "react-i18next";-import {- Button,- Card,- MetricCard,- MetricStrip,- StatusBadge,-} from "@shared/components";+import { Button, Card, MetricCard, MetricStrip, StatusBadge } from "@app/ui";import GroupsIcon from "@mui/icons-material/GroupsRounded";import PersonAddIcon from "@mui/icons-material/PersonAddAltRounded";@@ -36,14 +30,17 @@ export function FreePdfEditorsCard() {</span><div><h3 className="portal-billing__section-title">- {t("billing.freeEditors.title", "Free PDF Editors")}{" "}+ {t("portal.billing.freeEditors.title", "Free PDF Editors")}{" "}<StatusBadge tone="warning" size="sm" showDot={false}>- {t("billing.freeEditors.previewBadge", "Preview · sample data")}+ {t(+ "portal.billing.freeEditors.previewBadge",+ "Preview · sample data",+ )}</StatusBadge></h3><p className="portal-billing__section-sub">{t(- "billing.freeEditors.subtitle",+ "portal.billing.freeEditors.subtitle","Deploy anywhere, for your whole team.",)}</p>@@ -51,22 +48,25 @@ export function FreePdfEditorsCard() {</div><MetricStrip className="portal-billing__fleet-metrics"><MetricCard- label={t("billing.freeEditors.editorsDeployed", "Editors deployed")}+ label={t(+ "portal.billing.freeEditors.editorsDeployed",+ "Editors deployed",+ )}value={SAMPLE.editorsDeployed}/><MetricCardlabel={t(- "billing.freeEditors.activeThisMonth",+ "portal.billing.freeEditors.activeThisMonth","Active this month",)}value={SAMPLE.activeThisMonth}/><MetricCard- label={t("billing.freeEditors.pdfsEdited", "PDFs edited")}+ label={t("portal.billing.freeEditors.pdfsEdited", "PDFs edited")}value={SAMPLE.pdfsEdited}/><MetricCard- label={t("billing.freeEditors.cost", "Cost")}+ label={t("portal.billing.freeEditors.cost", "Cost")}value="$0"/></MetricStrip>@@ -77,7 +77,7 @@ export function FreePdfEditorsCard() {leadingIcon={<PersonAddIcon sx={{ fontSize: 16 }} />}onClick={() => navigate("/users?invite=1")}>- {t("billing.freeEditors.inviteTeammates", "Invite teammates")}+ {t("portal.billing.freeEditors.inviteTeammates", "Invite teammates")}</Button></div></Card>diff --git a/frontend/portal/src/components/billing/FreePlanView.stories.tsx b/frontend/editor/src/portal/components/billing/FreePlanView.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/FreePlanView.stories.tsxrename to frontend/editor/src/portal/components/billing/FreePlanView.stories.tsxdiff --git a/frontend/portal/src/components/billing/FreePlanView.tsx b/frontend/editor/src/portal/components/billing/FreePlanView.tsxsimilarity index 83%rename from frontend/portal/src/components/billing/FreePlanView.tsxrename to frontend/editor/src/portal/components/billing/FreePlanView.tsxindex 02a5352a43..0a1ae5216a 100644--- a/frontend/portal/src/components/billing/FreePlanView.tsx+++ b/frontend/editor/src/portal/components/billing/FreePlanView.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button, StatusBadge } from "@shared/components";+import { Banner, Button, StatusBadge } from "@app/ui";import type { Wallet } from "@portal/api/billing";import type { SaasCurrency } from "@portal/billing/stripe";import { WalletMeter } from "@portal/components/billing/WalletMeter";@@ -37,7 +37,7 @@ export function FreePlanView({ wallet, onSubscribed }: Props) {if (wallet.teamId == null) {setMissingTeam(t(- "billing.freePlan.noTeamResolved",+ "portal.billing.freePlan.noTeamResolved","No team is resolved on your wallet yet — refresh and try again.",),);@@ -53,7 +53,10 @@ export function FreePlanView({ wallet, onSubscribed }: Props) {onClick={openCheckout}disabled={wallet.teamId == null}>- {t("billing.freePlan.switchOnProcessor", "Switch on the Processor →")}+ {t(+ "portal.billing.freePlan.switchOnProcessor",+ "Switch on the Processor →",+ )}</Button>) : null;@@ -62,20 +65,20 @@ export function FreePlanView({ wallet, onSubscribed }: Props) {{/* Current plan */}<div className="portal-billing__current-plan"><span className="portal-billing__eyebrow">- {t("billing.freePlan.currentPlan", "Current plan")}+ {t("portal.billing.freePlan.currentPlan", "Current plan")}</span><div className="portal-billing__current-plan-row"><h2 className="portal-billing__current-plan-name">- {t("billing.freePlan.planName", "Editor")}+ {t("portal.billing.freePlan.planName", "Editor")}</h2><StatusBadge tone="success" size="sm" showDot={false}>- {t("billing.freePlan.freeForever", "Free forever")}+ {t("portal.billing.freePlan.freeForever", "Free forever")}</StatusBadge><StatusBadge tone="info" size="sm" showDot={false}>- {t("billing.freePlan.ssoIncluded", "SSO included")}+ {t("portal.billing.freePlan.ssoIncluded", "SSO included")}</StatusBadge><StatusBadge tone="purple" size="sm" showDot={false}>- {t("billing.freePlan.unlimitedUsers", "Unlimited users")}+ {t("portal.billing.freePlan.unlimitedUsers", "Unlimited users")}</StatusBadge></div></div>@@ -89,7 +92,7 @@ export function FreePlanView({ wallet, onSubscribed }: Props) {<Bannertone="warning"title={t(- "billing.freePlan.checkoutErrorTitle",+ "portal.billing.freePlan.checkoutErrorTitle","Couldn't start checkout",)}>@@ -99,7 +102,7 @@ export function FreePlanView({ wallet, onSubscribed }: Props) {{!isLeader && (<p className="portal-billing__plan-readonly">{t(- "billing.freePlan.ownerOnly",+ "portal.billing.freePlan.ownerOnly","Only the team owner can switch on the Processor plan.",)}</p>diff --git a/frontend/portal/src/components/billing/InvoicesList.tsx b/frontend/editor/src/portal/components/billing/InvoicesList.tsxsimilarity index 82%rename from frontend/portal/src/components/billing/InvoicesList.tsxrename to frontend/editor/src/portal/components/billing/InvoicesList.tsxindex 8b13670148..1a9f015f5e 100644--- a/frontend/portal/src/components/billing/InvoicesList.tsx+++ b/frontend/editor/src/portal/components/billing/InvoicesList.tsx@@ -8,8 +8,8 @@ import {StatusBadge,Table,type TableColumn,-} from "@shared/components";-import { formatMinor, formatPeriodDate } from "@shared/billing";+} from "@app/ui";+import { formatMinor, formatPeriodDate } from "@app/billing";import { fetchInvoices, type Invoice } from "@portal/api/billing";const DEFAULT_VISIBLE = 5;@@ -83,13 +83,16 @@ export function InvoicesList() {const columns: TableColumn<Invoice>[] = [{key: "date",- header: t("billing.invoices.columnDate", "Date"),+ header: t("portal.billing.invoices.columnDate", "Date"),render: (inv) =>inv.createdAt ? formatPeriodDate(inv.createdAt, { year: true }) : "—",},{key: "pdfs",- header: t("billing.invoices.columnPdfsProcessed", "PDFs processed"),+ header: t(+ "portal.billing.invoices.columnPdfsProcessed",+ "PDFs processed",+ ),align: "right",// Billed units on the invoice's metered line item; "—" when the// line-item table isn't synced into the Stripe mirror.@@ -98,7 +101,7 @@ export function InvoicesList() {},{key: "amount",- header: t("billing.invoices.columnAmount", "Amount"),+ header: t("portal.billing.invoices.columnAmount", "Amount"),align: "right",render: (inv) =>inv.totalMinor == null@@ -107,7 +110,7 @@ export function InvoicesList() {},{key: "status",- header: t("billing.invoices.columnStatus", "Status"),+ header: t("portal.billing.invoices.columnStatus", "Status"),render: (inv) => (<StatusBadge tone={statusTone(inv.status)} size="sm">{inv.status}@@ -116,11 +119,11 @@ export function InvoicesList() {},{key: "description",- header: t("billing.invoices.columnDescription", "Description"),+ header: t("portal.billing.invoices.columnDescription", "Description"),render: (inv) => (<span className="portal-billing__invoice-desc">{inv.description ??- t("billing.invoices.descriptionFallback", "Invoice")}+ t("portal.billing.invoices.descriptionFallback", "Invoice")}</span>),},@@ -137,14 +140,14 @@ export function InvoicesList() {target="_blank"rel="noopener noreferrer"aria-label={t(- "billing.invoices.viewAriaLabel",+ "portal.billing.invoices.viewAriaLabel","View invoice {{number}} in Stripe",{number: inv.number ?? inv.id,},)}>- {t("billing.invoices.viewLink", "View ↗")}+ {t("portal.billing.invoices.viewLink", "View ↗")}</a>)}{inv.invoicePdf && (@@ -154,14 +157,14 @@ export function InvoicesList() {target="_blank"rel="noopener noreferrer"aria-label={t(- "billing.invoices.downloadAriaLabel",+ "portal.billing.invoices.downloadAriaLabel","Download invoice {{number}} as PDF",{number: inv.number ?? inv.id,},)}>- {t("billing.invoices.pdfLink", "PDF ↓")}+ {t("portal.billing.invoices.pdfLink", "PDF ↓")}</a>)}</div>@@ -172,7 +175,7 @@ export function InvoicesList() {return (<Card padding="loose"><h3 className="portal-billing__section-title">- {t("billing.invoices.title", "Invoice history")}+ {t("portal.billing.invoices.title", "Invoice history")}</h3>{invoices === null && !error && (@@ -186,7 +189,7 @@ export function InvoicesList() {{error && (<p className="portal-billing__error" role="alert">{t(- "billing.invoices.loadError",+ "portal.billing.invoices.loadError","Couldn't load invoices: {{error}}",{ error },)}@@ -196,9 +199,9 @@ export function InvoicesList() {{invoices !== null && invoices.length === 0 && !error && (<EmptyStatesize="compact"- title={t("billing.invoices.emptyTitle", "No invoices yet")}+ title={t("portal.billing.invoices.emptyTitle", "No invoices yet")}description={t(- "billing.invoices.emptyDescription",+ "portal.billing.invoices.emptyDescription","Once your team subscribes and the first cycle closes, your invoices appear here.",)}/>@@ -221,24 +224,28 @@ export function InvoicesList() {>{showAll? t(- "billing.invoices.showFewer",+ "portal.billing.invoices.showFewer","Show fewer (top {{count}})",{ count: DEFAULT_VISIBLE },): atFetchLimit? t(- "billing.invoices.showMostRecent",+ "portal.billing.invoices.showMostRecent","Show {{count}} most recent",{ count: total },)- : t("billing.invoices.showAll", "Show all {{count}}", {- count: total,- })}+ : t(+ "portal.billing.invoices.showAll",+ "Show all {{count}}",+ {+ count: total,+ },+ )}</Button>{showAll && atFetchLimit && (<span className="portal-billing__invoice-note">{t(- "billing.invoices.fetchLimitNote",+ "portal.billing.invoices.fetchLimitNote","Showing your {{count}} most recent invoices. Older invoices are in the Stripe portal.",{ count: FETCH_LIMIT },)}diff --git a/frontend/portal/src/components/billing/LinkAccountPrompt.stories.tsx b/frontend/editor/src/portal/components/billing/LinkAccountPrompt.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/LinkAccountPrompt.stories.tsxrename to frontend/editor/src/portal/components/billing/LinkAccountPrompt.stories.tsxdiff --git a/frontend/portal/src/components/billing/LinkAccountPrompt.tsx b/frontend/editor/src/portal/components/billing/LinkAccountPrompt.tsxsimilarity index 76%rename from frontend/portal/src/components/billing/LinkAccountPrompt.tsxrename to frontend/editor/src/portal/components/billing/LinkAccountPrompt.tsxindex df7429784e..522fcc17c3 100644--- a/frontend/portal/src/components/billing/LinkAccountPrompt.tsx+++ b/frontend/editor/src/portal/components/billing/LinkAccountPrompt.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Button, Card, EmptyState } from "@shared/components";+import { Button, Card, EmptyState } from "@app/ui";import { useUI } from "@portal/contexts/UIContext";/**@@ -14,14 +14,17 @@ export function LinkAccountPrompt() {<Card padding="loose"><EmptyStatesize="default"- title={t("billing.linkPrompt.title", "Link your Stirling account")}+ title={t(+ "portal.billing.linkPrompt.title",+ "Link your Stirling account",+ )}description={t(- "billing.linkPrompt.description",+ "portal.billing.linkPrompt.description","Manual PDF editing — view, sign, merge, split, watermark, compress, convert, manual OCR — is always free, linked or not. Link to claim 500 free PDFs of metered processing (automation, AI, and the API); when you need more, turn on the Processor plan and only pay for what you use.",)}actions={<Button variant="gradient" onClick={() => openLinkModal()}>- {t("billing.linkPrompt.cta", "Link Stirling account")}+ {t("portal.billing.linkPrompt.cta", "Link Stirling account")}</Button>}/>diff --git a/frontend/portal/src/components/billing/PaymentMethodCard.stories.tsx b/frontend/editor/src/portal/components/billing/PaymentMethodCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/PaymentMethodCard.stories.tsxrename to frontend/editor/src/portal/components/billing/PaymentMethodCard.stories.tsxdiff --git a/frontend/portal/src/components/billing/PaymentMethodCard.tsx b/frontend/editor/src/portal/components/billing/PaymentMethodCard.tsxsimilarity index 79%rename from frontend/portal/src/components/billing/PaymentMethodCard.tsxrename to frontend/editor/src/portal/components/billing/PaymentMethodCard.tsxindex ee2a1a4f01..cd3b094a5e 100644--- a/frontend/portal/src/components/billing/PaymentMethodCard.tsx+++ b/frontend/editor/src/portal/components/billing/PaymentMethodCard.tsx@@ -1,6 +1,6 @@import { useEffect, useState } from "react";import { useTranslation } from "react-i18next";-import { Button, Card } from "@shared/components";+import { Button, Card } from "@app/ui";import { fetchPaymentMethod, type PaymentMethod } from "@portal/api/billing";interface Props {@@ -46,18 +46,18 @@ export function PaymentMethodCard({ onManage, managing }: Props) {<div className="portal-billing__subscription-head"><div><span className="portal-billing__eyebrow">- {t("billing.paymentMethod.eyebrow", "Payment method")}+ {t("portal.billing.paymentMethod.eyebrow", "Payment method")}</span>{hasCard ? (<><h3 className="portal-billing__section-title">{t(- "billing.paymentMethod.cardEnding",+ "portal.billing.paymentMethod.cardEnding","{{brand}} ending {{last4}}",{brand: titleCase(pm.brand ??- t("billing.paymentMethod.cardFallback", "Card"),+ t("portal.billing.paymentMethod.cardFallback", "Card"),),last4: pm.last4,},@@ -66,23 +66,29 @@ export function PaymentMethodCard({ onManage, managing }: Props) {<p className="portal-billing__section-sub">{pm.expMonth != null && pm.expYear != null? t(- "billing.paymentMethod.expiresBilledMonthly",+ "portal.billing.paymentMethod.expiresBilledMonthly","Expires {{expiry}} · billed monthly",{expiry: `${String(pm.expMonth).padStart(2, "0")}/${pm.expYear}`,},)- : t("billing.paymentMethod.billedMonthly", "Billed monthly")}+ : t(+ "portal.billing.paymentMethod.billedMonthly",+ "Billed monthly",+ )}</p></>) : (<><h3 className="portal-billing__section-title">- {t("billing.paymentMethod.managedTitle", "Managed in Stripe")}+ {t(+ "portal.billing.paymentMethod.managedTitle",+ "Managed in Stripe",+ )}</h3><p className="portal-billing__section-sub">{t(- "billing.paymentMethod.managedSub",+ "portal.billing.paymentMethod.managedSub","Your card and billing details are kept securely in Stripe's customer portal.",)}</p>@@ -95,7 +101,7 @@ export function PaymentMethodCard({ onManage, managing }: Props) {loading={managing}onClick={onManage}>- {t("billing.paymentMethod.update", "Update")}+ {t("portal.billing.paymentMethod.update", "Update")}</Button></div></Card>diff --git a/frontend/portal/src/components/billing/PdfsProcessedCard.stories.tsx b/frontend/editor/src/portal/components/billing/PdfsProcessedCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/PdfsProcessedCard.stories.tsxrename to frontend/editor/src/portal/components/billing/PdfsProcessedCard.stories.tsxdiff --git a/frontend/portal/src/components/billing/PdfsProcessedCard.tsx b/frontend/editor/src/portal/components/billing/PdfsProcessedCard.tsxsimilarity index 80%rename from frontend/portal/src/components/billing/PdfsProcessedCard.tsxrename to frontend/editor/src/portal/components/billing/PdfsProcessedCard.tsxindex ba5ac17ea9..aec101ea83 100644--- a/frontend/portal/src/components/billing/PdfsProcessedCard.tsx+++ b/frontend/editor/src/portal/components/billing/PdfsProcessedCard.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card } from "@shared/components";+import { Card } from "@app/ui";import type { Wallet, WalletCategoryBreakdown } from "@portal/api/billing";/**@@ -19,25 +19,25 @@ const SEGMENTS: ReadonlyArray<{}> = [{key: "api",- labelKey: "billing.pdfsProcessed.segmentApiLabel",+ labelKey: "portal.billing.pdfsProcessed.segmentApiLabel",labelDefault: "API",- descKey: "billing.pdfsProcessed.segmentApiDesc",+ descKey: "portal.billing.pdfsProcessed.segmentApiDesc",descDefault: "Direct API requests",cls: "blue",},{key: "ai",- labelKey: "billing.pdfsProcessed.segmentAgentsLabel",+ labelKey: "portal.billing.pdfsProcessed.segmentAgentsLabel",labelDefault: "Agents",- descKey: "billing.pdfsProcessed.segmentAgentsDesc",+ descKey: "portal.billing.pdfsProcessed.segmentAgentsDesc",descDefault: "AI agent actions",cls: "purple",},{key: "automation",- labelKey: "billing.pdfsProcessed.segmentAutomationLabel",+ labelKey: "portal.billing.pdfsProcessed.segmentAutomationLabel",labelDefault: "Automation",- descKey: "billing.pdfsProcessed.segmentAutomationDesc",+ descKey: "portal.billing.pdfsProcessed.segmentAutomationDesc",descDefault: "Automations & pipelines",cls: "teal",},@@ -51,14 +51,17 @@ export function PdfsProcessedCard({ wallet }: { wallet: Wallet }) {return (<Card padding="loose"><span className="portal-billing__eyebrow">- {t("billing.pdfsProcessed.eyebrow", "PDFs processed this period")}+ {t(+ "portal.billing.pdfsProcessed.eyebrow",+ "PDFs processed this period",+ )}</span><div className="portal-billing__bignum-row"><span className="portal-billing__bignum">{wallet.billableUsed.toLocaleString()}</span><span className="portal-billing__bignum-unit">- {t("billing.pdfsProcessed.unit", "metered PDFs")}+ {t("portal.billing.pdfsProcessed.unit", "metered PDFs")}</span></div>@@ -68,7 +71,7 @@ export function PdfsProcessedCard({ wallet }: { wallet: Wallet }) {className="portal-billing__segbar"role="img"aria-label={t(- "billing.pdfsProcessed.segbarAriaLabel",+ "portal.billing.pdfsProcessed.segbarAriaLabel","Metered PDFs split by category",)}>@@ -94,7 +97,7 @@ export function PdfsProcessedCard({ wallet }: { wallet: Wallet }) {</span><span className="portal-billing__seglegend-val">{t(- "billing.pdfsProcessed.legendValue",+ "portal.billing.pdfsProcessed.legendValue","{{formatted}} PDFs",{count: b[s.key],@@ -112,7 +115,7 @@ export function PdfsProcessedCard({ wallet }: { wallet: Wallet }) {) : (<p className="portal-billing__section-sub">{t(- "billing.pdfsProcessed.emptyPeriod",+ "portal.billing.pdfsProcessed.emptyPeriod","No metered processing yet this period.",)}</p>diff --git a/frontend/portal/src/components/billing/SpendLimitCard.stories.tsx b/frontend/editor/src/portal/components/billing/SpendLimitCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/SpendLimitCard.stories.tsxrename to frontend/editor/src/portal/components/billing/SpendLimitCard.stories.tsxdiff --git a/frontend/portal/src/components/billing/SpendLimitCard.tsx b/frontend/editor/src/portal/components/billing/SpendLimitCard.tsxsimilarity index 84%rename from frontend/portal/src/components/billing/SpendLimitCard.tsxrename to frontend/editor/src/portal/components/billing/SpendLimitCard.tsxindex 2593810017..d117f3d9bc 100644--- a/frontend/portal/src/components/billing/SpendLimitCard.tsx+++ b/frontend/editor/src/portal/components/billing/SpendLimitCard.tsx@@ -1,6 +1,6 @@import { useEffect, useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button, Card } from "@shared/components";+import { Banner, Button, Card } from "@app/ui";import {currencySymbol,docCapForMoney,@@ -9,7 +9,7 @@ import {MeterBar,meterState,SpendCapControl as SharedSpendCapControl,-} from "@shared/billing";+} from "@app/billing";import type { Wallet } from "@portal/api/billing";import { updateCap } from "@portal/api/billing";@@ -127,10 +127,10 @@ export function SpendLimitCard({return (<Card padding="loose"><span className="portal-billing__eyebrow">- {t("billing.spendLimit.eyebrow", "Spend limit")}+ {t("portal.billing.spendLimit.eyebrow", "Spend limit")}</span><h3 className="portal-billing__section-title">- {t("billing.spendLimit.editTitle", "Set your monthly ceiling")}+ {t("portal.billing.spendLimit.editTitle", "Set your monthly ceiling")}</h3><SharedSpendCapControl@@ -139,7 +139,7 @@ export function SpendLimitCard({pricePerDocMinor={wallet.pricePerDocMinor}currency={wallet.currency}note={t(- "billing.spendLimit.capControlNote",+ "portal.billing.spendLimit.capControlNote","Changes apply immediately — raise or lower the ceiling any time.",)}/>@@ -151,7 +151,7 @@ export function SpendLimitCard({onClick={() => setDraftCap(proj.suggestedMajor)}>{t(- "billing.spendLimit.useSuggested",+ "portal.billing.spendLimit.useSuggested","Use suggested · {{amount}} / month",{amount: formatMoneyMajor(proj.suggestedMajor, wallet.currency),@@ -162,10 +162,10 @@ export function SpendLimitCard({<div className="portal-billing__guardrail"><strong>- {t("billing.spendLimit.guardrailLabel", "Your guardrail:")}+ {t("portal.billing.spendLimit.guardrailLabel", "Your guardrail:")}</strong>{" "}{t(- "billing.spendLimit.guardrailBody",+ "portal.billing.spendLimit.guardrailBody","a hard ceiling — you're never billed past it. At the cap, metered processing pauses (unlimited PDF editing keeps working) until you raise it or the cycle resets. Nothing is lost.",)}</div>@@ -173,7 +173,10 @@ export function SpendLimitCard({{error && (<Bannertone="danger"- title={t("billing.spendLimit.saveError", "Couldn't save limit")}+ title={t(+ "portal.billing.spendLimit.saveError",+ "Couldn't save limit",+ )}>{error}</Banner>@@ -185,10 +188,10 @@ export function SpendLimitCard({size="sm"onClick={() => onAdjustingChange(false)}>- {t("billing.spendLimit.cancel", "Cancel")}+ {t("portal.billing.spendLimit.cancel", "Cancel")}</Button><Button variant="gradient" size="sm" loading={saving} onClick={save}>- {t("billing.spendLimit.save", "Save limit")}+ {t("portal.billing.spendLimit.save", "Save limit")}</Button></div></Card>@@ -209,11 +212,11 @@ export function SpendLimitCard({<div className="portal-billing__subscription-head"><div><span className="portal-billing__eyebrow">- {t("billing.spendLimit.eyebrow", "Spend limit")}+ {t("portal.billing.spendLimit.eyebrow", "Spend limit")}</span><p className="portal-billing__section-sub">{t(- "billing.spendLimit.displaySub",+ "portal.billing.spendLimit.displaySub","You're only billed for what you process automatically — never past the ceiling.",)}</p>@@ -224,7 +227,7 @@ export function SpendLimitCard({size="sm"onClick={() => onAdjustingChange(true)}>- {t("billing.spendLimit.adjustLimit", "Adjust limit")}+ {t("portal.billing.spendLimit.adjustLimit", "Adjust limit")}</Button>)}</div>@@ -240,18 +243,18 @@ export function SpendLimitCard({capActive? docEstimate != null? t(- "billing.spendLimit.capSuffixWithDocs",+ "portal.billing.spendLimit.capSuffixWithDocs","/ month · ≈ {{documents}} documents",{documents: docEstimate.toLocaleString(),},)- : t("billing.spendLimit.capSuffix", "/ month")- : t("billing.spendLimit.noCap", "no cap")+ : t("portal.billing.spendLimit.capSuffix", "/ month")+ : t("portal.billing.spendLimit.noCap", "no cap")}statusLabel={capActive- ? t("billing.spendLimit.pctUsed", "{{pct}}% used", {+ ? t("portal.billing.spendLimit.pctUsed", "{{pct}}% used", {pct: Math.round(pct),}): null@@ -262,7 +265,7 @@ export function SpendLimitCard({<><span>{t(- "billing.spendLimit.usedThisMonth",+ "portal.billing.spendLimit.usedThisMonth","{{amount}} used this month",{amount: spentLabel,@@ -270,15 +273,19 @@ export function SpendLimitCard({)}</span><span>- {t("billing.spendLimit.remaining", "{{amount}} remaining", {- amount: formatMinor(remainingMinor, wallet.currency),- })}+ {t(+ "portal.billing.spendLimit.remaining",+ "{{amount}} remaining",+ {+ amount: formatMinor(remainingMinor, wallet.currency),+ },+ )}</span></>) : (<span>{t(- "billing.spendLimit.thisPeriodUncapped",+ "portal.billing.spendLimit.thisPeriodUncapped","{{amount}} this period · uncapped",{amount: spentLabel,@@ -293,10 +300,13 @@ export function SpendLimitCard({{proj && (<p className="portal-billing__projection"><strong>- {t("billing.spendLimit.projection.label", "Projected to exceed.")}+ {t(+ "portal.billing.spendLimit.projection.label",+ "Projected to exceed.",+ )}</strong>{" "}{t(- "billing.spendLimit.projection.body",+ "portal.billing.spendLimit.projection.body","At {{rate}}/day you reach the cap in ~{{count}} days (~{{monthEnd}} month-end). Suggested limit ~{{suggested}}.",{count: proj.daysToCap,diff --git a/frontend/portal/src/components/billing/SpendThisMonthCard.stories.tsx b/frontend/editor/src/portal/components/billing/SpendThisMonthCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/SpendThisMonthCard.stories.tsxrename to frontend/editor/src/portal/components/billing/SpendThisMonthCard.stories.tsxdiff --git a/frontend/portal/src/components/billing/SpendThisMonthCard.tsx b/frontend/editor/src/portal/components/billing/SpendThisMonthCard.tsxsimilarity index 86%rename from frontend/portal/src/components/billing/SpendThisMonthCard.tsxrename to frontend/editor/src/portal/components/billing/SpendThisMonthCard.tsxindex 2a8baf2986..d4a969ae0c 100644--- a/frontend/portal/src/components/billing/SpendThisMonthCard.tsx+++ b/frontend/editor/src/portal/components/billing/SpendThisMonthCard.tsx@@ -1,6 +1,6 @@import { useTranslation } from "react-i18next";-import { Card } from "@shared/components";-import { formatMinor } from "@shared/billing";+import { Card } from "@app/ui";+import { formatMinor } from "@app/billing";import type { Wallet } from "@portal/api/billing";import { EnterpriseUpsell } from "@portal/components/billing/EnterpriseUpsell";@@ -19,7 +19,7 @@ export function SpendThisMonthCard({ wallet }: { wallet: Wallet }) {return (<Card padding="loose" className="portal-billing__spend-this-month"><span className="portal-billing__eyebrow">- {t("billing.spendThisMonth.eyebrow", "Spend this month")}+ {t("portal.billing.spendThisMonth.eyebrow", "Spend this month")}</span><div className="portal-billing__bignum-row"><span className="portal-billing__bignum">@@ -29,7 +29,7 @@ export function SpendThisMonthCard({ wallet }: { wallet: Wallet }) {<p className="portal-billing__section-sub">{rateLabel? t(- "billing.spendThisMonth.processedWithRate",+ "portal.billing.spendThisMonth.processedWithRate","{{formattedCount}} PDFs processed, at {{rate}} each.",{count: wallet.billableUsed,@@ -38,7 +38,7 @@ export function SpendThisMonthCard({ wallet }: { wallet: Wallet }) {},): t(- "billing.spendThisMonth.processed",+ "portal.billing.spendThisMonth.processed","{{formattedCount}} PDFs processed.",{count: wallet.billableUsed,diff --git a/frontend/portal/src/components/billing/StripeCheckoutModal.tsx b/frontend/editor/src/portal/components/billing/StripeCheckoutModal.tsxsimilarity index 89%rename from frontend/portal/src/components/billing/StripeCheckoutModal.tsxrename to frontend/editor/src/portal/components/billing/StripeCheckoutModal.tsxindex 24d5cbb251..313694baa9 100644--- a/frontend/portal/src/components/billing/StripeCheckoutModal.tsx+++ b/frontend/editor/src/portal/components/billing/StripeCheckoutModal.tsx@@ -1,6 +1,6 @@import { useEffect, useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Modal, Skeleton } from "@shared/components";+import { Banner, Modal, Skeleton } from "@app/ui";import {EmbeddedCheckout,EmbeddedCheckoutProvider,@@ -91,7 +91,7 @@ export function StripeCheckoutModal({if (!session.clientSecret) {setError(t(- "billing.checkout.noClientSecret",+ "portal.billing.checkout.noClientSecret","Edge function returned no client_secret.",),);@@ -120,9 +120,9 @@ export function StripeCheckoutModal({open={open}onClose={onClose}width="lg"- title={t("billing.checkout.title", "Turn on the Processor plan")}+ title={t("portal.billing.checkout.title", "Turn on the Processor plan")}subtitle={t(- "billing.checkout.subtitle",+ "portal.billing.checkout.subtitle","Add a card to keep going past your free Editor-plan grant. Stripe handles the rest.",)}>@@ -130,14 +130,14 @@ export function StripeCheckoutModal({<Bannertone="neutral"title={t(- "billing.checkout.notConfigured.title",+ "portal.billing.checkout.notConfigured.title","Stripe not configured",)}>- {t("billing.checkout.notConfigured.bodyBefore", "Set")}{" "}+ {t("portal.billing.checkout.notConfigured.bodyBefore", "Set")}{" "}<code>VITE_STRIPE_PUBLISHABLE_KEY</code>{" "}{t(- "billing.checkout.notConfigured.bodyAfter",+ "portal.billing.checkout.notConfigured.bodyAfter","in the portal env to enable in-app checkout.",)}</Banner>@@ -145,7 +145,10 @@ export function StripeCheckoutModal({{publishableKey && error && (<Bannertone="danger"- title={t("billing.checkout.error.title", "Couldn't start checkout")}+ title={t(+ "portal.billing.checkout.error.title",+ "Couldn't start checkout",+ )}>{error}</Banner>diff --git a/frontend/portal/src/components/billing/SubscribedPlanView.stories.tsx b/frontend/editor/src/portal/components/billing/SubscribedPlanView.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/SubscribedPlanView.stories.tsxrename to frontend/editor/src/portal/components/billing/SubscribedPlanView.stories.tsxdiff --git a/frontend/portal/src/components/billing/SubscribedPlanView.tsx b/frontend/editor/src/portal/components/billing/SubscribedPlanView.tsxsimilarity index 87%rename from frontend/portal/src/components/billing/SubscribedPlanView.tsxrename to frontend/editor/src/portal/components/billing/SubscribedPlanView.tsxindex 6ccdbe7e8d..37bf35a54a 100644--- a/frontend/portal/src/components/billing/SubscribedPlanView.tsx+++ b/frontend/editor/src/portal/components/billing/SubscribedPlanView.tsx@@ -1,7 +1,7 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button } from "@shared/components";-import { meterState } from "@shared/billing";+import { Banner, Button } from "@app/ui";+import { meterState } from "@app/billing";import type { Wallet } from "@portal/api/billing";import { useStripePortal } from "@portal/hooks/useStripePortal";import { FreePdfEditorsCard } from "@portal/components/billing/FreePdfEditorsCard";@@ -57,11 +57,11 @@ export function SubscribedPlanView({ wallet, onWalletChange }: Props) {title={state === "DEGRADED"? t(- "billing.subscribedPlan.capWarn.reachedTitle",+ "portal.billing.subscribedPlan.capWarn.reachedTitle","Monthly spend limit reached",): t(- "billing.subscribedPlan.capWarn.approachingTitle",+ "portal.billing.subscribedPlan.capWarn.approachingTitle","You're at {{pct}}% of your monthly spend limit",{pct: Math.round(pct),@@ -71,18 +71,21 @@ export function SubscribedPlanView({ wallet, onWalletChange }: Props) {action={isLeader ? (<Button size="sm" onClick={raiseLimit}>- {t("billing.subscribedPlan.capWarn.raiseLimit", "Raise limit")}+ {t(+ "portal.billing.subscribedPlan.capWarn.raiseLimit",+ "Raise limit",+ )}</Button>) : undefined}>{state === "DEGRADED"? t(- "billing.subscribedPlan.capWarn.reachedBody",+ "portal.billing.subscribedPlan.capWarn.reachedBody","Metered processing is paused until you raise the limit or the cycle resets. Unlimited PDF editing keeps working.",): t(- "billing.subscribedPlan.capWarn.approachingBody",+ "portal.billing.subscribedPlan.capWarn.approachingBody","Raise it now so automated processing never pauses.",)}</Banner>@@ -110,7 +113,7 @@ export function SubscribedPlanView({ wallet, onWalletChange }: Props) {<Bannertone="danger"title={t(- "billing.subscribedPlan.portalError.title",+ "portal.billing.subscribedPlan.portalError.title","Couldn't open Stripe portal",)}>diff --git a/frontend/portal/src/components/billing/WalletMeter.stories.tsx b/frontend/editor/src/portal/components/billing/WalletMeter.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/billing/WalletMeter.stories.tsxrename to frontend/editor/src/portal/components/billing/WalletMeter.stories.tsxdiff --git a/frontend/portal/src/components/billing/WalletMeter.tsx b/frontend/editor/src/portal/components/billing/WalletMeter.tsxsimilarity index 78%rename from frontend/portal/src/components/billing/WalletMeter.tsxrename to frontend/editor/src/portal/components/billing/WalletMeter.tsxindex c8a2ed81de..1cb7f5794f 100644--- a/frontend/portal/src/components/billing/WalletMeter.tsx+++ b/frontend/editor/src/portal/components/billing/WalletMeter.tsx@@ -1,7 +1,7 @@import type { ReactNode } from "react";import { useTranslation } from "react-i18next";-import { Card } from "@shared/components";-import { formatMinor, MeterBar, meterState } from "@shared/billing";+import { Card } from "@app/ui";+import { formatMinor, MeterBar, meterState } from "@app/billing";import type { Wallet } from "@portal/api/billing";interface Props {@@ -27,7 +27,7 @@ export function WalletMeter({ wallet, action }: Props) {const title =rate != null? t(- "billing.walletMeter.titleWithRate",+ "portal.billing.walletMeter.titleWithRate","Process {{allowance}} PDFs free, then {{rate}}/PDF",{count: wallet.freeAllowance,@@ -35,22 +35,26 @@ export function WalletMeter({ wallet, action }: Props) {rate: formatMinor(rate, wallet.currency),},)- : t("billing.walletMeter.title", "Process {{allowance}} PDFs free", {- count: wallet.freeAllowance,- allowance: wallet.freeAllowance.toLocaleString(),- });+ : t(+ "portal.billing.walletMeter.title",+ "Process {{allowance}} PDFs free",+ {+ count: wallet.freeAllowance,+ allowance: wallet.freeAllowance.toLocaleString(),+ },+ );return (<Card padding="loose"><div className="portal-billing__subscription-head"><div><span className="portal-billing__eyebrow">- {t("billing.walletMeter.eyebrow", "Processor trial")}+ {t("portal.billing.walletMeter.eyebrow", "Processor trial")}</span><h2 className="portal-billing__meter-title">{title}</h2><p className="portal-billing__section-sub">{t(- "billing.walletMeter.sub",+ "portal.billing.walletMeter.sub","Use the PDF Editor for free. Pay to process PDFs automatically.",)}</p>@@ -63,7 +67,7 @@ export function WalletMeter({ wallet, action }: Props) {pct={pct}figure={wallet.billableUsed.toLocaleString()}capSuffix={t(- "billing.walletMeter.capSuffix",+ "portal.billing.walletMeter.capSuffix","of {{allowance}} free PDFs used",{count: wallet.freeAllowance,@@ -71,7 +75,7 @@ export function WalletMeter({ wallet, action }: Props) {},)}statusLabel={t(- "billing.walletMeter.statusLabel",+ "portal.billing.walletMeter.statusLabel","{{remaining}} left",{count: wallet.freeRemaining,diff --git a/frontend/portal/src/components/billing/billing.css b/frontend/editor/src/portal/components/billing/billing.csssimilarity index 100%rename from frontend/portal/src/components/billing/billing.cssrename to frontend/editor/src/portal/components/billing/billing.cssdiff --git a/frontend/portal/src/components/billing/walletFixtures.ts b/frontend/editor/src/portal/components/billing/walletFixtures.tssimilarity index 100%rename from frontend/portal/src/components/billing/walletFixtures.tsrename to frontend/editor/src/portal/components/billing/walletFixtures.tsdiff --git a/frontend/portal/src/components/catalogue/ComponentCard.stories.tsx b/frontend/editor/src/portal/components/catalogue/ComponentCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/catalogue/ComponentCard.stories.tsxrename to frontend/editor/src/portal/components/catalogue/ComponentCard.stories.tsxdiff --git a/frontend/portal/src/components/catalogue/ComponentCard.tsx b/frontend/editor/src/portal/components/catalogue/ComponentCard.tsxsimilarity index 90%rename from frontend/portal/src/components/catalogue/ComponentCard.tsxrename to frontend/editor/src/portal/components/catalogue/ComponentCard.tsxindex 9c662d5b9b..07d3af75c1 100644--- a/frontend/portal/src/components/catalogue/ComponentCard.tsx+++ b/frontend/editor/src/portal/components/catalogue/ComponentCard.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, Chip, StatusBadge } from "@shared/components";+import { Card, Chip, StatusBadge } from "@app/ui";import {type SdkComponent,MATURITY_META,@@ -30,7 +30,9 @@ export function ComponentCard({className={"portal-components__card" + (unlocked ? "" : " is-locked")}role="button"tabIndex={0}- aria-label={t("catalogue.card.openAriaLabel", { name: component.name })}+ aria-label={t("portal.catalogue.card.openAriaLabel", {+ name: component.name,+ })}onClick={() => onOpen(component)}onKeyDown={(e) => {if (e.key === "Enter" || e.key === " ") {@@ -47,7 +49,7 @@ export function ComponentCard({{!unlocked && (<spanclassName="portal-components__lock"- aria-label={t("catalogue.card.lockedAriaLabel")}+ aria-label={t("portal.catalogue.card.lockedAriaLabel")}>🔒</span>diff --git a/frontend/portal/src/components/catalogue/ComponentDetailModal.stories.tsx b/frontend/editor/src/portal/components/catalogue/ComponentDetailModal.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/catalogue/ComponentDetailModal.stories.tsxrename to frontend/editor/src/portal/components/catalogue/ComponentDetailModal.stories.tsxdiff --git a/frontend/portal/src/components/catalogue/ComponentDetailModal.tsx b/frontend/editor/src/portal/components/catalogue/ComponentDetailModal.tsxsimilarity index 79%rename from frontend/portal/src/components/catalogue/ComponentDetailModal.tsxrename to frontend/editor/src/portal/components/catalogue/ComponentDetailModal.tsxindex 970d2fe392..1959e10b1d 100644--- a/frontend/portal/src/components/catalogue/ComponentDetailModal.tsx+++ b/frontend/editor/src/portal/components/catalogue/ComponentDetailModal.tsx@@ -9,7 +9,7 @@ import {StatTile,StatusBadge,Tabs,-} from "@shared/components";+} from "@app/ui";import {type SdkComponent,MATURITY_META,@@ -49,14 +49,14 @@ export function ComponentDetailModal({<Modalopen={false}onClose={onClose}- ariaLabel={t("catalogue.detail.ariaLabel")}+ ariaLabel={t("portal.catalogue.detail.ariaLabel")}/>);}const tabs = TAB_KEYS.map((key) => ({key,- label: t(`catalogue.detail.tabs.${key}`),+ label: t(`portal.catalogue.detail.tabs.${key}`),}));const maturity = MATURITY_META[component.maturity];@@ -92,7 +92,7 @@ export function ComponentDetailModal({// publishable key scoped to this component.onClick={() => onClose()}>- {t("catalogue.detail.addToProject")}+ {t("portal.catalogue.detail.addToProject")}</Button></div>) : (@@ -102,7 +102,7 @@ export function ComponentDetailModal({// TODO(backend): route to the upgrade / contact-sales flow.onClick={() => onClose()}>- {t("catalogue.detail.upgradeToUnlock")}+ {t("portal.catalogue.detail.upgradeToUnlock")}</Button>)}@@ -110,8 +110,8 @@ export function ComponentDetailModal({{!unlocked && (<Bannertone="warning"- title={t("catalogue.detail.locked.title")}- description={t("catalogue.detail.locked.description", {+ title={t("portal.catalogue.detail.locked.title")}+ description={t("portal.catalogue.detail.locked.description", {name: component.name,tier: component.minTier,})}@@ -123,10 +123,10 @@ export function ComponentDetailModal({{/* TODO(backend)/host: mount the live <Sandbox> here, booting thecomponent against a demo document and the dev's publishable key. */}<span className="portal-components__preview-badge">- {t("catalogue.detail.preview.badge")}+ {t("portal.catalogue.detail.preview.badge")}</span><span className="portal-components__preview-note">- {t("catalogue.detail.preview.note")}+ {t("portal.catalogue.detail.preview.note")}</span></div>@@ -136,7 +136,7 @@ export function ComponentDetailModal({activeKey={tab}onChange={setTab}variant="underline"- ariaLabel={t("catalogue.detail.tabsAriaLabel")}+ ariaLabel={t("portal.catalogue.detail.tabsAriaLabel")}/><div className="portal-components__tab-body">@@ -154,25 +154,25 @@ export function ComponentDetailModal({</div><div className="portal-components__stat-grid"><StatTile- label={t("catalogue.detail.stats.maturity")}+ label={t("portal.catalogue.detail.stats.maturity")}value={maturity.label}/><StatTile- label={t("catalogue.detail.stats.price")}+ label={t("portal.catalogue.detail.stats.price")}value={formatPrice(component.pricing)}/><StatTile- label={t("catalogue.detail.stats.freeQuota")}+ label={t("portal.catalogue.detail.stats.freeQuota")}value={component.pricing.freeQuota > 0- ? t("catalogue.detail.stats.freeQuotaValue", {+ ? t("portal.catalogue.detail.stats.freeQuotaValue", {amount: component.pricing.freeQuota.toLocaleString(),})- : t("catalogue.detail.stats.none")+ : t("portal.catalogue.detail.stats.none")}/><StatTile- label={t("catalogue.detail.stats.embeds30d")}+ label={t("portal.catalogue.detail.stats.embeds30d")}value={component.embeds30d.toLocaleString()}/></div>@@ -184,12 +184,12 @@ export function ComponentDetailModal({<CodeBlockcode={component.install}lang="bash"- caption={t("catalogue.detail.code.install")}+ caption={t("portal.catalogue.detail.code.install")}/><CodeBlockcode={component.usage}lang="typescript"- caption={t("catalogue.detail.code.usage")}+ caption={t("portal.catalogue.detail.code.usage")}/></div>)}@@ -200,26 +200,26 @@ export function ComponentDetailModal({<div className="portal-components__pricing"><div className="portal-components__stat-grid"><StatTile- label={t("catalogue.detail.stats.perAction")}+ label={t("portal.catalogue.detail.stats.perAction")}value={formatPrice(component.pricing)}/><StatTile- label={t("catalogue.detail.stats.billedOn")}+ label={t("portal.catalogue.detail.stats.billedOn")}value={component.pricing.unit}/><StatTile- label={t("catalogue.detail.stats.freeQuota")}+ label={t("portal.catalogue.detail.stats.freeQuota")}value={component.pricing.freeQuota > 0- ? t("catalogue.detail.stats.freeQuotaValue", {+ ? t("portal.catalogue.detail.stats.freeQuotaValue", {amount: component.pricing.freeQuota.toLocaleString(),})- : t("catalogue.detail.stats.none")+ : t("portal.catalogue.detail.stats.none")}/></div><p className="portal-components__pricing-note">- {t("catalogue.detail.pricing.note", {+ {t("portal.catalogue.detail.pricing.note", {unit: component.pricing.unit,})}</p>diff --git a/frontend/portal/src/components/catalogue/ComponentGrid.stories.tsx b/frontend/editor/src/portal/components/catalogue/ComponentGrid.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/catalogue/ComponentGrid.stories.tsxrename to frontend/editor/src/portal/components/catalogue/ComponentGrid.stories.tsxdiff --git a/frontend/portal/src/components/catalogue/ComponentGrid.tsx b/frontend/editor/src/portal/components/catalogue/ComponentGrid.tsxsimilarity index 100%rename from frontend/portal/src/components/catalogue/ComponentGrid.tsxrename to frontend/editor/src/portal/components/catalogue/ComponentGrid.tsxdiff --git a/frontend/portal/src/components/catalogue/ComponentPropsTable.stories.tsx b/frontend/editor/src/portal/components/catalogue/ComponentPropsTable.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/catalogue/ComponentPropsTable.stories.tsxrename to frontend/editor/src/portal/components/catalogue/ComponentPropsTable.stories.tsxdiff --git a/frontend/portal/src/components/catalogue/ComponentPropsTable.tsx b/frontend/editor/src/portal/components/catalogue/ComponentPropsTable.tsxsimilarity index 77%rename from frontend/portal/src/components/catalogue/ComponentPropsTable.tsxrename to frontend/editor/src/portal/components/catalogue/ComponentPropsTable.tsxindex 0bb77cb47a..8ff5155b63 100644--- a/frontend/portal/src/components/catalogue/ComponentPropsTable.tsx+++ b/frontend/editor/src/portal/components/catalogue/ComponentPropsTable.tsx@@ -1,6 +1,6 @@import { useMemo } from "react";import { useTranslation } from "react-i18next";-import { Chip, Table, type TableColumn } from "@shared/components";+import { Chip, Table, type TableColumn } from "@app/ui";import type { ComponentProp } from "@portal/api/sdkComponents";import "@portal/views/Components.css";@@ -15,35 +15,35 @@ export function ComponentPropsTable({ props: rows }: ComponentPropsTableProps) {() => [{key: "name",- header: t("catalogue.props.columns.name"),+ header: t("portal.catalogue.props.columns.name"),render: (p) => (<span className="portal-components__prop-name">{p.name}</span>),},{key: "type",- header: t("catalogue.props.columns.type"),+ header: t("portal.catalogue.props.columns.type"),render: (p) => (<code className="portal-components__prop-type">{p.type}</code>),},{key: "required",- header: t("catalogue.props.columns.required"),+ header: t("portal.catalogue.props.columns.required"),render: (p) =>p.required ? (<Chip size="sm" tone="amber">- {t("catalogue.props.required")}+ {t("portal.catalogue.props.required")}</Chip>) : (<span className="portal-components__muted">- {t("catalogue.props.optional")}+ {t("portal.catalogue.props.optional")}</span>),},{key: "description",- header: t("catalogue.props.columns.description"),+ header: t("portal.catalogue.props.columns.description"),render: (p) => (<span className="portal-components__prop-desc">{p.description}</span>),diff --git a/frontend/portal/src/components/catalogue/ComponentsSummaryStrip.tsx b/frontend/editor/src/portal/components/catalogue/ComponentsSummaryStrip.tsxsimilarity index 82%rename from frontend/portal/src/components/catalogue/ComponentsSummaryStrip.tsxrename to frontend/editor/src/portal/components/catalogue/ComponentsSummaryStrip.tsxindex ec46ad855f..ccb3965a5c 100644--- a/frontend/portal/src/components/catalogue/ComponentsSummaryStrip.tsx+++ b/frontend/editor/src/portal/components/catalogue/ComponentsSummaryStrip.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { MetricCard, MetricStrip } from "@shared/components";+import { MetricCard, MetricStrip } from "@app/ui";import type { ComponentsResponse } from "@portal/api/sdkComponents";/**@@ -8,10 +8,10 @@ import type { ComponentsResponse } from "@portal/api/sdkComponents";* Only values flow from the API.*/const KPI_LABEL_KEYS = [- "catalogue.summary.componentsGa",- "catalogue.summary.inBeta",- "catalogue.summary.embedsThisMonth",- "catalogue.summary.componentSpendMtd",+ "portal.catalogue.summary.componentsGa",+ "portal.catalogue.summary.inBeta",+ "portal.catalogue.summary.embedsThisMonth",+ "portal.catalogue.summary.componentSpendMtd",] as const;interface ComponentsSummaryStripProps {diff --git a/frontend/portal/src/components/docs/AuthenticationSection.stories.tsx b/frontend/editor/src/portal/components/docs/AuthenticationSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/AuthenticationSection.stories.tsxrename to frontend/editor/src/portal/components/docs/AuthenticationSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/AuthenticationSection.tsx b/frontend/editor/src/portal/components/docs/AuthenticationSection.tsxsimilarity index 65%rename from frontend/portal/src/components/docs/AuthenticationSection.tsxrename to frontend/editor/src/portal/components/docs/AuthenticationSection.tsxindex 65b1d89599..e15e04592c 100644--- a/frontend/portal/src/components/docs/AuthenticationSection.tsx+++ b/frontend/editor/src/portal/components/docs/AuthenticationSection.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Chip, CodeBlock } from "@shared/components";+import { Chip, CodeBlock } from "@app/ui";import { DocsSection } from "@portal/components/docs/DocsSection";export function AuthenticationSection() {@@ -7,13 +7,13 @@ export function AuthenticationSection() {return (<DocsSectionid="authentication"- eyebrow={t("docs.authentication.eyebrow")}- title={t("docs.authentication.title")}- lead={t("docs.authentication.lead")}+ eyebrow={t("portal.docs.authentication.eyebrow")}+ title={t("portal.docs.authentication.title")}+ lead={t("portal.docs.authentication.lead")}><CodeBlocklang="http"- caption={t("docs.authentication.codeCaption")}+ caption={t("portal.docs.authentication.codeCaption")}code={`Authorization: Bearer sk_live_8f2c...e10`}/><div className="portal-docs__keytable">@@ -21,13 +21,13 @@ export function AuthenticationSection() {<Chip tone="green" size="sm" showDot>sk_live_</Chip>- <span>{t("docs.authentication.liveKey")}</span>+ <span>{t("portal.docs.authentication.liveKey")}</span></div><div className="portal-docs__keyrow"><Chip tone="amber" size="sm" showDot>sk_test_</Chip>- <span>{t("docs.authentication.testKey")}</span>+ <span>{t("portal.docs.authentication.testKey")}</span></div></div></DocsSection>diff --git a/frontend/portal/src/components/docs/ComponentsSection.stories.tsx b/frontend/editor/src/portal/components/docs/ComponentsSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/ComponentsSection.stories.tsxrename to frontend/editor/src/portal/components/docs/ComponentsSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/ComponentsSection.tsx b/frontend/editor/src/portal/components/docs/ComponentsSection.tsxsimilarity index 81%rename from frontend/portal/src/components/docs/ComponentsSection.tsxrename to frontend/editor/src/portal/components/docs/ComponentsSection.tsxindex 10a2349154..5ad8c4b502 100644--- a/frontend/portal/src/components/docs/ComponentsSection.tsx+++ b/frontend/editor/src/portal/components/docs/ComponentsSection.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, Chip, CodeBlock } from "@shared/components";+import { Card, Chip, CodeBlock } from "@app/ui";import type { EmbedComponent } from "@portal/api/docs";import { DocsSection } from "@portal/components/docs/DocsSection";@@ -12,9 +12,9 @@ export function ComponentsSection({return (<DocsSectionid="component-library"- eyebrow={t("docs.components.eyebrow")}- title={t("docs.components.title")}- lead={t("docs.components.lead")}+ eyebrow={t("portal.docs.components.eyebrow")}+ title={t("portal.docs.components.title")}+ lead={t("portal.docs.components.lead")}><div className="portal-docs__component-grid">{components.map((c) => (@@ -31,7 +31,7 @@ export function ComponentsSection({</div><CodeBlocklang="typescript"- caption={t("docs.components.codeCaption")}+ caption={t("portal.docs.components.codeCaption")}code={`import { DocumentViewer } from "@stirling/react";<DocumentViewerdiff --git a/frontend/portal/src/components/docs/DocsNav.stories.tsx b/frontend/editor/src/portal/components/docs/DocsNav.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/DocsNav.stories.tsxrename to frontend/editor/src/portal/components/docs/DocsNav.stories.tsxdiff --git a/frontend/portal/src/components/docs/DocsNav.tsx b/frontend/editor/src/portal/components/docs/DocsNav.tsxsimilarity index 93%rename from frontend/portal/src/components/docs/DocsNav.tsxrename to frontend/editor/src/portal/components/docs/DocsNav.tsxindex 4b1ab5513c..cbd45e7d6c 100644--- a/frontend/portal/src/components/docs/DocsNav.tsx+++ b/frontend/editor/src/portal/components/docs/DocsNav.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Skeleton, StatusBadge } from "@shared/components";+import { Skeleton, StatusBadge } from "@app/ui";import type { DocsNavSection } from "@portal/api/docs";/** Left-hand documentation nav tree; each leaf selects an in-page section. */@@ -14,7 +14,10 @@ export function DocsNav({}) {const { t } = useTranslation();return (- <nav className="portal-docs__nav" aria-label={t("docs.nav.ariaLabel")}>+ <nav+ className="portal-docs__nav"+ aria-label={t("portal.docs.nav.ariaLabel")}+ >{sections.map((section) => (<div key={section.id} className="portal-docs__nav-group"><div className="portal-docs__nav-head">diff --git a/frontend/portal/src/components/docs/DocsSection.stories.tsx b/frontend/editor/src/portal/components/docs/DocsSection.stories.tsxsimilarity index 95%rename from frontend/portal/src/components/docs/DocsSection.stories.tsxrename to frontend/editor/src/portal/components/docs/DocsSection.stories.tsxindex b48109cb2c..e896af6e4a 100644--- a/frontend/portal/src/components/docs/DocsSection.stories.tsx+++ b/frontend/editor/src/portal/components/docs/DocsSection.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Card } from "@shared/components";+import { Card } from "@app/ui";import { DocsSection } from "@portal/components/docs/DocsSection";import "@portal/views/DeveloperDocs.css";diff --git a/frontend/portal/src/components/docs/DocsSection.tsx b/frontend/editor/src/portal/components/docs/DocsSection.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/DocsSection.tsxrename to frontend/editor/src/portal/components/docs/DocsSection.tsxdiff --git a/frontend/portal/src/components/docs/EndpointReferenceSection.stories.tsx b/frontend/editor/src/portal/components/docs/EndpointReferenceSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/EndpointReferenceSection.stories.tsxrename to frontend/editor/src/portal/components/docs/EndpointReferenceSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/EndpointReferenceSection.tsx b/frontend/editor/src/portal/components/docs/EndpointReferenceSection.tsxsimilarity index 81%rename from frontend/portal/src/components/docs/EndpointReferenceSection.tsxrename to frontend/editor/src/portal/components/docs/EndpointReferenceSection.tsxindex 11b4e52d44..930e523886 100644--- a/frontend/portal/src/components/docs/EndpointReferenceSection.tsx+++ b/frontend/editor/src/portal/components/docs/EndpointReferenceSection.tsx@@ -1,12 +1,7 @@import { useMemo, useState } from "react";import { useTranslation } from "react-i18next";-import {- MethodBadge,- Tabs,- type HttpMethod,- type TabItem,-} from "@shared/components";-import { VERTICALS, ALL_ENDPOINTS } from "@shared/data/endpoints";+import { MethodBadge, Tabs, type HttpMethod, type TabItem } from "@app/ui";+import { VERTICALS, ALL_ENDPOINTS } from "@portal/data/endpoints";import { DocsSection } from "@portal/components/docs/DocsSection";type VerticalFilter = "all" | (typeof VERTICALS)[number]["key"];@@ -18,7 +13,7 @@ export function EndpointReferenceSection() {const tabItems: TabItem<VerticalFilter>[] = [{key: "all",- label: t("docs.endpoints.filterAll"),+ label: t("portal.docs.endpoints.filterAll"),count: ALL_ENDPOINTS.length,},...VERTICALS.map<TabItem<VerticalFilter>>((v) => ({@@ -39,15 +34,15 @@ export function EndpointReferenceSection() {return (<DocsSectionid="endpoints"- eyebrow={t("docs.endpoints.eyebrow")}- title={t("docs.endpoints.title")}- lead={t("docs.endpoints.lead")}+ eyebrow={t("portal.docs.endpoints.eyebrow")}+ title={t("portal.docs.endpoints.title")}+ lead={t("portal.docs.endpoints.lead")}><Tabsitems={tabItems}activeKey={filter}onChange={setFilter}- ariaLabel={t("docs.endpoints.filterAriaLabel")}+ ariaLabel={t("portal.docs.endpoints.filterAriaLabel")}/><div className="portal-docs__endpoints">{shown.map((v) => (@@ -66,7 +61,7 @@ export function EndpointReferenceSection() {<code className="portal-docs__endpoint-path">{e.endpoint}</code><span className="portal-docs__endpoint-name">{e.name}</span><span className="portal-docs__endpoint-fields">- {t("docs.endpoints.fieldCount", {+ {t("portal.docs.endpoints.fieldCount", {count: Object.keys(e.schema).length,})}</span>diff --git a/frontend/portal/src/components/docs/ErrorsSection.stories.tsx b/frontend/editor/src/portal/components/docs/ErrorsSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/ErrorsSection.stories.tsxrename to frontend/editor/src/portal/components/docs/ErrorsSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/ErrorsSection.tsx b/frontend/editor/src/portal/components/docs/ErrorsSection.tsxsimilarity index 80%rename from frontend/portal/src/components/docs/ErrorsSection.tsxrename to frontend/editor/src/portal/components/docs/ErrorsSection.tsxindex 22ee504487..25f7f77198 100644--- a/frontend/portal/src/components/docs/ErrorsSection.tsx+++ b/frontend/editor/src/portal/components/docs/ErrorsSection.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { CodeBlock, StatusBadge } from "@shared/components";+import { CodeBlock, StatusBadge } from "@app/ui";import type { ApiErrorRow } from "@portal/api/docs";import { DocsSection } from "@portal/components/docs/DocsSection";@@ -8,9 +8,9 @@ export function ErrorsSection({ errors }: { errors: ApiErrorRow[] }) {return (<DocsSectionid="errors"- eyebrow={t("docs.errors.eyebrow")}- title={t("docs.errors.title")}- lead={t("docs.errors.lead")}+ eyebrow={t("portal.docs.errors.eyebrow")}+ title={t("portal.docs.errors.title")}+ lead={t("portal.docs.errors.lead")}><div className="portal-docs__errors">{errors.map((e) => (@@ -27,7 +27,7 @@ export function ErrorsSection({ errors }: { errors: ApiErrorRow[] }) {</div><CodeBlocklang="json"- caption={t("docs.errors.codeCaption")}+ caption={t("portal.docs.errors.codeCaption")}code={`{"error": "schema_validation_failed","message": "Field 'total' could not be located",diff --git a/frontend/portal/src/components/docs/GettingStartedSection.stories.tsx b/frontend/editor/src/portal/components/docs/GettingStartedSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/GettingStartedSection.stories.tsxrename to frontend/editor/src/portal/components/docs/GettingStartedSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/GettingStartedSection.tsx b/frontend/editor/src/portal/components/docs/GettingStartedSection.tsxsimilarity index 60%rename from frontend/portal/src/components/docs/GettingStartedSection.tsxrename to frontend/editor/src/portal/components/docs/GettingStartedSection.tsxindex 7bdc8335eb..1f94361380 100644--- a/frontend/portal/src/components/docs/GettingStartedSection.tsx+++ b/frontend/editor/src/portal/components/docs/GettingStartedSection.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, CodeBlock } from "@shared/components";+import { Card, CodeBlock } from "@app/ui";import type { CodeSample } from "@portal/api/docs";import { DocsSection } from "@portal/components/docs/DocsSection";import { LangSnippet } from "@portal/components/docs/LangSnippet";@@ -15,16 +15,16 @@ export function GettingStartedSection({return (<DocsSectionid="quickstart"- eyebrow={t("docs.quickstart.eyebrow")}- title={t("docs.quickstart.title")}- lead={t("docs.quickstart.lead")}+ eyebrow={t("portal.docs.quickstart.eyebrow")}+ title={t("portal.docs.quickstart.title")}+ lead={t("portal.docs.quickstart.lead")}><ol className="portal-docs__steps"><li className="portal-docs__step"><span className="portal-docs__step-mark">1</span><div className="portal-docs__step-body">- <h3>{t("docs.quickstart.step1.title")}</h3>- <p>{t("docs.quickstart.step1.body")}</p>+ <h3>{t("portal.docs.quickstart.step1.title")}</h3>+ <p>{t("portal.docs.quickstart.step1.body")}</p><CodeBlocklang="bash"code={`export STIRLING_API_KEY="sk_live_8f2c...e10"`}@@ -34,33 +34,33 @@ export function GettingStartedSection({<li className="portal-docs__step"><span className="portal-docs__step-mark">2</span><div className="portal-docs__step-body">- <h3>{t("docs.quickstart.step2.title")}</h3>- <p>{t("docs.quickstart.step2.body")}</p>+ <h3>{t("portal.docs.quickstart.step2.title")}</h3>+ <p>{t("portal.docs.quickstart.step2.body")}</p><LangSnippetsamples={samples}- caption={t("docs.quickstart.step2.snippetCaption")}+ caption={t("portal.docs.quickstart.step2.snippetCaption")}/></div></li><li className="portal-docs__step"><span className="portal-docs__step-mark">3</span><div className="portal-docs__step-body">- <h3>{t("docs.quickstart.step3.title")}</h3>- <p>{t("docs.quickstart.step3.body")}</p>+ <h3>{t("portal.docs.quickstart.step3.title")}</h3>+ <p>{t("portal.docs.quickstart.step3.body")}</p><CodeBlocklang="json"code={response}- caption={t("docs.quickstart.step3.codeCaption")}+ caption={t("portal.docs.quickstart.step3.codeCaption")}/></div></li></ol><Card className="portal-docs__callout" accent="blue" padding="loose">- <strong>{t("docs.quickstart.callout.label")}</strong>{" "}- {t("docs.quickstart.callout.bodyBeforeLink")}{" "}- <em>{t("docs.quickstart.callout.link")}</em>{" "}- {t("docs.quickstart.callout.bodyAfterLink")}+ <strong>{t("portal.docs.quickstart.callout.label")}</strong>{" "}+ {t("portal.docs.quickstart.callout.bodyBeforeLink")}{" "}+ <em>{t("portal.docs.quickstart.callout.link")}</em>{" "}+ {t("portal.docs.quickstart.callout.bodyAfterLink")}</Card></DocsSection>);diff --git a/frontend/portal/src/components/docs/LangSnippet.stories.tsx b/frontend/editor/src/portal/components/docs/LangSnippet.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/LangSnippet.stories.tsxrename to frontend/editor/src/portal/components/docs/LangSnippet.stories.tsxdiff --git a/frontend/portal/src/components/docs/LangSnippet.tsx b/frontend/editor/src/portal/components/docs/LangSnippet.tsxsimilarity index 91%rename from frontend/portal/src/components/docs/LangSnippet.tsxrename to frontend/editor/src/portal/components/docs/LangSnippet.tsxindex 1d68fc8b66..717a40dd9c 100644--- a/frontend/portal/src/components/docs/LangSnippet.tsx+++ b/frontend/editor/src/portal/components/docs/LangSnippet.tsx@@ -1,5 +1,5 @@import { useState } from "react";-import { CodeBlock, Tabs, type TabItem } from "@shared/components";+import { CodeBlock, Tabs, type TabItem } from "@app/ui";import type { CodeSample } from "@portal/api/docs";/** Tabbed multi-language snippet; CodeBlock owns per-language copy. */diff --git a/frontend/portal/src/components/docs/PlaybooksSection.stories.tsx b/frontend/editor/src/portal/components/docs/PlaybooksSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/PlaybooksSection.stories.tsxrename to frontend/editor/src/portal/components/docs/PlaybooksSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/PlaybooksSection.tsx b/frontend/editor/src/portal/components/docs/PlaybooksSection.tsxsimilarity index 86%rename from frontend/portal/src/components/docs/PlaybooksSection.tsxrename to frontend/editor/src/portal/components/docs/PlaybooksSection.tsxindex 75b7f86c87..f48c90a251 100644--- a/frontend/portal/src/components/docs/PlaybooksSection.tsx+++ b/frontend/editor/src/portal/components/docs/PlaybooksSection.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Button, Card, Chip } from "@shared/components";+import { Button, Card, Chip } from "@app/ui";import type { Playbook } from "@portal/api/docs";import { DocsSection } from "@portal/components/docs/DocsSection";@@ -8,9 +8,9 @@ export function PlaybooksSection({ playbooks }: { playbooks: Playbook[] }) {return (<DocsSectionid="recipes"- eyebrow={t("docs.recipes.eyebrow")}- title={t("docs.recipes.title")}- lead={t("docs.recipes.lead")}+ eyebrow={t("portal.docs.recipes.eyebrow")}+ title={t("portal.docs.recipes.title")}+ lead={t("portal.docs.recipes.lead")}><div className="portal-docs__playbook-grid">{playbooks.map((p) => (@@ -34,7 +34,7 @@ export function PlaybooksSection({ playbooks }: { playbooks: Playbook[] }) {{/* TODO(backend): POST /v1/pipelines/clone-from-playbook to seed adraft pipeline from this recipe, then route to the composer. */}<Button variant="outline" accent={p.accent} size="sm">- {t("docs.recipes.cloneButton")}+ {t("portal.docs.recipes.cloneButton")}</Button></Card>))}diff --git a/frontend/portal/src/components/docs/RateLimitsSection.stories.tsx b/frontend/editor/src/portal/components/docs/RateLimitsSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/RateLimitsSection.stories.tsxrename to frontend/editor/src/portal/components/docs/RateLimitsSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/RateLimitsSection.tsx b/frontend/editor/src/portal/components/docs/RateLimitsSection.tsxsimilarity index 74%rename from frontend/portal/src/components/docs/RateLimitsSection.tsxrename to frontend/editor/src/portal/components/docs/RateLimitsSection.tsxindex 2ff11a4018..92a7f87696 100644--- a/frontend/portal/src/components/docs/RateLimitsSection.tsx+++ b/frontend/editor/src/portal/components/docs/RateLimitsSection.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, CodeBlock } from "@shared/components";+import { Card, CodeBlock } from "@app/ui";import type { RateLimit } from "@portal/api/docs";import { DocsSection } from "@portal/components/docs/DocsSection";@@ -8,26 +8,26 @@ export function RateLimitsSection({ rateLimit }: { rateLimit: RateLimit }) {return (<DocsSectionid="rate-limits"- eyebrow={t("docs.rateLimits.eyebrow")}- title={t("docs.rateLimits.title")}- lead={t("docs.rateLimits.lead")}+ eyebrow={t("portal.docs.rateLimits.eyebrow")}+ title={t("portal.docs.rateLimits.title")}+ lead={t("portal.docs.rateLimits.lead")}><div className="portal-docs__limits"><Card padding="default"><div className="portal-docs__limit-label">- {t("docs.rateLimits.requestsPerMinute")}+ {t("portal.docs.rateLimits.requestsPerMinute")}</div><div className="portal-docs__limit-value">{rateLimit.rpm}</div></Card><Card padding="default"><div className="portal-docs__limit-label">- {t("docs.rateLimits.burst")}+ {t("portal.docs.rateLimits.burst")}</div><div className="portal-docs__limit-value">{rateLimit.burst}</div></Card><Card padding="default"><div className="portal-docs__limit-label">- {t("docs.rateLimits.concurrency")}+ {t("portal.docs.rateLimits.concurrency")}</div><div className="portal-docs__limit-value">{rateLimit.concurrency}@@ -36,7 +36,7 @@ export function RateLimitsSection({ rateLimit }: { rateLimit: RateLimit }) {</div><CodeBlocklang="http"- caption={t("docs.rateLimits.codeCaption")}+ caption={t("portal.docs.rateLimits.codeCaption")}code={`HTTP/1.1 429 Too Many RequestsRetry-After: 2X-RateLimit-Remaining: 0`}diff --git a/frontend/portal/src/components/docs/SdksSection.stories.tsx b/frontend/editor/src/portal/components/docs/SdksSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/SdksSection.stories.tsxrename to frontend/editor/src/portal/components/docs/SdksSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/SdksSection.tsx b/frontend/editor/src/portal/components/docs/SdksSection.tsxsimilarity index 79%rename from frontend/portal/src/components/docs/SdksSection.tsxrename to frontend/editor/src/portal/components/docs/SdksSection.tsxindex 5195e42da0..1a0e72933e 100644--- a/frontend/portal/src/components/docs/SdksSection.tsx+++ b/frontend/editor/src/portal/components/docs/SdksSection.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, CodeBlock, StatusBadge } from "@shared/components";+import { Card, CodeBlock, StatusBadge } from "@app/ui";import type { Sdk, SdkStatus } from "@portal/api/docs";import { DocsSection } from "@portal/components/docs/DocsSection";@@ -7,8 +7,11 @@ import { DocsSection } from "@portal/components/docs/DocsSection";const STATUS_BADGE: Partial<Record<SdkStatus, { labelKey: string; tone: "info" | "warning" }>> = {- beta: { labelKey: "docs.sdks.status.beta", tone: "info" },- deprecated: { labelKey: "docs.sdks.status.deprecated", tone: "warning" },+ beta: { labelKey: "portal.docs.sdks.status.beta", tone: "info" },+ deprecated: {+ labelKey: "portal.docs.sdks.status.deprecated",+ tone: "warning",+ },};export function SdksSection({ sdks }: { sdks: Sdk[] }) {@@ -16,9 +19,9 @@ export function SdksSection({ sdks }: { sdks: Sdk[] }) {return (<DocsSectionid="sdk-overview"- eyebrow={t("docs.sdks.eyebrow")}- title={t("docs.sdks.title")}- lead={t("docs.sdks.lead")}+ eyebrow={t("portal.docs.sdks.eyebrow")}+ title={t("portal.docs.sdks.title")}+ lead={t("portal.docs.sdks.lead")}><div className="portal-docs__sdk-grid">{sdks.map((sdk) => {diff --git a/frontend/portal/src/components/docs/SkillsSection.stories.tsx b/frontend/editor/src/portal/components/docs/SkillsSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/SkillsSection.stories.tsxrename to frontend/editor/src/portal/components/docs/SkillsSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/SkillsSection.tsx b/frontend/editor/src/portal/components/docs/SkillsSection.tsxsimilarity index 84%rename from frontend/portal/src/components/docs/SkillsSection.tsxrename to frontend/editor/src/portal/components/docs/SkillsSection.tsxindex e0fecae2f4..ef34705c43 100644--- a/frontend/portal/src/components/docs/SkillsSection.tsx+++ b/frontend/editor/src/portal/components/docs/SkillsSection.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card } from "@shared/components";+import { Card } from "@app/ui";import type { AgentSkill } from "@portal/api/docs";import { DocsSection } from "@portal/components/docs/DocsSection";@@ -8,9 +8,9 @@ export function SkillsSection({ skills }: { skills: AgentSkill[] }) {return (<DocsSectionid="skill-catalog"- eyebrow={t("docs.skills.eyebrow")}- title={t("docs.skills.title")}- lead={t("docs.skills.lead")}+ eyebrow={t("portal.docs.skills.eyebrow")}+ title={t("portal.docs.skills.title")}+ lead={t("portal.docs.skills.lead")}><div className="portal-docs__skill-grid">{skills.map((s) => (diff --git a/frontend/portal/src/components/docs/WebhooksSection.stories.tsx b/frontend/editor/src/portal/components/docs/WebhooksSection.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/docs/WebhooksSection.stories.tsxrename to frontend/editor/src/portal/components/docs/WebhooksSection.stories.tsxdiff --git a/frontend/portal/src/components/docs/WebhooksSection.tsx b/frontend/editor/src/portal/components/docs/WebhooksSection.tsxsimilarity index 58%rename from frontend/portal/src/components/docs/WebhooksSection.tsxrename to frontend/editor/src/portal/components/docs/WebhooksSection.tsxindex f86539bd34..ee50704a2f 100644--- a/frontend/portal/src/components/docs/WebhooksSection.tsx+++ b/frontend/editor/src/portal/components/docs/WebhooksSection.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, CodeBlock } from "@shared/components";+import { Card, CodeBlock } from "@app/ui";import { DocsSection } from "@portal/components/docs/DocsSection";export function WebhooksSection() {@@ -7,13 +7,13 @@ export function WebhooksSection() {return (<DocsSectionid="webhooks"- eyebrow={t("docs.webhooks.eyebrow")}- title={t("docs.webhooks.title")}- lead={t("docs.webhooks.lead")}+ eyebrow={t("portal.docs.webhooks.eyebrow")}+ title={t("portal.docs.webhooks.title")}+ lead={t("portal.docs.webhooks.lead")}><CodeBlocklang="json"- caption={t("docs.webhooks.codeCaption")}+ caption={t("portal.docs.webhooks.codeCaption")}code={`{"event": "document.processed","id": "evt_91ac3f",@@ -26,10 +26,11 @@ export function WebhooksSection() {}`}/><Card className="portal-docs__callout" accent="amber" padding="loose">- {t("docs.webhooks.callout.beforeSignature")}{" "}+ {t("portal.docs.webhooks.callout.beforeSignature")}{" "}<code>Stirling-Signature</code>{" "}- {t("docs.webhooks.callout.beforeHelper")} <code>verifyWebhook()</code>{" "}- {t("docs.webhooks.callout.afterHelper")}+ {t("portal.docs.webhooks.callout.beforeHelper")}{" "}+ <code>verifyWebhook()</code>{" "}+ {t("portal.docs.webhooks.callout.afterHelper")}</Card></DocsSection>);diff --git a/frontend/portal/src/components/documents/DocumentAudit.stories.tsx b/frontend/editor/src/portal/components/documents/DocumentAudit.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/documents/DocumentAudit.stories.tsxrename to frontend/editor/src/portal/components/documents/DocumentAudit.stories.tsxdiff --git a/frontend/portal/src/components/documents/DocumentAudit.tsx b/frontend/editor/src/portal/components/documents/DocumentAudit.tsxsimilarity index 90%rename from frontend/portal/src/components/documents/DocumentAudit.tsxrename to frontend/editor/src/portal/components/documents/DocumentAudit.tsxindex be9c7a6bf3..b74db8f55f 100644--- a/frontend/portal/src/components/documents/DocumentAudit.tsx+++ b/frontend/editor/src/portal/components/documents/DocumentAudit.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { StatusBadge } from "@shared/components";+import { StatusBadge } from "@app/ui";import {DOC_AUDIT_LABEL,DOC_AUDIT_TONE,@@ -11,7 +11,9 @@ export function DocumentAudit({ doc }: { doc: ReviewDocument }) {const { t } = useTranslation();if (doc.audit.length === 0) {return (- <p className="portal-documents__muted">{t("documents.audit.empty")}</p>+ <p className="portal-documents__muted">+ {t("portal.documents.audit.empty")}+ </p>);}return (diff --git a/frontend/portal/src/components/documents/DocumentDrawer.stories.tsx b/frontend/editor/src/portal/components/documents/DocumentDrawer.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/documents/DocumentDrawer.stories.tsxrename to frontend/editor/src/portal/components/documents/DocumentDrawer.stories.tsxdiff --git a/frontend/portal/src/components/documents/DocumentDrawer.tsx b/frontend/editor/src/portal/components/documents/DocumentDrawer.tsxsimilarity index 90%rename from frontend/portal/src/components/documents/DocumentDrawer.tsxrename to frontend/editor/src/portal/components/documents/DocumentDrawer.tsxindex bb116a100c..bdf3786134 100644--- a/frontend/portal/src/components/documents/DocumentDrawer.tsx+++ b/frontend/editor/src/portal/components/documents/DocumentDrawer.tsx@@ -1,6 +1,6 @@import { useEffect, useState } from "react";import { useTranslation } from "react-i18next";-import { Drawer, StatusBadge, Tabs, type TabItem } from "@shared/components";+import { Drawer, StatusBadge, Tabs, type TabItem } from "@app/ui";import {DOCUMENT_STATUS_LABEL,DOCUMENT_STATUS_TONE,@@ -32,9 +32,12 @@ export function DocumentDrawer({ doc, onClose }: DocumentDrawerProps) {const fourEyes = tier === "enterprise";const subTabs: TabItem<SubTab>[] = [- { key: "overview", label: t("documents.drawer.tabs.overview") },- { key: "extractions", label: t("documents.drawer.tabs.extractions") },- { key: "audit", label: t("documents.drawer.tabs.audit") },+ { key: "overview", label: t("portal.documents.drawer.tabs.overview") },+ {+ key: "extractions",+ label: t("portal.documents.drawer.tabs.extractions"),+ },+ { key: "audit", label: t("portal.documents.drawer.tabs.audit") },];const [tab, setTab] = useState<SubTab>("overview");@@ -98,7 +101,7 @@ export function DocumentDrawer({ doc, onClose }: DocumentDrawerProps) {activeKey={tab}onChange={setTab}variant="underline"- ariaLabel={t("documents.drawer.sectionsAriaLabel")}+ ariaLabel={t("portal.documents.drawer.sectionsAriaLabel")}/><div className="portal-documents__drawer-panel">diff --git a/frontend/portal/src/components/documents/DocumentExtractions.stories.tsx b/frontend/editor/src/portal/components/documents/DocumentExtractions.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/documents/DocumentExtractions.stories.tsxrename to frontend/editor/src/portal/components/documents/DocumentExtractions.stories.tsxdiff --git a/frontend/portal/src/components/documents/DocumentExtractions.tsx b/frontend/editor/src/portal/components/documents/DocumentExtractions.tsxsimilarity index 82%rename from frontend/portal/src/components/documents/DocumentExtractions.tsxrename to frontend/editor/src/portal/components/documents/DocumentExtractions.tsxindex e8b922d301..e43076dae3 100644--- a/frontend/portal/src/components/documents/DocumentExtractions.tsx+++ b/frontend/editor/src/portal/components/documents/DocumentExtractions.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { StatusBadge, Table, type TableColumn } from "@shared/components";+import { StatusBadge, Table, type TableColumn } from "@app/ui";import { type Extraction, type ReviewDocument } from "@portal/api/documents";import {confidencePct,@@ -26,17 +26,17 @@ export function DocumentExtractions({const cols: TableColumn<Extraction>[] = [{key: "field",- header: t("documents.extractions.columns.field"),+ header: t("portal.documents.extractions.columns.field"),render: (e) => <span className="portal-documents__field">{e.field}</span>,},{key: "value",- header: t("documents.extractions.columns.value"),+ header: t("portal.documents.extractions.columns.value"),render: (e) => <span className="portal-documents__mono">{e.value}</span>,},{key: "confidence",- header: t("documents.extractions.columns.confidence"),+ header: t("portal.documents.extractions.columns.confidence"),align: "right",width: "7rem",render: (e) => (@@ -58,7 +58,7 @@ export function DocumentExtractions({🔒</span><p className="portal-documents__masked-text">- {t("documents.extractions.masked")}+ {t("portal.documents.extractions.masked")}</p></div>);@@ -69,7 +69,7 @@ export function DocumentExtractions({columns={cols}rows={doc.extractions}rowKey={(e) => e.field}- empty={t("documents.extractions.empty")}+ empty={t("portal.documents.extractions.empty")}/>);}diff --git a/frontend/portal/src/components/documents/DocumentOverview.stories.tsx b/frontend/editor/src/portal/components/documents/DocumentOverview.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/documents/DocumentOverview.stories.tsxrename to frontend/editor/src/portal/components/documents/DocumentOverview.stories.tsxdiff --git a/frontend/portal/src/components/documents/DocumentOverview.tsx b/frontend/editor/src/portal/components/documents/DocumentOverview.tsxsimilarity index 57%rename from frontend/portal/src/components/documents/DocumentOverview.tsxrename to frontend/editor/src/portal/components/documents/DocumentOverview.tsxindex 6c3d9b0e9c..3994bd7098 100644--- a/frontend/portal/src/components/documents/DocumentOverview.tsx+++ b/frontend/editor/src/portal/components/documents/DocumentOverview.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { StatTile } from "@shared/components";+import { StatTile } from "@app/ui";import {DOCUMENT_STATUS_LABEL,type ReviewDocument,@@ -13,20 +13,29 @@ export function DocumentOverview({ doc }: { doc: ReviewDocument }) {<div className="portal-documents__overview"><div className="portal-documents__stat-grid"><StatTile- label={t("documents.overview.status")}+ label={t("portal.documents.overview.status")}value={DOCUMENT_STATUS_LABEL[doc.status]}/>- <StatTile label={t("documents.overview.type")} value={doc.type} /><StatTile- label={t("documents.overview.confidence")}+ label={t("portal.documents.overview.type")}+ value={doc.type}+ />+ <StatTile+ label={t("portal.documents.overview.confidence")}value={confidencePct(doc.confidence)}/><StatTile- label={t("documents.overview.fieldsExtracted")}+ label={t("portal.documents.overview.fieldsExtracted")}value={doc.fieldsExtracted}/>- <StatTile label={t("documents.overview.source")} value={doc.source} />- <StatTile label={t("documents.overview.received")} value={doc.time} />+ <StatTile+ label={t("portal.documents.overview.source")}+ value={doc.source}+ />+ <StatTile+ label={t("portal.documents.overview.received")}+ value={doc.time}+ /></div></div>);diff --git a/frontend/portal/src/components/documents/DocumentsSummaryStrip.stories.tsx b/frontend/editor/src/portal/components/documents/DocumentsSummaryStrip.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/documents/DocumentsSummaryStrip.stories.tsxrename to frontend/editor/src/portal/components/documents/DocumentsSummaryStrip.stories.tsxdiff --git a/frontend/portal/src/components/documents/DocumentsSummaryStrip.tsx b/frontend/editor/src/portal/components/documents/DocumentsSummaryStrip.tsxsimilarity index 78%rename from frontend/portal/src/components/documents/DocumentsSummaryStrip.tsxrename to frontend/editor/src/portal/components/documents/DocumentsSummaryStrip.tsxindex 3f799c16b0..eb116e7393 100644--- a/frontend/portal/src/components/documents/DocumentsSummaryStrip.tsx+++ b/frontend/editor/src/portal/components/documents/DocumentsSummaryStrip.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { MetricCard, MetricStrip, Skeleton } from "@shared/components";+import { MetricCard, MetricStrip, Skeleton } from "@app/ui";import type { DocumentsSummary } from "@portal/api/documents";import { confidencePct } from "@portal/components/documents/format";@@ -28,19 +28,19 @@ export function DocumentsSummaryStrip({return (<MetricStrip><MetricCard- label={t("documents.summary.inQueue")}+ label={t("portal.documents.summary.inQueue")}value={summary.totalInQueue.toLocaleString()}/><MetricCard- label={t("documents.summary.needsReview")}+ label={t("portal.documents.summary.needsReview")}value={summary.needsReview.toLocaleString()}/><MetricCard- label={t("documents.summary.avgConfidence")}+ label={t("portal.documents.summary.avgConfidence")}value={confidencePct(summary.avgConfidence)}/><MetricCard- label={t("documents.summary.processedToday")}+ label={t("portal.documents.summary.processedToday")}value={summary.processedToday.toLocaleString()}/></MetricStrip>diff --git a/frontend/portal/src/components/documents/ElevationBanner.stories.tsx b/frontend/editor/src/portal/components/documents/ElevationBanner.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/documents/ElevationBanner.stories.tsxrename to frontend/editor/src/portal/components/documents/ElevationBanner.stories.tsxdiff --git a/frontend/portal/src/components/documents/ElevationBanner.tsx b/frontend/editor/src/portal/components/documents/ElevationBanner.tsxsimilarity index 71%rename from frontend/portal/src/components/documents/ElevationBanner.tsxrename to frontend/editor/src/portal/components/documents/ElevationBanner.tsxindex b6c53c41ce..429cd606cb 100644--- a/frontend/portal/src/components/documents/ElevationBanner.tsx+++ b/frontend/editor/src/portal/components/documents/ElevationBanner.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Banner, Button } from "@shared/components";+import { Banner, Button } from "@app/ui";import { formatCountdown } from "@portal/components/documents/format";interface ElevationBannerProps {@@ -27,13 +27,13 @@ export function ElevationBanner({<Bannertone="success"icon={<span aria-hidden>⏱</span>}- title={t("documents.elevation.active.title", {+ title={t("portal.documents.elevation.active.title", {time: formatCountdown(secondsLeft),})}description={fourEyes- ? t("documents.elevation.active.descriptionFourEyes")- : t("documents.elevation.active.description")+ ? t("portal.documents.elevation.active.descriptionFourEyes")+ : t("portal.documents.elevation.active.description")}/>);@@ -43,15 +43,15 @@ export function ElevationBanner({<Bannertone="warning"icon={<span aria-hidden>🔒</span>}- title={t("documents.elevation.gated.title")}+ title={t("portal.documents.elevation.gated.title")}description={fourEyes- ? t("documents.elevation.gated.descriptionFourEyes")- : t("documents.elevation.gated.description")+ ? t("portal.documents.elevation.gated.descriptionFourEyes")+ : t("portal.documents.elevation.gated.description")}action={<Button size="sm" onClick={onRequest}>- {t("documents.elevation.requestAccess")}+ {t("portal.documents.elevation.requestAccess")}</Button>}/>diff --git a/frontend/portal/src/components/documents/ReviewQueue.stories.tsx b/frontend/editor/src/portal/components/documents/ReviewQueue.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/documents/ReviewQueue.stories.tsxrename to frontend/editor/src/portal/components/documents/ReviewQueue.stories.tsxdiff --git a/frontend/portal/src/components/documents/ReviewQueue.tsx b/frontend/editor/src/portal/components/documents/ReviewQueue.tsxsimilarity index 87%rename from frontend/portal/src/components/documents/ReviewQueue.tsxrename to frontend/editor/src/portal/components/documents/ReviewQueue.tsxindex baa4f32c93..6eab89e9eb 100644--- a/frontend/portal/src/components/documents/ReviewQueue.tsx+++ b/frontend/editor/src/portal/components/documents/ReviewQueue.tsx@@ -1,6 +1,6 @@import { useMemo, useState } from "react";import { useTranslation } from "react-i18next";-import { EmptyState, Skeleton, Tabs, type TabItem } from "@shared/components";+import { EmptyState, Skeleton, Tabs, type TabItem } from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -58,22 +58,22 @@ export function ReviewQueue() {const filterItems: TabItem<QueueFilter>[] = [{key: "all",- label: t("documents.filters.all"),+ label: t("portal.documents.filters.all"),count: countFor(documents, "all"),},{key: "needs-review",- label: t("documents.filters.needsReview"),+ label: t("portal.documents.filters.needsReview"),count: countFor(documents, "needs-review"),},{key: "processed",- label: t("documents.filters.processed"),+ label: t("portal.documents.filters.processed"),count: countFor(documents, "processed"),},{key: "archived",- label: t("documents.filters.archived"),+ label: t("portal.documents.filters.archived"),count: countFor(documents, "archived"),},];@@ -90,7 +90,7 @@ export function ReviewQueue() {activeKey={filter}onChange={setFilter}variant="pill"- ariaLabel={t("documents.filters.ariaLabel")}+ ariaLabel={t("portal.documents.filters.ariaLabel")}/>{isLoading && (@@ -103,8 +103,8 @@ export function ReviewQueue() {{isEmpty && (<EmptyState- title={t("documents.queue.empty.title")}- description={t("documents.queue.empty.description")}+ title={t("portal.documents.queue.empty.title")}+ description={t("portal.documents.queue.empty.description")}/>)}diff --git a/frontend/portal/src/components/documents/ReviewQueueTable.stories.tsx b/frontend/editor/src/portal/components/documents/ReviewQueueTable.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/documents/ReviewQueueTable.stories.tsxrename to frontend/editor/src/portal/components/documents/ReviewQueueTable.stories.tsxdiff --git a/frontend/portal/src/components/documents/ReviewQueueTable.tsx b/frontend/editor/src/portal/components/documents/ReviewQueueTable.tsxsimilarity index 78%rename from frontend/portal/src/components/documents/ReviewQueueTable.tsxrename to frontend/editor/src/portal/components/documents/ReviewQueueTable.tsxindex f76860f3b5..88835344e8 100644--- a/frontend/portal/src/components/documents/ReviewQueueTable.tsx+++ b/frontend/editor/src/portal/components/documents/ReviewQueueTable.tsx@@ -1,11 +1,6 @@import { useMemo } from "react";import { useTranslation } from "react-i18next";-import {- ProgressBar,- StatusBadge,- Table,- type TableColumn,-} from "@shared/components";+import { ProgressBar, StatusBadge, Table, type TableColumn } from "@app/ui";import {DOCUMENT_STATUS_LABEL,DOCUMENT_STATUS_TONE,@@ -31,15 +26,15 @@ export function ReviewQueueTable({() => [{key: "name",- header: t("documents.table.columns.name"),+ header: t("portal.documents.table.columns.name"),render: (d) => (<div className="portal-documents__name-cell"><span className="portal-documents__name">{d.name}</span>{d.sensitive && (<spanclassName="portal-documents__lock"- title={t("documents.table.sensitiveTitle")}- aria-label={t("documents.table.sensitiveLabel")}+ title={t("portal.documents.table.sensitiveTitle")}+ aria-label={t("portal.documents.table.sensitiveLabel")}>🔒</span>@@ -49,12 +44,12 @@ export function ReviewQueueTable({},{key: "type",- header: t("documents.table.columns.type"),+ header: t("portal.documents.table.columns.type"),render: (d) => d.type,},{key: "status",- header: t("documents.table.columns.status"),+ header: t("portal.documents.table.columns.status"),render: (d) => (<StatusBadge tone={DOCUMENT_STATUS_TONE[d.status]} size="sm">{DOCUMENT_STATUS_LABEL[d.status]}@@ -63,14 +58,14 @@ export function ReviewQueueTable({},{key: "source",- header: t("documents.table.columns.source"),+ header: t("portal.documents.table.columns.source"),render: (d) => (<span className="portal-documents__muted">{d.source}</span>),},{key: "confidence",- header: t("documents.table.columns.confidence"),+ header: t("portal.documents.table.columns.confidence"),width: "9rem",render: (d) => (<div className="portal-documents__confidence">@@ -87,7 +82,7 @@ export function ReviewQueueTable({},{key: "fields",- header: t("documents.table.columns.fields"),+ header: t("portal.documents.table.columns.fields"),align: "right",render: (d) => (<span className="portal-documents__mono">{d.fieldsExtracted}</span>@@ -95,7 +90,7 @@ export function ReviewQueueTable({},{key: "time",- header: t("documents.table.columns.time"),+ header: t("portal.documents.table.columns.time"),align: "right",render: (d) => (<span className="portal-documents__muted">{d.time}</span>@@ -112,7 +107,7 @@ export function ReviewQueueTable({rows={documents}rowKey={(d) => d.id}onRowClick={onRowClick}- empty={t("documents.table.empty")}+ empty={t("portal.documents.table.empty")}/>);}diff --git a/frontend/portal/src/components/documents/format.ts b/frontend/editor/src/portal/components/documents/format.tssimilarity index 94%rename from frontend/portal/src/components/documents/format.tsrename to frontend/editor/src/portal/components/documents/format.tsindex d9591a3487..e2d4899818 100644--- a/frontend/portal/src/components/documents/format.ts+++ b/frontend/editor/src/portal/components/documents/format.ts@@ -1,4 +1,4 @@-import type { StatusTone } from "@shared/components";+import type { StatusTone } from "@app/ui";/** Format a 0–1 confidence fraction as a whole-percent string. */export function confidencePct(n: number): string {diff --git a/frontend/portal/src/components/editor-admin/CredentialRotationCard.stories.tsx b/frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/editor-admin/CredentialRotationCard.stories.tsxrename to frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.stories.tsxdiff --git a/frontend/portal/src/components/editor-admin/CredentialRotationCard.tsx b/frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.tsxsimilarity index 76%rename from frontend/portal/src/components/editor-admin/CredentialRotationCard.tsxrename to frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.tsxindex 2220d52b01..a3351b0d28 100644--- a/frontend/portal/src/components/editor-admin/CredentialRotationCard.tsx+++ b/frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button, Card, StatTile } from "@shared/components";+import { Banner, Button, Card, StatTile } from "@app/ui";import type { DeploymentSummary } from "@portal/api/editorDeploy";interface Props {@@ -33,21 +33,21 @@ export function CredentialRotationCard({ serviceToken }: Props) {<div className="portal-editor__panel-head"><div><h3 className="portal-editor__panel-title">- {t("editorAdmin.serviceToken.title")}+ {t("portal.editorAdmin.serviceToken.title")}</h3><p className="portal-editor__panel-sub">- {t("editorAdmin.serviceToken.subtitle")}+ {t("portal.editorAdmin.serviceToken.subtitle")}</p></div></div><div className="portal-editor__token-row"><StatTile- label={t("editorAdmin.serviceToken.currentToken")}+ label={t("portal.editorAdmin.serviceToken.currentToken")}value={serviceToken.masked}/><StatTile- label={t("editorAdmin.serviceToken.lastRotated")}+ label={t("portal.editorAdmin.serviceToken.lastRotated")}value={serviceToken.lastRotated}/></div>@@ -55,8 +55,10 @@ export function CredentialRotationCard({ serviceToken }: Props) {{rotated && (<Bannertone="warning"- title={t("editorAdmin.serviceToken.rotatedBanner.title")}- description={t("editorAdmin.serviceToken.rotatedBanner.description")}+ title={t("portal.editorAdmin.serviceToken.rotatedBanner.title")}+ description={t(+ "portal.editorAdmin.serviceToken.rotatedBanner.description",+ )}/>)}@@ -67,7 +69,7 @@ export function CredentialRotationCard({ serviceToken }: Props) {loading={rotating}onClick={rotate}>- {t("editorAdmin.serviceToken.rotateButton")}+ {t("portal.editorAdmin.serviceToken.rotateButton")}</Button></div></Card>diff --git a/frontend/portal/src/components/editor-admin/DeploymentSummaryStrip.stories.tsx b/frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/editor-admin/DeploymentSummaryStrip.stories.tsxrename to frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.stories.tsxdiff --git a/frontend/portal/src/components/editor-admin/DeploymentSummaryStrip.tsx b/frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.tsxsimilarity index 91%rename from frontend/portal/src/components/editor-admin/DeploymentSummaryStrip.tsxrename to frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.tsxindex 9491de67aa..8546c4364b 100644--- a/frontend/portal/src/components/editor-admin/DeploymentSummaryStrip.tsx+++ b/frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.tsx@@ -1,4 +1,4 @@-import { MetricCard, MetricStrip, Skeleton } from "@shared/components";+import { MetricCard, MetricStrip, Skeleton } from "@app/ui";import type { DeploymentSummary } from "@portal/api/editorDeploy";interface Props {diff --git a/frontend/portal/src/components/editor-admin/DeploymentTargets.stories.tsx b/frontend/editor/src/portal/components/editor-admin/DeploymentTargets.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/editor-admin/DeploymentTargets.stories.tsxrename to frontend/editor/src/portal/components/editor-admin/DeploymentTargets.stories.tsxdiff --git a/frontend/portal/src/components/editor-admin/DeploymentTargets.tsx b/frontend/editor/src/portal/components/editor-admin/DeploymentTargets.tsxsimilarity index 87%rename from frontend/portal/src/components/editor-admin/DeploymentTargets.tsxrename to frontend/editor/src/portal/components/editor-admin/DeploymentTargets.tsxindex 5a4000eb10..9920b12d03 100644--- a/frontend/portal/src/components/editor-admin/DeploymentTargets.tsx+++ b/frontend/editor/src/portal/components/editor-admin/DeploymentTargets.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Button, Card, CodeBlock, StatusBadge } from "@shared/components";+import { Button, Card, CodeBlock, StatusBadge } from "@app/ui";import { TARGET_META, type DeploymentTarget } from "@portal/api/editorDeploy";import { useTier } from "@portal/contexts/TierContext";@@ -29,8 +29,8 @@ export function DeploymentTargets({ targets, onUpgrade }: Props) {const lockCopy = (target: DeploymentTarget): string =>target.requiresTier === "enterprise"- ? t("editorAdmin.targets.lock.enterprise")- : t("editorAdmin.targets.lock.paid");+ ? t("portal.editorAdmin.targets.lock.enterprise")+ : t("portal.editorAdmin.targets.lock.paid");return (<div className="portal-editor__targets">@@ -61,14 +61,14 @@ export function DeploymentTargets({ targets, onUpgrade }: Props) {size="sm"pulse={target.state === "running"}>- {t(`editorAdmin.targets.state.${target.state}`)}+ {t(`portal.editorAdmin.targets.state.${target.state}`)}</StatusBadge></div>{target.state === "running" && (<p className="portal-editor__target-meta">v{target.runningVersion} ·{" "}- {t("editorAdmin.targets.instanceCount", {+ {t("portal.editorAdmin.targets.instanceCount", {count: target.instanceCount,})}</p>@@ -87,8 +87,8 @@ export function DeploymentTargets({ targets, onUpgrade }: Props) {disabled={tier === "enterprise"}>{target.requiresTier === "enterprise"- ? t("editorAdmin.targets.talkToSales")- : t("editorAdmin.targets.upgradePlan")}+ ? t("portal.editorAdmin.targets.talkToSales")+ : t("portal.editorAdmin.targets.upgradePlan")}</Button></div>) : (diff --git a/frontend/portal/src/components/editor-admin/InstanceHealthTable.stories.tsx b/frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/editor-admin/InstanceHealthTable.stories.tsxrename to frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.stories.tsxdiff --git a/frontend/portal/src/components/editor-admin/InstanceHealthTable.tsx b/frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.tsxsimilarity index 79%rename from frontend/portal/src/components/editor-admin/InstanceHealthTable.tsxrename to frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.tsxindex 5f845150be..4cf664288d 100644--- a/frontend/portal/src/components/editor-admin/InstanceHealthTable.tsx+++ b/frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.tsx@@ -6,7 +6,7 @@ import {StatusBadge,Table,type TableColumn,-} from "@shared/components";+} from "@app/ui";import {INSTANCE_STATUS_LABEL,INSTANCE_STATUS_TONE,@@ -31,7 +31,7 @@ export function InstanceHealthTable({ instances }: Props) {const cols: TableColumn<EditorInstance>[] = [{key: "host",- header: t("editorAdmin.health.columns.host"),+ header: t("portal.editorAdmin.health.columns.host"),render: (i) => (<div className="portal-editor__cell-stack"><span className="portal-editor__cell-strong">{i.host}</span>@@ -45,17 +45,17 @@ export function InstanceHealthTable({ instances }: Props) {},{key: "version",- header: t("editorAdmin.health.columns.version"),+ header: t("portal.editorAdmin.health.columns.version"),render: (i) => <code className="portal-editor__mono">{i.version}</code>,},{key: "region",- header: t("editorAdmin.health.columns.region"),+ header: t("portal.editorAdmin.health.columns.region"),render: (i) => <span className="portal-editor__mono">{i.region}</span>,},{key: "status",- header: t("editorAdmin.health.columns.status"),+ header: t("portal.editorAdmin.health.columns.status"),render: (i) => (<StatusBadgetone={INSTANCE_STATUS_TONE[i.status]}@@ -68,12 +68,12 @@ export function InstanceHealthTable({ instances }: Props) {},{key: "lastSeen",- header: t("editorAdmin.health.columns.lastSeen"),+ header: t("portal.editorAdmin.health.columns.lastSeen"),render: (i) => <span className="portal-editor__muted">{i.lastSeen}</span>,},{key: "activeUsers",- header: t("editorAdmin.health.columns.activeUsers"),+ header: t("portal.editorAdmin.health.columns.activeUsers"),align: "right",render: (i) => (<span className="portal-editor__mono">{i.activeUsers}</span>@@ -86,8 +86,8 @@ export function InstanceHealthTable({ instances }: Props) {{instances.length === 0 ? (<EmptyStatesize="compact"- title={t("editorAdmin.health.empty.title")}- description={t("editorAdmin.health.empty.description")}+ title={t("portal.editorAdmin.health.empty.title")}+ description={t("portal.editorAdmin.health.empty.description")}/>) : (<Table columns={cols} rows={instances} rowKey={(i) => i.id} />diff --git a/frontend/portal/src/components/editor-admin/OfflineActivationCard.stories.tsx b/frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/editor-admin/OfflineActivationCard.stories.tsxrename to frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.stories.tsxdiff --git a/frontend/portal/src/components/editor-admin/OfflineActivationCard.tsx b/frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.tsxsimilarity index 77%rename from frontend/portal/src/components/editor-admin/OfflineActivationCard.tsxrename to frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.tsxindex 3e9fef1998..302fe74812 100644--- a/frontend/portal/src/components/editor-admin/OfflineActivationCard.tsx+++ b/frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button, Card } from "@shared/components";+import { Banner, Button, Card } from "@app/ui";interface Props {/** Enterprise-only. When false the card renders an upgrade nudge. */@@ -34,13 +34,13 @@ export function OfflineActivationCard({ available, onUpgrade }: Props) {<div className="portal-editor__panel-head"><div><h3 className="portal-editor__panel-title">- {t("editorAdmin.offlineActivation.title")}+ {t("portal.editorAdmin.offlineActivation.title")}<span className="portal-editor__enterprise-tag">- {t("editorAdmin.offlineActivation.enterpriseTag")}+ {t("portal.editorAdmin.offlineActivation.enterpriseTag")}</span></h3><p className="portal-editor__panel-sub">- {t("editorAdmin.offlineActivation.subtitle")}+ {t("portal.editorAdmin.offlineActivation.subtitle")}</p></div></div>@@ -48,7 +48,7 @@ export function OfflineActivationCard({ available, onUpgrade }: Props) {{!available ? (<div className="portal-editor__lock"><p className="portal-editor__lock-copy">- {t("editorAdmin.offlineActivation.lockCopy")}+ {t("portal.editorAdmin.offlineActivation.lockCopy")}</p><Buttonvariant="outline"@@ -56,7 +56,7 @@ export function OfflineActivationCard({ available, onUpgrade }: Props) {size="sm"onClick={onUpgrade}>- {t("editorAdmin.offlineActivation.talkToSales")}+ {t("portal.editorAdmin.offlineActivation.talkToSales")}</Button></div>) : (@@ -64,9 +64,11 @@ export function OfflineActivationCard({ available, onUpgrade }: Props) {{generated && (<Bannertone="success"- title={t("editorAdmin.offlineActivation.readyBanner.title")}+ title={t(+ "portal.editorAdmin.offlineActivation.readyBanner.title",+ )}description={t(- "editorAdmin.offlineActivation.readyBanner.description",+ "portal.editorAdmin.offlineActivation.readyBanner.description",{ file: "activation-acme-3.2.1.stirlingpkg" },)}/>@@ -78,7 +80,7 @@ export function OfflineActivationCard({ available, onUpgrade }: Props) {loading={generating}onClick={generate}>- {t("editorAdmin.offlineActivation.generateButton")}+ {t("portal.editorAdmin.offlineActivation.generateButton")}</Button></div></>diff --git a/frontend/portal/src/components/editor-admin/PairingPanel.stories.tsx b/frontend/editor/src/portal/components/editor-admin/PairingPanel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/editor-admin/PairingPanel.stories.tsxrename to frontend/editor/src/portal/components/editor-admin/PairingPanel.stories.tsxdiff --git a/frontend/portal/src/components/editor-admin/PairingPanel.tsx b/frontend/editor/src/portal/components/editor-admin/PairingPanel.tsxsimilarity index 89%rename from frontend/portal/src/components/editor-admin/PairingPanel.tsxrename to frontend/editor/src/portal/components/editor-admin/PairingPanel.tsxindex 0b5b84f919..bde1f09aa8 100644--- a/frontend/portal/src/components/editor-admin/PairingPanel.tsx+++ b/frontend/editor/src/portal/components/editor-admin/PairingPanel.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Button, Card, Chip, CodeBlock } from "@shared/components";+import { Button, Card, Chip, CodeBlock } from "@app/ui";import type { PairingMethod, PairingOption } from "@portal/api/editorDeploy";const METHOD_ICON: Record<PairingMethod, string> = {@@ -55,7 +55,7 @@ export function PairingPanel({ pairings, onUpgrade }: Props) {{p.locked ? (<div className="portal-editor__lock"><p className="portal-editor__lock-copy">- {t("editorAdmin.pairing.lockCopy")}+ {t("portal.editorAdmin.pairing.lockCopy")}</p><Buttonsize="sm"@@ -63,7 +63,7 @@ export function PairingPanel({ pairings, onUpgrade }: Props) {accent="purple"onClick={onUpgrade}>- {t("editorAdmin.pairing.talkToSales")}+ {t("portal.editorAdmin.pairing.talkToSales")}</Button></div>) : (@@ -87,10 +87,10 @@ export function PairingPanel({ pairings, onUpgrade }: Props) {onClick={() => rotate(p.method)}>{rotated === p.method- ? t("editorAdmin.pairing.generated")+ ? t("portal.editorAdmin.pairing.generated"): p.method === "shortcode"- ? t("editorAdmin.pairing.generateNewCode")- : t("editorAdmin.pairing.rotate")}+ ? t("portal.editorAdmin.pairing.generateNewCode")+ : t("portal.editorAdmin.pairing.rotate")}</Button></div></>diff --git a/frontend/portal/src/components/icons.tsx b/frontend/editor/src/portal/components/icons.tsxsimilarity index 100%rename from frontend/portal/src/components/icons.tsxrename to frontend/editor/src/portal/components/icons.tsxdiff --git a/frontend/portal/src/components/infrastructure/ApiKeyCard.stories.tsx b/frontend/editor/src/portal/components/infrastructure/ApiKeyCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/ApiKeyCard.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/ApiKeyCard.stories.tsxdiff --git a/frontend/portal/src/components/infrastructure/ApiKeyCard.tsx b/frontend/editor/src/portal/components/infrastructure/ApiKeyCard.tsxsimilarity index 80%rename from frontend/portal/src/components/infrastructure/ApiKeyCard.tsxrename to frontend/editor/src/portal/components/infrastructure/ApiKeyCard.tsxindex 9a08f8e769..c1a1c8f247 100644--- a/frontend/portal/src/components/infrastructure/ApiKeyCard.tsx+++ b/frontend/editor/src/portal/components/infrastructure/ApiKeyCard.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Card, Chip, StatusBadge } from "@shared/components";+import { Card, Chip, StatusBadge } from "@app/ui";import type { ApiKey } from "@portal/api/infrastructure";import {KEY_LABEL,@@ -40,35 +40,35 @@ export function ApiKeyCard({ apiKey }: { apiKey: ApiKey }) {<div className="portal-infra__key-body"><dl className="portal-infra__kv"><div>- <dt>{t("infrastructure.apiKeys.card.created")}</dt>+ <dt>{t("portal.infrastructure.apiKeys.card.created")}</dt><dd>{apiKey.created}</dd></div><div>- <dt>{t("infrastructure.apiKeys.card.lastUsed")}</dt>+ <dt>{t("portal.infrastructure.apiKeys.card.lastUsed")}</dt><dd>{apiKey.lastUsed}</dd></div><div>- <dt>{t("infrastructure.apiKeys.card.rateLimit")}</dt>+ <dt>{t("portal.infrastructure.apiKeys.card.rateLimit")}</dt><dd className="portal-infra__mono">- {t("infrastructure.apiKeys.card.rateLimitValue", {+ {t("portal.infrastructure.apiKeys.card.rateLimitValue", {value: apiKey.rateLimit.toLocaleString(),})}</dd></div><div>- <dt>{t("infrastructure.apiKeys.card.usageToday")}</dt>+ <dt>{t("portal.infrastructure.apiKeys.card.usageToday")}</dt><dd className="portal-infra__mono">{apiKey.usageToday.toLocaleString()}</dd></div><div>- <dt>{t("infrastructure.apiKeys.card.usageMonth")}</dt>+ <dt>{t("portal.infrastructure.apiKeys.card.usageMonth")}</dt><dd className="portal-infra__mono">{apiKey.usageMonth.toLocaleString()}</dd></div><div>- <dt>{t("infrastructure.apiKeys.card.permissions")}</dt>+ <dt>{t("portal.infrastructure.apiKeys.card.permissions")}</dt><dd className="portal-infra__chips">{apiKey.permissions.map((p) => (<Chip key={p} tone="blue" size="sm">@@ -78,11 +78,11 @@ export function ApiKeyCard({ apiKey }: { apiKey: ApiKey }) {</dd></div><div className="portal-infra__kv-wide">- <dt>{t("infrastructure.apiKeys.card.allowedIps")}</dt>+ <dt>{t("portal.infrastructure.apiKeys.card.allowedIps")}</dt><dd className="portal-infra__chips">{apiKey.allowedIps.length === 0 ? (<span className="portal-infra__muted">- {t("infrastructure.apiKeys.card.anyIp")}+ {t("portal.infrastructure.apiKeys.card.anyIp")}</span>) : (apiKey.allowedIps.map((ip) => (diff --git a/frontend/portal/src/components/infrastructure/ApiKeysTab.stories.tsx b/frontend/editor/src/portal/components/infrastructure/ApiKeysTab.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/ApiKeysTab.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/ApiKeysTab.stories.tsxdiff --git a/frontend/portal/src/components/infrastructure/ApiKeysTab.tsx b/frontend/editor/src/portal/components/infrastructure/ApiKeysTab.tsxsimilarity index 82%rename from frontend/portal/src/components/infrastructure/ApiKeysTab.tsxrename to frontend/editor/src/portal/components/infrastructure/ApiKeysTab.tsxindex 8cb48a4128..a41dca0d20 100644--- a/frontend/portal/src/components/infrastructure/ApiKeysTab.tsx+++ b/frontend/editor/src/portal/components/infrastructure/ApiKeysTab.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Button, EmptyState, Skeleton } from "@shared/components";+import { Button, EmptyState, Skeleton } from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import { fetchApiKeys, type ApiKey } from "@portal/api/infrastructure";@@ -20,8 +20,8 @@ export function ApiKeysTab() {<div className="portal-infra__stack"><div className="portal-infra__bar"><SectionHeader- title={t("infrastructure.apiKeys.heading")}- sub={t("infrastructure.apiKeys.subheading")}+ title={t("portal.infrastructure.apiKeys.heading")}+ sub={t("portal.infrastructure.apiKeys.subheading")}/><Buttonvariant="gradient"@@ -29,7 +29,7 @@ export function ApiKeysTab() {onClick={() => setModalOpen(true)}leadingIcon={<span aria-hidden>+</span>}>- {t("infrastructure.apiKeys.createKey")}+ {t("portal.infrastructure.apiKeys.createKey")}</Button></div>@@ -44,8 +44,8 @@ export function ApiKeysTab() {{isEmpty && (<EmptyStatesize="compact"- title={t("infrastructure.apiKeys.empty.title")}- description={t("infrastructure.apiKeys.empty.description")}+ title={t("portal.infrastructure.apiKeys.empty.title")}+ description={t("portal.infrastructure.apiKeys.empty.description")}/>)}diff --git a/frontend/portal/src/components/infrastructure/AuditTab.stories.tsx b/frontend/editor/src/portal/components/infrastructure/AuditTab.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/AuditTab.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/AuditTab.stories.tsxdiff --git a/frontend/portal/src/components/infrastructure/AuditTab.tsx b/frontend/editor/src/portal/components/infrastructure/AuditTab.tsxsimilarity index 66%rename from frontend/portal/src/components/infrastructure/AuditTab.tsxrename to frontend/editor/src/portal/components/infrastructure/AuditTab.tsxindex 729d92c81b..6420950458 100644--- a/frontend/portal/src/components/infrastructure/AuditTab.tsx+++ b/frontend/editor/src/portal/components/infrastructure/AuditTab.tsx@@ -9,7 +9,7 @@ import {Tabs,type TabItem,type TableColumn,-} from "@shared/components";+} from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -35,23 +35,32 @@ export function AuditTab() {const [filter, setFilter] = useState<AuditFilter>("all");const auditFilters: TabItem<AuditFilter>[] = [- { key: "all", label: t("infrastructure.audit.filters.all") },- { key: "auth", label: t("infrastructure.audit.filters.auth") },- { key: "config", label: t("infrastructure.audit.filters.config") },- { key: "elevation", label: t("infrastructure.audit.filters.elevation") },- { key: "processing", label: t("infrastructure.audit.filters.processing") },- { key: "security", label: t("infrastructure.audit.filters.security") },+ { key: "all", label: t("portal.infrastructure.audit.filters.all") },+ { key: "auth", label: t("portal.infrastructure.audit.filters.auth") },+ { key: "config", label: t("portal.infrastructure.audit.filters.config") },+ {+ key: "elevation",+ label: t("portal.infrastructure.audit.filters.elevation"),+ },+ {+ key: "processing",+ label: t("portal.infrastructure.audit.filters.processing"),+ },+ {+ key: "security",+ label: t("portal.infrastructure.audit.filters.security"),+ },];const cols: TableColumn<AuditEvent>[] = [{key: "timestamp",- header: t("infrastructure.audit.columns.timestamp"),+ header: t("portal.infrastructure.audit.columns.timestamp"),render: (e) => <span className="portal-infra__mono">{e.timestamp}</span>,},{key: "event",- header: t("infrastructure.audit.columns.event"),+ header: t("portal.infrastructure.audit.columns.event"),render: (e) => (<div className="portal-infra__event"><StatusBadge tone={AUDIT_CAT_TONE[e.category]} size="sm">@@ -63,17 +72,17 @@ export function AuditTab() {},{key: "actor",- header: t("infrastructure.audit.columns.actor"),+ header: t("portal.infrastructure.audit.columns.actor"),render: (e) => <span className="portal-infra__mono">{e.actor}</span>,},{key: "target",- header: t("infrastructure.audit.columns.target"),+ header: t("portal.infrastructure.audit.columns.target"),render: (e) => e.target,},{key: "status",- header: t("infrastructure.audit.columns.status"),+ header: t("portal.infrastructure.audit.columns.status"),render: (e) => (<StatusBadge tone={AUDIT_TONE[e.status]} size="sm">{titleCase(e.status)}@@ -82,11 +91,13 @@ export function AuditTab() {},{key: "latency",- header: t("infrastructure.audit.columns.latency"),+ header: t("portal.infrastructure.audit.columns.latency"),align: "right",render: (e) => (<span className="portal-infra__mono">- {t("infrastructure.audit.latencyValue", { value: e.latencyMs })}+ {t("portal.infrastructure.audit.latencyValue", {+ value: e.latencyMs,+ })}</span>),},@@ -105,26 +116,26 @@ export function AuditTab() {return (<div className="portal-infra__stack"><SectionHeader- title={t("infrastructure.audit.heading")}- sub={t("infrastructure.audit.subheading")}+ title={t("portal.infrastructure.audit.heading")}+ sub={t("portal.infrastructure.audit.subheading")}/>{data && (<section className="portal-infra__metrics"><MetricCard- label={t("infrastructure.audit.metrics.totalEvents")}+ label={t("portal.infrastructure.audit.metrics.totalEvents")}value={data.summary.totalEvents.toLocaleString()}/><MetricCard- label={t("infrastructure.audit.metrics.processing")}+ label={t("portal.infrastructure.audit.metrics.processing")}value={data.summary.processing.toLocaleString()}/><MetricCard- label={t("infrastructure.audit.metrics.elevation")}+ label={t("portal.infrastructure.audit.metrics.elevation")}value={data.summary.elevation.toLocaleString()}/><MetricCard- label={t("infrastructure.audit.metrics.config")}+ label={t("portal.infrastructure.audit.metrics.config")}value={data.summary.config.toLocaleString()}/></section>@@ -135,7 +146,7 @@ export function AuditTab() {activeKey={filter}onChange={setFilter}variant="pill"- ariaLabel={t("infrastructure.audit.filterAriaLabel")}+ ariaLabel={t("portal.infrastructure.audit.filterAriaLabel")}/><Card padding="none">@@ -143,8 +154,8 @@ export function AuditTab() {{isEmpty && (<EmptyStatesize="compact"- title={t("infrastructure.audit.empty.title")}- description={t("infrastructure.audit.empty.description")}+ title={t("portal.infrastructure.audit.empty.title")}+ description={t("portal.infrastructure.audit.empty.description")}/>)}{!isEmpty && data && (@@ -152,7 +163,7 @@ export function AuditTab() {columns={cols}rows={rows}rowKey={(e) => e.id}- empty={t("infrastructure.audit.noEventsInCategory")}+ empty={t("portal.infrastructure.audit.noEventsInCategory")}/>)}</Card>diff --git a/frontend/portal/src/components/infrastructure/CreateKeyModal.stories.tsx b/frontend/editor/src/portal/components/infrastructure/CreateKeyModal.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/CreateKeyModal.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/CreateKeyModal.stories.tsxdiff --git a/frontend/portal/src/components/infrastructure/CreateKeyModal.tsx b/frontend/editor/src/portal/components/infrastructure/CreateKeyModal.tsxsimilarity index 75%rename from frontend/portal/src/components/infrastructure/CreateKeyModal.tsxrename to frontend/editor/src/portal/components/infrastructure/CreateKeyModal.tsxindex f2100594ad..7e4fc0b723 100644--- a/frontend/portal/src/components/infrastructure/CreateKeyModal.tsx+++ b/frontend/editor/src/portal/components/infrastructure/CreateKeyModal.tsx@@ -8,7 +8,7 @@ import {FormField,Input,Modal,-} from "@shared/components";+} from "@app/ui";import type { ApiKeyPermission } from "@portal/api/infrastructure";const PERMISSION_OPTS: ApiKeyPermission[] = ["Read", "Write", "Admin"];@@ -62,30 +62,30 @@ export function CreateKeyModal({width="md"title={created- ? t("infrastructure.createKey.titleCreated")- : t("infrastructure.createKey.title")+ ? t("portal.infrastructure.createKey.titleCreated")+ : t("portal.infrastructure.createKey.title")}subtitle={created- ? t("infrastructure.createKey.subtitleCreated")- : t("infrastructure.createKey.subtitle")+ ? t("portal.infrastructure.createKey.subtitleCreated")+ : t("portal.infrastructure.createKey.subtitle")}footer={created ? (<Button variant="gradient" onClick={close}>- {t("infrastructure.createKey.done")}+ {t("portal.infrastructure.createKey.done")}</Button>) : (<div className="portal-infra__modal-actions"><Button variant="ghost" onClick={close}>- {t("infrastructure.createKey.cancel")}+ {t("portal.infrastructure.createKey.cancel")}</Button><Buttonvariant="gradient"disabled={name.trim() === "" || perms.length === 0}onClick={createKey}>- {t("infrastructure.createKey.createKey")}+ {t("portal.infrastructure.createKey.createKey")}</Button></div>)@@ -96,27 +96,31 @@ export function CreateKeyModal({<CodeBlockcode={DEMO_NEW_KEY_SECRET}lang="bash"- caption={t("infrastructure.createKey.secretKeyCaption")}+ caption={t("portal.infrastructure.createKey.secretKeyCaption")}/><Bannertone="warning"- description={t("infrastructure.createKey.secretWarning")}+ description={t("portal.infrastructure.createKey.secretWarning")}/></div>) : (<div className="portal-infra__form"><FormField- label={t("infrastructure.createKey.keyNameLabel")}+ label={t("portal.infrastructure.createKey.keyNameLabel")}required><Inputvalue={name}onChange={(e) => setName(e.target.value)}- placeholder={t("infrastructure.createKey.keyNamePlaceholder")}+ placeholder={t(+ "portal.infrastructure.createKey.keyNamePlaceholder",+ )}/></FormField>- <FormField label={t("infrastructure.createKey.permissionsLabel")}>+ <FormField+ label={t("portal.infrastructure.createKey.permissionsLabel")}+ ><div className="portal-infra__perm-row">{PERMISSION_OPTS.map((p) => (<Checkbox@@ -130,8 +134,8 @@ export function CreateKeyModal({</FormField><FormField- label={t("infrastructure.createKey.ipAllowlistLabel")}- helperText={t("infrastructure.createKey.ipAllowlistHelper")}+ label={t("portal.infrastructure.createKey.ipAllowlistLabel")}+ helperText={t("portal.infrastructure.createKey.ipAllowlistHelper")}><Inputvalue={ips}diff --git a/frontend/portal/src/components/infrastructure/DeploymentsTab.stories.tsx b/frontend/editor/src/portal/components/infrastructure/DeploymentsTab.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/DeploymentsTab.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/DeploymentsTab.stories.tsxdiff --git a/frontend/portal/src/components/infrastructure/DeploymentsTab.tsx b/frontend/editor/src/portal/components/infrastructure/DeploymentsTab.tsxsimilarity index 72%rename from frontend/portal/src/components/infrastructure/DeploymentsTab.tsxrename to frontend/editor/src/portal/components/infrastructure/DeploymentsTab.tsxindex 41943cfe6f..9c2037b13f 100644--- a/frontend/portal/src/components/infrastructure/DeploymentsTab.tsx+++ b/frontend/editor/src/portal/components/infrastructure/DeploymentsTab.tsx@@ -7,7 +7,7 @@ import {StatusBadge,Table,type TableColumn,-} from "@shared/components";+} from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -39,7 +39,7 @@ export function DeploymentsTab() {const regionCols: TableColumn<DeploymentRegion>[] = [{key: "name",- header: t("infrastructure.deployments.regionColumns.region"),+ header: t("portal.infrastructure.deployments.regionColumns.region"),render: (r) => (<div className="portal-infra__cell-stack"><span className="portal-infra__cell-strong">{r.name}</span>@@ -49,17 +49,19 @@ export function DeploymentsTab() {},{key: "latency",- header: t("infrastructure.deployments.regionColumns.latency"),+ header: t("portal.infrastructure.deployments.regionColumns.latency"),align: "right",render: (r) => (<span className="portal-infra__mono">- {t("infrastructure.deployments.msValue", { value: r.latencyMs })}+ {t("portal.infrastructure.deployments.msValue", {+ value: r.latencyMs,+ })}</span>),},{key: "load",- header: t("infrastructure.deployments.regionColumns.load"),+ header: t("portal.infrastructure.deployments.regionColumns.load"),width: "9rem",render: (r) => (<div className="portal-infra__load">@@ -70,7 +72,7 @@ export function DeploymentsTab() {},{key: "status",- header: t("infrastructure.deployments.regionColumns.status"),+ header: t("portal.infrastructure.deployments.regionColumns.status"),render: (r) => (<StatusBadgetone={REGION_TONE[r.status]}@@ -83,14 +85,14 @@ export function DeploymentsTab() {},{key: "version",- header: t("infrastructure.deployments.regionColumns.version"),+ header: t("portal.infrastructure.deployments.regionColumns.version"),render: (r) => (<code className="portal-infra__cell-code">{r.version}</code>),},{key: "uptime",- header: t("infrastructure.deployments.regionColumns.uptime"),+ header: t("portal.infrastructure.deployments.regionColumns.uptime"),align: "right",render: (r) => (<span className="portal-infra__mono">{pct(r.uptime, 3)}</span>@@ -98,17 +100,17 @@ export function DeploymentsTab() {},{key: "instances",- header: t("infrastructure.deployments.regionColumns.instances"),+ header: t("portal.infrastructure.deployments.regionColumns.instances"),align: "right",render: (r) => <span className="portal-infra__mono">{r.instances}</span>,},{key: "throughput",- header: t("infrastructure.deployments.regionColumns.throughput"),+ header: t("portal.infrastructure.deployments.regionColumns.throughput"),align: "right",render: (r) => (<span className="portal-infra__mono">- {t("infrastructure.deployments.throughputValue", {+ {t("portal.infrastructure.deployments.throughputValue", {value: r.throughput.toLocaleString(),})}</span>@@ -116,11 +118,11 @@ export function DeploymentsTab() {},{key: "p99",- header: t("infrastructure.deployments.regionColumns.p99"),+ header: t("portal.infrastructure.deployments.regionColumns.p99"),align: "right",render: (r) => (<span className="portal-infra__mono">- {t("infrastructure.deployments.msValue", { value: r.p99Ms })}+ {t("portal.infrastructure.deployments.msValue", { value: r.p99Ms })}</span>),},@@ -129,14 +131,14 @@ export function DeploymentsTab() {const deployCols: TableColumn<RecentDeployment>[] = [{key: "version",- header: t("infrastructure.deployments.deployColumns.version"),+ header: t("portal.infrastructure.deployments.deployColumns.version"),render: (d) => (<code className="portal-infra__cell-code">{d.version}</code>),},{key: "environment",- header: t("infrastructure.deployments.deployColumns.environment"),+ header: t("portal.infrastructure.deployments.deployColumns.environment"),render: (d) => (<Chiptone={@@ -154,12 +156,12 @@ export function DeploymentsTab() {},{key: "product",- header: t("infrastructure.deployments.deployColumns.product"),+ header: t("portal.infrastructure.deployments.deployColumns.product"),render: (d) => d.product,},{key: "status",- header: t("infrastructure.deployments.deployColumns.status"),+ header: t("portal.infrastructure.deployments.deployColumns.status"),render: (d) => (<StatusBadge tone={DEPLOY_TONE[d.status]} size="sm">{DEPLOY_LABEL[d.status]}@@ -168,12 +170,12 @@ export function DeploymentsTab() {},{key: "deployedBy",- header: t("infrastructure.deployments.deployColumns.deployedBy"),+ header: t("portal.infrastructure.deployments.deployColumns.deployedBy"),render: (d) => <span className="portal-infra__mono">{d.deployedBy}</span>,},{key: "timestamp",- header: t("infrastructure.deployments.deployColumns.when"),+ header: t("portal.infrastructure.deployments.deployColumns.when"),align: "right",render: (d) => <span className="portal-infra__muted">{d.timestamp}</span>,},@@ -183,17 +185,17 @@ export function DeploymentsTab() {<div className="portal-infra__stack"><section><SectionHeader- title={t("infrastructure.deployments.regions.heading")}- sub={t("infrastructure.deployments.regions.subheading")}+ title={t("portal.infrastructure.deployments.regions.heading")}+ sub={t("portal.infrastructure.deployments.regions.subheading")}/><Card padding="none">{isLoading && <TableSkeleton rows={3} cols={9} />}{isEmpty && (<EmptyStatesize="compact"- title={t("infrastructure.deployments.regions.empty.title")}+ title={t("portal.infrastructure.deployments.regions.empty.title")}description={t(- "infrastructure.deployments.regions.empty.description",+ "portal.infrastructure.deployments.regions.empty.description",)}/>)}@@ -209,8 +211,8 @@ export function DeploymentsTab() {<section><SectionHeader- title={t("infrastructure.deployments.recent.heading")}- sub={t("infrastructure.deployments.recent.subheading")}+ title={t("portal.infrastructure.deployments.recent.heading")}+ sub={t("portal.infrastructure.deployments.recent.subheading")}/><Card padding="none">{isLoading && <TableSkeleton rows={4} cols={6} />}diff --git a/frontend/portal/src/components/infrastructure/ModelsTab.stories.tsx b/frontend/editor/src/portal/components/infrastructure/ModelsTab.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/ModelsTab.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/ModelsTab.stories.tsxdiff --git a/frontend/portal/src/components/infrastructure/ModelsTab.tsx b/frontend/editor/src/portal/components/infrastructure/ModelsTab.tsxsimilarity index 69%rename from frontend/portal/src/components/infrastructure/ModelsTab.tsxrename to frontend/editor/src/portal/components/infrastructure/ModelsTab.tsxindex 26d586a747..c6ba26d4b1 100644--- a/frontend/portal/src/components/infrastructure/ModelsTab.tsx+++ b/frontend/editor/src/portal/components/infrastructure/ModelsTab.tsx@@ -11,7 +11,7 @@ import {Table,type SelectOption,type TableColumn,-} from "@shared/components";+} from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -42,7 +42,7 @@ export function ModelsTab() {const modelCols: TableColumn<ModelEntry>[] = [{key: "name",- header: t("infrastructure.models.columns.model"),+ header: t("portal.infrastructure.models.columns.model"),render: (m) => (<div className="portal-infra__cell-stack"><span className="portal-infra__cell-strong">{m.name}</span>@@ -54,7 +54,7 @@ export function ModelsTab() {},{key: "type",- header: t("infrastructure.models.columns.type"),+ header: t("portal.infrastructure.models.columns.type"),render: (m) => (<Chip tone={MODEL_TYPE_TONE[m.type]} size="sm">{MODEL_TYPE_LABEL[m.type]}@@ -63,7 +63,7 @@ export function ModelsTab() {},{key: "status",- header: t("infrastructure.models.columns.status"),+ header: t("portal.infrastructure.models.columns.status"),render: (m) => (<StatusBadgetone={MODEL_TONE[m.status]}@@ -76,7 +76,7 @@ export function ModelsTab() {},{key: "load",- header: t("infrastructure.models.columns.load"),+ header: t("portal.infrastructure.models.columns.load"),width: "9rem",render: (m) => (<div className="portal-infra__load">@@ -87,17 +87,17 @@ export function ModelsTab() {},{key: "latency",- header: t("infrastructure.models.columns.latency"),+ header: t("portal.infrastructure.models.columns.latency"),align: "right",render: (m) => (<span className="portal-infra__mono">- {t("infrastructure.models.msValue", { value: m.latencyMs })}+ {t("portal.infrastructure.models.msValue", { value: m.latencyMs })}</span>),},{key: "cost",- header: t("infrastructure.models.columns.cost"),+ header: t("portal.infrastructure.models.columns.cost"),align: "right",render: (m) => (<span className="portal-infra__mono">@@ -107,7 +107,7 @@ export function ModelsTab() {},{key: "version",- header: t("infrastructure.models.columns.version"),+ header: t("portal.infrastructure.models.columns.version"),render: (m) => (<code className="portal-infra__cell-code">{m.version}</code>),@@ -129,13 +129,13 @@ export function ModelsTab() {const routingCols: TableColumn<RoutingRule>[] = [{key: "operation",- header: t("infrastructure.models.routingColumns.operation"),+ header: t("portal.infrastructure.models.routingColumns.operation"),render: (r) => (<div className="portal-infra__cell-stack"><span className="portal-infra__cell-strong">{r.operation}</span>{r.isDefault && (<Chip tone="blue" size="sm">- {t("infrastructure.models.routingColumns.default")}+ {t("portal.infrastructure.models.routingColumns.default")}</Chip>)}</div>@@ -143,21 +143,24 @@ export function ModelsTab() {},{key: "docType",- header: t("infrastructure.models.routingColumns.docType"),+ header: t("portal.infrastructure.models.routingColumns.docType"),render: (r) => r.docType,},{key: "modelId",- header: t("infrastructure.models.routingColumns.routedTo"),+ header: t("portal.infrastructure.models.routingColumns.routedTo"),width: "16rem",render: (r) => (<SelectinputSize="sm"options={modelOptions}defaultValue={r.modelId}- aria-label={t("infrastructure.models.routingColumns.modelForAria", {- operation: r.operation,- })}+ aria-label={t(+ "portal.infrastructure.models.routingColumns.modelForAria",+ {+ operation: r.operation,+ },+ )}/>),},@@ -166,28 +169,28 @@ export function ModelsTab() {return (<div className="portal-infra__stack"><SectionHeader- title={t("infrastructure.models.heading")}- sub={t("infrastructure.models.subheading")}+ title={t("portal.infrastructure.models.heading")}+ sub={t("portal.infrastructure.models.subheading")}/>{data && (<section className="portal-infra__metrics"><MetricCard- label={t("infrastructure.models.metrics.activeModels")}+ label={t("portal.infrastructure.models.metrics.activeModels")}value={data.summary.activeModels}/><MetricCard- label={t("infrastructure.models.metrics.avgLatency")}- value={t("infrastructure.models.msValue", {+ label={t("portal.infrastructure.models.metrics.avgLatency")}+ value={t("portal.infrastructure.models.msValue", {value: data.summary.avgLatencyMs,})}/><MetricCard- label={t("infrastructure.models.metrics.monthlySpend")}+ label={t("portal.infrastructure.models.metrics.monthlySpend")}value={data.summary.monthlySpend > 0? `$${data.summary.monthlySpend.toLocaleString()}`- : t("infrastructure.models.metrics.included")+ : t("portal.infrastructure.models.metrics.included")}/></section>@@ -195,11 +198,11 @@ export function ModelsTab() {<section><SectionHeader- title={t("infrastructure.models.catalogue.heading")}+ title={t("portal.infrastructure.models.catalogue.heading")}sub={tier === "enterprise"- ? t("infrastructure.models.catalogue.subEnterprise")- : t("infrastructure.models.catalogue.sub")+ ? t("portal.infrastructure.models.catalogue.subEnterprise")+ : t("portal.infrastructure.models.catalogue.sub")}/><Card padding="none">@@ -207,9 +210,9 @@ export function ModelsTab() {{isEmpty && (<EmptyStatesize="compact"- title={t("infrastructure.models.catalogue.empty.title")}+ title={t("portal.infrastructure.models.catalogue.empty.title")}description={t(- "infrastructure.models.catalogue.empty.description",+ "portal.infrastructure.models.catalogue.empty.description",)}/>)}@@ -226,18 +229,18 @@ export function ModelsTab() {{tier === "enterprise" && (<Bannertone="info"- title={t("infrastructure.models.byom.title")}- description={t("infrastructure.models.byom.description")}+ title={t("portal.infrastructure.models.byom.title")}+ description={t("portal.infrastructure.models.byom.description")}/>)}<section><SectionHeader- title={t("infrastructure.models.routing.heading")}+ title={t("portal.infrastructure.models.routing.heading")}sub={canRoute- ? t("infrastructure.models.routing.sub")- : t("infrastructure.models.routing.subLocked")+ ? t("portal.infrastructure.models.routing.sub")+ : t("portal.infrastructure.models.routing.subLocked")}/>{canRoute ? (@@ -248,16 +251,16 @@ export function ModelsTab() {columns={routingCols}rows={data.routing}rowKey={(r) => r.id}- empty={t("infrastructure.models.routing.empty")}+ empty={t("portal.infrastructure.models.routing.empty")}/>)}</Card>) : (<Bannertone="info"- title={t("infrastructure.models.routing.lockedBanner.title")}+ title={t("portal.infrastructure.models.routing.lockedBanner.title")}description={t(- "infrastructure.models.routing.lockedBanner.description",+ "portal.infrastructure.models.routing.lockedBanner.description",)}/>)}diff --git a/frontend/portal/src/components/infrastructure/SectionHeader.stories.tsx b/frontend/editor/src/portal/components/infrastructure/SectionHeader.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/SectionHeader.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/SectionHeader.stories.tsxdiff --git a/frontend/portal/src/components/infrastructure/SectionHeader.tsx b/frontend/editor/src/portal/components/infrastructure/SectionHeader.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/SectionHeader.tsxrename to frontend/editor/src/portal/components/infrastructure/SectionHeader.tsxdiff --git a/frontend/portal/src/components/infrastructure/SecurityTab.stories.tsx b/frontend/editor/src/portal/components/infrastructure/SecurityTab.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/SecurityTab.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/SecurityTab.stories.tsxdiff --git a/frontend/portal/src/components/infrastructure/SecurityTab.tsx b/frontend/editor/src/portal/components/infrastructure/SecurityTab.tsxsimilarity index 68%rename from frontend/portal/src/components/infrastructure/SecurityTab.tsxrename to frontend/editor/src/portal/components/infrastructure/SecurityTab.tsxindex 3f886e2f82..457313eb29 100644--- a/frontend/portal/src/components/infrastructure/SecurityTab.tsx+++ b/frontend/editor/src/portal/components/infrastructure/SecurityTab.tsx@@ -12,7 +12,7 @@ import {Table,type RadioOption,type TableColumn,-} from "@shared/components";+} from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -41,58 +41,62 @@ export function SecurityTab() {const ACCESS_OPTS: RadioOption<AccessPolicy>[] = [{value: "stirling",- label: t("infrastructure.security.access.stirling.label"),- description: t("infrastructure.security.access.stirling.description"),+ label: t("portal.infrastructure.security.access.stirling.label"),+ description: t(+ "portal.infrastructure.security.access.stirling.description",+ ),},{value: "byok",- label: t("infrastructure.security.access.byok.label"),- description: t("infrastructure.security.access.byok.description"),+ label: t("portal.infrastructure.security.access.byok.label"),+ description: t("portal.infrastructure.security.access.byok.description"),},{value: "hyok",- label: t("infrastructure.security.access.hyok.label"),- description: t("infrastructure.security.access.hyok.description"),+ label: t("portal.infrastructure.security.access.hyok.label"),+ description: t("portal.infrastructure.security.access.hyok.description"),},];const RESIDENCY_OPTS: RadioOption<DataResidency>[] = [{value: "us",- label: t("infrastructure.security.residency.us.label"),- description: t("infrastructure.security.residency.us.description"),+ label: t("portal.infrastructure.security.residency.us.label"),+ description: t("portal.infrastructure.security.residency.us.description"),},{value: "eu",- label: t("infrastructure.security.residency.eu.label"),- description: t("infrastructure.security.residency.eu.description"),+ label: t("portal.infrastructure.security.residency.eu.label"),+ description: t("portal.infrastructure.security.residency.eu.description"),},{value: "apac",- label: t("infrastructure.security.residency.apac.label"),- description: t("infrastructure.security.residency.apac.description"),+ label: t("portal.infrastructure.security.residency.apac.label"),+ description: t(+ "portal.infrastructure.security.residency.apac.description",+ ),},];const ipCols: TableColumn<SecurityConfig["ipAllowlist"][number]>[] = [{key: "label",- header: t("infrastructure.security.ipColumns.label"),+ header: t("portal.infrastructure.security.ipColumns.label"),render: (e) => e.label,},{key: "cidr",- header: t("infrastructure.security.ipColumns.cidr"),+ header: t("portal.infrastructure.security.ipColumns.cidr"),render: (e) => <code className="portal-infra__cell-code">{e.cidr}</code>,},{key: "addedBy",- header: t("infrastructure.security.ipColumns.addedBy"),+ header: t("portal.infrastructure.security.ipColumns.addedBy"),render: (e) => <span className="portal-infra__mono">{e.addedBy}</span>,},{key: "added",- header: t("infrastructure.security.ipColumns.added"),+ header: t("portal.infrastructure.security.ipColumns.added"),align: "right",render: (e) => <span className="portal-infra__muted">{e.added}</span>,},@@ -120,8 +124,8 @@ export function SecurityTab() {return (<EmptyStatesize="compact"- title={t("infrastructure.security.empty.title")}- description={t("infrastructure.security.empty.description")}+ title={t("portal.infrastructure.security.empty.title")}+ description={t("portal.infrastructure.security.empty.description")}/>);}@@ -131,8 +135,8 @@ export function SecurityTab() {<section className="portal-infra__split"><Card padding="loose"><SectionHeader- title={t("infrastructure.security.accessPolicy.heading")}- sub={t("infrastructure.security.accessPolicy.subheading")}+ title={t("portal.infrastructure.security.accessPolicy.heading")}+ sub={t("portal.infrastructure.security.accessPolicy.subheading")}/><RadioGroupname="access-policy"@@ -144,16 +148,18 @@ export function SecurityTab() {<Bannertone="success"className="portal-infra__banner"- title={t("infrastructure.security.hyokBanner.title")}- description={t("infrastructure.security.hyokBanner.description")}+ title={t("portal.infrastructure.security.hyokBanner.title")}+ description={t(+ "portal.infrastructure.security.hyokBanner.description",+ )}/>)}</Card><Card padding="loose"><SectionHeader- title={t("infrastructure.security.residencyHeader.heading")}- sub={t("infrastructure.security.residencyHeader.subheading")}+ title={t("portal.infrastructure.security.residencyHeader.heading")}+ sub={t("portal.infrastructure.security.residencyHeader.subheading")}/><RadioGroupname="data-residency"@@ -166,8 +172,8 @@ export function SecurityTab() {<section><SectionHeader- title={t("infrastructure.security.keyManagement.heading")}- sub={t("infrastructure.security.keyManagement.subheading")}+ title={t("portal.infrastructure.security.keyManagement.heading")}+ sub={t("portal.infrastructure.security.keyManagement.subheading")}/><Card padding="loose" className="portal-infra__keymgmt"><div className="portal-infra__keymgmt-head">@@ -192,13 +198,13 @@ export function SecurityTab() {// TODO(backend): POST /v1/infrastructure/security/keys/rotate}}>- {t("infrastructure.security.keyManagement.rotateKey")}+ {t("portal.infrastructure.security.keyManagement.rotateKey")}</Button></div><dl className="portal-infra__kv"><div className="portal-infra__kv-wide">- <dt>{t("infrastructure.security.keyManagement.keyId")}</dt>+ <dt>{t("portal.infrastructure.security.keyManagement.keyId")}</dt><dd><code className="portal-infra__cell-code">{data.keyManagement.keyId}@@ -206,18 +212,24 @@ export function SecurityTab() {</dd></div><div>- <dt>{t("infrastructure.security.keyManagement.algorithm")}</dt>+ <dt>+ {t("portal.infrastructure.security.keyManagement.algorithm")}+ </dt><dd className="portal-infra__mono">{data.keyManagement.algorithm}</dd></div><div>- <dt>{t("infrastructure.security.keyManagement.lastRotated")}</dt>+ <dt>+ {t("portal.infrastructure.security.keyManagement.lastRotated")}+ </dt><dd>{data.keyManagement.lastRotated}</dd></div><div><dt>- {t("infrastructure.security.keyManagement.rotationPolicy")}+ {t(+ "portal.infrastructure.security.keyManagement.rotationPolicy",+ )}</dt><dd>{data.keyManagement.rotationPolicy}</dd></div>@@ -227,9 +239,9 @@ export function SecurityTab() {<Bannertone="info"className="portal-infra__banner"- title={t("infrastructure.security.managedBanner.title")}+ title={t("portal.infrastructure.security.managedBanner.title")}description={t(- "infrastructure.security.managedBanner.description",+ "portal.infrastructure.security.managedBanner.description",)}/>)}@@ -238,8 +250,8 @@ export function SecurityTab() {<section><SectionHeader- title={t("infrastructure.security.compliance.heading")}- sub={t("infrastructure.security.compliance.subheading")}+ title={t("portal.infrastructure.security.compliance.heading")}+ sub={t("portal.infrastructure.security.compliance.subheading")}/><div className="portal-infra__certs">{data.certs.map((c) => (@@ -258,8 +270,8 @@ export function SecurityTab() {<section><SectionHeader- title={t("infrastructure.security.attestations.heading")}- sub={t("infrastructure.security.attestations.subheading")}+ title={t("portal.infrastructure.security.attestations.heading")}+ sub={t("portal.infrastructure.security.attestations.subheading")}/><div className="portal-infra__attestations">{data.attestations.map((a) => (@@ -285,11 +297,11 @@ export function SecurityTab() {// TODO(backend): GET /v1/infrastructure/security/reports/:idonClick={(e) => e.preventDefault()}>- {t("infrastructure.security.attestations.viewReport")}+ {t("portal.infrastructure.security.attestations.viewReport")}</a>) : (<span className="portal-infra__muted">- {t("infrastructure.security.attestations.noReport")}+ {t("portal.infrastructure.security.attestations.noReport")}</span>)}</Card>@@ -299,19 +311,21 @@ export function SecurityTab() {<section><SectionHeader- title={t("infrastructure.security.ipAllowlist.heading")}+ title={t("portal.infrastructure.security.ipAllowlist.heading")}sub={tier === "free"- ? t("infrastructure.security.ipAllowlist.subLocked")- : t("infrastructure.security.ipAllowlist.sub")+ ? t("portal.infrastructure.security.ipAllowlist.subLocked")+ : t("portal.infrastructure.security.ipAllowlist.sub")}/>{tier === "free" ? (<Bannertone="info"- title={t("infrastructure.security.ipAllowlist.lockedBanner.title")}+ title={t(+ "portal.infrastructure.security.ipAllowlist.lockedBanner.title",+ )}description={t(- "infrastructure.security.ipAllowlist.lockedBanner.description",+ "portal.infrastructure.security.ipAllowlist.lockedBanner.description",)}/>) : (@@ -320,7 +334,7 @@ export function SecurityTab() {columns={ipCols}rows={data.ipAllowlist}rowKey={(e) => e.id}- empty={t("infrastructure.security.ipAllowlist.empty")}+ empty={t("portal.infrastructure.security.ipAllowlist.empty")}/></Card>)}diff --git a/frontend/portal/src/components/infrastructure/StorageTab.stories.tsx b/frontend/editor/src/portal/components/infrastructure/StorageTab.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/infrastructure/StorageTab.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/StorageTab.stories.tsxdiff --git a/frontend/portal/src/components/infrastructure/StorageTab.tsx b/frontend/editor/src/portal/components/infrastructure/StorageTab.tsxsimilarity index 72%rename from frontend/portal/src/components/infrastructure/StorageTab.tsxrename to frontend/editor/src/portal/components/infrastructure/StorageTab.tsxindex 2ae584fdaa..5f944465d8 100644--- a/frontend/portal/src/components/infrastructure/StorageTab.tsx+++ b/frontend/editor/src/portal/components/infrastructure/StorageTab.tsx@@ -9,7 +9,7 @@ import {Select,Skeleton,StatusBadge,-} from "@shared/components";+} from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -42,23 +42,31 @@ export function StorageTab() {const RETENTION_OPTS = [{value: "30",- label: t("infrastructure.storage.retentionOption.days", { count: 30 }),+ label: t("portal.infrastructure.storage.retentionOption.days", {+ count: 30,+ }),},{value: "60",- label: t("infrastructure.storage.retentionOption.days", { count: 60 }),+ label: t("portal.infrastructure.storage.retentionOption.days", {+ count: 60,+ }),},{value: "90",- label: t("infrastructure.storage.retentionOption.days", { count: 90 }),+ label: t("portal.infrastructure.storage.retentionOption.days", {+ count: 90,+ }),},{value: "180",- label: t("infrastructure.storage.retentionOption.days", { count: 180 }),+ label: t("portal.infrastructure.storage.retentionOption.days", {+ count: 180,+ }),},{value: "never",- label: t("infrastructure.storage.retentionOption.never"),+ label: t("portal.infrastructure.storage.retentionOption.never"),},];@@ -79,8 +87,8 @@ export function StorageTab() {return (<EmptyStatesize="compact"- title={t("infrastructure.storage.empty.title")}- description={t("infrastructure.storage.empty.description")}+ title={t("portal.infrastructure.storage.empty.title")}+ description={t("portal.infrastructure.storage.empty.description")}/>);}@@ -92,25 +100,25 @@ export function StorageTab() {<div className="portal-infra__stack"><section><SectionHeader- title={t("infrastructure.storage.totalUsage.heading")}- sub={t("infrastructure.storage.totalUsage.subheading")}+ title={t("portal.infrastructure.storage.totalUsage.heading")}+ sub={t("portal.infrastructure.storage.totalUsage.subheading")}/><Card padding="loose"><div className="portal-infra__usage-head"><span className="portal-infra__usage-value">- {t("infrastructure.storage.gbValue", {+ {t("portal.infrastructure.storage.gbValue", {value: data.usedGb.toLocaleString(),})}<span className="portal-infra__muted">{" "}/{" "}- {t("infrastructure.storage.gbValue", {+ {t("portal.infrastructure.storage.gbValue", {value: data.quotaGb.toLocaleString(),})}</span></span><StatusBadge tone={overThreshold ? "danger" : "success"} size="sm">- {t("infrastructure.storage.percentUsed", {+ {t("portal.infrastructure.storage.percentUsed", {value: pct(usedFrac),})}</StatusBadge>@@ -123,7 +131,7 @@ export function StorageTab() {? "linear-gradient(90deg, var(--color-red), color-mix(in srgb, var(--color-red) 70%, white))": "linear-gradient(90deg, var(--color-green), color-mix(in srgb, var(--color-green) 70%, white))"}- label={t("infrastructure.storage.totalUsage.progressLabel")}+ label={t("portal.infrastructure.storage.totalUsage.progressLabel")}/></Card></section>@@ -131,8 +139,8 @@ export function StorageTab() {<section className="portal-infra__split"><Card padding="loose"><SectionHeader- title={t("infrastructure.storage.providers.heading")}- sub={t("infrastructure.storage.providers.subheading")}+ title={t("portal.infrastructure.storage.providers.heading")}+ sub={t("portal.infrastructure.storage.providers.subheading")}/><ul className="portal-infra__providers">{data.providers.map((p) => (@@ -147,17 +155,19 @@ export function StorageTab() {{p.connected ? (<span className="portal-infra__provider-meta"><span className="portal-infra__mono">- {t("infrastructure.storage.gbValue", { value: p.usedGb })}+ {t("portal.infrastructure.storage.gbValue", {+ value: p.usedGb,+ })}</span><StatusBadge tone="success" size="sm">- {t("infrastructure.storage.providers.connected")}+ {t("portal.infrastructure.storage.providers.connected")}</StatusBadge></span>) : (// TODO(backend): launch the provider OAuth/credential flow,// then POST /v1/infrastructure/storage/providers/{id}/connect<Button variant="outline" size="sm">- {t("infrastructure.storage.providers.connect")}+ {t("portal.infrastructure.storage.providers.connect")}</Button>)}</li>@@ -167,10 +177,12 @@ export function StorageTab() {<Card padding="loose"><SectionHeader- title={t("infrastructure.storage.retention.heading")}- sub={t("infrastructure.storage.retention.subheading")}+ title={t("portal.infrastructure.storage.retention.heading")}+ sub={t("portal.infrastructure.storage.retention.subheading")}/>- <FormField label={t("infrastructure.storage.retention.windowLabel")}>+ <FormField+ label={t("portal.infrastructure.storage.retention.windowLabel")}+ ><Selectoptions={RETENTION_OPTS}value={retentionValue}@@ -182,10 +194,10 @@ export function StorageTab() {<div className="portal-infra__lifecycle-stage is-active"><span className="portal-infra__lifecycle-dot" /><span className="portal-infra__lifecycle-label">- {t("infrastructure.storage.lifecycle.active")}+ {t("portal.infrastructure.storage.lifecycle.active")}</span><span className="portal-infra__muted">- {t("infrastructure.storage.lifecycle.activeRange", {+ {t("portal.infrastructure.storage.lifecycle.activeRange", {value: retentionValue === "never" ? "∞" : retentionValue,})}</span>@@ -196,10 +208,10 @@ export function StorageTab() {<div className="portal-infra__lifecycle-stage"><span className="portal-infra__lifecycle-dot" /><span className="portal-infra__lifecycle-label">- {t("infrastructure.storage.lifecycle.archived")}+ {t("portal.infrastructure.storage.lifecycle.archived")}</span><span className="portal-infra__muted">- {t("infrastructure.storage.lifecycle.coldStorage")}+ {t("portal.infrastructure.storage.lifecycle.coldStorage")}</span></div><span className="portal-infra__lifecycle-arrow" aria-hidden>@@ -208,12 +220,12 @@ export function StorageTab() {<div className="portal-infra__lifecycle-stage"><span className="portal-infra__lifecycle-dot" /><span className="portal-infra__lifecycle-label">- {t("infrastructure.storage.lifecycle.deleted")}+ {t("portal.infrastructure.storage.lifecycle.deleted")}</span><span className="portal-infra__muted">{retentionValue === "never"- ? t("infrastructure.storage.lifecycle.never")- : t("infrastructure.storage.lifecycle.purged")}+ ? t("portal.infrastructure.storage.lifecycle.never")+ : t("portal.infrastructure.storage.lifecycle.purged")}</span></div></div>diff --git a/frontend/portal/src/components/infrastructure/TableSkeleton.stories.tsx b/frontend/editor/src/portal/components/infrastructure/TableSkeleton.stories.tsxsimilarity index 93%rename from frontend/portal/src/components/infrastructure/TableSkeleton.stories.tsxrename to frontend/editor/src/portal/components/infrastructure/TableSkeleton.stories.tsxindex 61e817ab90..6fb71e69d6 100644--- a/frontend/portal/src/components/infrastructure/TableSkeleton.stories.tsx+++ b/frontend/editor/src/portal/components/infrastructure/TableSkeleton.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Card } from "@shared/components";+import { Card } from "@app/ui";import { TableSkeleton } from "@portal/components/infrastructure/TableSkeleton";import "@portal/views/Infrastructure.css";diff --git a/frontend/portal/src/components/infrastructure/TableSkeleton.tsx b/frontend/editor/src/portal/components/infrastructure/TableSkeleton.tsxsimilarity index 91%rename from frontend/portal/src/components/infrastructure/TableSkeleton.tsxrename to frontend/editor/src/portal/components/infrastructure/TableSkeleton.tsxindex 6414b2c5ff..6673733adc 100644--- a/frontend/portal/src/components/infrastructure/TableSkeleton.tsx+++ b/frontend/editor/src/portal/components/infrastructure/TableSkeleton.tsx@@ -1,4 +1,4 @@-import { Skeleton } from "@shared/components";+import { Skeleton } from "@app/ui";/** Placeholder grid shown inside a table card while rows are loading. */export function TableSkeleton({ rows, cols }: { rows: number; cols: number }) {diff --git a/frontend/portal/src/components/infrastructure/infraFormat.ts b/frontend/editor/src/portal/components/infrastructure/infraFormat.tssimilarity index 98%rename from frontend/portal/src/components/infrastructure/infraFormat.tsrename to frontend/editor/src/portal/components/infrastructure/infraFormat.tsindex 11d2c3c22c..43980b4dba 100644--- a/frontend/portal/src/components/infrastructure/infraFormat.ts+++ b/frontend/editor/src/portal/components/infrastructure/infraFormat.ts@@ -1,4 +1,4 @@-import type { ChipTone, StatusTone } from "@shared/components";+import type { ChipTone, StatusTone } from "@app/ui";import type {ApiKeyStatus,AttestationStatus,diff --git a/frontend/portal/src/components/pipelines/KpiStrip.tsx b/frontend/editor/src/portal/components/pipelines/KpiStrip.tsxsimilarity index 87%rename from frontend/portal/src/components/pipelines/KpiStrip.tsxrename to frontend/editor/src/portal/components/pipelines/KpiStrip.tsxindex 6acab35912..39bac738c9 100644--- a/frontend/portal/src/components/pipelines/KpiStrip.tsx+++ b/frontend/editor/src/portal/components/pipelines/KpiStrip.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { MetricCard, MetricStrip } from "@shared/components";+import { MetricCard, MetricStrip } from "@app/ui";import type { PipelinesOverviewResponse } from "@portal/api/pipelines";/**@@ -9,9 +9,9 @@ import type { PipelinesOverviewResponse } from "@portal/api/pipelines";* PolicyOverviewService.buildKpis: total, active, paused.*/const KPI_LABEL_KEYS = [- "pipelines.kpi.total",- "pipelines.kpi.active",- "pipelines.kpi.paused",+ "portal.pipelines.kpi.total",+ "portal.pipelines.kpi.active",+ "portal.pipelines.kpi.paused",] as const;interface KpiStripProps {diff --git a/frontend/portal/src/components/pipelines/PipelineComposer.tsx b/frontend/editor/src/portal/components/pipelines/PipelineComposer.tsxsimilarity index 88%rename from frontend/portal/src/components/pipelines/PipelineComposer.tsxrename to frontend/editor/src/portal/components/pipelines/PipelineComposer.tsxindex 94546704c7..1d35e8d0f7 100644--- a/frontend/portal/src/components/pipelines/PipelineComposer.tsx+++ b/frontend/editor/src/portal/components/pipelines/PipelineComposer.tsx@@ -10,7 +10,7 @@ import {Modal,RadioGroup,Select,-} from "@shared/components";+} from "@app/ui";import { errorMessage } from "@portal/api/http";import {fetchTriggers,@@ -211,10 +211,10 @@ export function PipelineComposer({name.trim() !== "" && scheduleCountValid && outputValid && !submitting;const triggerOptions = [- { value: MANUAL, label: t("pipelines.composer.triggerManual") },+ { value: MANUAL, label: t("portal.pipelines.composer.triggerManual") },...triggers.map((trigger) => ({value: trigger.type,- label: t(`pipelines.trigger.${trigger.type}`, {+ label: t(`portal.pipelines.trigger.${trigger.type}`, {defaultValue: trigger.type,}),disabled: !triggerAvailable(trigger),@@ -273,10 +273,10 @@ export function PipelineComposer({width="lg"title={isEdit- ? t("pipelines.composer.editTitle")- : t("pipelines.composer.title")+ ? t("portal.pipelines.composer.editTitle")+ : t("portal.pipelines.composer.title")}- subtitle={t("pipelines.composer.subtitle")}+ subtitle={t("portal.pipelines.composer.subtitle")}footer={<div className="portal-pipelines__composer-footer"><Button@@ -285,7 +285,7 @@ export function PipelineComposer({disabled={submitting}onClick={onClose}>- {t("pipelines.composer.cancel")}+ {t("portal.pipelines.composer.cancel")}</Button><Buttonsize="sm"@@ -294,17 +294,17 @@ export function PipelineComposer({disabled={!canSave}>{isEdit- ? t("pipelines.composer.save")- : t("pipelines.composer.create")}+ ? t("portal.pipelines.composer.save")+ : t("portal.pipelines.composer.create")}</Button></div>}><div className="portal-pipelines__composer">- <FormField label={t("pipelines.composer.name")} required>+ <FormField label={t("portal.pipelines.composer.name")} required><Inputvalue={name}- placeholder={t("pipelines.composer.namePlaceholder")}+ placeholder={t("portal.pipelines.composer.namePlaceholder")}onChange={(e) => setName(e.target.value)}/></FormField>@@ -312,15 +312,15 @@ export function PipelineComposer({{/* Sources */}<div className="portal-pipelines__composer-section"><span className="portal-pipelines__detail-heading">- {t("pipelines.composer.sources")}+ {t("portal.pipelines.composer.sources")}</span>{sourcesState.loading ? (<p className="portal-pipelines__muted">- {t("pipelines.composer.sourcesLoading")}+ {t("portal.pipelines.composer.sourcesLoading")}</p>) : availableSources.length === 0 ? (<p className="portal-pipelines__muted">- {t("pipelines.composer.noSources")}+ {t("portal.pipelines.composer.noSources")}</p>) : (<div className="portal-pipelines__source-list">@@ -336,7 +336,7 @@ export function PipelineComposer({)}<span className="portal-pipelines__detail-heading">- {t("pipelines.composer.trigger")}+ {t("portal.pipelines.composer.trigger")}</span><RadioGroup<string>name="pipeline-trigger"@@ -348,7 +348,7 @@ export function PipelineComposer({{triggerType === "schedule" && (<div className="portal-pipelines__schedule"><span className="portal-pipelines__muted">- {t("pipelines.composer.scheduleEvery")}+ {t("portal.pipelines.composer.scheduleEvery")}</span><InputinputSize="sm"@@ -367,7 +367,9 @@ export function PipelineComposer({}options={SCHEDULE_UNITS.map((unit) => ({value: unit,- label: t(`pipelines.composer.unit.${unit.toLowerCase()}`),+ label: t(+ `portal.pipelines.composer.unit.${unit.toLowerCase()}`,+ ),}))}/></div>@@ -377,11 +379,11 @@ export function PipelineComposer({{/* Operations */}<div className="portal-pipelines__composer-section"><span className="portal-pipelines__detail-heading">- {t("pipelines.composer.operations", { count: steps.length })}+ {t("portal.pipelines.composer.operations", { count: steps.length })}</span>{steps.length === 0 ? (<p className="portal-pipelines__muted">- {t("pipelines.composer.chainEmpty")}+ {t("portal.pipelines.composer.chainEmpty")}</p>) : (<ol className="portal-pipelines__chain">@@ -397,7 +399,7 @@ export function PipelineComposer({<div className="portal-pipelines__chain-actions"><buttontype="button"- aria-label={t("pipelines.composer.moveUp")}+ aria-label={t("portal.pipelines.composer.moveUp")}disabled={i === 0}onClick={() => moveStep(i, -1)}>@@ -405,7 +407,7 @@ export function PipelineComposer({</button><buttontype="button"- aria-label={t("pipelines.composer.moveDown")}+ aria-label={t("portal.pipelines.composer.moveDown")}disabled={i === steps.length - 1}onClick={() => moveStep(i, 1)}>@@ -413,7 +415,7 @@ export function PipelineComposer({</button><buttontype="button"- aria-label={t("pipelines.composer.removeStep")}+ aria-label={t("portal.pipelines.composer.removeStep")}onClick={() => removeStep(i)}>×@@ -440,7 +442,7 @@ export function PipelineComposer({{/* Output */}<div className="portal-pipelines__composer-section"><span className="portal-pipelines__detail-heading">- {t("pipelines.composer.output")}+ {t("portal.pipelines.composer.output")}</span><RadioGroup<OutputMode>name="pipeline-output"@@ -448,14 +450,14 @@ export function PipelineComposer({onChange={setOutputMode}direction="horizontal"options={[- { value: "inline", label: t("pipelines.output.inline") },- { value: "folder", label: t("pipelines.output.folder") },+ { value: "inline", label: t("portal.pipelines.output.inline") },+ { value: "folder", label: t("portal.pipelines.output.folder") },]}/>{outputMode === "folder" && (<FormField- label={t("pipelines.composer.directory")}- helperText={t("pipelines.composer.directoryHelp")}+ label={t("portal.pipelines.composer.directory")}+ helperText={t("portal.pipelines.composer.directoryHelp")}required><Inputdiff --git a/frontend/portal/src/components/pipelines/PipelineDetailCard.tsx b/frontend/editor/src/portal/components/pipelines/PipelineDetailCard.tsxsimilarity index 82%rename from frontend/portal/src/components/pipelines/PipelineDetailCard.tsxrename to frontend/editor/src/portal/components/pipelines/PipelineDetailCard.tsxindex 3e196a3dea..6bfc39d510 100644--- a/frontend/portal/src/components/pipelines/PipelineDetailCard.tsx+++ b/frontend/editor/src/portal/components/pipelines/PipelineDetailCard.tsx@@ -1,6 +1,6 @@import { useEffect, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button, Chip } from "@shared/components";+import { Banner, Button, Chip } from "@app/ui";import { errorMessage } from "@portal/api/http";import {fetchRun,@@ -71,7 +71,7 @@ export function PipelineDetailCard({const runIds = await triggerPipeline(pipeline.id);if (runIds.length === 0) {if (mounted.current)- setRunResult({ tone: "info", text: t("pipelines.run.empty") });+ setRunResult({ tone: "info", text: t("portal.pipelines.run.empty") });return;}const finals = await Promise.all(runIds.map((id) => awaitRun(id)));@@ -80,16 +80,16 @@ export function PipelineDetailCard({if (failed) {setRunResult({tone: "danger",- text: t("pipelines.run.failed", { error: failed.error ?? "" }),+ text: t("portal.pipelines.run.failed", { error: failed.error ?? "" }),});} else if (finals.every((r) => r?.status === "COMPLETED")) {setRunResult({tone: "success",- text: t("pipelines.run.completed", { count: finals.length }),+ text: t("portal.pipelines.run.completed", { count: finals.length }),});} else {// Still running when we stopped polling, or cancelled.- setRunResult({ tone: "info", text: t("pipelines.run.running") });+ setRunResult({ tone: "info", text: t("portal.pipelines.run.running") });}} catch (e) {if (mounted.current)@@ -108,11 +108,11 @@ export function PipelineDetailCard({<div><h2 className="portal-pipelines__expanded-title">{pipeline.name}</h2><span className="portal-pipelines__expanded-sub">- {t("pipelines.detail.subtitle", {- trigger: t(`pipelines.trigger.${pipeline.trigger}`, {+ {t("portal.pipelines.detail.subtitle", {+ trigger: t(`portal.pipelines.trigger.${pipeline.trigger}`, {defaultValue: pipeline.trigger,}),- status: t(`pipelines.status.${pipeline.status}`),+ status: t(`portal.pipelines.status.${pipeline.status}`),})}</span></div>@@ -120,7 +120,7 @@ export function PipelineDetailCard({type="button"className="portal-pipelines__expanded-close"onClick={onClose}- aria-label={t("pipelines.detail.closeAriaLabel")}+ aria-label={t("portal.pipelines.detail.closeAriaLabel")}>×</button>@@ -129,11 +129,11 @@ export function PipelineDetailCard({<div className="portal-pipelines__detail"><div className="portal-pipelines__detail-section"><span className="portal-pipelines__detail-heading">- {t("pipelines.detail.steps")}+ {t("portal.pipelines.detail.steps")}</span>{pipeline.steps.length === 0 ? (<p className="portal-pipelines__muted">- {t("pipelines.detail.noSteps")}+ {t("portal.pipelines.detail.noSteps")}</p>) : (<div className="portal-pipelines__chips">@@ -148,11 +148,11 @@ export function PipelineDetailCard({<div className="portal-pipelines__detail-section"><span className="portal-pipelines__detail-heading">- {t("pipelines.detail.sources")}+ {t("portal.pipelines.detail.sources")}</span>{pipeline.sources.length === 0 ? (<p className="portal-pipelines__muted">- {t("pipelines.detail.noSources")}+ {t("portal.pipelines.detail.noSources")}</p>) : (<div className="portal-pipelines__chips">@@ -167,10 +167,10 @@ export function PipelineDetailCard({<div className="portal-pipelines__detail-section"><span className="portal-pipelines__detail-heading">- {t("pipelines.detail.output")}+ {t("portal.pipelines.detail.output")}</span><Chip tone="purple" size="sm">- {t(`pipelines.output.${pipeline.output}`, {+ {t(`portal.pipelines.output.${pipeline.output}`, {defaultValue: pipeline.output,})}</Chip>@@ -183,21 +183,23 @@ export function PipelineDetailCard({<div className="portal-pipelines__detail-actions"><Button loading={running} disabled={busy} onClick={handleRun}>- {t("pipelines.detail.run")}+ {t("portal.pipelines.detail.run")}</Button><Buttonvariant="outline"disabled={busy || running}onClick={() => onEdit(pipeline)}>- {t("pipelines.detail.edit")}+ {t("portal.pipelines.detail.edit")}</Button><Buttonvariant="outline"disabled={busy || running}onClick={() => onTogglePause(pipeline)}>- {paused ? t("pipelines.detail.resume") : t("pipelines.detail.pause")}+ {paused+ ? t("portal.pipelines.detail.resume")+ : t("portal.pipelines.detail.pause")}</Button><Buttonaccent="red"@@ -205,7 +207,7 @@ export function PipelineDetailCard({disabled={busy || running}onClick={() => onDelete(pipeline)}>- {t("pipelines.detail.delete")}+ {t("portal.pipelines.detail.delete")}</Button></div></section>diff --git a/frontend/portal/src/components/pipelines/PipelinesTable.tsx b/frontend/editor/src/portal/components/pipelines/PipelinesTable.tsxsimilarity index 88%rename from frontend/portal/src/components/pipelines/PipelinesTable.tsxrename to frontend/editor/src/portal/components/pipelines/PipelinesTable.tsxindex 6ed9a32004..a39f1c5e95 100644--- a/frontend/portal/src/components/pipelines/PipelinesTable.tsx+++ b/frontend/editor/src/portal/components/pipelines/PipelinesTable.tsx@@ -6,7 +6,7 @@ import {type StatusTone,Table,type TableColumn,-} from "@shared/components";+} from "@app/ui";import type { PipelineStatus, PipelineView } from "@portal/api/pipelines";const STATUS_TONE: Record<PipelineStatus, StatusTone> = {@@ -31,7 +31,7 @@ export function PipelinesTable({() => [{key: "name",- header: t("pipelines.table.name"),+ header: t("portal.pipelines.table.name"),render: (p) => (<div className="portal-pipelines__name-cell"><span className="portal-pipelines__pipe-dot" aria-hidden>@@ -40,7 +40,7 @@ export function PipelinesTable({<div className="portal-pipelines__name-text"><strong>{p.name}</strong><Chip tone="neutral" size="sm">- {t(`pipelines.trigger.${p.trigger}`, {+ {t(`portal.pipelines.trigger.${p.trigger}`, {defaultValue: p.trigger,})}</Chip>@@ -50,20 +50,20 @@ export function PipelinesTable({},{key: "status",- header: t("pipelines.table.status"),+ header: t("portal.pipelines.table.status"),render: (p) => (<StatusBadgetone={STATUS_TONE[p.status]}size="sm"pulse={p.status === "active"}>- {t(`pipelines.status.${p.status}`)}+ {t(`portal.pipelines.status.${p.status}`)}</StatusBadge>),},{key: "steps",- header: t("pipelines.table.steps"),+ header: t("portal.pipelines.table.steps"),align: "right",render: (p) => (<span@@ -77,7 +77,7 @@ export function PipelinesTable({},{key: "sources",- header: t("pipelines.table.sources"),+ header: t("portal.pipelines.table.sources"),align: "right",render: (p) => (<spandiff --git a/frontend/portal/src/components/pipelines/pipelineOperations.ts b/frontend/editor/src/portal/components/pipelines/pipelineOperations.tssimilarity index 100%rename from frontend/portal/src/components/pipelines/pipelineOperations.tsrename to frontend/editor/src/portal/components/pipelines/pipelineOperations.tsdiff --git a/frontend/portal/src/components/policies/CatalogueSummary.stories.tsx b/frontend/editor/src/portal/components/policies/CatalogueSummary.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/policies/CatalogueSummary.stories.tsxrename to frontend/editor/src/portal/components/policies/CatalogueSummary.stories.tsxdiff --git a/frontend/portal/src/components/policies/CatalogueSummary.tsx b/frontend/editor/src/portal/components/policies/CatalogueSummary.tsxsimilarity index 61%rename from frontend/portal/src/components/policies/CatalogueSummary.tsxrename to frontend/editor/src/portal/components/policies/CatalogueSummary.tsxindex f4907ca091..aab40030d5 100644--- a/frontend/portal/src/components/policies/CatalogueSummary.tsx+++ b/frontend/editor/src/portal/components/policies/CatalogueSummary.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { MetricCard, MetricStrip } from "@shared/components";+import { MetricCard, MetricStrip } from "@app/ui";import type { PoliciesResponse } from "@portal/api/policies";interface CatalogueSummaryProps {@@ -18,24 +18,24 @@ export function CatalogueSummary({ data, loading }: CatalogueSummaryProps) {return (<MetricStrip><MetricCard- label={t("policies.summary.active.label")}+ label={t("portal.policies.summary.active.label")}value={s ? s.active : "—"}- description={t("policies.summary.active.description")}+ description={t("portal.policies.summary.active.description")}/><MetricCard- label={t("policies.summary.paused.label")}+ label={t("portal.policies.summary.paused.label")}value={s ? s.paused : "—"}- description={t("policies.summary.paused.description")}+ description={t("portal.policies.summary.paused.description")}/><MetricCard- label={t("policies.summary.categories.label")}+ label={t("portal.policies.summary.categories.label")}value={s ? s.categories : "—"}- description={t("policies.summary.categories.description")}+ description={t("portal.policies.summary.categories.description")}/><MetricCard- label={t("policies.summary.docsEnforced.label")}+ label={t("portal.policies.summary.docsEnforced.label")}value={s ? s.docsEnforced.toLocaleString() : "—"}- description={t("policies.summary.docsEnforced.description")}+ description={t("portal.policies.summary.docsEnforced.description")}/></MetricStrip>);diff --git a/frontend/portal/src/components/policies/PolicyCategoryCard.stories.tsx b/frontend/editor/src/portal/components/policies/PolicyCategoryCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/policies/PolicyCategoryCard.stories.tsxrename to frontend/editor/src/portal/components/policies/PolicyCategoryCard.stories.tsxdiff --git a/frontend/portal/src/components/policies/PolicyCategoryCard.tsx b/frontend/editor/src/portal/components/policies/PolicyCategoryCard.tsxsimilarity index 87%rename from frontend/portal/src/components/policies/PolicyCategoryCard.tsxrename to frontend/editor/src/portal/components/policies/PolicyCategoryCard.tsxindex 33466830d0..21aef179a1 100644--- a/frontend/portal/src/components/policies/PolicyCategoryCard.tsx+++ b/frontend/editor/src/portal/components/policies/PolicyCategoryCard.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, Chip, StatusBadge } from "@shared/components";+import { Card, Chip, StatusBadge } from "@app/ui";import type { CatalogueEntry } from "@portal/api/policies";import { policyIcon } from "@portal/components/policies/policyIcons";import "@portal/views/Policies.css";@@ -51,7 +51,7 @@ export function PolicyCategoryCard({ entry, onOpen }: PolicyCategoryCardProps) {{comingSoon ? (<Chip tone="neutral" size="sm">- {t("policies.card.comingSoon")}+ {t("portal.policies.card.comingSoon")}</Chip>) : policy ? (<div className="portal-policies__card-meta">@@ -60,7 +60,7 @@ export function PolicyCategoryCard({ entry, onOpen }: PolicyCategoryCardProps) {{policy.stats.enforced.toLocaleString()}</span><span className="portal-policies__card-statlbl">- {t("policies.stats.docsEnforced")}+ {t("portal.policies.stats.docsEnforced")}</span></span><span className="portal-policies__card-statpair">@@ -68,7 +68,7 @@ export function PolicyCategoryCard({ entry, onOpen }: PolicyCategoryCardProps) {{policy.stats.dataProcessed}</span><span className="portal-policies__card-statlbl">- {t("policies.stats.dataProcessed")}+ {t("portal.policies.stats.dataProcessed")}</span></span><StatusBadge@@ -77,13 +77,13 @@ export function PolicyCategoryCard({ entry, onOpen }: PolicyCategoryCardProps) {pulse={status !== "paused"}>{status === "paused"- ? t("policies.status.paused")- : t("policies.status.active")}+ ? t("portal.policies.status.paused")+ : t("portal.policies.status.active")}</StatusBadge></div>) : (<Chip tone="blue" size="sm">- {t("policies.card.notSetUp")}+ {t("portal.policies.card.notSetUp")}</Chip>)}</Card>diff --git a/frontend/portal/src/components/policies/PolicyDetailPanel.stories.tsx b/frontend/editor/src/portal/components/policies/PolicyDetailPanel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/policies/PolicyDetailPanel.stories.tsxrename to frontend/editor/src/portal/components/policies/PolicyDetailPanel.stories.tsxdiff --git a/frontend/portal/src/components/policies/PolicyDetailPanel.tsx b/frontend/editor/src/portal/components/policies/PolicyDetailPanel.tsxsimilarity index 85%rename from frontend/portal/src/components/policies/PolicyDetailPanel.tsxrename to frontend/editor/src/portal/components/policies/PolicyDetailPanel.tsxindex db4fd5bdf7..fd10a0a8d6 100644--- a/frontend/portal/src/components/policies/PolicyDetailPanel.tsx+++ b/frontend/editor/src/portal/components/policies/PolicyDetailPanel.tsx@@ -7,7 +7,7 @@ import {Modal,StatTile,StatusBadge,-} from "@shared/components";+} from "@app/ui";import {humanizeEndpoint,type DecoratedPolicy,@@ -90,8 +90,8 @@ function ActivityError({ message }: { message: string }) {onClick={() => setExpanded((v) => !v)}>{expanded- ? t("policies.detail.showLess")- : t("policies.detail.showMore")}+ ? t("portal.policies.detail.showLess")+ : t("portal.policies.detail.showMore")}</button></span>);@@ -117,15 +117,15 @@ export function PolicyDetailPanel({const hasEditorSource = state.sources.includes("editor");const trigger =state.runOn === "export"- ? t("policies.detail.onEveryExport")- : t("policies.detail.onEveryUpload");+ ? t("portal.policies.detail.onEveryExport")+ : t("portal.policies.detail.onEveryUpload");const outputLabel =state.outputMode === "new_file"- ? t("policies.detail.outputAsNewFile")- : t("policies.detail.outputAsNewVersion");+ ? t("portal.policies.detail.outputAsNewFile")+ : t("portal.policies.detail.outputAsNewVersion");function sourceLabel(id: string) {- if (id === "editor") return t("sources.types.editor.label");+ if (id === "editor") return t("portal.sources.types.editor.label");return id;}@@ -146,7 +146,7 @@ export function PolicyDetailPanel({disabled={busy}style={{ marginRight: "auto" }}>- {t("policies.detail.actions.delete")}+ {t("portal.policies.detail.actions.delete")}</Button>)}{onRun && (@@ -157,7 +157,7 @@ export function PolicyDetailPanel({disabled={busy}style={canDelete ? undefined : { marginRight: "auto" }}>- {t("policies.detail.actions.runNow")}+ {t("portal.policies.detail.actions.runNow")}</Button>)}<Button@@ -167,11 +167,11 @@ export function PolicyDetailPanel({disabled={busy}>{isPaused- ? t("policies.detail.actions.resume")- : t("policies.detail.actions.pause")}+ ? t("portal.policies.detail.actions.resume")+ : t("portal.policies.detail.actions.pause")}</Button><Button size="sm" onClick={onEdit} disabled={busy}>- {t("policies.detail.actions.editSettings")}+ {t("portal.policies.detail.actions.editSettings")}</Button></div>}@@ -179,7 +179,9 @@ export function PolicyDetailPanel({{/* Status + trigger strip */}<div className="portal-policies__detail-status"><StatusBadge tone={isPaused ? "warning" : "success"} pulse={!isPaused}>- {isPaused ? t("policies.status.paused") : t("policies.status.active")}+ {isPaused+ ? t("portal.policies.status.paused")+ : t("portal.policies.status.active")}</StatusBadge>{hasEditorSource && (<>@@ -198,7 +200,7 @@ export function PolicyDetailPanel({{/* Enforces — plain text, no pills */}<div className="portal-policies__detail-inline"><span className="portal-policies__detail-inline-label">- {t("policies.detail.enforces")}+ {t("portal.policies.detail.enforces")}</span><span className="portal-policies__detail-inline-value">{enforceItems@@ -224,7 +226,7 @@ export function PolicyDetailPanel({{state.sources.length > 0 && (<div className="portal-policies__detail-inline"><span className="portal-policies__detail-inline-label">- {t("policies.detail.sources")}+ {t("portal.policies.detail.sources")}</span><span className="portal-policies__detail-inline-value">{state.sources.map(sourceLabel).join(" · ")}@@ -233,7 +235,7 @@ export function PolicyDetailPanel({)}<h3 className="portal-policies__wizard-heading">- {t("policies.detail.recentActivity")}+ {t("portal.policies.detail.recentActivity")}</h3>{activity.length > 0 ? (@@ -281,7 +283,7 @@ export function PolicyDetailPanel({className="portal-policies__link portal-policies__activity-retry"onClick={() => onRetry(item)}>- {t("policies.detail.retry")}+ {t("portal.policies.detail.retry")}</button>)}</div>@@ -291,23 +293,23 @@ export function PolicyDetailPanel({<Card padding="default"><EmptyStatesize="compact"- title={t("policies.detail.emptyActivity.title")}- description={t("policies.detail.emptyActivity.description")}+ title={t("portal.policies.detail.emptyActivity.title")}+ description={t("portal.policies.detail.emptyActivity.description")}/></Card>)}<Card padding="none" className="portal-policies__detail-stats"><StatTile- label={t("policies.stats.docsEnforced")}+ label={t("portal.policies.stats.docsEnforced")}value={stats.enforced.toLocaleString()}/><StatTile- label={t("policies.stats.dataProcessed")}+ label={t("portal.policies.stats.dataProcessed")}value={stats.dataProcessed}/><StatTile- label={t("policies.stats.activeFor")}+ label={t("portal.policies.stats.activeFor")}value={stats.activeFor}/></Card>diff --git a/frontend/portal/src/components/policies/PolicyFieldRow.stories.tsx b/frontend/editor/src/portal/components/policies/PolicyFieldRow.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/policies/PolicyFieldRow.stories.tsxrename to frontend/editor/src/portal/components/policies/PolicyFieldRow.stories.tsxdiff --git a/frontend/portal/src/components/policies/PolicyFieldRow.tsx b/frontend/editor/src/portal/components/policies/PolicyFieldRow.tsxsimilarity index 95%rename from frontend/portal/src/components/policies/PolicyFieldRow.tsxrename to frontend/editor/src/portal/components/policies/PolicyFieldRow.tsxindex 7cfd295072..cb1893cc66 100644--- a/frontend/portal/src/components/policies/PolicyFieldRow.tsx+++ b/frontend/editor/src/portal/components/policies/PolicyFieldRow.tsx@@ -1,10 +1,4 @@-import {- Chip,- FormField,- Input,- Select,- ToggleSwitch,-} from "@shared/components";+import { Chip, FormField, Input, Select, ToggleSwitch } from "@app/ui";import type { PolicyField } from "@portal/api/policies";import "@portal/views/Policies.css";diff --git a/frontend/portal/src/components/policies/PolicySetupWizard.stories.tsx b/frontend/editor/src/portal/components/policies/PolicySetupWizard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/policies/PolicySetupWizard.stories.tsxrename to frontend/editor/src/portal/components/policies/PolicySetupWizard.stories.tsxdiff --git a/frontend/portal/src/components/policies/PolicySetupWizard.tsx b/frontend/editor/src/portal/components/policies/PolicySetupWizard.tsxsimilarity index 83%rename from frontend/portal/src/components/policies/PolicySetupWizard.tsxrename to frontend/editor/src/portal/components/policies/PolicySetupWizard.tsxindex 316f906e83..30b1d05403 100644--- a/frontend/portal/src/components/policies/PolicySetupWizard.tsx+++ b/frontend/editor/src/portal/components/policies/PolicySetupWizard.tsx@@ -11,7 +11,7 @@ import {Select,Tabs,ToggleSwitch,-} from "@shared/components";+} from "@app/ui";import {POLICY_DOC_TYPES,humanizeEndpoint,@@ -136,7 +136,7 @@ function PolicySetupWizardBody({);const editorSource = {id: "editor",- name: t("sources.types.editor.label"),+ name: t("portal.sources.types.editor.label"),type: "editor",status: "active" as const,referenceCount: 0,@@ -197,7 +197,7 @@ function PolicySetupWizardBody({async function submit() {if (submitting) return;if (enabledTools.length === 0) {- setError(t("policies.wizard.errors.noTools"));+ setError(t("portal.policies.wizard.errors.noTools"));setStep("workflow");return;}@@ -223,7 +223,7 @@ function PolicySetupWizardBody({});} catch {setSubmitting(false);- setError(t("policies.wizard.errors.saveFailed"));+ setError(t("portal.policies.wizard.errors.saveFailed"));}}@@ -240,15 +240,19 @@ function PolicySetupWizardBody({{policyIcon(category.icon)}</span>{isEdit- ? t("policies.wizard.title.edit", { category: category.label })- : t("policies.wizard.title.setUp", { category: category.label })}+ ? t("portal.policies.wizard.title.edit", {+ category: category.label,+ })+ : t("portal.policies.wizard.title.setUp", {+ category: category.label,+ })}</span>}subtitle={config.summary}footer={<div className="portal-policies__wizard-foot"><Button variant="ghost" size="sm" onClick={onClose}>- {t("policies.wizard.actions.cancel")}+ {t("portal.policies.wizard.actions.cancel")}</Button>{step === "workflow" ? (<Button@@ -256,7 +260,7 @@ function PolicySetupWizardBody({style={{ marginLeft: "auto" }}onClick={() => setStep("settings")}>- {t("policies.wizard.actions.continue")}+ {t("portal.policies.wizard.actions.continue")}</Button>) : (<>@@ -266,12 +270,12 @@ function PolicySetupWizardBody({style={{ marginLeft: "auto" }}onClick={() => setStep("workflow")}>- {t("policies.wizard.actions.back")}+ {t("portal.policies.wizard.actions.back")}</Button><Button size="sm" onClick={submit} loading={submitting}>{isEdit- ? t("policies.wizard.actions.saveChanges")- : t("policies.wizard.actions.enablePolicy")}+ ? t("portal.policies.wizard.actions.saveChanges")+ : t("portal.policies.wizard.actions.enablePolicy")}</Button></>)}@@ -280,12 +284,12 @@ function PolicySetupWizardBody({><Tabsvariant="underline"- ariaLabel={t("policies.wizard.tabs.ariaLabel")}+ ariaLabel={t("portal.policies.wizard.tabs.ariaLabel")}activeKey={step}onChange={(k) => setStep(k as Step)}items={[- { key: "workflow", label: t("policies.wizard.tabs.workflow") },- { key: "settings", label: t("policies.wizard.tabs.settings") },+ { key: "workflow", label: t("portal.policies.wizard.tabs.workflow") },+ { key: "settings", label: t("portal.policies.wizard.tabs.settings") },]}/>@@ -300,7 +304,7 @@ function PolicySetupWizardBody({{step === "workflow" && (<div className="portal-policies__wizard-section"><p className="portal-policies__wizard-desc">- {t("policies.wizard.workflow.description")}+ {t("portal.policies.wizard.workflow.description")}</p>{tools.map((tl) => (<Card key={tl.operation} padding="tight">@@ -328,7 +332,7 @@ function PolicySetupWizardBody({{config.fields.length > 0 && (<><h3 className="portal-policies__wizard-heading">- {t("policies.wizard.settings.heading")}+ {t("portal.policies.wizard.settings.heading")}</h3><div className="portal-policies__fields">{config.fields.map((field) => (@@ -346,18 +350,20 @@ function PolicySetupWizardBody({)}<h3 className="portal-policies__wizard-heading">- {t("policies.wizard.sources.heading")}+ {t("portal.policies.wizard.sources.heading")}</h3><div className="portal-policies__sources">{sourcesAsync.loading && !sourcesAsync.data ? (<p className="portal-policies__sources-loading">- {t("policies.wizard.sources.loading")}+ {t("portal.policies.wizard.sources.loading")}</p>) : availableSources.length === 1 ? (<Bannertone="neutral"- title={t("policies.wizard.sources.emptyTitle")}- description={t("policies.wizard.sources.emptyDescription")}+ title={t("portal.policies.wizard.sources.emptyTitle")}+ description={t(+ "portal.policies.wizard.sources.emptyDescription",+ )}/>) : (availableSources.map((src) => (@@ -389,21 +395,21 @@ function PolicySetupWizardBody({</div><h3 className="portal-policies__wizard-heading">- {t("policies.wizard.docTypes.heading")}+ {t("portal.policies.wizard.docTypes.heading")}</h3>{!docTypesEnabled ? (<Bannertone="neutral"- title={t("policies.wizard.docTypes.allTitle")}- description={t("policies.wizard.docTypes.allDescription")}+ title={t("portal.policies.wizard.docTypes.allTitle")}+ description={t("portal.policies.wizard.docTypes.allDescription")}/>) : (<Card padding="tight"><div className="portal-policies__doctypes-head"><span>{scopeTypes.length === 0- ? t("policies.wizard.docTypes.allTitle")- : t("policies.wizard.docTypes.selected", {+ ? t("portal.policies.wizard.docTypes.allTitle")+ : t("portal.policies.wizard.docTypes.selected", {count: scopeTypes.length,})}</span>@@ -413,8 +419,8 @@ function PolicySetupWizardBody({onClick={() => setScopeNarrow((v) => !v)}>{scopeNarrow- ? t("policies.wizard.docTypes.clear")- : t("policies.wizard.docTypes.narrow")}+ ? t("portal.policies.wizard.docTypes.clear")+ : t("portal.policies.wizard.docTypes.narrow")}</button></div>{scopeNarrow && (@@ -435,14 +441,14 @@ function PolicySetupWizardBody({)}<h3 className="portal-policies__wizard-heading">- {t("policies.wizard.output.heading")}+ {t("portal.policies.wizard.output.heading")}</h3><div className="portal-policies__fields">{sources.includes("editor") && (<><FormField- label={t("policies.wizard.output.runOn.label")}- helperText={t("policies.wizard.output.runOn.helper")}+ label={t("portal.policies.wizard.output.runOn.label")}+ helperText={t("portal.policies.wizard.output.runOn.helper")}><SelectinputSize="sm"@@ -453,16 +459,18 @@ function PolicySetupWizardBody({options={[{value: "upload",- label: t("policies.wizard.output.runOn.upload"),+ label: t("portal.policies.wizard.output.runOn.upload"),},{value: "export",- label: t("policies.wizard.output.runOn.export"),+ label: t("portal.policies.wizard.output.runOn.export"),},]}/></FormField>- <FormField label={t("policies.wizard.output.outputAs.label")}>+ <FormField+ label={t("portal.policies.wizard.output.outputAs.label")}+ ><SelectinputSize="sm"value={outputMode}@@ -480,17 +488,21 @@ function PolicySetupWizardBody({options={[{value: "new_version",- label: t("policies.wizard.output.outputAs.newVersion"),+ label: t(+ "portal.policies.wizard.output.outputAs.newVersion",+ ),},{value: "new_file",- label: t("policies.wizard.output.outputAs.newFile"),+ label: t(+ "portal.policies.wizard.output.outputAs.newFile",+ ),},]}/></FormField><FormField- label={t("policies.wizard.output.filenameRule.label")}+ label={t("portal.policies.wizard.output.filenameRule.label")}><div className="portal-policies__name-row"><Select@@ -505,13 +517,13 @@ function PolicySetupWizardBody({{value: "prefix",label: t(- "policies.wizard.output.filenameRule.prefix",+ "portal.policies.wizard.output.filenameRule.prefix",),},{value: "suffix",label: t(- "policies.wizard.output.filenameRule.suffix",+ "portal.policies.wizard.output.filenameRule.suffix",),},...(outputMode === "new_file"@@ -519,7 +531,7 @@ function PolicySetupWizardBody({{value: "auto-number",label: t(- "policies.wizard.output.filenameRule.autoNumber",+ "portal.policies.wizard.output.filenameRule.autoNumber",),},]@@ -531,7 +543,7 @@ function PolicySetupWizardBody({inputSize="sm"value={outputName}placeholder={t(- "policies.wizard.output.filenameRule.placeholder",+ "portal.policies.wizard.output.filenameRule.placeholder",)}onChange={(e) => setOutputName(e.target.value)}/>@@ -542,9 +554,11 @@ function PolicySetupWizardBody({)}{/* TODO: reviewer user-picker goes here */}<h4 className="portal-policies__wizard-subheading">- {t("policies.wizard.output.retries.heading")}+ {t("portal.policies.wizard.output.retries.heading")}</h4>- <FormField label={t("policies.wizard.output.retries.maxLabel")}>+ <FormField+ label={t("portal.policies.wizard.output.retries.maxLabel")}+ ><InputinputSize="sm"type="number"@@ -554,7 +568,9 @@ function PolicySetupWizardBody({}/></FormField>- <FormField label={t("policies.wizard.output.retries.delayLabel")}>+ <FormField+ label={t("portal.policies.wizard.output.retries.delayLabel")}+ ><InputinputSize="sm"type="number"diff --git a/frontend/portal/src/components/policies/policyIcons.ts b/frontend/editor/src/portal/components/policies/policyIcons.tssimilarity index 100%rename from frontend/portal/src/components/policies/policyIcons.tsrename to frontend/editor/src/portal/components/policies/policyIcons.tsdiff --git a/frontend/portal/src/components/policies/storyFixtures.ts b/frontend/editor/src/portal/components/policies/storyFixtures.tssimilarity index 93%rename from frontend/portal/src/components/policies/storyFixtures.tsrename to frontend/editor/src/portal/components/policies/storyFixtures.tsindex ddcdf46000..6a7f1a988e 100644--- a/frontend/portal/src/components/policies/storyFixtures.ts+++ b/frontend/editor/src/portal/components/policies/storyFixtures.ts@@ -3,8 +3,8 @@* policy built straight from the catalogue + seed data, so stories render the* same shapes the MSW handlers serve without standing up the whole API.*/-import { fromWirePolicy } from "@shared/policies/codec";-import { runsToActivity, runsToStats } from "@shared/policies/runs";+import { fromWirePolicy } from "@app/policies/codec";+import { runsToActivity, runsToStats } from "@app/policies/runs";import {POLICY_CATEGORIES,POLICY_CONFIG,diff --git a/frontend/portal/src/components/procurement/ActionModal.stories.tsx b/frontend/editor/src/portal/components/procurement/ActionModal.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/procurement/ActionModal.stories.tsxrename to frontend/editor/src/portal/components/procurement/ActionModal.stories.tsxdiff --git a/frontend/portal/src/components/procurement/ActionModal.tsx b/frontend/editor/src/portal/components/procurement/ActionModal.tsxsimilarity index 76%rename from frontend/portal/src/components/procurement/ActionModal.tsxrename to frontend/editor/src/portal/components/procurement/ActionModal.tsxindex 0026a93684..e05ee15fbf 100644--- a/frontend/portal/src/components/procurement/ActionModal.tsx+++ b/frontend/editor/src/portal/components/procurement/ActionModal.tsx@@ -1,7 +1,7 @@import { useRef, useState } from "react";import { useTranslation } from "react-i18next";import type { TFunction } from "i18next";-import { Button, Modal } from "@shared/components";+import { Button, Modal } from "@app/ui";import type { LedgerDoc, ProcurementResponse } from "@portal/api/procurement";import {payOnline,@@ -24,40 +24,40 @@ function actionCopy(doc: LedgerDoc, t: TFunction): ActionCopy {switch (doc.action) {case "sign":return {- title: t("procurement.modal.signTitle"),+ title: t("portal.procurement.modal.signTitle"),subtitle: doc.name,- body: t("procurement.modal.signBody"),- cta: t("procurement.modal.signCta"),+ body: t("portal.procurement.modal.signBody"),+ cta: t("portal.procurement.modal.signCta"),};case "pay":return {- title: t("procurement.modal.payTitle"),+ title: t("portal.procurement.modal.payTitle"),subtitle: doc.name,- body: t("procurement.modal.payBody"),- cta: t("procurement.modal.payCta"),+ body: t("portal.procurement.modal.payBody"),+ cta: t("portal.procurement.modal.payCta"),};case "upload":return {- title: t("procurement.modal.uploadTitle"),+ title: t("portal.procurement.modal.uploadTitle"),subtitle: doc.name,- body: t("procurement.modal.uploadBody"),- cta: t("procurement.modal.uploadCta"),+ body: t("portal.procurement.modal.uploadBody"),+ cta: t("portal.procurement.modal.uploadCta"),};case "request":return {- title: t("procurement.modal.requestTitle"),+ title: t("portal.procurement.modal.requestTitle"),subtitle: doc.name,body: doc.fee- ? t("procurement.modal.requestBodyPaid")- : t("procurement.modal.requestBodyFree"),- cta: `${t("procurement.modal.requestCta")}${fee}`,+ ? t("portal.procurement.modal.requestBodyPaid")+ : t("portal.procurement.modal.requestBodyFree"),+ cta: `${t("portal.procurement.modal.requestCta")}${fee}`,};default:return {- title: t("procurement.modal.downloadTitle"),+ title: t("portal.procurement.modal.downloadTitle"),subtitle: doc.name,- body: t("procurement.modal.downloadBody"),- cta: t("procurement.modal.downloadCta"),+ body: t("portal.procurement.modal.downloadBody"),+ cta: t("portal.procurement.modal.downloadCta"),};}}@@ -125,7 +125,7 @@ export function ActionModal({footer={<div className="portal-proc__modal-actions"><Button variant="ghost" onClick={onClose}>- {t("procurement.modal.cancel")}+ {t("portal.procurement.modal.cancel")}</Button><Buttonvariant="gradient"@@ -154,10 +154,10 @@ export function ActionModal({size="sm"onClick={() => fileRef.current?.click()}>- {t("procurement.modal.chooseFile")}+ {t("portal.procurement.modal.chooseFile")}</Button><span className="portal-proc__upload-name">- {file ? file.name : t("procurement.modal.noFile")}+ {file ? file.name : t("portal.procurement.modal.noFile")}</span></div>)}diff --git a/frontend/portal/src/components/procurement/DealJourney.stories.tsx b/frontend/editor/src/portal/components/procurement/DealJourney.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/procurement/DealJourney.stories.tsxrename to frontend/editor/src/portal/components/procurement/DealJourney.stories.tsxdiff --git a/frontend/portal/src/components/procurement/DealJourney.tsx b/frontend/editor/src/portal/components/procurement/DealJourney.tsxsimilarity index 83%rename from frontend/portal/src/components/procurement/DealJourney.tsxrename to frontend/editor/src/portal/components/procurement/DealJourney.tsxindex 837b9034a9..96588f3c21 100644--- a/frontend/portal/src/components/procurement/DealJourney.tsx+++ b/frontend/editor/src/portal/components/procurement/DealJourney.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Button, Card } from "@shared/components";+import { Button, Card } from "@app/ui";import type { Deal, DealStage, JourneyStep } from "@portal/api/procurement";import { StageStepper } from "@portal/components/procurement/StageStepper";@@ -31,18 +31,18 @@ export function DealJourney({<div className="portal-proc__journey-head"><div><span className="portal-proc__eyebrow">- {t("procurement.journey.eyebrow")}+ {t("portal.procurement.journey.eyebrow")}</span><h2 className="portal-proc__journey-title">- {t("procurement.journey.title")}+ {t("portal.procurement.journey.title")}</h2><p className="portal-proc__journey-sub">- {t("procurement.journey.subtitle")}+ {t("portal.procurement.journey.subtitle")}</p></div><div className="portal-proc__se"><span className="portal-proc__eyebrow">- {t("procurement.journey.engineerLabel")}+ {t("portal.procurement.journey.engineerLabel")}</span><span className="portal-proc__se-name">{engineer.name}</span><a@@ -61,10 +61,12 @@ export function DealJourney({{currentStage === "trial" && (<div className="portal-proc__trial"><span className="portal-proc__trial-title">- {t("procurement.journey.trialTitle")}+ {t("portal.procurement.journey.trialTitle")}</span><span className="portal-proc__trial-dim">- {t("procurement.journey.daysLeft", { count: trial.daysLeft })}+ {t("portal.procurement.journey.daysLeft", {+ count: trial.daysLeft,+ })}</span><span className="portal-proc__trial-key">{trial.key}</span></div>@@ -75,8 +77,8 @@ export function DealJourney({<span className="portal-proc__next-dot" data-live={isTerminal} /><span>{isTerminal- ? t("procurement.journey.live")- : t("procurement.journey.nextStep", {+ ? t("portal.procurement.journey.live")+ : t("portal.procurement.journey.nextStep", {action: currentStep?.gatingAction ?? "",})}</span>diff --git a/frontend/portal/src/components/procurement/DocRow.stories.tsx b/frontend/editor/src/portal/components/procurement/DocRow.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/procurement/DocRow.stories.tsxrename to frontend/editor/src/portal/components/procurement/DocRow.stories.tsxdiff --git a/frontend/portal/src/components/procurement/DocRow.tsx b/frontend/editor/src/portal/components/procurement/DocRow.tsxsimilarity index 92%rename from frontend/portal/src/components/procurement/DocRow.tsxrename to frontend/editor/src/portal/components/procurement/DocRow.tsxindex 1655c3744e..ff6d27716e 100644--- a/frontend/portal/src/components/procurement/DocRow.tsx+++ b/frontend/editor/src/portal/components/procurement/DocRow.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Button, Chip, StatusBadge } from "@shared/components";+import { Button, Chip, StatusBadge } from "@app/ui";import type { LedgerDoc } from "@portal/api/procurement";import {ACTION_LABEL_KEY,@@ -53,12 +53,12 @@ export function DocRow({<span className="portal-proc__doc-name">{doc.name}</span>{doc.optional && (<Chip tone="neutral" size="sm">- {t("procurement.docs.optional")}+ {t("portal.procurement.docs.optional")}</Chip>)}{doc.fee !== undefined && (<Chip tone="amber" size="sm">- {t("procurement.docs.paidAddon")}+ {t("portal.procurement.docs.paidAddon")}</Chip>)}</div>@@ -70,7 +70,7 @@ export function DocRow({size="sm">{locked- ? t("procurement.docs.upcoming")+ ? t("portal.procurement.docs.upcoming"): t(STATUS_LABEL_KEY[doc.status])}</StatusBadge>{actionable && (diff --git a/frontend/portal/src/components/procurement/DocumentLedger.stories.tsx b/frontend/editor/src/portal/components/procurement/DocumentLedger.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/procurement/DocumentLedger.stories.tsxrename to frontend/editor/src/portal/components/procurement/DocumentLedger.stories.tsxdiff --git a/frontend/portal/src/components/procurement/DocumentLedger.tsx b/frontend/editor/src/portal/components/procurement/DocumentLedger.tsxsimilarity index 89%rename from frontend/portal/src/components/procurement/DocumentLedger.tsxrename to frontend/editor/src/portal/components/procurement/DocumentLedger.tsxindex 5ef9bbc30f..69333325e8 100644--- a/frontend/portal/src/components/procurement/DocumentLedger.tsx+++ b/frontend/editor/src/portal/components/procurement/DocumentLedger.tsx@@ -1,6 +1,6 @@import { useEffect, useState } from "react";import { useTranslation } from "react-i18next";-import { Card, Chip, Collapsible } from "@shared/components";+import { Card, Chip, Collapsible } from "@app/ui";import type {DealStage,JourneyStep,@@ -42,10 +42,10 @@ export function DocumentLedger({<Card padding="none" className="portal-proc__docs"><div className="portal-proc__docs-head"><h2 className="portal-proc__docs-title">- {t("procurement.docs.title")}+ {t("portal.procurement.docs.title")}</h2><p className="portal-proc__docs-sub">- {t("procurement.docs.subtitle")}+ {t("portal.procurement.docs.subtitle")}</p></div>@@ -82,19 +82,19 @@ export function DocumentLedger({)}{cur && (<Chip tone="purple" size="sm">- {t("procurement.docs.here")}+ {t("portal.procurement.docs.here")}</Chip>)}{done && (<Chip tone="green" size="sm">- {t("procurement.docs.done")}+ {t("portal.procurement.docs.done")}</Chip>)}</>}aside={<span className="portal-proc__stage-count">- {t("procurement.docs.count", { count })}+ {t("portal.procurement.docs.count", { count })}</span>}>@@ -120,18 +120,18 @@ export function DocumentLedger({header={<span className="portal-proc__supporting-head"><span className="portal-proc__stage-label">- {t("procurement.docs.supportingTitle")}+ {t("portal.procurement.docs.supportingTitle")}</span><span className="portal-proc__supporting-sub">- {t("procurement.docs.supportingSubtitle")}+ {t("portal.procurement.docs.supportingSubtitle")}</span></span>}aside={<span className="portal-proc__acc-toggle-label">{supportingOpen- ? t("procurement.docs.hide")- : t("procurement.docs.show")}+ ? t("portal.procurement.docs.hide")+ : t("portal.procurement.docs.show")}</span>}>diff --git a/frontend/portal/src/components/procurement/LockedState.stories.tsx b/frontend/editor/src/portal/components/procurement/LockedState.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/procurement/LockedState.stories.tsxrename to frontend/editor/src/portal/components/procurement/LockedState.stories.tsxdiff --git a/frontend/portal/src/components/procurement/LockedState.tsx b/frontend/editor/src/portal/components/procurement/LockedState.tsxsimilarity index 76%rename from frontend/portal/src/components/procurement/LockedState.tsxrename to frontend/editor/src/portal/components/procurement/LockedState.tsxindex 72a5e8b129..90a61c987a 100644--- a/frontend/portal/src/components/procurement/LockedState.tsx+++ b/frontend/editor/src/portal/components/procurement/LockedState.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Button, Card, EmptyState } from "@shared/components";+import { Button, Card, EmptyState } from "@app/ui";import type { JourneyStep } from "@portal/api/procurement";import { StageStepper } from "@portal/components/procurement/StageStepper";@@ -19,12 +19,12 @@ export function LockedState({return (<div className="portal-proc__locked"><EmptyState- eyebrow={t("procurement.locked.eyebrow")}- title={t("procurement.locked.title")}- description={t("procurement.locked.description")}+ eyebrow={t("portal.procurement.locked.eyebrow")}+ title={t("portal.procurement.locked.title")}+ description={t("portal.procurement.locked.description")}actions={<Button variant="gradient" accent="purple" onClick={onTalkToSales}>- {t("procurement.locked.talkToSales")}+ {t("portal.procurement.locked.talkToSales")}</Button>}/>diff --git a/frontend/portal/src/components/procurement/StageStepper.stories.tsx b/frontend/editor/src/portal/components/procurement/StageStepper.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/procurement/StageStepper.stories.tsxrename to frontend/editor/src/portal/components/procurement/StageStepper.stories.tsxdiff --git a/frontend/portal/src/components/procurement/StageStepper.tsx b/frontend/editor/src/portal/components/procurement/StageStepper.tsxsimilarity index 100%rename from frontend/portal/src/components/procurement/StageStepper.tsxrename to frontend/editor/src/portal/components/procurement/StageStepper.tsxdiff --git a/frontend/portal/src/components/procurement/format.ts b/frontend/editor/src/portal/components/procurement/format.tssimilarity index 61%rename from frontend/portal/src/components/procurement/format.tsrename to frontend/editor/src/portal/components/procurement/format.tsindex c40d7921aa..bba7e63393 100644--- a/frontend/portal/src/components/procurement/format.ts+++ b/frontend/editor/src/portal/components/procurement/format.ts@@ -1,6 +1,6 @@/** Shared formatting + status/action mappings for the Procurement surface. */-import type { StatusTone } from "@shared/components";+import type { StatusTone } from "@app/ui";import type { DocAction, DocStatus } from "@portal/api/procurement";export const USD = new Intl.NumberFormat(undefined, {@@ -20,18 +20,18 @@ export const STATUS_TONE: Record<DocStatus, StatusTone> = {/** Document status → translation key for the short badge label. */export const STATUS_LABEL_KEY: Record<DocStatus, string> = {- available: "procurement.status.available",- action: "procurement.status.action",- pending: "procurement.status.pending",- request: "procurement.status.request",- complete: "procurement.status.complete",+ available: "portal.procurement.status.available",+ action: "portal.procurement.status.action",+ pending: "portal.procurement.status.pending",+ request: "portal.procurement.status.request",+ complete: "portal.procurement.status.complete",};/** Action → translation key for the button label (the fee, when present, is appended by the caller). */export const ACTION_LABEL_KEY: Record<DocAction, string> = {- download: "procurement.action.download",- sign: "procurement.action.sign",- pay: "procurement.action.pay",- upload: "procurement.action.upload",- request: "procurement.action.request",+ download: "portal.procurement.action.download",+ sign: "portal.procurement.action.sign",+ pay: "portal.procurement.action.pay",+ upload: "portal.procurement.action.upload",+ request: "portal.procurement.action.request",};diff --git a/frontend/portal/src/components/sources/ConnectWizard.stories.tsx b/frontend/editor/src/portal/components/sources/ConnectWizard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/sources/ConnectWizard.stories.tsxrename to frontend/editor/src/portal/components/sources/ConnectWizard.stories.tsxdiff --git a/frontend/portal/src/components/sources/ConnectWizard.test.tsx b/frontend/editor/src/portal/components/sources/ConnectWizard.test.tsxsimilarity index 89%rename from frontend/portal/src/components/sources/ConnectWizard.test.tsxrename to frontend/editor/src/portal/components/sources/ConnectWizard.test.tsxindex b16b6fcc66..c6874effcd 100644--- a/frontend/portal/src/components/sources/ConnectWizard.test.tsx+++ b/frontend/editor/src/portal/components/sources/ConnectWizard.test.tsx@@ -21,14 +21,14 @@ vi.mock("@portal/api/sources", () => ({/** Step through the folder-source flow: choose type -> configure -> review. */function stepToReview() {// Step 0: folder is the default-selected type. Continue.- fireEvent.click(screen.getByText("sources.wizard.continue"));+ fireEvent.click(screen.getByText("portal.sources.wizard.continue"));// Step 1: fill the required name + directory fields.const inputs = screen.getAllByRole("textbox");// First textbox is the name field, second is the folder's directory field.fireEvent.change(inputs[0], { target: { value: "Claims intake" } });fireEvent.change(inputs[1], { target: { value: "/data/incoming" } });- fireEvent.click(screen.getByText("sources.wizard.continue"));+ fireEvent.click(screen.getByText("portal.sources.wizard.continue"));}describe("ConnectWizard", () => {@@ -46,7 +46,7 @@ describe("ConnectWizard", () => {stepToReview();// Step 2: submit via the final "connect source" action.- fireEvent.click(screen.getByText("sources.actions.connectSource"));+ fireEvent.click(screen.getByText("portal.sources.actions.connectSource"));await waitFor(() => {expect(createSource).toHaveBeenCalledTimes(1);@@ -88,8 +88,8 @@ describe("ConnectWizard", () => {// Fix the stray quotes, continue to review, save.fireEvent.change(inputs[1], { target: { value: "/data/in" } });- fireEvent.click(screen.getByText("sources.wizard.continue"));- fireEvent.click(screen.getByText("sources.wizard.save"));+ fireEvent.click(screen.getByText("portal.sources.wizard.continue"));+ fireEvent.click(screen.getByText("portal.sources.wizard.save"));await waitFor(() => {expect(createSource).toHaveBeenCalledTimes(1);@@ -116,7 +116,7 @@ describe("ConnectWizard", () => {render(<ConnectWizard open onClose={vi.fn()} onCreated={vi.fn()} />);stepToReview();- fireEvent.click(screen.getByText("sources.actions.connectSource"));+ fireEvent.click(screen.getByText("portal.sources.actions.connectSource"));expect(await screen.findByText("Directory is not readable"),diff --git a/frontend/portal/src/components/sources/ConnectWizard.tsx b/frontend/editor/src/portal/components/sources/ConnectWizard.tsxsimilarity index 89%rename from frontend/portal/src/components/sources/ConnectWizard.tsxrename to frontend/editor/src/portal/components/sources/ConnectWizard.tsxindex e0c9a3a6b7..8683873316 100644--- a/frontend/portal/src/components/sources/ConnectWizard.tsx+++ b/frontend/editor/src/portal/components/sources/ConnectWizard.tsx@@ -8,7 +8,7 @@ import {Modal,Select,StatTile,-} from "@shared/components";+} from "@app/ui";import { errorMessage } from "@portal/api/http";import { createSource, type Source } from "@portal/api/sources";import {@@ -130,9 +130,9 @@ export function ConnectWizard({}const stepLabels: Record<StepId, string> = {- type: t("sources.wizard.steps.chooseType"),- configure: t("sources.wizard.steps.configure"),- review: t("sources.wizard.steps.review"),+ type: t("portal.sources.wizard.steps.chooseType"),+ configure: t("portal.sources.wizard.steps.configure"),+ review: t("portal.sources.wizard.steps.review"),};return (@@ -140,8 +140,12 @@ export function ConnectWizard({open={open}onClose={onClose}width="lg"- title={isEdit ? t("sources.wizard.editTitle") : t("sources.wizard.title")}- subtitle={t("sources.wizard.subtitle", {+ title={+ isEdit+ ? t("portal.sources.wizard.editTitle")+ : t("portal.sources.wizard.title")+ }+ subtitle={t("portal.sources.wizard.subtitle", {current: stepIndex + 1,total: steps.length,label: stepLabels[stepId],@@ -157,8 +161,8 @@ export function ConnectWizard({}>{stepIndex === 0- ? t("sources.wizard.cancel")- : t("sources.wizard.back")}+ ? t("portal.sources.wizard.cancel")+ : t("portal.sources.wizard.back")}</Button><Buttonsize="sm"@@ -168,10 +172,10 @@ export function ConnectWizard({trailingIcon={!isLast ? <span aria-hidden>→</span> : undefined}>{!isLast- ? t("sources.wizard.continue")+ ? t("portal.sources.wizard.continue"): isEdit- ? t("sources.wizard.save")- : t("sources.actions.connectSource")}+ ? t("portal.sources.wizard.save")+ : t("portal.sources.actions.connectSource")}</Button></div>}@@ -218,10 +222,10 @@ export function ConnectWizard({{stepId === "configure" && (<div className="portal-sources__wizard-body">- <FormField label={t("sources.wizard.name")} required>+ <FormField label={t("portal.sources.wizard.name")} required><Inputvalue={name}- placeholder={t("sources.wizard.namePlaceholder")}+ placeholder={t("portal.sources.wizard.namePlaceholder")}onChange={(e) => setName(e.target.value)}/></FormField>@@ -264,9 +268,12 @@ export function ConnectWizard({{stepId === "review" && (<div className="portal-sources__wizard-body"><div className="portal-sources__stat-grid">- <StatTile label={t("sources.wizard.name")} value={name || "—"} /><StatTile- label={t("sources.wizard.type")}+ label={t("portal.sources.wizard.name")}+ value={name || "—"}+ />+ <StatTile+ label={t("portal.sources.wizard.type")}value={t(type.labelKey)}/>{type.fields.map((field) => (diff --git a/frontend/portal/src/components/sources/KpiStrip.stories.tsx b/frontend/editor/src/portal/components/sources/KpiStrip.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/sources/KpiStrip.stories.tsxrename to frontend/editor/src/portal/components/sources/KpiStrip.stories.tsxdiff --git a/frontend/portal/src/components/sources/KpiStrip.tsx b/frontend/editor/src/portal/components/sources/KpiStrip.tsxsimilarity index 87%rename from frontend/portal/src/components/sources/KpiStrip.tsxrename to frontend/editor/src/portal/components/sources/KpiStrip.tsxindex 8bdc511b57..16e8f547f3 100644--- a/frontend/portal/src/components/sources/KpiStrip.tsx+++ b/frontend/editor/src/portal/components/sources/KpiStrip.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { MetricCard, MetricStrip } from "@shared/components";+import { MetricCard, MetricStrip } from "@app/ui";import type { SourcesResponse } from "@portal/api/sources";/**@@ -9,9 +9,9 @@ import type { SourcesResponse } from "@portal/api/sources";* Order matches SourceOverviewService.buildKpis: total, in-use, unused.*/const KPI_LABEL_KEYS = [- "sources.kpi.total",- "sources.kpi.inUse",- "sources.kpi.unused",+ "portal.sources.kpi.total",+ "portal.sources.kpi.inUse",+ "portal.sources.kpi.unused",] as const;interface KpiStripProps {diff --git a/frontend/portal/src/components/sources/SourceDetailCard.stories.tsx b/frontend/editor/src/portal/components/sources/SourceDetailCard.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/sources/SourceDetailCard.stories.tsxrename to frontend/editor/src/portal/components/sources/SourceDetailCard.stories.tsxdiff --git a/frontend/portal/src/components/sources/SourceDetailCard.tsx b/frontend/editor/src/portal/components/sources/SourceDetailCard.tsxsimilarity index 84%rename from frontend/portal/src/components/sources/SourceDetailCard.tsxrename to frontend/editor/src/portal/components/sources/SourceDetailCard.tsxindex b32f1ec36b..e1ab6a3503 100644--- a/frontend/portal/src/components/sources/SourceDetailCard.tsx+++ b/frontend/editor/src/portal/components/sources/SourceDetailCard.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Button } from "@shared/components";+import { Button } from "@app/ui";import type { SourceView } from "@portal/api/sources";import { SourceDetailPanel } from "@portal/components/sources/SourceDetailPanel";import { sourceTypeMeta } from "@portal/components/sources/sourceTypes";@@ -41,9 +41,9 @@ export function SourceDetailCard({<div><h2 className="portal-sources__expanded-title">{source.name}</h2><span className="portal-sources__expanded-sub">- {t("sources.detail.subtitle", {+ {t("portal.sources.detail.subtitle", {type: t(meta.labelKey),- status: t(`sources.status.${source.status}`),+ status: t(`portal.sources.status.${source.status}`),})}</span></div>@@ -51,7 +51,7 @@ export function SourceDetailCard({type="button"className="portal-sources__expanded-close"onClick={onClose}- aria-label={t("sources.detail.closeAriaLabel")}+ aria-label={t("portal.sources.detail.closeAriaLabel")}>×</button>@@ -65,14 +65,16 @@ export function SourceDetailCard({disabled={busy}onClick={() => onEdit(source)}>- {t("sources.detail.edit")}+ {t("portal.sources.detail.edit")}</Button><Buttonvariant="outline"disabled={busy}onClick={() => onTogglePause(source)}>- {paused ? t("sources.detail.resume") : t("sources.detail.pause")}+ {paused+ ? t("portal.sources.detail.resume")+ : t("portal.sources.detail.pause")}</Button><Buttonaccent="red"@@ -80,7 +82,7 @@ export function SourceDetailCard({disabled={busy}onClick={() => onDelete(source)}>- {t("sources.detail.delete")}+ {t("portal.sources.detail.delete")}</Button></div></section>diff --git a/frontend/portal/src/components/sources/SourceDetailPanel.stories.tsx b/frontend/editor/src/portal/components/sources/SourceDetailPanel.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/sources/SourceDetailPanel.stories.tsxrename to frontend/editor/src/portal/components/sources/SourceDetailPanel.stories.tsxdiff --git a/frontend/portal/src/components/sources/SourceDetailPanel.tsx b/frontend/editor/src/portal/components/sources/SourceDetailPanel.tsxsimilarity index 83%rename from frontend/portal/src/components/sources/SourceDetailPanel.tsxrename to frontend/editor/src/portal/components/sources/SourceDetailPanel.tsxindex 92701a1077..836d72ba81 100644--- a/frontend/portal/src/components/sources/SourceDetailPanel.tsx+++ b/frontend/editor/src/portal/components/sources/SourceDetailPanel.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Chip, StatTile } from "@shared/components";+import { Chip, StatTile } from "@app/ui";import type { SourceView } from "@portal/api/sources";import { Sparkline } from "@portal/components/sources/Sparkline";import "@portal/views/Sources.css";@@ -32,11 +32,11 @@ export function SourceDetailPanel({<div className="portal-sources__detail-section"><span className="portal-sources__detail-heading">- {t("sources.detail.usedBy")}+ {t("portal.sources.detail.usedBy")}</span>{source.referencingPolicies.length === 0 ? (<p className="portal-sources__muted">- {t("sources.detail.notReferenced")}+ {t("portal.sources.detail.notReferenced")}</p>) : (<div className="portal-sources__chips">@@ -51,26 +51,26 @@ export function SourceDetailPanel({<div className="portal-sources__detail-section"><span className="portal-sources__detail-heading">- {t("sources.detail.documents")}+ {t("portal.sources.detail.documents")}</span><div className="portal-sources__stat-grid"><StatTile- label={t("sources.detail.docsTotal")}+ label={t("portal.sources.detail.docsTotal")}value={source.docsTotal.toLocaleString()}/><StatTile- label={t("sources.detail.docs24h")}+ label={t("portal.sources.detail.docs24h")}value={source.docs24h.toLocaleString()}/><StatTile- label={t("sources.detail.docs30d")}+ label={t("portal.sources.detail.docs30d")}value={source.docs30d.toLocaleString()}/></div>{docSeries.length > 0 && (<Sparklinedata={docSeries}- ariaLabel={t("sources.detail.docsTrend")}+ ariaLabel={t("portal.sources.detail.docsTrend")}/>)}</div>diff --git a/frontend/portal/src/components/sources/SourcesTable.stories.tsx b/frontend/editor/src/portal/components/sources/SourcesTable.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/sources/SourcesTable.stories.tsxrename to frontend/editor/src/portal/components/sources/SourcesTable.stories.tsxdiff --git a/frontend/portal/src/components/sources/SourcesTable.tsx b/frontend/editor/src/portal/components/sources/SourcesTable.tsxsimilarity index 92%rename from frontend/portal/src/components/sources/SourcesTable.tsxrename to frontend/editor/src/portal/components/sources/SourcesTable.tsxindex 0f6c23589c..45ca391575 100644--- a/frontend/portal/src/components/sources/SourcesTable.tsx+++ b/frontend/editor/src/portal/components/sources/SourcesTable.tsx@@ -6,7 +6,7 @@ import {type StatusTone,Table,type TableColumn,-} from "@shared/components";+} from "@app/ui";import type { SourceStatus, SourceView } from "@portal/api/sources";import { sourceTypeMeta } from "@portal/components/sources/sourceTypes";import "@portal/views/Sources.css";@@ -34,7 +34,7 @@ export function SourcesTable({() => [{key: "name",- header: t("sources.table.source"),+ header: t("portal.sources.table.source"),render: (s) => {const meta = sourceTypeMeta(s.type);return (@@ -57,20 +57,20 @@ export function SourcesTable({},{key: "status",- header: t("sources.table.status"),+ header: t("portal.sources.table.status"),render: (s) => (<StatusBadgetone={STATUS_TONE[s.status]}size="sm"pulse={s.status === "active"}>- {t(`sources.status.${s.status}`)}+ {t(`portal.sources.status.${s.status}`)}</StatusBadge>),},{key: "referenceCount",- header: t("sources.table.usedBy"),+ header: t("portal.sources.table.usedBy"),align: "right",render: (s) => (<spandiff --git a/frontend/portal/src/components/sources/Sparkline.test.tsx b/frontend/editor/src/portal/components/sources/Sparkline.test.tsxsimilarity index 100%rename from frontend/portal/src/components/sources/Sparkline.test.tsxrename to frontend/editor/src/portal/components/sources/Sparkline.test.tsxdiff --git a/frontend/portal/src/components/sources/Sparkline.tsx b/frontend/editor/src/portal/components/sources/Sparkline.tsxsimilarity index 100%rename from frontend/portal/src/components/sources/Sparkline.tsxrename to frontend/editor/src/portal/components/sources/Sparkline.tsxdiff --git a/frontend/portal/src/components/sources/sourceTypes.ts b/frontend/editor/src/portal/components/sources/sourceTypes.tssimilarity index 69%rename from frontend/portal/src/components/sources/sourceTypes.tsrename to frontend/editor/src/portal/components/sources/sourceTypes.tsindex 6b5c41ddeb..59fb91fcd2 100644--- a/frontend/portal/src/components/sources/sourceTypes.ts+++ b/frontend/editor/src/portal/components/sources/sourceTypes.ts@@ -1,4 +1,4 @@-import type { ChipTone } from "@shared/components";+import type { ChipTone } from "@app/ui";/*** Per-type presentation + create-form metadata. User-facing copy is stored as@@ -16,12 +16,20 @@ export interface SourceTypeMeta {}const SOURCE_TYPE_META: Record<string, SourceTypeMeta> = {- folder: { labelKey: "sources.types.folder.label", icon: "⛁", tone: "blue" },- editor: { labelKey: "sources.types.editor.label", icon: "✏", tone: "green" },+ folder: {+ labelKey: "portal.sources.types.folder.label",+ icon: "⛁",+ tone: "blue",+ },+ editor: {+ labelKey: "portal.sources.types.editor.label",+ icon: "✏",+ tone: "green",+ },};const UNKNOWN_TYPE_META: SourceTypeMeta = {- labelKey: "sources.types.unknown.label",+ labelKey: "portal.sources.types.unknown.label",icon: "◇",tone: "neutral",};@@ -53,30 +61,33 @@ export interface CreatableSourceType {export const CREATABLE_SOURCE_TYPES: CreatableSourceType[] = [{type: "folder",- labelKey: "sources.types.folder.label",- descriptionKey: "sources.types.folder.description",+ labelKey: "portal.sources.types.folder.label",+ descriptionKey: "portal.sources.types.folder.description",fields: [{key: "directory",- labelKey: "sources.types.folder.fields.directory.label",+ labelKey: "portal.sources.types.folder.fields.directory.label",control: "text",required: true,- placeholderKey: "sources.types.folder.fields.directory.placeholder",- helperTextKey: "sources.types.folder.fields.directory.helperText",+ placeholderKey:+ "portal.sources.types.folder.fields.directory.placeholder",+ helperTextKey:+ "portal.sources.types.folder.fields.directory.helperText",},{key: "mode",- labelKey: "sources.types.folder.fields.mode.label",+ labelKey: "portal.sources.types.folder.fields.mode.label",control: "select",defaultValue: "consume",options: [{value: "consume",- labelKey: "sources.types.folder.fields.mode.options.consume",+ labelKey: "portal.sources.types.folder.fields.mode.options.consume",},{value: "snapshot",- labelKey: "sources.types.folder.fields.mode.options.snapshot",+ labelKey:+ "portal.sources.types.folder.fields.mode.options.snapshot",},],},diff --git a/frontend/portal/src/components/users/AccessControls.stories.tsx b/frontend/editor/src/portal/components/users/AccessControls.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/users/AccessControls.stories.tsxrename to frontend/editor/src/portal/components/users/AccessControls.stories.tsxdiff --git a/frontend/portal/src/components/users/AccessControls.tsx b/frontend/editor/src/portal/components/users/AccessControls.tsxsimilarity index 78%rename from frontend/portal/src/components/users/AccessControls.tsxrename to frontend/editor/src/portal/components/users/AccessControls.tsxindex 417036456c..d45d43bbaf 100644--- a/frontend/portal/src/components/users/AccessControls.tsx+++ b/frontend/editor/src/portal/components/users/AccessControls.tsx@@ -8,7 +8,7 @@ import {StatTile,StatusBadge,ToggleSwitch,-} from "@shared/components";+} from "@app/ui";import type { AccessControls as Access } from "@portal/api/users";import { seatsLabel } from "@portal/components/users/format";import "@portal/views/Users.css";@@ -39,10 +39,10 @@ export function AccessControls({ access }: AccessControlsProps) {<section className="portal-users__access"><header className="portal-users__section-head"><h2 className="portal-users__section-title">- {t("users.access.title")}+ {t("portal.users.access.title")}</h2><p className="portal-users__section-sub">- {t("users.access.subtitle")}+ {t("portal.users.access.subtitle")}</p></header>@@ -51,7 +51,7 @@ export function AccessControls({ access }: AccessControlsProps) {<Card padding="default"><div className="portal-users__access-card-head"><h3 className="portal-users__access-card-title">- {t("users.access.seats.title")}+ {t("portal.users.access.seats.title")}</h3><span className="portal-users__muted">{seatsLabel(access.seatsUsed, access.seatLimit)}@@ -59,13 +59,13 @@ export function AccessControls({ access }: AccessControlsProps) {</div>{access.seatLimit === null ? (<p className="portal-users__access-note">- {t("users.access.seats.unlimited")}+ {t("portal.users.access.seats.unlimited")}</p>) : (<ProgressBarvalue={seatPct}thresholded- label={t("users.access.seats.usedLabel", {+ label={t("portal.users.access.seats.usedLabel", {used: access.seatsUsed,limit: access.seatLimit,})}@@ -77,7 +77,7 @@ export function AccessControls({ access }: AccessControlsProps) {{access.mfaAvailable && (<Card padding="default"><h3 className="portal-users__access-card-title">- {t("users.access.auth.title")}+ {t("portal.users.access.auth.title")}</h3><div className="portal-users__toggle-rows"><div className="portal-users__toggle-row">@@ -87,11 +87,11 @@ export function AccessControls({ access }: AccessControlsProps) {setMfaEnforced(v);// TODO(backend): PATCH /v1/users/access { mfaEnforced }}}- label={t("users.access.auth.requireMfa.label")}+ label={t("portal.users.access.auth.requireMfa.label")}description={access.mfaEnforced- ? t("users.access.auth.requireMfa.enforced")- : t("users.access.auth.requireMfa.description")+ ? t("portal.users.access.auth.requireMfa.enforced")+ : t("portal.users.access.auth.requireMfa.description")}disabled={access.mfaEnforced}/>@@ -103,9 +103,9 @@ export function AccessControls({ access }: AccessControlsProps) {setShortSessions(v);// TODO(backend): PATCH /v1/users/access { sessionTimeout }}}- label={t("users.access.auth.shortSessions.label")}+ label={t("portal.users.access.auth.shortSessions.label")}description={t(- "users.access.auth.shortSessions.description",+ "portal.users.access.auth.shortSessions.description",{timeout: access.sessionTimeout,},@@ -121,29 +121,29 @@ export function AccessControls({ access }: AccessControlsProps) {<Card padding="default"><div className="portal-users__access-card-head"><h3 className="portal-users__access-card-title">- {t("users.access.sso.title")}+ {t("portal.users.access.sso.title")}</h3><StatusBadgetone={access.sso.status === "connected" ? "success" : "neutral"}size="sm">{access.sso.status === "connected"- ? t("users.access.sso.connected")- : t("users.access.sso.notConfigured")}+ ? t("portal.users.access.sso.connected")+ : t("portal.users.access.sso.notConfigured")}</StatusBadge></div><div className="portal-users__access-stats"><StatTile- label={t("users.access.sso.provider")}+ label={t("portal.users.access.sso.provider")}value={access.sso.provider}/><StatTile- label={t("users.access.sso.domains")}+ label={t("portal.users.access.sso.domains")}value={access.sso.domains.join(", ") || "—"}/></div><Button variant="ghost" size="sm">- {t("users.access.sso.manage")}+ {t("portal.users.access.sso.manage")}</Button></Card>)}@@ -153,29 +153,29 @@ export function AccessControls({ access }: AccessControlsProps) {<Card padding="default"><div className="portal-users__access-card-head"><h3 className="portal-users__access-card-title">- {t("users.access.scim.title")}+ {t("portal.users.access.scim.title")}</h3><StatusBadgetone={access.scim.enabled ? "success" : "neutral"}size="sm">{access.scim.enabled- ? t("users.access.scim.active")- : t("users.access.scim.off")}+ ? t("portal.users.access.scim.active")+ : t("portal.users.access.scim.off")}</StatusBadge></div><div className="portal-users__access-stats"><StatTile- label={t("users.access.scim.directory")}+ label={t("portal.users.access.scim.directory")}value={access.scim.directory}/><StatTile- label={t("users.access.scim.lastSync")}+ label={t("portal.users.access.scim.lastSync")}value={access.scim.lastSync}/></div><p className="portal-users__access-note">- {t("users.access.scim.note")}+ {t("portal.users.access.scim.note")}</p></Card>)}@@ -185,11 +185,11 @@ export function AccessControls({ access }: AccessControlsProps) {{access.upgradeHint && (<Bannertone="info"- title={t("users.access.upgrade.title")}+ title={t("portal.users.access.upgrade.title")}description={access.upgradeHint}action={<Button size="sm" accent="purple">- {t("users.access.upgrade.action")}+ {t("portal.users.access.upgrade.action")}</Button>}/>diff --git a/frontend/portal/src/components/users/InviteMemberModal.stories.tsx b/frontend/editor/src/portal/components/users/InviteMemberModal.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/users/InviteMemberModal.stories.tsxrename to frontend/editor/src/portal/components/users/InviteMemberModal.stories.tsxdiff --git a/frontend/portal/src/components/users/InviteMemberModal.tsx b/frontend/editor/src/portal/components/users/InviteMemberModal.tsxsimilarity index 78%rename from frontend/portal/src/components/users/InviteMemberModal.tsxrename to frontend/editor/src/portal/components/users/InviteMemberModal.tsxindex 9cc8394143..5031b6427c 100644--- a/frontend/portal/src/components/users/InviteMemberModal.tsx+++ b/frontend/editor/src/portal/components/users/InviteMemberModal.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Button, FormField, Input, Modal, Select } from "@shared/components";+import { Button, FormField, Input, Modal, Select } from "@app/ui";import { type RoleId, ROLES } from "@portal/api/users";import "@portal/views/Users.css";@@ -31,7 +31,7 @@ export function InviteMemberModal({ open, onClose }: InviteMemberModalProps) {const emailValid = EMAIL_RE.test(email.trim());const error =- touched && !emailValid ? t("users.invite.emailError") : undefined;+ touched && !emailValid ? t("portal.users.invite.emailError") : undefined;function close() {onClose();@@ -56,24 +56,28 @@ export function InviteMemberModal({ open, onClose }: InviteMemberModalProps) {open={open}onClose={close}width="sm"- title={t("common.inviteMember")}- subtitle={t("users.invite.subtitle")}+ title={t("portal.common.inviteMember")}+ subtitle={t("portal.users.invite.subtitle")}footer={<div className="portal-users__modal-footer"><Button variant="ghost" size="sm" onClick={close}>- {t("users.invite.cancel")}+ {t("portal.users.invite.cancel")}</Button><Button size="sm" onClick={submit} disabled={touched && !emailValid}>- {t("users.invite.send")}+ {t("portal.users.invite.send")}</Button></div>}><div className="portal-users__invite-body">- <FormField label={t("users.invite.email")} error={error} required>+ <FormField+ label={t("portal.users.invite.email")}+ error={error}+ required+ ><Inputtype="email"- placeholder={t("users.invite.emailPlaceholder")}+ placeholder={t("portal.users.invite.emailPlaceholder")}value={email}invalid={!!error}onChange={(e) => setEmail(e.target.value)}@@ -81,8 +85,8 @@ export function InviteMemberModal({ open, onClose }: InviteMemberModalProps) {/></FormField><FormField- label={t("users.invite.role")}- helperText={t("users.invite.roleHelper")}+ label={t("portal.users.invite.role")}+ helperText={t("portal.users.invite.roleHelper")}><Selectoptions={ROLE_SELECT_OPTIONS}diff --git a/frontend/portal/src/components/users/MembersTable.stories.tsx b/frontend/editor/src/portal/components/users/MembersTable.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/users/MembersTable.stories.tsxrename to frontend/editor/src/portal/components/users/MembersTable.stories.tsxdiff --git a/frontend/portal/src/components/users/MembersTable.tsx b/frontend/editor/src/portal/components/users/MembersTable.tsxsimilarity index 86%rename from frontend/portal/src/components/users/MembersTable.tsxrename to frontend/editor/src/portal/components/users/MembersTable.tsxindex c688306f51..deda005d1f 100644--- a/frontend/portal/src/components/users/MembersTable.tsx+++ b/frontend/editor/src/portal/components/users/MembersTable.tsx@@ -1,13 +1,7 @@import { useMemo } from "react";import { useTranslation } from "react-i18next";import { Menu } from "@mantine/core";-import {- Avatar,- Chip,- StatusBadge,- Table,- type TableColumn,-} from "@shared/components";+import { Avatar, Chip, StatusBadge, Table, type TableColumn } from "@app/ui";import {type Member,type RoleId,@@ -40,7 +34,7 @@ export function MembersTable({() => [{key: "name",- header: t("users.table.member"),+ header: t("portal.users.table.member"),render: (m) => (<div className="portal-users__member-cell"><Avatar@@ -61,7 +55,7 @@ export function MembersTable({},{key: "role",- header: t("users.table.role"),+ header: t("portal.users.table.role"),render: (m) => (<Chip tone={ROLE_TONE[m.role]} size="sm">{ROLE_LABEL[m.role]}@@ -70,7 +64,7 @@ export function MembersTable({},{key: "status",- header: t("users.table.status"),+ header: t("portal.users.table.status"),render: (m) => (<StatusBadgetone={MEMBER_STATUS_TONE[m.status]}@@ -83,7 +77,7 @@ export function MembersTable({},{key: "lastActive",- header: t("users.table.lastActive"),+ header: t("portal.users.table.lastActive"),render: (m) => (<span className="portal-users__muted">{m.lastActive}</span>),@@ -101,14 +95,16 @@ export function MembersTable({<buttontype="button"className="portal-users__row-action"- aria-label={t("users.table.actionsFor", { name: m.name })}+ aria-label={t("portal.users.table.actionsFor", {+ name: m.name,+ })}onClick={(e) => e.stopPropagation()}>⋯</button></Menu.Target><Menu.Dropdown>- <Menu.Label>{t("users.table.changeRole")}</Menu.Label>+ <Menu.Label>{t("portal.users.table.changeRole")}</Menu.Label>{ROLE_OPTIONS.map((role) => (<Menu.Itemkey={role}@@ -121,11 +117,11 @@ export function MembersTable({<Menu.Divider />{m.status !== "suspended" && (<Menu.Item onClick={() => onSuspend(m)}>- {t("users.table.suspend")}+ {t("portal.users.table.suspend")}</Menu.Item>)}<Menu.Item color="red" onClick={() => onRemove(m)}>- {t("users.table.remove")}+ {t("portal.users.table.remove")}</Menu.Item></Menu.Dropdown></Menu>diff --git a/frontend/portal/src/components/users/RolesGrid.stories.tsx b/frontend/editor/src/portal/components/users/RolesGrid.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/users/RolesGrid.stories.tsxrename to frontend/editor/src/portal/components/users/RolesGrid.stories.tsxdiff --git a/frontend/portal/src/components/users/RolesGrid.tsx b/frontend/editor/src/portal/components/users/RolesGrid.tsxsimilarity index 86%rename from frontend/portal/src/components/users/RolesGrid.tsxrename to frontend/editor/src/portal/components/users/RolesGrid.tsxindex 0a410b83f0..522c264e82 100644--- a/frontend/portal/src/components/users/RolesGrid.tsx+++ b/frontend/editor/src/portal/components/users/RolesGrid.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Card, Chip } from "@shared/components";+import { Card, Chip } from "@app/ui";import type { Role } from "@portal/api/users";import "@portal/views/Users.css";@@ -14,9 +14,11 @@ export function RolesGrid({ roles }: RolesGridProps) {<section className="portal-users__roles"><header className="portal-users__section-head"><h2 className="portal-users__section-title">- {t("users.roles.title")}+ {t("portal.users.roles.title")}</h2>- <p className="portal-users__section-sub">{t("users.roles.subtitle")}</p>+ <p className="portal-users__section-sub">+ {t("portal.users.roles.subtitle")}+ </p></header><div className="portal-users__roles-grid">{roles.map((role) => (diff --git a/frontend/portal/src/components/users/UsersSummaryStrip.stories.tsx b/frontend/editor/src/portal/components/users/UsersSummaryStrip.stories.tsxsimilarity index 100%rename from frontend/portal/src/components/users/UsersSummaryStrip.stories.tsxrename to frontend/editor/src/portal/components/users/UsersSummaryStrip.stories.tsxdiff --git a/frontend/portal/src/components/users/UsersSummaryStrip.tsx b/frontend/editor/src/portal/components/users/UsersSummaryStrip.tsxsimilarity index 91%rename from frontend/portal/src/components/users/UsersSummaryStrip.tsxrename to frontend/editor/src/portal/components/users/UsersSummaryStrip.tsxindex 44559839dd..981b1fca52 100644--- a/frontend/portal/src/components/users/UsersSummaryStrip.tsx+++ b/frontend/editor/src/portal/components/users/UsersSummaryStrip.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { MetricCard, MetricStrip } from "@shared/components";+import { MetricCard, MetricStrip } from "@app/ui";import type { UsersResponse } from "@portal/api/users";import { seatsLabel } from "@portal/components/users/format";@@ -30,7 +30,7 @@ export function UsersSummaryStrip({ data, loading }: UsersSummaryStripProps) {{KPI_KEYS.map((key) => (<MetricCardkey={key}- label={t(`users.summary.${key}`)}+ label={t(`portal.users.summary.${key}`)}value={values[key]}/>))}diff --git a/frontend/portal/src/components/users/format.ts b/frontend/editor/src/portal/components/users/format.tssimilarity index 91%rename from frontend/portal/src/components/users/format.tsrename to frontend/editor/src/portal/components/users/format.tsindex d88b985d57..4dff015986 100644--- a/frontend/portal/src/components/users/format.ts+++ b/frontend/editor/src/portal/components/users/format.ts@@ -1,4 +1,4 @@-import type { AvatarTone } from "@shared/components";+import type { AvatarTone } from "@app/ui";import type { RoleId } from "@portal/api/users";import { ROLE_TONE } from "@portal/api/users";diff --git a/frontend/portal/src/contexts/AccountLinkContext.tsx b/frontend/editor/src/portal/contexts/AccountLinkContext.tsxsimilarity index 100%rename from frontend/portal/src/contexts/AccountLinkContext.tsxrename to frontend/editor/src/portal/contexts/AccountLinkContext.tsxdiff --git a/frontend/portal/src/contexts/LinkContext.test.tsx b/frontend/editor/src/portal/contexts/LinkContext.test.tsxsimilarity index 100%rename from frontend/portal/src/contexts/LinkContext.test.tsxrename to frontend/editor/src/portal/contexts/LinkContext.test.tsxdiff --git a/frontend/portal/src/contexts/LinkContext.tsx b/frontend/editor/src/portal/contexts/LinkContext.tsxsimilarity index 96%rename from frontend/portal/src/contexts/LinkContext.tsxrename to frontend/editor/src/portal/contexts/LinkContext.tsxindex f110937533..d088647586 100644--- a/frontend/portal/src/contexts/LinkContext.tsx+++ b/frontend/editor/src/portal/contexts/LinkContext.tsx@@ -36,17 +36,17 @@ export interface LinkInfo {export const LINK_INFO: Record<LinkState, LinkInfo> = {unlinked: {- labelKey: "accountLink.state.unlinked",+ labelKey: "portal.accountLink.state.unlinked",labelDefault: "Not linked",unlocked: false,},"linked-free": {- labelKey: "accountLink.state.free",+ labelKey: "portal.accountLink.state.free",labelDefault: "Editor plan",unlocked: true,},"linked-subscribed": {- labelKey: "accountLink.state.subscribed",+ labelKey: "portal.accountLink.state.subscribed",labelDefault: "Processor plan",unlocked: true,},diff --git a/frontend/portal/src/contexts/ThemeContext.tsx b/frontend/editor/src/portal/contexts/ThemeContext.tsxsimilarity index 100%rename from frontend/portal/src/contexts/ThemeContext.tsxrename to frontend/editor/src/portal/contexts/ThemeContext.tsxdiff --git a/frontend/portal/src/contexts/TierContext.tsx b/frontend/editor/src/portal/contexts/TierContext.tsxsimilarity index 100%rename from frontend/portal/src/contexts/TierContext.tsxrename to frontend/editor/src/portal/contexts/TierContext.tsxdiff --git a/frontend/portal/src/contexts/UIContext.tsx b/frontend/editor/src/portal/contexts/UIContext.tsxsimilarity index 100%rename from frontend/portal/src/contexts/UIContext.tsxrename to frontend/editor/src/portal/contexts/UIContext.tsxdiff --git a/frontend/portal/src/contexts/ViewContext.tsx b/frontend/editor/src/portal/contexts/ViewContext.tsxsimilarity index 69%rename from frontend/portal/src/contexts/ViewContext.tsxrename to frontend/editor/src/portal/contexts/ViewContext.tsxindex 01c3de9b54..0502011511 100644--- a/frontend/portal/src/contexts/ViewContext.tsx+++ b/frontend/editor/src/portal/contexts/ViewContext.tsx@@ -51,6 +51,19 @@ export const VIEW_PATHS: Record<ViewId, string> = {settings: "/settings",};+/**+ * The portal is mounted as a route-set under this base path inside the editor+ * app (see the admin-route seam). VIEW_PATHS stay expressed as logical portal+ * paths; this facade adds/strips the base so components keep navigating by+ * ViewId without knowing where the portal is mounted.+ */+export const PORTAL_BASENAME = "/portal";++/** Logical view path -> full app path (e.g. "/users" -> "/portal/users"). */+export function toPortalPath(viewPath: string): string {+ return `${PORTAL_BASENAME}${viewPath === "/" ? "" : viewPath}`;+}+const PATH_TO_VIEW: Record<string, ViewId> = Object.fromEntries((Object.entries(VIEW_PATHS) as Array<[ViewId, string]>).map(([view, path]) => [path, view],@@ -58,9 +71,14 @@ const PATH_TO_VIEW: Record<string, ViewId> = Object.fromEntries();function deriveActiveView(pathname: string): ViewId {+ // Strip the portal base, then match against the logical VIEW_PATHS.+ let inner = pathname.startsWith(PORTAL_BASENAME)+ ? pathname.slice(PORTAL_BASENAME.length)+ : pathname;+ if (inner === "") inner = "/";// Exact match first; otherwise treat the first segment as the view.- if (PATH_TO_VIEW[pathname]) return PATH_TO_VIEW[pathname];- const firstSegment = "/" + pathname.split("/").filter(Boolean)[0];+ if (PATH_TO_VIEW[inner]) return PATH_TO_VIEW[inner];+ const firstSegment = "/" + inner.split("/").filter(Boolean)[0];return PATH_TO_VIEW[firstSegment] ?? "home";}@@ -79,7 +97,7 @@ export function useView(): ViewContextValue {const navigate = useNavigate();const activeView = useMemo(() => deriveActiveView(pathname), [pathname]);const setActiveView = useCallback(- (view: ViewId) => navigate(VIEW_PATHS[view]),+ (view: ViewId) => navigate(toPortalPath(VIEW_PATHS[view])),[navigate],);return { activeView, setActiveView };diff --git a/frontend/shared/data/Endpoints.stories.tsx b/frontend/editor/src/portal/data/Endpoints.stories.tsxsimilarity index 94%rename from frontend/shared/data/Endpoints.stories.tsxrename to frontend/editor/src/portal/data/Endpoints.stories.tsxindex 53d64816ae..f702b5dea4 100644--- a/frontend/shared/data/Endpoints.stories.tsx+++ b/frontend/editor/src/portal/data/Endpoints.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react";-import { VERTICALS, ALL_ENDPOINTS } from "@shared/data/endpoints";-import { MethodBadge } from "@shared/components/MethodBadge";-import { StatusBadge } from "@shared/components/StatusBadge";+import { VERTICALS, ALL_ENDPOINTS } from "@portal/data/endpoints";+import { MethodBadge } from "@app/ui/MethodBadge";+import { StatusBadge } from "@app/ui/StatusBadge";const meta: Meta = {title: "Data/Endpoint catalogue",diff --git a/frontend/shared/data/Ops.stories.tsx b/frontend/editor/src/portal/data/Ops.stories.tsxsimilarity index 99%rename from frontend/shared/data/Ops.stories.tsxrename to frontend/editor/src/portal/data/Ops.stories.tsxindex 5be51159de..f86c18f645 100644--- a/frontend/shared/data/Ops.stories.tsx+++ b/frontend/editor/src/portal/data/Ops.stories.tsx@@ -7,7 +7,7 @@ import {SOURCE_OPTIONS,DESTINATION_OPTIONS,type OpKind,-} from "@shared/data/ops";+} from "@portal/data/ops";const meta: Meta = {title: "Data/Ops library",diff --git a/frontend/shared/data/endpoints.ts b/frontend/editor/src/portal/data/endpoints.tssimilarity index 99%rename from frontend/shared/data/endpoints.tsrename to frontend/editor/src/portal/data/endpoints.tsindex 80380225dc..d6e440805d 100644--- a/frontend/shared/data/endpoints.ts+++ b/frontend/editor/src/portal/data/endpoints.ts@@ -12,7 +12,7 @@* runtime validators.*/-import type { Tier } from "@shared/tokens/tokens";+import type { Tier } from "@app/tokens/tokens";/** Canonical vertical keys — these map 1:1 to category-accent CSS variables. */export type VerticalKey =diff --git a/frontend/shared/data/ops.ts b/frontend/editor/src/portal/data/ops.tssimilarity index 100%rename from frontend/shared/data/ops.tsrename to frontend/editor/src/portal/data/ops.tsdiff --git a/frontend/portal/src/hooks/useAccountLink.test.tsx b/frontend/editor/src/portal/hooks/useAccountLink.test.tsxsimilarity index 100%rename from frontend/portal/src/hooks/useAccountLink.test.tsxrename to frontend/editor/src/portal/hooks/useAccountLink.test.tsxdiff --git a/frontend/portal/src/hooks/useAccountLink.ts b/frontend/editor/src/portal/hooks/useAccountLink.tssimilarity index 98%rename from frontend/portal/src/hooks/useAccountLink.tsrename to frontend/editor/src/portal/hooks/useAccountLink.tsindex 8c7158dd7b..dd4894f6d6 100644--- a/frontend/portal/src/hooks/useAccountLink.ts+++ b/frontend/editor/src/portal/hooks/useAccountLink.ts@@ -1,5 +1,5 @@import { useCallback, useEffect, useState } from "react";-import type { SupabaseLoginSession } from "@shared/auth/ui/useSupabaseLogin";+import type { SupabaseLoginSession } from "@app/auth/ui/useSupabaseLogin";import {ensureSaasSupabase,isSaasSupabaseConfigured,diff --git a/frontend/portal/src/hooks/useAsync.ts b/frontend/editor/src/portal/hooks/useAsync.tssimilarity index 100%rename from frontend/portal/src/hooks/useAsync.tsrename to frontend/editor/src/portal/hooks/useAsync.tsdiff --git a/frontend/portal/src/hooks/useStripePortal.ts b/frontend/editor/src/portal/hooks/useStripePortal.tssimilarity index 100%rename from frontend/portal/src/hooks/useStripePortal.tsrename to frontend/editor/src/portal/hooks/useStripePortal.tsdiff --git a/frontend/portal/src/mocks/agents.ts b/frontend/editor/src/portal/mocks/agents.tssimilarity index 100%rename from frontend/portal/src/mocks/agents.tsrename to frontend/editor/src/portal/mocks/agents.tsdiff --git a/frontend/portal/src/mocks/assistant.ts b/frontend/editor/src/portal/mocks/assistant.tssimilarity index 100%rename from frontend/portal/src/mocks/assistant.tsrename to frontend/editor/src/portal/mocks/assistant.tsdiff --git a/frontend/portal/src/mocks/auth.ts b/frontend/editor/src/portal/mocks/auth.tssimilarity index 100%rename from frontend/portal/src/mocks/auth.tsrename to frontend/editor/src/portal/mocks/auth.tsdiff --git a/frontend/editor/src/portal/mocks/browser.ts b/frontend/editor/src/portal/mocks/browser.tsnew file mode 100644index 0000000000..077b41b456--- /dev/null+++ b/frontend/editor/src/portal/mocks/browser.ts@@ -0,0 +1,26 @@+import { setupWorker } from "msw/browser";+import { embeddedDataHandlers } from "@portal/mocks/handlers";++// Data handlers only (see embeddedDataHandlers) and no seeded auth token: the+// portal shares an origin and auth session with the host editor, so mocking auth+// or seeding a token would log the editor out.+export const worker = setupWorker(...embeddedDataHandlers);++let workerStarted = false;++/**+ * Start the MSW worker. Idempotent — calling repeatedly is safe.+ *+ * The toggle flips MSW by writing the preference to localStorage and+ * reloading the page, so there's no need for a `stopMockWorker` counterpart:+ * the next boot just decides whether to call this or not.+ */+export async function startMockWorker(): Promise<void> {+ if (workerStarted) return;+ await worker.start({+ onUnhandledRequest: "bypass",+ serviceWorker: { url: "/mockServiceWorker.js" },+ quiet: true,+ });+ workerStarted = true;+}diff --git a/frontend/portal/src/mocks/docs.ts b/frontend/editor/src/portal/mocks/docs.tssimilarity index 99%rename from frontend/portal/src/mocks/docs.tsrename to frontend/editor/src/portal/mocks/docs.tsindex 6aae3fe45b..18a1084c06 100644--- a/frontend/portal/src/mocks/docs.ts+++ b/frontend/editor/src/portal/mocks/docs.ts@@ -18,7 +18,7 @@*/import type { Tier } from "@portal/contexts/TierContext";-import type { CodeLang } from "@shared/components";+import type { CodeLang } from "@app/ui";/* ──────────────────────────────────────────────────────────────────────── *//* Navigation */diff --git a/frontend/portal/src/mocks/documents.ts b/frontend/editor/src/portal/mocks/documents.tssimilarity index 99%rename from frontend/portal/src/mocks/documents.tsrename to frontend/editor/src/portal/mocks/documents.tsindex 6e1cc973e3..218c812527 100644--- a/frontend/portal/src/mocks/documents.ts+++ b/frontend/editor/src/portal/mocks/documents.ts@@ -13,7 +13,7 @@*/import type { Tier } from "@portal/contexts/TierContext";-import type { StatusTone } from "@shared/components";+import type { StatusTone } from "@app/ui";/* ──────────────────────────────────────────────────────────────────────── *//* Domain types */diff --git a/frontend/portal/src/mocks/editorDeploy.ts b/frontend/editor/src/portal/mocks/editorDeploy.tssimilarity index 100%rename from frontend/portal/src/mocks/editorDeploy.tsrename to frontend/editor/src/portal/mocks/editorDeploy.tsdiff --git a/frontend/portal/src/mocks/handlers/agents.ts b/frontend/editor/src/portal/mocks/handlers/agents.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/agents.tsrename to frontend/editor/src/portal/mocks/handlers/agents.tsdiff --git a/frontend/portal/src/mocks/handlers/assistant.ts b/frontend/editor/src/portal/mocks/handlers/assistant.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/assistant.tsrename to frontend/editor/src/portal/mocks/handlers/assistant.tsdiff --git a/frontend/portal/src/mocks/handlers/auth.ts b/frontend/editor/src/portal/mocks/handlers/auth.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/auth.tsrename to frontend/editor/src/portal/mocks/handlers/auth.tsdiff --git a/frontend/portal/src/mocks/handlers/docs.ts b/frontend/editor/src/portal/mocks/handlers/docs.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/docs.tsrename to frontend/editor/src/portal/mocks/handlers/docs.tsdiff --git a/frontend/portal/src/mocks/handlers/documents.ts b/frontend/editor/src/portal/mocks/handlers/documents.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/documents.tsrename to frontend/editor/src/portal/mocks/handlers/documents.tsdiff --git a/frontend/portal/src/mocks/handlers/editorDeploy.ts b/frontend/editor/src/portal/mocks/handlers/editorDeploy.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/editorDeploy.tsrename to frontend/editor/src/portal/mocks/handlers/editorDeploy.tsdiff --git a/frontend/portal/src/mocks/handlers/home.ts b/frontend/editor/src/portal/mocks/handlers/home.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/home.tsrename to frontend/editor/src/portal/mocks/handlers/home.tsdiff --git a/frontend/portal/src/mocks/handlers/index.ts b/frontend/editor/src/portal/mocks/handlers/index.tssimilarity index 66%rename from frontend/portal/src/mocks/handlers/index.tsrename to frontend/editor/src/portal/mocks/handlers/index.tsindex 8c9d1cad91..bd1d471988 100644--- a/frontend/portal/src/mocks/handlers/index.ts+++ b/frontend/editor/src/portal/mocks/handlers/index.ts@@ -40,5 +40,34 @@ export const handlers = [...linkHandlers,];+/**+ * The handlers safe to run when the portal shares an origin with the editor.+ * Three groups are excluded because their routes overlap endpoints the editor+ * itself calls, so mocking them breaks the host app:+ * - authHandlers: /api/v1/auth/*, /api/v1/proprietary/ui-data/login (logs the+ * editor out; the portal uses the editor's real session instead)+ * - policiesHandlers + pipelinesHandlers: both /api/v1/policies* (the editor's+ * own policies feature)+ * Everything kept is portal-only. `handlers` above is still the full set.+ */+export const embeddedDataHandlers = [+ ...homeHandlers,+ ...opsHandlers,+ ...notificationsHandlers,+ ...assistantHandlers,+ ...searchHandlers,+ ...sourcesHandlers,+ ...infrastructureHandlers,+ ...docsHandlers,+ ...procurementHandlers,+ ...settingsHandlers,+ ...usersHandlers,+ ...agentsHandlers,+ ...documentsHandlers,+ ...sdkComponentsHandlers,+ ...editorDeployHandlers,+ ...linkHandlers,+];+export { resetNotificationsStore } from "@portal/mocks/handlers/notifications";export { resetProcurementStore } from "@portal/mocks/handlers/procurement";diff --git a/frontend/portal/src/mocks/handlers/infrastructure.ts b/frontend/editor/src/portal/mocks/handlers/infrastructure.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/infrastructure.tsrename to frontend/editor/src/portal/mocks/handlers/infrastructure.tsdiff --git a/frontend/portal/src/mocks/handlers/link.ts b/frontend/editor/src/portal/mocks/handlers/link.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/link.tsrename to frontend/editor/src/portal/mocks/handlers/link.tsdiff --git a/frontend/portal/src/mocks/handlers/notifications.ts b/frontend/editor/src/portal/mocks/handlers/notifications.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/notifications.tsrename to frontend/editor/src/portal/mocks/handlers/notifications.tsdiff --git a/frontend/portal/src/mocks/handlers/ops.ts b/frontend/editor/src/portal/mocks/handlers/ops.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/ops.tsrename to frontend/editor/src/portal/mocks/handlers/ops.tsdiff --git a/frontend/portal/src/mocks/handlers/pipelines.ts b/frontend/editor/src/portal/mocks/handlers/pipelines.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/pipelines.tsrename to frontend/editor/src/portal/mocks/handlers/pipelines.tsdiff --git a/frontend/portal/src/mocks/handlers/policies.ts b/frontend/editor/src/portal/mocks/handlers/policies.tssimilarity index 98%rename from frontend/portal/src/mocks/handlers/policies.tsrename to frontend/editor/src/portal/mocks/handlers/policies.tsindex 7a722d73e0..8d35ae4535 100644--- a/frontend/portal/src/mocks/handlers/policies.ts+++ b/frontend/editor/src/portal/mocks/handlers/policies.ts@@ -4,7 +4,7 @@ import {seedPolicyRuns,type WirePolicy,} from "@portal/mocks/policies";-import type { PolicyRunView } from "@shared/policies/types";+import type { PolicyRunView } from "@app/policies/types";/*** The portal exercises the REAL policy API base — `/api/v1/policies`, NOT thediff --git a/frontend/portal/src/mocks/handlers/procurement.ts b/frontend/editor/src/portal/mocks/handlers/procurement.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/procurement.tsrename to frontend/editor/src/portal/mocks/handlers/procurement.tsdiff --git a/frontend/portal/src/mocks/handlers/sdkComponents.ts b/frontend/editor/src/portal/mocks/handlers/sdkComponents.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/sdkComponents.tsrename to frontend/editor/src/portal/mocks/handlers/sdkComponents.tsdiff --git a/frontend/portal/src/mocks/handlers/search.ts b/frontend/editor/src/portal/mocks/handlers/search.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/search.tsrename to frontend/editor/src/portal/mocks/handlers/search.tsdiff --git a/frontend/portal/src/mocks/handlers/settings.ts b/frontend/editor/src/portal/mocks/handlers/settings.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/settings.tsrename to frontend/editor/src/portal/mocks/handlers/settings.tsdiff --git a/frontend/portal/src/mocks/handlers/sources.ts b/frontend/editor/src/portal/mocks/handlers/sources.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/sources.tsrename to frontend/editor/src/portal/mocks/handlers/sources.tsdiff --git a/frontend/portal/src/mocks/handlers/users.ts b/frontend/editor/src/portal/mocks/handlers/users.tssimilarity index 100%rename from frontend/portal/src/mocks/handlers/users.tsrename to frontend/editor/src/portal/mocks/handlers/users.tsdiff --git a/frontend/portal/src/mocks/home.ts b/frontend/editor/src/portal/mocks/home.tssimilarity index 100%rename from frontend/portal/src/mocks/home.tsrename to frontend/editor/src/portal/mocks/home.tsdiff --git a/frontend/portal/src/mocks/infrastructure.ts b/frontend/editor/src/portal/mocks/infrastructure.tssimilarity index 100%rename from frontend/portal/src/mocks/infrastructure.tsrename to frontend/editor/src/portal/mocks/infrastructure.tsdiff --git a/frontend/portal/src/mocks/link.test.ts b/frontend/editor/src/portal/mocks/link.test.tssimilarity index 100%rename from frontend/portal/src/mocks/link.test.tsrename to frontend/editor/src/portal/mocks/link.test.tsdiff --git a/frontend/portal/src/mocks/link.ts b/frontend/editor/src/portal/mocks/link.tssimilarity index 100%rename from frontend/portal/src/mocks/link.tsrename to frontend/editor/src/portal/mocks/link.tsdiff --git a/frontend/portal/src/mocks/notifications.ts b/frontend/editor/src/portal/mocks/notifications.tssimilarity index 100%rename from frontend/portal/src/mocks/notifications.tsrename to frontend/editor/src/portal/mocks/notifications.tsdiff --git a/frontend/portal/src/mocks/ops.ts b/frontend/editor/src/portal/mocks/ops.tssimilarity index 100%rename from frontend/portal/src/mocks/ops.tsrename to frontend/editor/src/portal/mocks/ops.tsdiff --git a/frontend/portal/src/mocks/policies.ts b/frontend/editor/src/portal/mocks/policies.tssimilarity index 97%rename from frontend/portal/src/mocks/policies.tsrename to frontend/editor/src/portal/mocks/policies.tsindex 27d138f297..b06effe1e1 100644--- a/frontend/portal/src/mocks/policies.ts+++ b/frontend/editor/src/portal/mocks/policies.ts@@ -11,8 +11,8 @@* api/policies.ts re-exports everything; components never reach in here.*/-import type { WirePipelineStep, WirePolicy } from "@shared/policies/types";-import type { PolicyRunView } from "@shared/policies/types";+import type { WirePipelineStep, WirePolicy } from "@app/policies/types";+import type { PolicyRunView } from "@app/policies/types";export type {PolicyActivityItem,@@ -24,7 +24,7 @@ export type {WireOutputSpec,WirePipelineStep,WirePolicy,-} from "@shared/policies/types";+} from "@app/policies/types";/* ──────────────────────────────────────────────────────────────────────── *//* Catalogue model — portal-specific (lifted from editor types/policies.ts) */@@ -98,8 +98,8 @@ export interface DecoratedPolicy {config: PolicyConfigDef;state: PolicyState;steps: WirePipelineStep[];- stats: import("@shared/policies/types").PolicyStats;- activity: import("@shared/policies/types").PolicyActivityItem[];+ stats: import("@app/policies/types").PolicyStats;+ activity: import("@app/policies/types").PolicyActivityItem[];}export interface PoliciesSummary {diff --git a/frontend/portal/src/mocks/preference.ts b/frontend/editor/src/portal/mocks/preference.tssimilarity index 100%rename from frontend/portal/src/mocks/preference.tsrename to frontend/editor/src/portal/mocks/preference.tsdiff --git a/frontend/portal/src/mocks/procurement.ts b/frontend/editor/src/portal/mocks/procurement.tssimilarity index 100%rename from frontend/portal/src/mocks/procurement.tsrename to frontend/editor/src/portal/mocks/procurement.tsdiff --git a/frontend/portal/src/mocks/procurementMachine.test.ts b/frontend/editor/src/portal/mocks/procurementMachine.test.tssimilarity index 100%rename from frontend/portal/src/mocks/procurementMachine.test.tsrename to frontend/editor/src/portal/mocks/procurementMachine.test.tsdiff --git a/frontend/portal/src/mocks/procurementMachine.ts b/frontend/editor/src/portal/mocks/procurementMachine.tssimilarity index 100%rename from frontend/portal/src/mocks/procurementMachine.tsrename to frontend/editor/src/portal/mocks/procurementMachine.tsdiff --git a/frontend/portal/src/mocks/sampleDailySeries.ts b/frontend/editor/src/portal/mocks/sampleDailySeries.tssimilarity index 100%rename from frontend/portal/src/mocks/sampleDailySeries.tsrename to frontend/editor/src/portal/mocks/sampleDailySeries.tsdiff --git a/frontend/portal/src/mocks/sdkComponents.ts b/frontend/editor/src/portal/mocks/sdkComponents.tssimilarity index 100%rename from frontend/portal/src/mocks/sdkComponents.tsrename to frontend/editor/src/portal/mocks/sdkComponents.tsdiff --git a/frontend/portal/src/mocks/search.ts b/frontend/editor/src/portal/mocks/search.tssimilarity index 100%rename from frontend/portal/src/mocks/search.tsrename to frontend/editor/src/portal/mocks/search.tsdiff --git a/frontend/portal/src/mocks/settings.ts b/frontend/editor/src/portal/mocks/settings.tssimilarity index 100%rename from frontend/portal/src/mocks/settings.tsrename to frontend/editor/src/portal/mocks/settings.tsdiff --git a/frontend/editor/src/portal/mocks/startIfEnabled.ts b/frontend/editor/src/portal/mocks/startIfEnabled.tsnew file mode 100644index 0000000000..74ffe5b386--- /dev/null+++ b/frontend/editor/src/portal/mocks/startIfEnabled.ts@@ -0,0 +1,12 @@+import { readMocksPreference } from "@portal/mocks/preference";++/**+ * Start the portal's MSW worker if the mocks preference is on. Await this before+ * rendering PortalApp so the worker is registered before the first data fetch.+ * The dynamic import keeps MSW and its fixtures out of chunks that don't run it.+ */+export async function startPortalMocksIfEnabled(): Promise<void> {+ if (!readMocksPreference()) return;+ const { startMockWorker } = await import("@portal/mocks/browser");+ await startMockWorker();+}diff --git a/frontend/portal/src/mocks/users.ts b/frontend/editor/src/portal/mocks/users.tssimilarity index 100%rename from frontend/portal/src/mocks/users.tsrename to frontend/editor/src/portal/mocks/users.tsdiff --git a/frontend/portal/src/setupTests.ts b/frontend/editor/src/portal/setupTests.tssimilarity index 100%rename from frontend/portal/src/setupTests.tsrename to frontend/editor/src/portal/setupTests.tsdiff --git a/frontend/portal/src/theme/MantineIntegration.stories.tsx b/frontend/editor/src/portal/theme/MantineIntegration.stories.tsxsimilarity index 96%rename from frontend/portal/src/theme/MantineIntegration.stories.tsxrename to frontend/editor/src/portal/theme/MantineIntegration.stories.tsxindex a744ee7351..b0f37a5548 100644--- a/frontend/portal/src/theme/MantineIntegration.stories.tsx+++ b/frontend/editor/src/portal/theme/MantineIntegration.stories.tsx@@ -5,7 +5,7 @@ import {Stack,TextInput,} from "@mantine/core";-import { Button as SuiButton } from "@shared/components";+import { Button as SuiButton } from "@app/ui";/*** Proof that Mantine components render with the SUI-bound theme — a Mantinediff --git a/frontend/editor/src/portal/theme/base.css b/frontend/editor/src/portal/theme/base.cssnew file mode 100644index 0000000000..b9fa93d9e6--- /dev/null+++ b/frontend/editor/src/portal/theme/base.css@@ -0,0 +1,40 @@+/* Base reset + typography for the portal, scoped to .portal-scope so it doesn't+ leak into the editor that hosts the /portal route (the editor owns <body> and+ uses a different body font). SUI Modal renders outside this subtree but styles+ itself, so it doesn't need the reset.++ The element resets use :where(.portal-scope) so the scoping adds no+ specificity — the selectors stay at bare-element weight (as they were when+ this reset was global), letting component classes like .sui-btn win. Without+ :where, `.portal-scope button` would outweigh `.sui-btn` and strip its fill. */++.portal-scope {+ color: var(--color-text-2);+ font-family: var(--font-sans);+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+}++:where(.portal-scope) *,+:where(.portal-scope) *::before,+:where(.portal-scope) *::after {+ box-sizing: border-box;+}++:where(.portal-scope) button {+ font: inherit;+ color: inherit;+ background: none;+ border: none;+ padding: 0;+ cursor: pointer;+}++:where(.portal-scope) a {+ color: var(--color-blue);+ text-decoration: none;+}++:where(.portal-scope) a:hover {+ text-decoration: underline;+}diff --git a/frontend/portal/src/theme/mantineTheme.ts b/frontend/editor/src/portal/theme/mantineTheme.tssimilarity index 100%rename from frontend/portal/src/theme/mantineTheme.tsrename to frontend/editor/src/portal/theme/mantineTheme.tsdiff --git a/frontend/editor/src/portal/tsconfig.json b/frontend/editor/src/portal/tsconfig.jsonnew file mode 100644index 0000000000..2eaab73a90--- /dev/null+++ b/frontend/editor/src/portal/tsconfig.json@@ -0,0 +1,18 @@+{+ "extends": "../../tsconfig.json",+ "compilerOptions": {+ "paths": {+ "@app/*": [+ "../../src/portal/*",+ "../../src/cloud/*",+ "../../src/proprietary/*",+ "../../src/core/*"+ ],+ "@portal/*": ["../../src/portal/*"],+ "@cloud/*": ["../../src/cloud/*"],+ "@proprietary/*": ["../../src/proprietary/*"],+ "@core/*": ["../../src/core/*"]+ }+ },+ "include": ["../global.d.ts", "."]+}diff --git a/frontend/portal/src/views/AccountLink.css b/frontend/editor/src/portal/views/AccountLink.csssimilarity index 100%rename from frontend/portal/src/views/AccountLink.cssrename to frontend/editor/src/portal/views/AccountLink.cssdiff --git a/frontend/portal/src/views/AgentBuilder.css b/frontend/editor/src/portal/views/AgentBuilder.csssimilarity index 100%rename from frontend/portal/src/views/AgentBuilder.cssrename to frontend/editor/src/portal/views/AgentBuilder.cssdiff --git a/frontend/portal/src/views/AgentBuilder.tsx b/frontend/editor/src/portal/views/AgentBuilder.tsxsimilarity index 85%rename from frontend/portal/src/views/AgentBuilder.tsxrename to frontend/editor/src/portal/views/AgentBuilder.tsxindex 6055c29257..cd7638ee40 100644--- a/frontend/portal/src/views/AgentBuilder.tsx+++ b/frontend/editor/src/portal/views/AgentBuilder.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Button, EmptyState, Skeleton } from "@shared/components";+import { Button, EmptyState, Skeleton } from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import { fetchAgents, type AgentsResponse } from "@portal/api/agents";@@ -32,14 +32,18 @@ export function AgentBuilder() {<div className="portal-agents"><header className="portal-agents__head"><div>- <h1 className="portal-agents__title">{t("agentBuilder.title")}</h1>- <p className="portal-agents__sub">{t("agentBuilder.subtitle")}</p>+ <h1 className="portal-agents__title">+ {t("portal.agentBuilder.title")}+ </h1>+ <p className="portal-agents__sub">+ {t("portal.agentBuilder.subtitle")}+ </p></div><ButtononClick={() => setBootstrapOpen(true)}leadingIcon={<span aria-hidden>⇪</span>}>- {t("agentBuilder.bootstrapFromDocument")}+ {t("portal.agentBuilder.bootstrapFromDocument")}</Button></header>@@ -60,11 +64,11 @@ export function AgentBuilder() {{isEmpty && (<EmptyState- title={t("agentBuilder.empty.title")}- description={t("agentBuilder.empty.description")}+ title={t("portal.agentBuilder.empty.title")}+ description={t("portal.agentBuilder.empty.description")}actions={<Button onClick={() => setBootstrapOpen(true)}>- {t("agentBuilder.bootstrapFromDocument")}+ {t("portal.agentBuilder.bootstrapFromDocument")}</Button>}/>diff --git a/frontend/portal/src/views/Components.css b/frontend/editor/src/portal/views/Components.csssimilarity index 100%rename from frontend/portal/src/views/Components.cssrename to frontend/editor/src/portal/views/Components.cssdiff --git a/frontend/portal/src/views/Components.tsx b/frontend/editor/src/portal/views/Components.tsxsimilarity index 85%rename from frontend/portal/src/views/Components.tsxrename to frontend/editor/src/portal/views/Components.tsxindex 03208bf8c5..4b2cc1aef6 100644--- a/frontend/portal/src/views/Components.tsx+++ b/frontend/editor/src/portal/views/Components.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, EmptyState, Skeleton } from "@shared/components";+import { Banner, EmptyState, Skeleton } from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -39,10 +39,10 @@ export function Components() {<header className="portal-components__head"><div><h1 className="portal-components__title">- {t("componentsView.title")}+ {t("portal.componentsView.title")}</h1><p className="portal-components__sub">- {t("componentsView.subtitle")}+ {t("portal.componentsView.subtitle")}</p></div></header>@@ -52,8 +52,8 @@ export function Components() {{tier === "free" && hasLocked && (<Bannertone="info"- title={t("componentsView.lockedBanner.title")}- description={t("componentsView.lockedBanner.description")}+ title={t("portal.componentsView.lockedBanner.title")}+ description={t("portal.componentsView.lockedBanner.description")}/>)}@@ -67,8 +67,8 @@ export function Components() {{isEmpty && (<EmptyState- title={t("componentsView.empty.title")}- description={t("componentsView.empty.description")}+ title={t("portal.componentsView.empty.title")}+ description={t("portal.componentsView.empty.description")}/>)}diff --git a/frontend/portal/src/views/DeveloperDocs.css b/frontend/editor/src/portal/views/DeveloperDocs.csssimilarity index 100%rename from frontend/portal/src/views/DeveloperDocs.cssrename to frontend/editor/src/portal/views/DeveloperDocs.cssdiff --git a/frontend/portal/src/views/DeveloperDocs.tsx b/frontend/editor/src/portal/views/DeveloperDocs.tsxsimilarity index 95%rename from frontend/portal/src/views/DeveloperDocs.tsxrename to frontend/editor/src/portal/views/DeveloperDocs.tsxindex 5e521db0c4..f94cdb79b1 100644--- a/frontend/portal/src/views/DeveloperDocs.tsx+++ b/frontend/editor/src/portal/views/DeveloperDocs.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { EmptyState } from "@shared/components";+import { EmptyState } from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -80,8 +80,8 @@ export function DeveloperDocs() {{isEmpty && (<EmptyStatesize="compact"- title={t("docs.nav.empty.title")}- description={t("docs.nav.empty.description")}+ title={t("portal.docs.nav.empty.title")}+ description={t("portal.docs.nav.empty.description")}/>)}{nav && nav.length > 0 && (diff --git a/frontend/portal/src/views/Documents.css b/frontend/editor/src/portal/views/Documents.csssimilarity index 100%rename from frontend/portal/src/views/Documents.cssrename to frontend/editor/src/portal/views/Documents.cssdiff --git a/frontend/portal/src/views/Documents.tsx b/frontend/editor/src/portal/views/Documents.tsxsimilarity index 74%rename from frontend/portal/src/views/Documents.tsxrename to frontend/editor/src/portal/views/Documents.tsxindex 4613dc1b35..e73b4960a1 100644--- a/frontend/portal/src/views/Documents.tsx+++ b/frontend/editor/src/portal/views/Documents.tsx@@ -12,8 +12,12 @@ export function Documents() {return (<div className="portal-documents"><header className="portal-documents__head">- <h1 className="portal-documents__title">{t("documents.title")}</h1>- <p className="portal-documents__sub">{t("documents.subtitle")}</p>+ <h1 className="portal-documents__title">+ {t("portal.documents.title")}+ </h1>+ <p className="portal-documents__sub">+ {t("portal.documents.subtitle")}+ </p></header><ReviewQueue />diff --git a/frontend/portal/src/views/EditorAdmin.css b/frontend/editor/src/portal/views/EditorAdmin.csssimilarity index 100%rename from frontend/portal/src/views/EditorAdmin.cssrename to frontend/editor/src/portal/views/EditorAdmin.cssdiff --git a/frontend/portal/src/views/EditorAdmin.tsx b/frontend/editor/src/portal/views/EditorAdmin.tsxsimilarity index 84%rename from frontend/portal/src/views/EditorAdmin.tsxrename to frontend/editor/src/portal/views/EditorAdmin.tsxindex 82a816dba0..e60efceea5 100644--- a/frontend/portal/src/views/EditorAdmin.tsx+++ b/frontend/editor/src/portal/views/EditorAdmin.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import { Skeleton } from "@shared/components";+import { Skeleton } from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useView } from "@portal/contexts/ViewContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";@@ -50,8 +50,12 @@ export function EditorAdmin() {<div className="portal-editor"><header className="portal-editor__head"><div>- <h1 className="portal-editor__title">{t("editorAdmin.title")}</h1>- <p className="portal-editor__sub">{t("editorAdmin.subtitle")}</p>+ <h1 className="portal-editor__title">+ {t("portal.editorAdmin.title")}+ </h1>+ <p className="portal-editor__sub">+ {t("portal.editorAdmin.subtitle")}+ </p></div></header>@@ -59,8 +63,8 @@ export function EditorAdmin() {<section><SectionHead- title={t("editorAdmin.sections.targets.title")}- sub={t("editorAdmin.sections.targets.sub")}+ title={t("portal.editorAdmin.sections.targets.title")}+ sub={t("portal.editorAdmin.sections.targets.sub")}/>{isLoading || !data ? (<div className="portal-editor__targets">@@ -75,8 +79,8 @@ export function EditorAdmin() {<section><SectionHead- title={t("editorAdmin.sections.pairing.title")}- sub={t("editorAdmin.sections.pairing.sub")}+ title={t("portal.editorAdmin.sections.pairing.title")}+ sub={t("portal.editorAdmin.sections.pairing.sub")}/>{data && (<PairingPanel pairings={data.pairings} onUpgrade={goUpgrade} />@@ -85,8 +89,8 @@ export function EditorAdmin() {<section><SectionHead- title={t("editorAdmin.sections.health.title")}- sub={t("editorAdmin.sections.health.sub")}+ title={t("portal.editorAdmin.sections.health.title")}+ sub={t("portal.editorAdmin.sections.health.sub")}/>{data && <InstanceHealthTable instances={data.instances} />}</section>diff --git a/frontend/portal/src/views/Home.css b/frontend/editor/src/portal/views/Home.csssimilarity index 100%rename from frontend/portal/src/views/Home.cssrename to frontend/editor/src/portal/views/Home.cssdiff --git a/frontend/portal/src/views/Home.stories.tsx b/frontend/editor/src/portal/views/Home.stories.tsxsimilarity index 100%rename from frontend/portal/src/views/Home.stories.tsxrename to frontend/editor/src/portal/views/Home.stories.tsxdiff --git a/frontend/portal/src/views/Home.tsx b/frontend/editor/src/portal/views/Home.tsxsimilarity index 85%rename from frontend/portal/src/views/Home.tsxrename to frontend/editor/src/portal/views/Home.tsxindex c982659cc9..b9478ead32 100644--- a/frontend/portal/src/views/Home.tsx+++ b/frontend/editor/src/portal/views/Home.tsx@@ -8,7 +8,7 @@ import {MetricStrip,Skeleton,StatusBadge,-} from "@shared/components";+} from "@app/ui";import { useTier, type Tier } from "@portal/contexts/TierContext";import { useView, type ViewId } from "@portal/contexts/ViewContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";@@ -83,28 +83,28 @@ function ProductGrid() {return (<sectionclassName="portal-home__product-grid"- aria-label={t("home.productGrid.ariaLabel")}+ aria-label={t("portal.home.productGrid.ariaLabel")}><ProductCardaccent="purple"- title={t("home.productGrid.sources.title")}- blurb={t("home.productGrid.sources.blurb")}- cta={t("home.productGrid.sources.cta")}+ title={t("portal.home.productGrid.sources.title")}+ blurb={t("portal.home.productGrid.sources.blurb")}+ cta={t("portal.home.productGrid.sources.cta")}target="sources"/><ProductCardaccent="blue"- badge={t("home.productGrid.pipelines.badge")}- title={t("home.productGrid.pipelines.title")}- blurb={t("home.productGrid.pipelines.blurb")}- cta={t("home.productGrid.pipelines.cta")}+ badge={t("portal.home.productGrid.pipelines.badge")}+ title={t("portal.home.productGrid.pipelines.title")}+ blurb={t("portal.home.productGrid.pipelines.blurb")}+ cta={t("portal.home.productGrid.pipelines.cta")}target="pipelines"/><ProductCardaccent="purple"- title={t("home.productGrid.agents.title")}- blurb={t("home.productGrid.agents.blurb")}- cta={t("home.productGrid.agents.cta")}+ title={t("portal.home.productGrid.agents.title")}+ blurb={t("portal.home.productGrid.agents.blurb")}+ cta={t("portal.home.productGrid.agents.cta")}target="sources"/></section>@@ -122,10 +122,10 @@ function QuickActions({ onTryOp }: { onTryOp: () => void }) {<Card padding="loose" className="portal-home__quick"><div className="portal-home__quick-head"><h2 className="portal-home__quick-title">- {t("home.quickActions.title")}+ {t("portal.home.quickActions.title")}</h2><span className="portal-home__quick-sub">- {t("home.quickActions.subtitle")}+ {t("portal.home.quickActions.subtitle")}</span></div><div className="portal-home__quick-list">@@ -145,8 +145,8 @@ function QuickActions({ onTryOp }: { onTryOp: () => void }) {▶</span><span className="portal-home__quick-text">- <strong>{t("home.quickActions.tryOp.title")}</strong>- <span>{t("home.quickActions.tryOp.blurb")}</span>+ <strong>{t("portal.home.quickActions.tryOp.title")}</strong>+ <span>{t("portal.home.quickActions.tryOp.blurb")}</span></span><span className="portal-home__quick-arrow" aria-hidden>→@@ -168,8 +168,8 @@ function QuickActions({ onTryOp }: { onTryOp: () => void }) {⌃</span><span className="portal-home__quick-text">- <strong>{t("home.quickActions.buildPipeline.title")}</strong>- <span>{t("home.quickActions.buildPipeline.blurb")}</span>+ <strong>{t("portal.home.quickActions.buildPipeline.title")}</strong>+ <span>{t("portal.home.quickActions.buildPipeline.blurb")}</span></span><span className="portal-home__quick-arrow" aria-hidden>→@@ -191,8 +191,8 @@ function QuickActions({ onTryOp }: { onTryOp: () => void }) {⇢</span><span className="portal-home__quick-text">- <strong>{t("home.quickActions.connectSource.title")}</strong>- <span>{t("home.quickActions.connectSource.blurb")}</span>+ <strong>{t("portal.home.quickActions.connectSource.title")}</strong>+ <span>{t("portal.home.quickActions.connectSource.blurb")}</span></span><span className="portal-home__quick-arrow" aria-hidden>→@@ -214,8 +214,8 @@ function QuickActions({ onTryOp }: { onTryOp: () => void }) {⚙</span><span className="portal-home__quick-text">- <strong>{t("home.quickActions.issueApiKey.title")}</strong>- <span>{t("home.quickActions.issueApiKey.blurb")}</span>+ <strong>{t("portal.home.quickActions.issueApiKey.title")}</strong>+ <span>{t("portal.home.quickActions.issueApiKey.blurb")}</span></span><span className="portal-home__quick-arrow" aria-hidden>→@@ -243,7 +243,7 @@ function FreeOnboarding({ onTryOp }: { onTryOp: () => void }) {if (step.done) {return (<Button size="sm" variant="ghost" onClick={onTryOp}>- {t("home.onboarding.runAgain")}+ {t("portal.home.onboarding.runAgain")}</Button>);}@@ -251,7 +251,7 @@ function FreeOnboarding({ onTryOp }: { onTryOp: () => void }) {if (step.cta.kind === "try-op") {return (<Button size="sm" variant="outline" onClick={onTryOp}>- {t("home.onboarding.start")}+ {t("portal.home.onboarding.start")}</Button>);}@@ -262,7 +262,7 @@ function FreeOnboarding({ onTryOp }: { onTryOp: () => void }) {variant="outline"onClick={() => setActiveView(target as ViewId)}>- {t("home.onboarding.start")}+ {t("portal.home.onboarding.start")}</Button>);}@@ -272,15 +272,15 @@ function FreeOnboarding({ onTryOp }: { onTryOp: () => void }) {<div className="portal-home__onboard-head"><div><h2 className="portal-home__onboard-title">- {t("home.onboarding.title")}+ {t("portal.home.onboarding.title")}</h2><p className="portal-home__onboard-sub">- {t("home.onboarding.subtitle")}+ {t("portal.home.onboarding.subtitle")}</p></div>{steps && steps.length > 0 && (<StatusBadge tone="info" size="sm">- {t("home.onboarding.progress", {+ {t("portal.home.onboarding.progress", {done: doneCount,total: steps.length,})}@@ -307,8 +307,8 @@ function FreeOnboarding({ onTryOp }: { onTryOp: () => void }) {{isEmpty && (<EmptyStatesize="compact"- title={t("home.onboarding.empty.title")}- description={t("home.onboarding.empty.description")}+ title={t("portal.home.onboarding.empty.title")}+ description={t("portal.home.onboarding.empty.description")}/>)}@@ -355,24 +355,24 @@ interface KpiLabelSpec {const KPI_LABELS_BY_TIER: Record<Tier, KpiLabelSpec[]> = {free: [{- labelKey: "home.kpis.free.docsProcessed",- descriptionKey: "home.kpis.free.docsProcessedDescription",+ labelKey: "portal.home.kpis.free.docsProcessed",+ descriptionKey: "portal.home.kpis.free.docsProcessedDescription",},- { labelKey: "home.kpis.free.operations" },- { labelKey: "home.kpis.free.pipelines" },- { labelKey: "home.kpis.free.agents" },+ { labelKey: "portal.home.kpis.free.operations" },+ { labelKey: "portal.home.kpis.free.pipelines" },+ { labelKey: "portal.home.kpis.free.agents" },],pro: [- { labelKey: "home.kpis.pro.docs30d" },- { labelKey: "home.kpis.pro.pipelines" },- { labelKey: "home.kpis.pro.agentsActive" },- { labelKey: "home.kpis.pro.evalPassRate" },+ { labelKey: "portal.home.kpis.pro.docs30d" },+ { labelKey: "portal.home.kpis.pro.pipelines" },+ { labelKey: "portal.home.kpis.pro.agentsActive" },+ { labelKey: "portal.home.kpis.pro.evalPassRate" },],enterprise: [- { labelKey: "home.kpis.enterprise.docs30d" },- { labelKey: "home.kpis.enterprise.p95Latency" },- { labelKey: "home.kpis.enterprise.evalPassRate" },- { labelKey: "home.kpis.enterprise.slaUptime" },+ { labelKey: "portal.home.kpis.enterprise.docs30d" },+ { labelKey: "portal.home.kpis.enterprise.p95Latency" },+ { labelKey: "portal.home.kpis.enterprise.evalPassRate" },+ { labelKey: "portal.home.kpis.enterprise.slaUptime" },],};@@ -429,8 +429,12 @@ function EnterpriseRegions() {return (<section className="portal-home__region-block"><header className="portal-home__region-header">- <h2 className="portal-home__region-title">{t("home.regions.title")}</h2>- <p className="portal-home__region-sub">{t("home.regions.subtitle")}</p>+ <h2 className="portal-home__region-title">+ {t("portal.home.regions.title")}+ </h2>+ <p className="portal-home__region-sub">+ {t("portal.home.regions.subtitle")}+ </p></header>{isLoading && (@@ -447,8 +451,8 @@ function EnterpriseRegions() {{isEmpty && (<EmptyStatesize="compact"- title={t("home.regions.empty.title")}- description={t("home.regions.empty.description")}+ title={t("portal.home.regions.empty.title")}+ description={t("portal.home.regions.empty.description")}/>)}@@ -506,8 +510,8 @@ function ChartSection() {if (!usage || usage.points.length === 0) {return (<EmptyState- title={t("home.chart.empty.title")}- description={t("home.chart.empty.description")}+ title={t("portal.home.chart.empty.title")}+ description={t("portal.home.chart.empty.description")}/>);}diff --git a/frontend/portal/src/views/Infrastructure.css b/frontend/editor/src/portal/views/Infrastructure.csssimilarity index 100%rename from frontend/portal/src/views/Infrastructure.cssrename to frontend/editor/src/portal/views/Infrastructure.cssdiff --git a/frontend/portal/src/views/Infrastructure.tsx b/frontend/editor/src/portal/views/Infrastructure.tsxsimilarity index 67%rename from frontend/portal/src/views/Infrastructure.tsxrename to frontend/editor/src/portal/views/Infrastructure.tsxindex ef088cf6b7..eebea50483 100644--- a/frontend/portal/src/views/Infrastructure.tsx+++ b/frontend/editor/src/portal/views/Infrastructure.tsx@@ -1,6 +1,6 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { Button, Tabs, type TabItem } from "@shared/components";+import { Button, Tabs, type TabItem } from "@app/ui";import { useView } from "@portal/contexts/ViewContext";import { DeploymentsTab } from "@portal/components/infrastructure/DeploymentsTab";import { ApiKeysTab } from "@portal/components/infrastructure/ApiKeysTab";@@ -24,27 +24,31 @@ export function Infrastructure() {const { setActiveView } = useView();const tabs: TabItem<InfraTab>[] = [- { key: "deployments", label: t("infrastructure.tabs.deployments") },- { key: "api-keys", label: t("infrastructure.tabs.apiKeys") },- { key: "security", label: t("infrastructure.tabs.security") },- { key: "models", label: t("infrastructure.tabs.models") },- { key: "storage", label: t("infrastructure.tabs.storage") },- { key: "audit", label: t("infrastructure.tabs.audit") },+ { key: "deployments", label: t("portal.infrastructure.tabs.deployments") },+ { key: "api-keys", label: t("portal.infrastructure.tabs.apiKeys") },+ { key: "security", label: t("portal.infrastructure.tabs.security") },+ { key: "models", label: t("portal.infrastructure.tabs.models") },+ { key: "storage", label: t("portal.infrastructure.tabs.storage") },+ { key: "audit", label: t("portal.infrastructure.tabs.audit") },];return (<div className="portal-infra"><header className="portal-infra__head"><div className="portal-infra__head-text">- <h1 className="portal-infra__title">{t("infrastructure.title")}</h1>- <p className="portal-infra__sub">{t("infrastructure.subtitle")}</p>+ <h1 className="portal-infra__title">+ {t("portal.infrastructure.title")}+ </h1>+ <p className="portal-infra__sub">+ {t("portal.infrastructure.subtitle")}+ </p></div><Buttonvariant="outline"size="sm"onClick={() => setActiveView("editor")}>- {t("infrastructure.manageEditorDeployment")}+ {t("portal.infrastructure.manageEditorDeployment")}</Button></header>@@ -53,7 +57,7 @@ export function Infrastructure() {activeKey={tab}onChange={setTab}variant="underline"- ariaLabel={t("infrastructure.sectionsAriaLabel")}+ ariaLabel={t("portal.infrastructure.sectionsAriaLabel")}/><div className="portal-infra__panel">diff --git a/frontend/portal/src/views/Pipelines.css b/frontend/editor/src/portal/views/Pipelines.csssimilarity index 100%rename from frontend/portal/src/views/Pipelines.cssrename to frontend/editor/src/portal/views/Pipelines.cssdiff --git a/frontend/portal/src/views/Pipelines.test.tsx b/frontend/editor/src/portal/views/Pipelines.test.tsxsimilarity index 90%rename from frontend/portal/src/views/Pipelines.test.tsxrename to frontend/editor/src/portal/views/Pipelines.test.tsxindex 579181b1ce..6b69d8ca33 100644--- a/frontend/portal/src/views/Pipelines.test.tsx+++ b/frontend/editor/src/portal/views/Pipelines.test.tsx@@ -133,8 +133,8 @@ describe("Pipelines view", () => {renderView();fireEvent.click(await screen.findByText("Redaction sweep"));- fireEvent.click(await screen.findByText("pipelines.detail.delete"));- fireEvent.click(await screen.findByText("pipelines.delete.confirm"));+ fireEvent.click(await screen.findByText("portal.pipelines.detail.delete"));+ fireEvent.click(await screen.findByText("portal.pipelines.delete.confirm"));await waitFor(() => {expect(deletePipeline).toHaveBeenCalledWith("plc-redaction");@@ -152,7 +152,7 @@ describe("Pipelines view", () => {renderView();fireEvent.click(await screen.findByText("Redaction sweep"));- fireEvent.click(await screen.findByText("pipelines.detail.pause"));+ fireEvent.click(await screen.findByText("portal.pipelines.detail.pause"));await waitFor(() => {expect(savePipeline).toHaveBeenCalledTimes(1);@@ -180,13 +180,13 @@ describe("Pipelines view", () => {renderView();fireEvent.click(await screen.findByText("Redaction sweep"));- fireEvent.click(await screen.findByText("pipelines.detail.run"));+ fireEvent.click(await screen.findByText("portal.pipelines.detail.run"));await waitFor(() => {expect(triggerPipeline).toHaveBeenCalledWith("plc-redaction");});expect(- await screen.findByText("pipelines.run.completed"),+ await screen.findByText("portal.pipelines.run.completed"),).toBeInTheDocument();});@@ -207,9 +207,11 @@ describe("Pipelines view", () => {renderView();fireEvent.click(await screen.findByText("Redaction sweep"));- fireEvent.click(await screen.findByText("pipelines.detail.run"));+ fireEvent.click(await screen.findByText("portal.pipelines.detail.run"));- expect(await screen.findByText("pipelines.run.failed")).toBeInTheDocument();+ expect(+ await screen.findByText("portal.pipelines.run.failed"),+ ).toBeInTheDocument();});it("creates a pipeline with the chosen name and chained operation", async () => {@@ -221,14 +223,14 @@ describe("Pipelines view", () => {// Wait for the table so the initial fetch has settled, then open the composer.await screen.findByText("Redaction sweep");- fireEvent.click(screen.getByText("pipelines.actions.newPipeline"));+ fireEvent.click(screen.getByText("portal.pipelines.actions.newPipeline"));fireEvent.change(await screen.findByRole("textbox"), {target: { value: "Nightly compress" },});// Operation palette chip labels are derived from the endpoint path.fireEvent.click(await screen.findByText("+ Compress"));- fireEvent.click(screen.getByText("pipelines.composer.create"));+ fireEvent.click(screen.getByText("portal.pipelines.composer.create"));await waitFor(() => {expect(savePipeline).toHaveBeenCalledTimes(1);diff --git a/frontend/portal/src/views/Pipelines.tsx b/frontend/editor/src/portal/views/Pipelines.tsxsimilarity index 86%rename from frontend/portal/src/views/Pipelines.tsxrename to frontend/editor/src/portal/views/Pipelines.tsxindex df003f6915..d87e697446 100644--- a/frontend/portal/src/views/Pipelines.tsx+++ b/frontend/editor/src/portal/views/Pipelines.tsx@@ -1,12 +1,6 @@import { useCallback, useState } from "react";import { useTranslation } from "react-i18next";-import {- Banner,- Button,- EmptyState,- Modal,- Skeleton,-} from "@shared/components";+import { Banner, Button, EmptyState, Modal, Skeleton } from "@app/ui";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import { errorMessage } from "@portal/api/http";import {@@ -113,11 +107,15 @@ export function Pipelines() {<div className="portal-pipelines"><header className="portal-pipelines__head"><div>- <h1 className="portal-pipelines__title">{t("pipelines.title")}</h1>- <p className="portal-pipelines__sub">{t("pipelines.subtitle")}</p>+ <h1 className="portal-pipelines__title">+ {t("portal.pipelines.title")}+ </h1>+ <p className="portal-pipelines__sub">+ {t("portal.pipelines.subtitle")}+ </p></div><Button onClick={openCreate} leadingIcon={<span aria-hidden>+</span>}>- {t("pipelines.actions.newPipeline")}+ {t("portal.pipelines.actions.newPipeline")}</Button></header>@@ -135,10 +133,12 @@ export function Pipelines() {{isEmpty && (<EmptyState- title={t("pipelines.empty.title")}- description={t("pipelines.empty.description")}+ title={t("portal.pipelines.empty.title")}+ description={t("portal.pipelines.empty.description")}actions={- <Button onClick={openCreate}>{t("pipelines.empty.action")}</Button>+ <Button onClick={openCreate}>+ {t("portal.pipelines.empty.action")}+ </Button>}/>)}@@ -175,7 +175,7 @@ export function Pipelines() {open={pendingDelete !== null}onClose={() => !deleting && setPendingDelete(null)}width="sm"- title={t("pipelines.delete.title")}+ title={t("portal.pipelines.delete.title")}footer={<div className="portal-pipelines__composer-footer"><Button@@ -184,7 +184,7 @@ export function Pipelines() {disabled={deleting}onClick={() => setPendingDelete(null)}>- {t("pipelines.delete.cancel")}+ {t("portal.pipelines.delete.cancel")}</Button><Buttonsize="sm"@@ -192,12 +192,16 @@ export function Pipelines() {loading={deleting}onClick={confirmDelete}>- {t("pipelines.delete.confirm")}+ {t("portal.pipelines.delete.confirm")}</Button></div>}>- <p>{t("pipelines.delete.body", { name: pendingDelete?.name ?? "" })}</p>+ <p>+ {t("portal.pipelines.delete.body", {+ name: pendingDelete?.name ?? "",+ })}+ </p>{deleteError && <Banner tone="danger" description={deleteError} />}</Modal></div>diff --git a/frontend/portal/src/views/Policies.css b/frontend/editor/src/portal/views/Policies.csssimilarity index 100%rename from frontend/portal/src/views/Policies.cssrename to frontend/editor/src/portal/views/Policies.cssdiff --git a/frontend/portal/src/views/Policies.tsx b/frontend/editor/src/portal/views/Policies.tsxsimilarity index 92%rename from frontend/portal/src/views/Policies.tsxrename to frontend/editor/src/portal/views/Policies.tsxindex e9eb33b95d..d0c4e05d49 100644--- a/frontend/portal/src/views/Policies.tsx+++ b/frontend/editor/src/portal/views/Policies.tsx@@ -1,6 +1,6 @@import { useCallback, useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button, Skeleton } from "@shared/components";+import { Banner, Button, Skeleton } from "@app/ui";import { errorMessage } from "@portal/api/http";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -111,8 +111,8 @@ export function Policies() {return (<div className="portal-policies"><header className="portal-policies__head">- <h1 className="portal-policies__title">{t("policies.title")}</h1>- <p className="portal-policies__sub">{t("policies.subtitle")}</p>+ <h1 className="portal-policies__title">{t("portal.policies.title")}</h1>+ <p className="portal-policies__sub">{t("portal.policies.subtitle")}</p></header>{pageError && <Banner tone="danger" description={pageError} />}@@ -130,11 +130,11 @@ export function Policies() {{!isLoading && fetchError && (<Bannertone="warning"- title={t("policies.offline.title")}- description={t("policies.offline.description")}+ title={t("portal.policies.offline.title")}+ description={t("portal.policies.offline.description")}action={<Button variant="outline" size="sm" onClick={refetch}>- {t("policies.offline.retry")}+ {t("portal.policies.offline.retry")}</Button>}/>diff --git a/frontend/portal/src/views/Procurement.css b/frontend/editor/src/portal/views/Procurement.csssimilarity index 100%rename from frontend/portal/src/views/Procurement.cssrename to frontend/editor/src/portal/views/Procurement.cssdiff --git a/frontend/portal/src/views/Procurement.tsx b/frontend/editor/src/portal/views/Procurement.tsxsimilarity index 90%rename from frontend/portal/src/views/Procurement.tsxrename to frontend/editor/src/portal/views/Procurement.tsxindex f41bbe52d4..f4fa25178a 100644--- a/frontend/portal/src/views/Procurement.tsx+++ b/frontend/editor/src/portal/views/Procurement.tsx@@ -1,6 +1,6 @@import { useEffect, useState } from "react";import { useTranslation } from "react-i18next";-import { Card, Skeleton, StatusBadge } from "@shared/components";+import { Card, Skeleton, StatusBadge } from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync } from "@portal/hooks/useAsync";import {@@ -51,11 +51,15 @@ export function Procurement() {<div className="portal-proc"><header className="portal-proc__header"><div>- <h1 className="portal-proc__title">{t("procurement.title")}</h1>- <p className="portal-proc__subtitle">{t("procurement.subtitle")}</p>+ <h1 className="portal-proc__title">+ {t("portal.procurement.title")}+ </h1>+ <p className="portal-proc__subtitle">+ {t("portal.procurement.subtitle")}+ </p></div><StatusBadge tone="purple" size="md">- {t("procurement.enterpriseBadge")}+ {t("portal.procurement.enterpriseBadge")}</StatusBadge></header>diff --git a/frontend/portal/src/views/Sources.css b/frontend/editor/src/portal/views/Sources.csssimilarity index 100%rename from frontend/portal/src/views/Sources.cssrename to frontend/editor/src/portal/views/Sources.cssdiff --git a/frontend/portal/src/views/Sources.test.tsx b/frontend/editor/src/portal/views/Sources.test.tsxsimilarity index 94%rename from frontend/portal/src/views/Sources.test.tsxrename to frontend/editor/src/portal/views/Sources.test.tsxindex 191e30bbd8..a68399d588 100644--- a/frontend/portal/src/views/Sources.test.tsx+++ b/frontend/editor/src/portal/views/Sources.test.tsx@@ -97,10 +97,10 @@ describe("Sources view", () => {fireEvent.click(row);// Detail card opens with its delete action.- fireEvent.click(await screen.findByText("sources.detail.delete"));+ fireEvent.click(await screen.findByText("portal.sources.detail.delete"));// Confirm in the dialog.- fireEvent.click(await screen.findByText("sources.delete.confirm"));+ fireEvent.click(await screen.findByText("portal.sources.delete.confirm"));await waitFor(() => {expect(deleteSource).toHaveBeenCalledWith("src-referenced");@@ -125,7 +125,7 @@ describe("Sources view", () => {renderView();fireEvent.click(await screen.findByText("Claims intake"));- fireEvent.click(await screen.findByText("sources.detail.pause"));+ fireEvent.click(await screen.findByText("portal.sources.detail.pause"));await waitFor(() => {expect(createSource).toHaveBeenCalledTimes(1);diff --git a/frontend/portal/src/views/Sources.tsx b/frontend/editor/src/portal/views/Sources.tsxsimilarity index 89%rename from frontend/portal/src/views/Sources.tsxrename to frontend/editor/src/portal/views/Sources.tsxindex 7df5f1680e..b44eacb2ec 100644--- a/frontend/portal/src/views/Sources.tsx+++ b/frontend/editor/src/portal/views/Sources.tsx@@ -1,12 +1,6 @@import { useCallback, useState } from "react";import { useTranslation } from "react-i18next";-import {- Banner,- Button,- EmptyState,- Modal,- Skeleton,-} from "@shared/components";+import { Banner, Button, EmptyState, Modal, Skeleton } from "@app/ui";import { useView } from "@portal/contexts/ViewContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import { errorMessage } from "@portal/api/http";@@ -128,8 +122,8 @@ export function Sources() {<div className="portal-sources"><header className="portal-sources__head"><div>- <h1 className="portal-sources__title">{t("sources.title")}</h1>- <p className="portal-sources__sub">{t("sources.subtitle")}</p>+ <h1 className="portal-sources__title">{t("portal.sources.title")}</h1>+ <p className="portal-sources__sub">{t("portal.sources.subtitle")}</p></div><div className="portal-sources__actions"><Button@@ -137,10 +131,10 @@ export function Sources() {onClick={() => setActiveView("agent-builder")}leadingIcon={<AgentBuilderIcon size={16} />}>- {t("sources.actions.agentBuilder")}+ {t("portal.sources.actions.agentBuilder")}</Button><Button onClick={openCreate} leadingIcon={<span aria-hidden>+</span>}>- {t("sources.actions.connectSource")}+ {t("portal.sources.actions.connectSource")}</Button></div></header>@@ -159,11 +153,11 @@ export function Sources() {{isEmpty && (<EmptyState- title={t("sources.empty.title")}- description={t("sources.empty.description")}+ title={t("portal.sources.empty.title")}+ description={t("portal.sources.empty.description")}actions={<Button onClick={openCreate}>- {t("sources.actions.connectSource")}+ {t("portal.sources.actions.connectSource")}</Button>}/>@@ -202,7 +196,7 @@ export function Sources() {open={pendingDelete !== null}onClose={() => !deleting && setPendingDelete(null)}width="sm"- title={t("sources.delete.title")}+ title={t("portal.sources.delete.title")}footer={<div className="portal-sources__wizard-footer"><Button@@ -211,7 +205,7 @@ export function Sources() {disabled={deleting}onClick={() => setPendingDelete(null)}>- {t("sources.delete.cancel")}+ {t("portal.sources.delete.cancel")}</Button><Buttonsize="sm"@@ -219,12 +213,14 @@ export function Sources() {loading={deleting}onClick={confirmDelete}>- {t("sources.delete.confirm")}+ {t("portal.sources.delete.confirm")}</Button></div>}>- <p>{t("sources.delete.body", { name: pendingDelete?.name ?? "" })}</p>+ <p>+ {t("portal.sources.delete.body", { name: pendingDelete?.name ?? "" })}+ </p>{deleteError && <Banner tone="danger" description={deleteError} />}</Modal></div>diff --git a/frontend/portal/src/views/Usage.css b/frontend/editor/src/portal/views/Usage.csssimilarity index 100%rename from frontend/portal/src/views/Usage.cssrename to frontend/editor/src/portal/views/Usage.cssdiff --git a/frontend/portal/src/views/Usage.tsx b/frontend/editor/src/portal/views/Usage.tsxsimilarity index 90%rename from frontend/portal/src/views/Usage.tsxrename to frontend/editor/src/portal/views/Usage.tsxindex 817e2039e8..3a0229a886 100644--- a/frontend/portal/src/views/Usage.tsx+++ b/frontend/editor/src/portal/views/Usage.tsx@@ -1,6 +1,6 @@import { useCallback, useEffect, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import { Banner, Button, Skeleton } from "@shared/components";+import { Banner, Button, Skeleton } from "@app/ui";import { useLink } from "@portal/contexts/LinkContext";import { useUI } from "@portal/contexts/UIContext";import { fetchWallet, type Wallet } from "@portal/api/billing";@@ -90,7 +90,7 @@ export function Usage() {} else if (e instanceof HttpError) {setError(t(- "usage.error.walletUnavailable",+ "portal.usage.error.walletUnavailable","Wallet unavailable: {{status}} {{statusText}}",{status: e.status,@@ -145,11 +145,11 @@ export function Usage() {<div className="portal-usage__header-inner"><div><h1 className="portal-usage__title">- {t("usage.title", "Usage & billing")}+ {t("portal.usage.title", "Usage & billing")}</h1><p className="portal-usage__subtitle">{t(- "usage.subtitle",+ "portal.usage.subtitle","Consumption, invoices, and plan management for every PDF Stirling has billed, in one console.",)}</p>@@ -161,7 +161,7 @@ export function Usage() {loading={portal.opening}onClick={portal.open}>- {t("usage.managePayment", "Manage Payment")}+ {t("portal.usage.managePayment", "Manage Payment")}</Button>)}</div>@@ -180,10 +180,13 @@ export function Usage() {{isLinked && finalizing && (<Bannertone="info"- title={t("usage.finalizing.title", "Finalizing your subscription…")}+ title={t(+ "portal.usage.finalizing.title",+ "Finalizing your subscription…",+ )}>{t(- "usage.finalizing.body",+ "portal.usage.finalizing.body","It can take a few seconds for your subscription to activate. This page updates automatically.",)}</Banner>@@ -192,15 +195,15 @@ export function Usage() {{isLinked && needsReauth && (<Bannertone="warning"- title={t("usage.sessionExpired.title", "Session expired")}+ title={t("portal.usage.sessionExpired.title", "Session expired")}action={<Button size="sm" onClick={() => openLinkModal("reauth")}>- {t("usage.sessionExpired.action", "Sign in again")}+ {t("portal.usage.sessionExpired.action", "Sign in again")}</Button>}>{t(- "usage.sessionExpired.body",+ "portal.usage.sessionExpired.body","Your Stirling account session has expired. Sign in again to view billing — your instance stays linked.",)}</Banner>@@ -209,7 +212,7 @@ export function Usage() {{isLinked && error && (<Bannertone="danger"- title={t("usage.error.loadWallet", "Couldn't load wallet")}+ title={t("portal.usage.error.loadWallet", "Couldn't load wallet")}>{error}</Banner>@@ -219,7 +222,7 @@ export function Usage() {<Bannertone="danger"title={t(- "usage.error.openStripePortal",+ "portal.usage.error.openStripePortal","Couldn't open Stripe portal",)}>diff --git a/frontend/portal/src/views/Users.css b/frontend/editor/src/portal/views/Users.csssimilarity index 100%rename from frontend/portal/src/views/Users.cssrename to frontend/editor/src/portal/views/Users.cssdiff --git a/frontend/portal/src/views/Users.tsx b/frontend/editor/src/portal/views/Users.tsxsimilarity index 88%rename from frontend/portal/src/views/Users.tsxrename to frontend/editor/src/portal/views/Users.tsxindex c7ffac50df..4337436b8e 100644--- a/frontend/portal/src/views/Users.tsx+++ b/frontend/editor/src/portal/views/Users.tsx@@ -1,7 +1,7 @@import { useEffect, useState } from "react";import { useSearchParams } from "react-router-dom";import { useTranslation } from "react-i18next";-import { Button, EmptyState, Skeleton } from "@shared/components";+import { Button, EmptyState, Skeleton } from "@app/ui";import { useTier } from "@portal/contexts/TierContext";import { useAsync, useSectionFlags } from "@portal/hooks/useAsync";import {@@ -59,14 +59,14 @@ export function Users() {<div className="portal-users"><header className="portal-users__head"><div>- <h1 className="portal-users__title">{t("users.title")}</h1>- <p className="portal-users__sub">{t("users.subtitle")}</p>+ <h1 className="portal-users__title">{t("portal.users.title")}</h1>+ <p className="portal-users__sub">{t("portal.users.subtitle")}</p></div><ButtononClick={() => setInviteOpen(true)}leadingIcon={<span aria-hidden>+</span>}>- {t("common.inviteMember")}+ {t("portal.common.inviteMember")}</Button></header>@@ -82,11 +82,11 @@ export function Users() {{isEmpty && (<EmptyState- title={t("users.empty.title")}- description={t("users.empty.description")}+ title={t("portal.users.empty.title")}+ description={t("portal.users.empty.description")}actions={<Button onClick={() => setInviteOpen(true)}>- {t("common.inviteMember")}+ {t("portal.common.inviteMember")}</Button>}/>diff --git a/frontend/portal/src/vite-env.d.ts b/frontend/editor/src/portal/vite-env.d.tssimilarity index 96%rename from frontend/portal/src/vite-env.d.tsrename to frontend/editor/src/portal/vite-env.d.tsindex 73919fcfe8..07664b3f5f 100644--- a/frontend/portal/src/vite-env.d.ts+++ b/frontend/editor/src/portal/vite-env.d.ts@@ -9,7 +9,7 @@ interface ImportMetaEnv {readonly VITE_SAAS_API_URL: string;/** Stripe publishable key (pk_live_… / pk_test_…) used by embedded Checkout. */readonly VITE_STRIPE_PUBLISHABLE_KEY: string;- /** URL of the editor app (app switcher + non-admin redirect). See portal/.env. */+ /** URL of the editor app (app switcher + non-admin redirect). See editor/.env.proprietary. */readonly VITE_EDITOR_URL: string;/** Force MSW mocks on/off ("true"/"false"); empty falls back to dev default. */readonly VITE_PORTAL_MOCKS: string;diff --git a/frontend/editor/src/proprietary/App.tsx b/frontend/editor/src/proprietary/App.tsxindex 4f231e81c6..969f143959 100644--- a/frontend/editor/src/proprietary/App.tsx+++ b/frontend/editor/src/proprietary/App.tsx@@ -16,12 +16,13 @@ import MobileScannerPage from "@app/pages/MobileScannerPage";import Onboarding from "@app/components/onboarding/Onboarding";import WatchedFoldersRegistration from "@app/components/watchedFolders/WatchedFoldersRegistration";import { WATCHED_FOLDERS_ENABLED } from "@app/constants/featureFlags";+import { getAdminRouteExtensions } from "@app/routes/adminRouteExtensions";// Import global stylesimport "@app/styles/tailwind.css";import "@app/styles/cookieconsent.css";import "@app/styles/index.css";-import "@shared/auth/ui/auth-theme.css";+import "@app/auth/ui/auth-theme.css";// Import file ID debugging helpers (development only)import "@app/utils/fileIdSafety";@@ -67,6 +68,10 @@ export default function App() {}/>+ {/* Admin-only route-set (the portal): its own top-level shell, mounted+ before the catch-all. Absent from core/desktop builds (empty stub). */}+ {getAdminRouteExtensions()}+{/* All other routes need AppProviders for backend integration */}<Routepath="*"diff --git a/frontend/shared/auth/AuthProvider.tsx b/frontend/editor/src/proprietary/auth/AuthProvider.tsxsimilarity index 85%rename from frontend/shared/auth/AuthProvider.tsxrename to frontend/editor/src/proprietary/auth/AuthProvider.tsxindex 0898babe0e..7cce7e7403 100644--- a/frontend/shared/auth/AuthProvider.tsx+++ b/frontend/editor/src/proprietary/auth/AuthProvider.tsx@@ -4,13 +4,13 @@* consumers read `useAuth()` identically either way.*/import { lazy, Suspense, type ReactNode } from "react";-import { SpringAuthProvider } from "@shared/auth/spring/UseSession";-import { type AuthMode, type AuthTranslate } from "@shared/auth/types";+import { SpringAuthProvider } from "@app/auth/spring/UseSession";+import { type AuthMode, type AuthTranslate } from "@app/auth/types";// Lazy so Spring-mode hosts (e.g. the portal) don't bundle @supabase/supabase-js// they never use; only loaded when mode="supabase".const SupabaseAuthProvider = lazy(() =>- import("@shared/auth/supabase/UseSession").then((m) => ({+ import("@app/auth/supabase/UseSession").then((m) => ({default: m.SupabaseAuthProvider,})),);diff --git a/frontend/editor/src/proprietary/auth/UseSession.test.ts b/frontend/editor/src/proprietary/auth/UseSession.test.tsindex eb4dc4bba0..8271eb685f 100644--- a/frontend/editor/src/proprietary/auth/UseSession.test.ts+++ b/frontend/editor/src/proprietary/auth/UseSession.test.ts@@ -1,6 +1,6 @@import { describe, it, expect } from "vitest";import type { TFunction } from "i18next";-import type { User } from "@shared/auth/spring/springAuthClient";+import type { User } from "@app/auth/spring/springAuthClient";import { deriveDisplayName } from "@app/auth/UseSession";// Stub t() that returns the fallback string. The real i18next instancediff --git a/frontend/editor/src/proprietary/auth/UseSession.tsx b/frontend/editor/src/proprietary/auth/UseSession.tsxindex 4908ec61c5..92684adf0b 100644--- a/frontend/editor/src/proprietary/auth/UseSession.tsx+++ b/frontend/editor/src/proprietary/auth/UseSession.tsx@@ -4,14 +4,14 @@ import type { TFunction } from "i18next";import {SpringAuthProvider,deriveDisplayName as deriveDisplayNameShared,-} from "@shared/auth/spring/UseSession";-import { useAuth as useSharedAuth } from "@shared/auth/context";-import type { AuthUser } from "@shared/auth/types";+} from "@app/auth/spring/UseSession";+import { useAuth as useSharedAuth } from "@app/auth/context";+import type { AuthUser } from "@app/auth/types";// Side-effect import: wires the editor's transport + platform seams into the// shared Spring engine before AppProviders mounts the provider below.import "@app/auth/configureSpringAuth";-export type { AuthUser as User } from "@shared/auth/types";+export type { AuthUser as User } from "@app/auth/types";/*** Editor display-name helper. Keeps the i18next `TFunction` signature thediff --git a/frontend/shared/auth/config.ts b/frontend/editor/src/proprietary/auth/config.tssimilarity index 93%rename from frontend/shared/auth/config.tsrename to frontend/editor/src/proprietary/auth/config.tsindex 5004d0e314..a112a53de1 100644--- a/frontend/shared/auth/config.ts+++ b/frontend/editor/src/proprietary/auth/config.ts@@ -12,11 +12,11 @@* platform bridge).*/import type { AxiosInstance } from "axios";-import { createDefaultHttpClient } from "@shared/auth/httpClient";+import { createDefaultHttpClient } from "@app/auth/httpClient";import {defaultPlatformBridge,type PlatformBridge,-} from "@shared/auth/spring/platformBridge";+} from "@app/auth/spring/platformBridge";export interface SpringAuthConfig {/** Axios instance used for all /api/v1/auth + /api/v1/user calls. */diff --git a/frontend/editor/src/proprietary/auth/configureSpringAuth.ts b/frontend/editor/src/proprietary/auth/configureSpringAuth.tsindex 7998d58921..b480d0ab41 100644--- a/frontend/editor/src/proprietary/auth/configureSpringAuth.ts+++ b/frontend/editor/src/proprietary/auth/configureSpringAuth.ts@@ -10,7 +10,7 @@import type { AxiosInstance } from "axios";import apiClient from "@app/services/apiClient";import { BASE_PATH } from "@app/constants/app";-import { configureSpringAuth } from "@shared/auth/config";+import { configureSpringAuth } from "@app/auth/config";import {clearPlatformAuthAfterSignOut,clearPlatformAuthOnLoginInit,diff --git a/frontend/shared/auth/context.ts b/frontend/editor/src/proprietary/auth/context.tssimilarity index 92%rename from frontend/shared/auth/context.tsrename to frontend/editor/src/proprietary/auth/context.tsindex 41ea15e889..ae7dee4cbf 100644--- a/frontend/shared/auth/context.ts+++ b/frontend/editor/src/proprietary/auth/context.ts@@ -4,7 +4,7 @@* regardless of which backend authenticated the user.*/import { createContext, useContext } from "react";-import type { AuthContextValue } from "@shared/auth/types";+import type { AuthContextValue } from "@app/auth/types";export const AuthContext = createContext<AuthContextValue>({session: null,diff --git a/frontend/shared/auth/guards/RequireAdmin.tsx b/frontend/editor/src/proprietary/auth/guards/RequireAdmin.tsxsimilarity index 96%rename from frontend/shared/auth/guards/RequireAdmin.tsxrename to frontend/editor/src/proprietary/auth/guards/RequireAdmin.tsxindex 7f1c05cb70..8b611ad332 100644--- a/frontend/shared/auth/guards/RequireAdmin.tsx+++ b/frontend/editor/src/proprietary/auth/guards/RequireAdmin.tsx@@ -7,7 +7,7 @@* editor) and renders `forbidden` in the meantime*/import { useEffect, type ReactNode } from "react";-import { useAuth } from "@shared/auth/context";+import { useAuth } from "@app/auth/context";export interface RequireAdminProps {children: ReactNode;diff --git a/frontend/shared/auth/guards/RequireAuth.tsx b/frontend/editor/src/proprietary/auth/guards/RequireAuth.tsxsimilarity index 93%rename from frontend/shared/auth/guards/RequireAuth.tsxrename to frontend/editor/src/proprietary/auth/guards/RequireAuth.tsxindex 825b443fe5..eee4097502 100644--- a/frontend/shared/auth/guards/RequireAuth.tsx+++ b/frontend/editor/src/proprietary/auth/guards/RequireAuth.tsx@@ -4,7 +4,7 @@* (typically a login screen).*/import { type ReactNode } from "react";-import { useAuth } from "@shared/auth/context";+import { useAuth } from "@app/auth/context";export interface RequireAuthProps {children: ReactNode;diff --git a/frontend/shared/auth/guards/RequirePortalAccess.tsx b/frontend/editor/src/proprietary/auth/guards/RequirePortalAccess.tsxsimilarity index 95%rename from frontend/shared/auth/guards/RequirePortalAccess.tsxrename to frontend/editor/src/proprietary/auth/guards/RequirePortalAccess.tsxindex 0e6e223013..8bc12a0c59 100644--- a/frontend/shared/auth/guards/RequirePortalAccess.tsx+++ b/frontend/editor/src/proprietary/auth/guards/RequirePortalAccess.tsx@@ -1,6 +1,6 @@// Renders children only for a user with portal access; otherwise calls onForbidden.import { useEffect, type ReactNode } from "react";-import { useAuth } from "@shared/auth/context";+import { useAuth } from "@app/auth/context";export interface RequirePortalAccessProps {children: ReactNode;diff --git a/frontend/shared/auth/httpClient.ts b/frontend/editor/src/proprietary/auth/httpClient.tssimilarity index 100%rename from frontend/shared/auth/httpClient.tsrename to frontend/editor/src/proprietary/auth/httpClient.tsdiff --git a/frontend/shared/auth/index.ts b/frontend/editor/src/proprietary/auth/index.tssimilarity index 64%rename from frontend/shared/auth/index.tsrename to frontend/editor/src/proprietary/auth/index.tsindex 61a99c87ac..6b4747f369 100644--- a/frontend/shared/auth/index.ts+++ b/frontend/editor/src/proprietary/auth/index.ts@@ -11,50 +11,47 @@*/// Contract + helpers-export * from "@shared/auth/types";-export { isAdminRole } from "@shared/auth/roles";-export { AuthContext, useAuth } from "@shared/auth/context";+export * from "@app/auth/types";+export { isAdminRole } from "@app/auth/roles";+export { AuthContext, useAuth } from "@app/auth/context";// Unified provider + guards-export {- AuthProvider,- type AuthProviderProps,-} from "@shared/auth/AuthProvider";+export { AuthProvider, type AuthProviderProps } from "@app/auth/AuthProvider";export {RequireAuth,type RequireAuthProps,-} from "@shared/auth/guards/RequireAuth";+} from "@app/auth/guards/RequireAuth";export {RequireAdmin,type RequireAdminProps,-} from "@shared/auth/guards/RequireAdmin";+} from "@app/auth/guards/RequireAdmin";export {RequirePortalAccess,type RequirePortalAccessProps,-} from "@shared/auth/guards/RequirePortalAccess";+} from "@app/auth/guards/RequirePortalAccess";// Spring backendexport {configureSpringAuth,getSpringAuthConfig,type SpringAuthConfig,-} from "@shared/auth/config";+} from "@app/auth/config";export {type PlatformBridge,type PlatformSessionUser,defaultPlatformBridge,-} from "@shared/auth/spring/platformBridge";+} from "@app/auth/spring/platformBridge";export {createDefaultHttpClient,getStoredToken,setStoredToken,clearStoredToken,JWT_STORAGE_KEY,-} from "@shared/auth/httpClient";+} from "@app/auth/httpClient";export {SpringAuthProvider,deriveDisplayName,-} from "@shared/auth/spring/UseSession";+} from "@app/auth/spring/UseSession";export {springAuth,setPostLoginRedirectPath,@@ -65,15 +62,15 @@ export {isUserAnonymous,createAnonymousUser,createAnonymousSession,-} from "@shared/auth/spring/springAuthClient";-export type { OAuthProvider } from "@shared/auth/spring/oauthTypes";+} from "@app/auth/spring/springAuthClient";+export type { OAuthProvider } from "@app/auth/spring/oauthTypes";// Supabase backend is intentionally NOT re-exported here: doing so would pull// @supabase/supabase-js into every barrel consumer (e.g. the portal in Spring// mode). Supabase-mode hosts import directly from the subpath:-// import { configureSupabase } from "@shared/auth/supabase/supabaseClient";+// import { configureSupabase } from "@app/auth/supabase/supabaseClient";// The unified <AuthProvider mode="supabase"> lazy-loads the provider on demand.-// Login UI components live under @shared/auth/ui/* and are imported directly-// (default exports), e.g. `import OAuthButtons from "@shared/auth/ui/OAuthButtons"`.+// Login UI components live under @app/auth/ui/* and are imported directly+// (default exports), e.g. `import OAuthButtons from "@app/auth/ui/OAuthButtons"`.// They use react-i18next, so hosts must initialise i18next.diff --git a/frontend/shared/auth/roles.ts b/frontend/editor/src/proprietary/auth/roles.tssimilarity index 100%rename from frontend/shared/auth/roles.tsrename to frontend/editor/src/proprietary/auth/roles.tsdiff --git a/frontend/shared/auth/spring/UseSession.tsx b/frontend/editor/src/proprietary/auth/spring/UseSession.tsxsimilarity index 95%rename from frontend/shared/auth/spring/UseSession.tsxrename to frontend/editor/src/proprietary/auth/spring/UseSession.tsxindex 9e0954ef82..289f2ec895 100644--- a/frontend/shared/auth/spring/UseSession.tsx+++ b/frontend/editor/src/proprietary/auth/spring/UseSession.tsx@@ -1,8 +1,8 @@import { useEffect, useState, useCallback, type ReactNode } from "react";-import { springAuth } from "@shared/auth/spring/springAuthClient";-import { getSpringAuthConfig } from "@shared/auth/config";-import { isAdminRole } from "@shared/auth/roles";-import { AuthContext } from "@shared/auth/context";+import { springAuth } from "@app/auth/spring/springAuthClient";+import { getSpringAuthConfig } from "@app/auth/config";+import { isAdminRole } from "@app/auth/roles";+import { AuthContext } from "@app/auth/context";import {defaultTranslate,type AuthContextValue,@@ -11,7 +11,7 @@ import {type AuthSession,type AuthUser,type AuthTranslate,-} from "@shared/auth/types";+} from "@app/auth/types";/*** Strip the configured base path so route comparisons work under subpathdiff --git a/frontend/shared/auth/spring/oauthStorage.ts b/frontend/editor/src/proprietary/auth/spring/oauthStorage.tssimilarity index 100%rename from frontend/shared/auth/spring/oauthStorage.tsrename to frontend/editor/src/proprietary/auth/spring/oauthStorage.tsdiff --git a/frontend/shared/auth/spring/oauthTypes.ts b/frontend/editor/src/proprietary/auth/spring/oauthTypes.tssimilarity index 100%rename from frontend/shared/auth/spring/oauthTypes.tsrename to frontend/editor/src/proprietary/auth/spring/oauthTypes.tsdiff --git a/frontend/shared/auth/spring/platformBridge.ts b/frontend/editor/src/proprietary/auth/spring/platformBridge.tssimilarity index 100%rename from frontend/shared/auth/spring/platformBridge.tsrename to frontend/editor/src/proprietary/auth/spring/platformBridge.tsdiff --git a/frontend/shared/auth/spring/springAuthClient.ts b/frontend/editor/src/proprietary/auth/spring/springAuthClient.tssimilarity index 98%rename from frontend/shared/auth/spring/springAuthClient.tsrename to frontend/editor/src/proprietary/auth/spring/springAuthClient.tsindex 885e070d21..96440ff650 100644--- a/frontend/shared/auth/spring/springAuthClient.ts+++ b/frontend/editor/src/proprietary/auth/spring/springAuthClient.ts@@ -7,22 +7,22 @@* - No email confirmation flow (auto-confirmed on registration)** This is the platform-agnostic engine. The HTTP transport, base path and- * platform-specific behaviour are injected via `@shared/auth/config` so the+ * platform-specific behaviour are injected via `@app/auth/config` so the* same code backs the editor (which injects its apiClient + desktop bridge)* and the portal (web defaults).*/import { AxiosError, type AxiosRequestConfig } from "axios";-import { getSpringAuthConfig } from "@shared/auth/config";-import { type OAuthProvider } from "@shared/auth/spring/oauthTypes";-import { resetOAuthState } from "@shared/auth/spring/oauthStorage";+import { getSpringAuthConfig } from "@app/auth/config";+import { type OAuthProvider } from "@app/auth/spring/oauthTypes";+import { resetOAuthState } from "@app/auth/spring/oauthStorage";import type {AuthUser as User,AuthSession as Session,AuthError,AuthResponse,AuthChangeEvent,-} from "@shared/auth/types";+} from "@app/auth/types";export type { User, Session, AuthError, AuthResponse, AuthChangeEvent };diff --git a/frontend/editor/src/proprietary/auth/springAuthClient.test.ts b/frontend/editor/src/proprietary/auth/springAuthClient.test.tsindex 5eab014103..10c7dafddb 100644--- a/frontend/editor/src/proprietary/auth/springAuthClient.test.ts+++ b/frontend/editor/src/proprietary/auth/springAuthClient.test.ts@@ -5,7 +5,7 @@ import {POST_LOGIN_REDIRECT_STORAGE_KEY,setPostLoginRedirectPath,springAuth,-} from "@shared/auth/spring/springAuthClient";+} from "@app/auth/spring/springAuthClient";import { startOAuthNavigation } from "@app/extensions/oauthNavigation";import apiClient from "@app/services/apiClient";// Side-effect: configures the shared Spring engine with the (mocked) apiClientdiff --git a/frontend/shared/auth/supabase/UseSession.tsx b/frontend/editor/src/proprietary/auth/supabase/UseSession.tsxsimilarity index 95%rename from frontend/shared/auth/supabase/UseSession.tsxrename to frontend/editor/src/proprietary/auth/supabase/UseSession.tsxindex 81cf6a9842..c541ec5f24 100644--- a/frontend/shared/auth/supabase/UseSession.tsx+++ b/frontend/editor/src/proprietary/auth/supabase/UseSession.tsx@@ -13,9 +13,9 @@ import type {Session as SbSession,User as SbUser,} from "@supabase/supabase-js";-import { getSupabaseClient } from "@shared/auth/supabase/supabaseClient";-import { AuthContext } from "@shared/auth/context";-import { isAdminRole } from "@shared/auth/roles";+import { getSupabaseClient } from "@app/auth/supabase/supabaseClient";+import { AuthContext } from "@app/auth/context";+import { isAdminRole } from "@app/auth/roles";import {defaultTranslate,type AuthContextValue,@@ -23,7 +23,7 @@ import {type AuthSession,type AuthUser,type AuthTranslate,-} from "@shared/auth/types";+} from "@app/auth/types";function readRole(user: SbUser): string {const appRole = (user.app_metadata as { role?: unknown } | undefined)?.role;diff --git a/frontend/shared/auth/supabase/supabaseClient.ts b/frontend/editor/src/proprietary/auth/supabase/supabaseClient.tssimilarity index 100%rename from frontend/shared/auth/supabase/supabaseClient.tsrename to frontend/editor/src/proprietary/auth/supabase/supabaseClient.tsdiff --git a/frontend/shared/auth/types.ts b/frontend/editor/src/proprietary/auth/types.tssimilarity index 100%rename from frontend/shared/auth/types.tsrename to frontend/editor/src/proprietary/auth/types.tsdiff --git a/frontend/shared/auth/ui/AuthShell.module.css b/frontend/editor/src/proprietary/auth/ui/AuthShell.module.csssimilarity index 100%rename from frontend/shared/auth/ui/AuthShell.module.cssrename to frontend/editor/src/proprietary/auth/ui/AuthShell.module.cssdiff --git a/frontend/shared/auth/ui/AuthShell.tsx b/frontend/editor/src/proprietary/auth/ui/AuthShell.tsxsimilarity index 97%rename from frontend/shared/auth/ui/AuthShell.tsxrename to frontend/editor/src/proprietary/auth/ui/AuthShell.tsxindex d28c64382b..13f9e7d80b 100644--- a/frontend/shared/auth/ui/AuthShell.tsx+++ b/frontend/editor/src/proprietary/auth/ui/AuthShell.tsx@@ -1,5 +1,5 @@import { useEffect, useRef, useState, type ReactNode } from "react";-import styles from "@shared/auth/ui/AuthShell.module.css";+import styles from "@app/auth/ui/AuthShell.module.css";export interface AuthShellProps {children: ReactNode;diff --git a/frontend/shared/auth/ui/EmailPasswordForm.tsx b/frontend/editor/src/proprietary/auth/ui/EmailPasswordForm.tsxsimilarity index 99%rename from frontend/shared/auth/ui/EmailPasswordForm.tsxrename to frontend/editor/src/proprietary/auth/ui/EmailPasswordForm.tsxindex c20fde34b5..7fa97ecc09 100644--- a/frontend/shared/auth/ui/EmailPasswordForm.tsx+++ b/frontend/editor/src/proprietary/auth/ui/EmailPasswordForm.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import { TextInput, PasswordInput, Button } from "@mantine/core";// Force light mode styles for auth inputsdiff --git a/frontend/shared/auth/ui/ErrorMessage.tsx b/frontend/editor/src/proprietary/auth/ui/ErrorMessage.tsxsimilarity index 100%rename from frontend/shared/auth/ui/ErrorMessage.tsxrename to frontend/editor/src/proprietary/auth/ui/ErrorMessage.tsxdiff --git a/frontend/shared/auth/ui/LoginRightCarousel.tsx b/frontend/editor/src/proprietary/auth/ui/LoginRightCarousel.tsxsimilarity index 98%rename from frontend/shared/auth/ui/LoginRightCarousel.tsxrename to frontend/editor/src/proprietary/auth/ui/LoginRightCarousel.tsxindex 5d764333f1..7a2d76d129 100644--- a/frontend/shared/auth/ui/LoginRightCarousel.tsx+++ b/frontend/editor/src/proprietary/auth/ui/LoginRightCarousel.tsx@@ -1,5 +1,5 @@import { memo, useEffect, useMemo, useRef, useState } from "react";-import bgDefault from "@shared/assets/login/LoginBackgroundPanel.png";+import bgDefault from "@app/assets/login/LoginBackgroundPanel.png";export type ImageSlide = {src: string;diff --git a/frontend/shared/auth/ui/OAuthButtons.tsx b/frontend/editor/src/proprietary/auth/ui/OAuthButtons.tsxsimilarity index 98%rename from frontend/shared/auth/ui/OAuthButtons.tsxrename to frontend/editor/src/proprietary/auth/ui/OAuthButtons.tsxindex 2651e14c36..ad1a3b82f7 100644--- a/frontend/shared/auth/ui/OAuthButtons.tsx+++ b/frontend/editor/src/proprietary/auth/ui/OAuthButtons.tsx@@ -1,10 +1,7 @@import { useTranslation } from "react-i18next";-import { type OAuthProvider } from "@shared/auth/spring/oauthTypes";+import { type OAuthProvider } from "@app/auth/spring/oauthTypes";import { Button } from "@mantine/core";-import {- oauthIconUrl,- GENERIC_PROVIDER_ICON,-} from "@shared/auth/ui/oauthIcons";+import { oauthIconUrl, GENERIC_PROVIDER_ICON } from "@app/auth/ui/oauthIcons";// Debug flag to show all providers for UI testing// Set to true to see all SSO options regardless of backend configurationdiff --git a/frontend/shared/auth/ui/SpringLoginForm.tsx b/frontend/editor/src/proprietary/auth/ui/SpringLoginForm.tsxsimilarity index 93%rename from frontend/shared/auth/ui/SpringLoginForm.tsxrename to frontend/editor/src/proprietary/auth/ui/SpringLoginForm.tsxindex 985af89e3e..f6c616fd77 100644--- a/frontend/shared/auth/ui/SpringLoginForm.tsx+++ b/frontend/editor/src/proprietary/auth/ui/SpringLoginForm.tsx@@ -1,9 +1,9 @@import type { ReactNode } from "react";import { useTranslation } from "react-i18next";-import ErrorMessage from "@shared/auth/ui/ErrorMessage";-import EmailPasswordForm from "@shared/auth/ui/EmailPasswordForm";-import OAuthButtons from "@shared/auth/ui/OAuthButtons";-import type { SpringLoginState } from "@shared/auth/ui/useSpringLogin";+import ErrorMessage from "@app/auth/ui/ErrorMessage";+import EmailPasswordForm from "@app/auth/ui/EmailPasswordForm";+import OAuthButtons from "@app/auth/ui/OAuthButtons";+import type { SpringLoginState } from "@app/auth/ui/useSpringLogin";interface SpringLoginFormProps {/** Login state + handlers, from useSpringLogin. */diff --git a/frontend/shared/auth/ui/SupabaseLoginForm.tsx b/frontend/editor/src/proprietary/auth/ui/SupabaseLoginForm.tsxsimilarity index 88%rename from frontend/shared/auth/ui/SupabaseLoginForm.tsxrename to frontend/editor/src/proprietary/auth/ui/SupabaseLoginForm.tsxindex 7550bc88a5..a621a8c343 100644--- a/frontend/shared/auth/ui/SupabaseLoginForm.tsx+++ b/frontend/editor/src/proprietary/auth/ui/SupabaseLoginForm.tsx@@ -1,9 +1,9 @@import { useTranslation } from "react-i18next";-import ErrorMessage from "@shared/auth/ui/ErrorMessage";-import EmailPasswordForm from "@shared/auth/ui/EmailPasswordForm";-import OAuthButtons from "@shared/auth/ui/OAuthButtons";-import type { SupabaseLoginState } from "@shared/auth/ui/useSupabaseLogin";-import "@shared/auth/ui/auth.css";+import ErrorMessage from "@app/auth/ui/ErrorMessage";+import EmailPasswordForm from "@app/auth/ui/EmailPasswordForm";+import OAuthButtons from "@app/auth/ui/OAuthButtons";+import type { SupabaseLoginState } from "@app/auth/ui/useSupabaseLogin";+import "@app/auth/ui/auth.css";interface SupabaseLoginFormProps {/** Login state + handlers, from useSupabaseLogin. */diff --git a/frontend/shared/auth/ui/auth-theme.css b/frontend/editor/src/proprietary/auth/ui/auth-theme.csssimilarity index 100%rename from frontend/shared/auth/ui/auth-theme.cssrename to frontend/editor/src/proprietary/auth/ui/auth-theme.cssdiff --git a/frontend/shared/auth/ui/auth.css b/frontend/editor/src/proprietary/auth/ui/auth.csssimilarity index 100%rename from frontend/shared/auth/ui/auth.cssrename to frontend/editor/src/proprietary/auth/ui/auth.cssdiff --git a/frontend/shared/auth/ui/loginSlideText.ts b/frontend/editor/src/proprietary/auth/ui/loginSlideText.tssimilarity index 96%rename from frontend/shared/auth/ui/loginSlideText.tsrename to frontend/editor/src/proprietary/auth/ui/loginSlideText.tsindex b113baa91e..d8bc1e68c2 100644--- a/frontend/shared/auth/ui/loginSlideText.ts+++ b/frontend/editor/src/proprietary/auth/ui/loginSlideText.ts@@ -1,4 +1,4 @@-import { defaultTranslate, type AuthTranslate } from "@shared/auth/types";+import { defaultTranslate, type AuthTranslate } from "@app/auth/types";export type LoginSlideText = {alt: string;diff --git a/frontend/shared/auth/ui/loginSlides.ts b/frontend/editor/src/proprietary/auth/ui/loginSlides.tssimilarity index 55%rename from frontend/shared/auth/ui/loginSlides.tsrename to frontend/editor/src/proprietary/auth/ui/loginSlides.tsindex 6f8805208c..86565006d8 100644--- a/frontend/shared/auth/ui/loginSlides.ts+++ b/frontend/editor/src/proprietary/auth/ui/loginSlides.ts@@ -1,9 +1,9 @@-import { defaultTranslate, type AuthTranslate } from "@shared/auth/types";-import type { ImageSlide } from "@shared/auth/ui/LoginRightCarousel";-import { loginSlideText } from "@shared/auth/ui/loginSlideText";-import firstPage from "@shared/assets/login/Firstpage.png";-import addToPdf from "@shared/assets/login/AddToPDF.png";-import securePdf from "@shared/assets/login/SecurePDF.png";+import { defaultTranslate, type AuthTranslate } from "@app/auth/types";+import type { ImageSlide } from "@app/auth/ui/LoginRightCarousel";+import { loginSlideText } from "@app/auth/ui/loginSlideText";+import firstPage from "@app/assets/login/Firstpage.png";+import addToPdf from "@app/assets/login/AddToPDF.png";+import securePdf from "@app/assets/login/SecurePDF.png";const SLIDE_TILT = { followMouseTilt: true, tiltMaxDeg: 5 } as const;diff --git a/frontend/shared/auth/ui/useSpringLogin.ts b/frontend/editor/src/proprietary/auth/ui/useSpringLogin.tssimilarity index 97%rename from frontend/shared/auth/ui/useSpringLogin.tsrename to frontend/editor/src/proprietary/auth/ui/useSpringLogin.tsindex 3fd11be467..9fd2f2c6ae 100644--- a/frontend/shared/auth/ui/useSpringLogin.ts+++ b/frontend/editor/src/proprietary/auth/ui/useSpringLogin.ts@@ -1,8 +1,8 @@import { useCallback, useEffect, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import { springAuth } from "@shared/auth/spring/springAuthClient";-import { getSpringAuthConfig } from "@shared/auth/config";-import type { OAuthProvider } from "@shared/auth/spring/oauthTypes";+import { springAuth } from "@app/auth/spring/springAuthClient";+import { getSpringAuthConfig } from "@app/auth/config";+import type { OAuthProvider } from "@app/auth/spring/oauthTypes";/*** Shape of the backend's `/api/v1/proprietary/ui-data/login` response. Only thediff --git a/frontend/shared/auth/ui/useSupabaseLogin.ts b/frontend/editor/src/proprietary/auth/ui/useSupabaseLogin.tssimilarity index 96%rename from frontend/shared/auth/ui/useSupabaseLogin.tsrename to frontend/editor/src/proprietary/auth/ui/useSupabaseLogin.tsindex a443ff22f0..3d93bee9e5 100644--- a/frontend/shared/auth/ui/useSupabaseLogin.ts+++ b/frontend/editor/src/proprietary/auth/ui/useSupabaseLogin.ts@@ -1,12 +1,12 @@import { useCallback, useState } from "react";import { useTranslation } from "react-i18next";import type { Provider } from "@supabase/supabase-js";-import { getSupabaseClient } from "@shared/auth/supabase/supabaseClient";+import { getSupabaseClient } from "@app/auth/supabase/supabaseClient";/*** Supabase counterpart to {@link useSpringLogin}: owns a login form's state and* sign-in handlers, wired to the shared Supabase client ({@link configureSupabase}).- * Kept out of the `@shared/auth` barrel (like the rest of the Supabase path) so+ * Kept out of the `@app/auth` barrel (like the rest of the Supabase path) so* Spring-only consumers don't pull in `@supabase/supabase-js`; import via the* subpath.*diff --git a/frontend/shared/billing/MeterBar.tsx b/frontend/editor/src/proprietary/billing/MeterBar.tsxsimilarity index 97%rename from frontend/shared/billing/MeterBar.tsxrename to frontend/editor/src/proprietary/billing/MeterBar.tsxindex 5fcfa605b5..bb15fa44aa 100644--- a/frontend/shared/billing/MeterBar.tsx+++ b/frontend/editor/src/proprietary/billing/MeterBar.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import type { MeterState } from "@shared/billing/format";+import type { MeterState } from "@app/billing/format";interface MeterBarProps {state: MeterState;diff --git a/frontend/shared/billing/SpendCapControl.tsx b/frontend/editor/src/proprietary/billing/SpendCapControl.tsxsimilarity index 98%rename from frontend/shared/billing/SpendCapControl.tsxrename to frontend/editor/src/proprietary/billing/SpendCapControl.tsxindex c81e2c0ecb..c5589133f3 100644--- a/frontend/shared/billing/SpendCapControl.tsx+++ b/frontend/editor/src/proprietary/billing/SpendCapControl.tsx@@ -1,12 +1,12 @@import React, { useEffect, useState } from "react";import DescriptionIcon from "@mui/icons-material/DescriptionOutlined";-import { Button } from "@shared/components";+import { Button } from "@app/ui";import {DEFAULT_CAP_PRESETS,currencySymbol,docCapForMoney,formatMinor,-} from "@shared/billing/format";+} from "@app/billing/format";/** Copy the control renders. The editor passes i18n strings; the portal uses the defaults. */export interface SpendCapControlLabels {diff --git a/frontend/shared/billing/format.ts b/frontend/editor/src/proprietary/billing/format.tssimilarity index 100%rename from frontend/shared/billing/format.tsrename to frontend/editor/src/proprietary/billing/format.tsdiff --git a/frontend/shared/billing/index.ts b/frontend/editor/src/proprietary/billing/index.tssimilarity index 69%rename from frontend/shared/billing/index.tsrename to frontend/editor/src/proprietary/billing/index.tsindex 76ab3b29d6..228458ca9b 100644--- a/frontend/shared/billing/index.ts+++ b/frontend/editor/src/proprietary/billing/index.ts@@ -5,7 +5,7 @@ export type {WalletMember,WalletCategoryBreakdown,WalletActivityRow,-} from "@shared/billing/types";+} from "@app/billing/types";export {DEFAULT_CAP_PRESETS,currencySymbol,@@ -15,10 +15,10 @@ export {formatPeriodDate,meterState,type MeterState,-} from "@shared/billing/format";-export { MeterBar } from "@shared/billing/MeterBar";+} from "@app/billing/format";+export { MeterBar } from "@app/billing/MeterBar";export {SpendCapControl,type SpendCapControlProps,type SpendCapControlLabels,-} from "@shared/billing/SpendCapControl";+} from "@app/billing/SpendCapControl";diff --git a/frontend/shared/billing/types.ts b/frontend/editor/src/proprietary/billing/types.tssimilarity index 100%rename from frontend/shared/billing/types.tsrename to frontend/editor/src/proprietary/billing/types.tsdiff --git a/frontend/editor/src/proprietary/components/chat/ChatFAB.tsx b/frontend/editor/src/proprietary/components/chat/ChatFAB.tsxindex 34d404d24c..06674d811f 100644--- a/frontend/editor/src/proprietary/components/chat/ChatFAB.tsx+++ b/frontend/editor/src/proprietary/components/chat/ChatFAB.tsx@@ -7,8 +7,8 @@ import {} from "@mantine/core";import { Rnd } from "react-rnd";import { useTranslation } from "react-i18next";-import { ChatFABButton } from "@shared/components/ChatFABButton";-import { ChatFABWindow } from "@shared/components/ChatFABWindow";+import { ChatFABButton } from "@app/ui/ChatFABButton";+import { ChatFABWindow } from "@app/ui/ChatFABWindow";import { ChatPanel } from "@app/components/chat/ChatPanel";import { useChat } from "@app/components/chat/ChatContext";import { useAiEngineEnabled } from "@app/hooks/useAiEngineEnabled";diff --git a/frontend/editor/src/proprietary/components/chat/ChatPanel.tsx b/frontend/editor/src/proprietary/components/chat/ChatPanel.tsxindex 76bde0664e..18ff7c50ec 100644--- a/frontend/editor/src/proprietary/components/chat/ChatPanel.tsx+++ b/frontend/editor/src/proprietary/components/chat/ChatPanel.tsx@@ -42,7 +42,7 @@ import { formatRelativeTime } from "@app/utils/timeUtils";import { useTranslatedToolCatalog } from "@app/data/useTranslatedToolRegistry";import { StirlingLogoAnimated } from "@app/components/agents/StirlingLogoAnimated";import { StirlingLogoOutline } from "@app/components/agents/StirlingLogoOutline";-import { PanelHeader } from "@shared/components/PanelHeader";+import { PanelHeader } from "@app/ui/PanelHeader";import { ChatQuickActions } from "@app/components/chat/ChatQuickActions";import "@app/components/chat/ChatPanel.css";diff --git a/frontend/editor/src/proprietary/components/policies/Policies.css b/frontend/editor/src/proprietary/components/policies/Policies.cssindex 07fcb1865f..7785702a98 100644--- a/frontend/editor/src/proprietary/components/policies/Policies.css+++ b/frontend/editor/src/proprietary/components/policies/Policies.css@@ -4,7 +4,7 @@/* and a collapsed-rail of policy icons. *//* *//* Chrome (headers, cards, buttons, badges, chips, lists, steps…) uses SUI */-/* (@shared/components). The bespoke .pol-* bits below are thin layout */+/* (@app/ui). The bespoke .pol-* bits below are thin layout *//* scaffolding + the collapsed rail; spacing snaps to the SUI --space-* *//* scale and colour to the SUI token set so it reads as one product. */diff --git a/frontend/editor/src/proprietary/components/policies/PoliciesSidebar.tsx b/frontend/editor/src/proprietary/components/policies/PoliciesSidebar.tsxindex 0e87d9f982..2a3616bafd 100644--- a/frontend/editor/src/proprietary/components/policies/PoliciesSidebar.tsx+++ b/frontend/editor/src/proprietary/components/policies/PoliciesSidebar.tsx@@ -33,14 +33,14 @@ import type {import type { WatchedFolder } from "@app/types/watchedFolders";import { POLICIES_ENABLED } from "@app/constants/featureFlags";import { Tooltip as AppTooltip } from "@app/components/shared/Tooltip";-import { IconBadge } from "@shared/components/IconBadge";+import { IconBadge } from "@app/ui/IconBadge";import {deriveRowStatus,STATUS_LABEL,ROW_ACCENT,} from "@app/components/policies/policyStatus";-import { StatusBadge } from "@shared/components/StatusBadge";-import { SectionHeader } from "@shared/components/SectionHeader";+import { StatusBadge } from "@app/ui/StatusBadge";+import { SectionHeader } from "@app/ui/SectionHeader";import { PolicySetupWizard } from "@app/components/policies/PolicySetupWizard";import { PolicyDetailPanel } from "@app/components/policies/PolicyDetailPanel";import { PolicyDeleteConfirmModal } from "@app/components/policies/PolicyDeleteConfirmModal";diff --git a/frontend/editor/src/proprietary/components/policies/PolicyDetailPanel.tsx b/frontend/editor/src/proprietary/components/policies/PolicyDetailPanel.tsxindex aed4062869..1193111c8a 100644--- a/frontend/editor/src/proprietary/components/policies/PolicyDetailPanel.tsx+++ b/frontend/editor/src/proprietary/components/policies/PolicyDetailPanel.tsx@@ -9,15 +9,15 @@ import WarningAmberIcon from "@mui/icons-material/WarningAmber";import AutorenewIcon from "@mui/icons-material/Autorenew";import LockIcon from "@mui/icons-material/Lock";import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlined";-import { PanelHeader } from "@shared/components/PanelHeader";+import { PanelHeader } from "@app/ui/PanelHeader";import { ROW_ACCENT } from "@app/components/policies/policyStatus";-import { Card } from "@shared/components/Card";-import { ChipFlow } from "@shared/components/ChipFlow";-import { StatusBadge } from "@shared/components/StatusBadge";-import { EmptyState } from "@shared/components/EmptyState";-import { Button } from "@shared/components/Button";-import { Banner } from "@shared/components/Banner";-import { ListRow } from "@shared/components/ListRow";+import { Card } from "@app/ui/Card";+import { ChipFlow } from "@app/ui/ChipFlow";+import { StatusBadge } from "@app/ui/StatusBadge";+import { EmptyState } from "@app/ui/EmptyState";+import { Button } from "@app/ui/Button";+import { Banner } from "@app/ui/Banner";+import { ListRow } from "@app/ui/ListRow";import type {PolicyActivityItem,PolicyCategory,diff --git a/frontend/editor/src/proprietary/components/policies/PolicyFieldRow.tsx b/frontend/editor/src/proprietary/components/policies/PolicyFieldRow.tsxindex e169ffe8f3..2559a0e522 100644--- a/frontend/editor/src/proprietary/components/policies/PolicyFieldRow.tsx+++ b/frontend/editor/src/proprietary/components/policies/PolicyFieldRow.tsx@@ -1,9 +1,9 @@import { useTranslation } from "react-i18next";-import { ToggleSwitch } from "@shared/components/ToggleSwitch";-import { Select } from "@shared/components/Select";-import { Input } from "@shared/components/Input";-import { Chip } from "@shared/components/Chip";-import { SettingsRow } from "@shared/components/SettingsRow";+import { ToggleSwitch } from "@app/ui/ToggleSwitch";+import { Select } from "@app/ui/Select";+import { Input } from "@app/ui/Input";+import { Chip } from "@app/ui/Chip";+import { SettingsRow } from "@app/ui/SettingsRow";import type { PolicyField } from "@app/types/policies";interface PolicyFieldRowProps {diff --git a/frontend/editor/src/proprietary/components/policies/PolicySetupWizard.tsx b/frontend/editor/src/proprietary/components/policies/PolicySetupWizard.tsxindex e2548f373f..e63ee4e61f 100644--- a/frontend/editor/src/proprietary/components/policies/PolicySetupWizard.tsx+++ b/frontend/editor/src/proprietary/components/policies/PolicySetupWizard.tsx@@ -1,17 +1,17 @@import { useState, useMemo, useRef } from "react";import { useTranslation } from "react-i18next";import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";-import { PanelHeader } from "@shared/components/PanelHeader";+import { PanelHeader } from "@app/ui/PanelHeader";import { ROW_ACCENT } from "@app/components/policies/policyStatus";-import { Card } from "@shared/components/Card";-import { Button } from "@shared/components/Button";-import { Input } from "@shared/components/Input";-import { Select } from "@shared/components/Select";-import { SettingsRow } from "@shared/components/SettingsRow";-import { Checkbox } from "@shared/components/Checkbox";-import { Banner } from "@shared/components/Banner";-import { EmptyState } from "@shared/components/EmptyState";-import { StepIndicator } from "@shared/components/StepIndicator";+import { Card } from "@app/ui/Card";+import { Button } from "@app/ui/Button";+import { Input } from "@app/ui/Input";+import { Select } from "@app/ui/Select";+import { SettingsRow } from "@app/ui/SettingsRow";+import { Checkbox } from "@app/ui/Checkbox";+import { Banner } from "@app/ui/Banner";+import { EmptyState } from "@app/ui/EmptyState";+import { StepIndicator } from "@app/ui/StepIndicator";import type {PolicyCategory,PolicyConfigDef,diff --git a/frontend/editor/src/proprietary/components/policies/PolicyToolConfig.tsx b/frontend/editor/src/proprietary/components/policies/PolicyToolConfig.tsxindex 2fe68d91a6..78e7c1a491 100644--- a/frontend/editor/src/proprietary/components/policies/PolicyToolConfig.tsx+++ b/frontend/editor/src/proprietary/components/policies/PolicyToolConfig.tsx@@ -1,8 +1,8 @@import { Suspense } from "react";import { useTranslation } from "react-i18next";import { Loader } from "@mantine/core";-import { ToggleSwitch } from "@shared/components/ToggleSwitch";-import { Card } from "@shared/components/Card";+import { ToggleSwitch } from "@app/ui/ToggleSwitch";+import { Card } from "@app/ui/Card";import LocalIcon from "@app/components/shared/LocalIcon";import { Tooltip as AppTooltip } from "@app/components/shared/Tooltip";import { PolicyRedactConfig } from "@app/components/policies/PolicyRedactConfig";diff --git a/frontend/editor/src/proprietary/components/policies/README.md b/frontend/editor/src/proprietary/components/policies/README.mdindex 22ec6240b6..edaa71b123 100644--- a/frontend/editor/src/proprietary/components/policies/README.md+++ b/frontend/editor/src/proprietary/components/policies/README.md@@ -33,7 +33,7 @@ proprietary builds.## Design system (SUI + Mantine)The surface is composed almost entirely from the shared SUI design system-(`@shared/components`), mixed with Mantine only where SUI has no equivalent.+(`@app/ui`), mixed with Mantine only where SUI has no equivalent.SUI components used here: `PanelHeader` (+ leading `IconBadge`), `Card`,`Button`, `Chip`, `ChipFlow`, `StatusBadge`, `Banner`, `EmptyState`,`MetricCard`, `Input`, `Select`, `ToggleSwitch`, `Checkbox`, `FormField`,@@ -43,11 +43,9 @@ SUI components used here: `PanelHeader` (+ leading `IconBadge`), `Card`,accent / `PanelHeader` icon slot / `Checkbox` leadingIcon / `MetricCard size`)were **built up in SUI** as part of this work — each has a Storybook story.-Bootstrapping: the editor loads `@shared/tokens/tokens.css` globally via+Bootstrapping: the editor loads `@app/tokens/tokens.css` globally via`ThemeProvider`, which also mirrors the Mantine colour scheme onto-`<html data-theme>` (SUI's dark palette keys on `data-theme`). A global-`@shared` alias in `editor/vite.config.ts` + `vitest.config.ts` resolves the-shared components' own `@shared/*.css` self-imports.+`<html data-theme>` (SUI's dark palette keys on `data-theme`).The bespoke `.pol-*` CSS in `Policies.css` is now only thin layout scaffolding(detail/scroll/footer wrappers, the collapsed rail, row insets that match SUIdiff --git a/frontend/editor/src/proprietary/components/policies/policyStatus.ts b/frontend/editor/src/proprietary/components/policies/policyStatus.tsindex fab615ab25..1cf9e5eeb1 100644--- a/frontend/editor/src/proprietary/components/policies/policyStatus.ts+++ b/frontend/editor/src/proprietary/components/policies/policyStatus.ts@@ -1,4 +1,4 @@-import type { IconBadgeAccent } from "@shared/components/IconBadge";+import type { IconBadgeAccent } from "@app/ui/IconBadge";import type { PolicyRowStatus, PolicyState } from "@app/types/policies";/** Derive a single row/detail status from a policy's persisted state. */diff --git a/frontend/editor/src/proprietary/components/shared/loginSlides.ts b/frontend/editor/src/proprietary/components/shared/loginSlides.tsindex e181c1a538..1099330f44 100644--- a/frontend/editor/src/proprietary/components/shared/loginSlides.ts+++ b/frontend/editor/src/proprietary/components/shared/loginSlides.ts@@ -2,10 +2,10 @@ import { BASE_PATH } from "@app/constants/app";import { getLogoFolder } from "@app/constants/logo";import type { LogoVariant } from "@app/services/preferencesService";import type { TFunction } from "i18next";-import { loginSlideText } from "@shared/auth/ui/loginSlideText";-import type { ImageSlide } from "@shared/auth/ui/LoginRightCarousel";-import addToPdf from "@shared/assets/login/AddToPDF.png";-import securePdf from "@shared/assets/login/SecurePDF.png";+import { loginSlideText } from "@app/auth/ui/loginSlideText";+import type { ImageSlide } from "@app/auth/ui/LoginRightCarousel";+import addToPdf from "@app/assets/login/AddToPDF.png";+import securePdf from "@app/assets/login/SecurePDF.png";const SLIDE_TILT = { followMouseTilt: true, tiltMaxDeg: 5 } as const;diff --git a/frontend/shared/policies/codec.test.ts b/frontend/editor/src/proprietary/policies/codec.test.tssimilarity index 96%rename from frontend/shared/policies/codec.test.tsrename to frontend/editor/src/proprietary/policies/codec.test.tsindex e4b2647ec9..dca0aec7ba 100644--- a/frontend/shared/policies/codec.test.ts+++ b/frontend/editor/src/proprietary/policies/codec.test.ts@@ -1,6 +1,6 @@import { describe, it, expect } from "vitest";-import { toWirePolicy, fromWirePolicy } from "@shared/policies/codec";-import type { PolicyDecodedState } from "@shared/policies/types";+import { toWirePolicy, fromWirePolicy } from "@app/policies/codec";+import type { PolicyDecodedState } from "@app/policies/types";const FULL_STATE: PolicyDecodedState = {id: "pol_123",diff --git a/frontend/shared/policies/codec.ts b/frontend/editor/src/proprietary/policies/codec.tssimilarity index 98%rename from frontend/shared/policies/codec.tsrename to frontend/editor/src/proprietary/policies/codec.tsindex 3a79af7b5c..4331ea3a39 100644--- a/frontend/shared/policies/codec.ts+++ b/frontend/editor/src/proprietary/policies/codec.ts@@ -11,7 +11,7 @@ import type {PolicyDecodedState,WireOutputOptions,WirePolicy,-} from "@shared/policies/types";+} from "@app/policies/types";const DEFAULTS = {maxRetries: 3,diff --git a/frontend/shared/policies/runs.test.ts b/frontend/editor/src/proprietary/policies/runs.test.tssimilarity index 97%rename from frontend/shared/policies/runs.test.tsrename to frontend/editor/src/proprietary/policies/runs.test.tsindex ed57b5fe8c..402e2f693c 100644--- a/frontend/shared/policies/runs.test.ts+++ b/frontend/editor/src/proprietary/policies/runs.test.ts@@ -1,6 +1,6 @@import { describe, it, expect } from "vitest";-import { runsToStats, runsToActivity } from "@shared/policies/runs";-import type { PolicyRunView } from "@shared/policies/types";+import { runsToStats, runsToActivity } from "@app/policies/runs";+import type { PolicyRunView } from "@app/policies/types";const MIN = 60000;const HOUR = 3600000;diff --git a/frontend/shared/policies/runs.ts b/frontend/editor/src/proprietary/policies/runs.tssimilarity index 98%rename from frontend/shared/policies/runs.tsrename to frontend/editor/src/proprietary/policies/runs.tsindex 209dccd13d..74f1449259 100644--- a/frontend/shared/policies/runs.ts+++ b/frontend/editor/src/proprietary/policies/runs.ts@@ -8,7 +8,7 @@ import type {PolicyActivityItem,PolicyRunView,PolicyStats,-} from "@shared/policies/types";+} from "@app/policies/types";function relativeTime(epochMs: number): string {if (!epochMs) return "Just now";diff --git a/frontend/shared/policies/types.ts b/frontend/editor/src/proprietary/policies/types.tssimilarity index 100%rename from frontend/shared/policies/types.tsrename to frontend/editor/src/proprietary/policies/types.tsdiff --git a/frontend/editor/src/proprietary/routes/AuthCallback.test.tsx b/frontend/editor/src/proprietary/routes/AuthCallback.test.tsxindex 79dc50cbaa..61b676e786 100644--- a/frontend/editor/src/proprietary/routes/AuthCallback.test.tsx+++ b/frontend/editor/src/proprietary/routes/AuthCallback.test.tsx@@ -5,14 +5,14 @@ import AuthCallback from "@app/routes/AuthCallback";import {POST_LOGIN_REDIRECT_STORAGE_KEY,springAuth,-} from "@shared/auth/spring/springAuthClient";+} from "@app/auth/spring/springAuthClient";import { expectConsole } from "@app/tests/failOnConsole";// Mock springAuth; keep the real redirect-path helpers.-vi.mock("@shared/auth/spring/springAuthClient", async () => {+vi.mock("@app/auth/spring/springAuthClient", async () => {const actual = await vi.importActual<- typeof import("@shared/auth/spring/springAuthClient")- >("@shared/auth/spring/springAuthClient");+ typeof import("@app/auth/spring/springAuthClient")+ >("@app/auth/spring/springAuthClient");return {...actual,springAuth: {diff --git a/frontend/editor/src/proprietary/routes/AuthCallback.tsx b/frontend/editor/src/proprietary/routes/AuthCallback.tsxindex 21a5ea5cb2..928e277728 100644--- a/frontend/editor/src/proprietary/routes/AuthCallback.tsx+++ b/frontend/editor/src/proprietary/routes/AuthCallback.tsx@@ -3,7 +3,7 @@ import { useNavigate } from "react-router-dom";import {consumePostLoginRedirectPath,springAuth,-} from "@shared/auth/spring/springAuthClient";+} from "@app/auth/spring/springAuthClient";import { handleAuthCallbackSuccess } from "@app/extensions/authCallback";import styles from "@app/routes/AuthCallback.module.css";diff --git a/frontend/editor/src/proprietary/routes/InviteAccept.tsx b/frontend/editor/src/proprietary/routes/InviteAccept.tsxindex af9c6ba2ba..76ed0df90b 100644--- a/frontend/editor/src/proprietary/routes/InviteAccept.tsx+++ b/frontend/editor/src/proprietary/routes/InviteAccept.tsx@@ -15,7 +15,7 @@ import {import { useDocumentMeta } from "@app/hooks/useDocumentMeta";import AuthLayout from "@app/routes/authShared/AuthLayout";import LoginHeader from "@app/routes/login/LoginHeader";-import ErrorMessage from "@shared/auth/ui/ErrorMessage";+import ErrorMessage from "@app/auth/ui/ErrorMessage";import { BASE_PATH } from "@app/constants/app";import apiClient from "@app/services/apiClient";diff --git a/frontend/editor/src/proprietary/routes/Login.test.tsx b/frontend/editor/src/proprietary/routes/Login.test.tsxindex f70aa6ef95..0360da737c 100644--- a/frontend/editor/src/proprietary/routes/Login.test.tsx+++ b/frontend/editor/src/proprietary/routes/Login.test.tsx@@ -5,10 +5,10 @@ import { BrowserRouter, MemoryRouter } from "react-router-dom";import { MantineProvider } from "@mantine/core";import Login from "@app/routes/Login";import { useAuth } from "@app/auth/UseSession";-import { springAuth } from "@shared/auth/spring/springAuthClient";+import { springAuth } from "@app/auth/spring/springAuthClient";import { PreferencesProvider } from "@app/contexts/PreferencesContext";import apiClient from "@app/services/apiClient";-import { configureSpringAuth } from "@shared/auth/config";+import { configureSpringAuth } from "@app/auth/config";import type { AxiosInstance } from "axios";// Mock i18n to return fallback text@@ -43,10 +43,10 @@ vi.mock("@app/auth/UseSession", () => ({}));// Mock springAuth; keep the real redirect-path helpers.-vi.mock("@shared/auth/spring/springAuthClient", async () => {+vi.mock("@app/auth/spring/springAuthClient", async () => {const actual = await vi.importActual<- typeof import("@shared/auth/spring/springAuthClient")- >("@shared/auth/spring/springAuthClient");+ typeof import("@app/auth/spring/springAuthClient")+ >("@app/auth/spring/springAuthClient");return {...actual,springAuth: {diff --git a/frontend/editor/src/proprietary/routes/Login.tsx b/frontend/editor/src/proprietary/routes/Login.tsxindex 054aa0a47d..1e12f73e89 100644--- a/frontend/editor/src/proprietary/routes/Login.tsx+++ b/frontend/editor/src/proprietary/routes/Login.tsx@@ -6,7 +6,7 @@ import {useSearchParams,} from "react-router-dom";import { Text, Stack, Alert } from "@mantine/core";-import { setPostLoginRedirectPath } from "@shared/auth/spring/springAuthClient";+import { setPostLoginRedirectPath } from "@app/auth/spring/springAuthClient";import { useAuth } from "@app/auth/UseSession";import { useAppConfig } from "@app/contexts/AppConfigContext";import { useTranslation } from "react-i18next";@@ -18,11 +18,11 @@ import { updateSupportedLanguages } from "@app/i18n";import {DEBUG_SHOW_ALL_PROVIDERS,oauthProviderConfig,-} from "@shared/auth/ui/OAuthButtons";-import SpringLoginForm from "@shared/auth/ui/SpringLoginForm";-import { useSpringLogin } from "@shared/auth/ui/useSpringLogin";+} from "@app/auth/ui/OAuthButtons";+import SpringLoginForm from "@app/auth/ui/SpringLoginForm";+import { useSpringLogin } from "@app/auth/ui/useSpringLogin";import LoggedInState from "@app/routes/login/LoggedInState";-import loginHeader from "@shared/assets/brand/modern-logo/LoginLightModeHeader.svg";+import loginHeader from "@app/assets/brand/modern-logo/LoginLightModeHeader.svg";export default function Login() {const navigate = useNavigate();diff --git a/frontend/editor/src/proprietary/routes/Signup.tsx b/frontend/editor/src/proprietary/routes/Signup.tsxindex 8b9fc87d71..dab0ac2624 100644--- a/frontend/editor/src/proprietary/routes/Signup.tsx+++ b/frontend/editor/src/proprietary/routes/Signup.tsx@@ -4,11 +4,11 @@ import { useTranslation } from "react-i18next";import { useDocumentMeta } from "@app/hooks/useDocumentMeta";import { useAuth } from "@app/auth/UseSession";import AuthLayout from "@app/routes/authShared/AuthLayout";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import { BASE_PATH, withBasePath } from "@app/constants/app";// Import signup components-import ErrorMessage from "@shared/auth/ui/ErrorMessage";+import ErrorMessage from "@app/auth/ui/ErrorMessage";import DividerWithText from "@app/components/shared/DividerWithText";import SignupForm from "@app/routes/signup/SignupForm";import {@@ -16,7 +16,7 @@ import {SignupFieldErrors,} from "@app/routes/signup/SignupFormValidation";import { useAuthService } from "@app/routes/signup/AuthService";-import loginHeader from "@shared/assets/brand/modern-logo/LoginLightModeHeader.svg";+import loginHeader from "@app/assets/brand/modern-logo/LoginLightModeHeader.svg";export default function Signup() {const navigate = useNavigate();diff --git a/frontend/editor/src/proprietary/routes/adminRouteExtensions.tsx b/frontend/editor/src/proprietary/routes/adminRouteExtensions.tsxnew file mode 100644index 0000000000..c0216e377f--- /dev/null+++ b/frontend/editor/src/proprietary/routes/adminRouteExtensions.tsx@@ -0,0 +1,23 @@+import { lazy } from "react";+import type { ReactElement } from "react";+import { Route } from "react-router-dom";++// Lazy so the portal is its own chunk, never in the editor's initial bundle;+// only fetched when an admin navigates to /portal. Mocks start first so the+// worker is ready before the portal's first fetch.+const PortalApp = lazy(async () => {+ const { startPortalMocksIfEnabled } =+ await import("@portal/mocks/startIfEnabled");+ await startPortalMocksIfEnabled();+ const m = await import("@portal/PortalApp");+ return { default: m.PortalApp };+});++/**+ * The portal mounts as an admin-only route-set at /portal/*. Access is gated+ * inside PortalApp (its own AuthProvider + AuthGate, plus server enforcement),+ * so this just wires the lazy route into the editor's router.+ */+export function getAdminRouteExtensions(): ReactElement[] {+ return [<Route key="portal" path="/portal/*" element={<PortalApp />} />];+}diff --git a/frontend/editor/src/proprietary/routes/authShared/AuthLayout.tsx b/frontend/editor/src/proprietary/routes/authShared/AuthLayout.tsxindex 2b3006fafb..69229639e4 100644--- a/frontend/editor/src/proprietary/routes/authShared/AuthLayout.tsx+++ b/frontend/editor/src/proprietary/routes/authShared/AuthLayout.tsx@@ -1,7 +1,7 @@import React, { useMemo } from "react";import { useTranslation } from "react-i18next";-import { AuthShell } from "@shared/auth/ui/AuthShell";-import LoginRightCarousel from "@shared/auth/ui/LoginRightCarousel";+import { AuthShell } from "@app/auth/ui/AuthShell";+import LoginRightCarousel from "@app/auth/ui/LoginRightCarousel";import buildLoginSlides from "@app/components/shared/loginSlides";import { useLogoVariant } from "@app/hooks/useLogoVariant";import Footer from "@app/components/shared/Footer";diff --git a/frontend/editor/src/proprietary/routes/login/OAuthButtons.test.tsx b/frontend/editor/src/proprietary/routes/login/OAuthButtons.test.tsxindex 8a7d9aad98..15e9045187 100644--- a/frontend/editor/src/proprietary/routes/login/OAuthButtons.test.tsx+++ b/frontend/editor/src/proprietary/routes/login/OAuthButtons.test.tsx@@ -2,7 +2,7 @@ import { describe, it, expect, vi, beforeEach } from "vitest";import { render, screen } from "@testing-library/react";import userEvent from "@testing-library/user-event";import { MantineProvider } from "@mantine/core";-import OAuthButtons from "@shared/auth/ui/OAuthButtons";+import OAuthButtons from "@app/auth/ui/OAuthButtons";// Mock i18nvi.mock("react-i18next", () => ({diff --git a/frontend/editor/src/proprietary/routes/signup/AuthService.ts b/frontend/editor/src/proprietary/routes/signup/AuthService.tsindex 4c4e8e400b..fd38b17777 100644--- a/frontend/editor/src/proprietary/routes/signup/AuthService.ts+++ b/frontend/editor/src/proprietary/routes/signup/AuthService.ts@@ -1,4 +1,4 @@-import { springAuth } from "@shared/auth/spring/springAuthClient";+import { springAuth } from "@app/auth/spring/springAuthClient";import { BASE_PATH } from "@app/constants/app";export const useAuthService = () => {diff --git a/frontend/editor/src/proprietary/routes/signup/SignupForm.tsx b/frontend/editor/src/proprietary/routes/signup/SignupForm.tsxindex e51323c072..a47d6e6600 100644--- a/frontend/editor/src/proprietary/routes/signup/SignupForm.tsx+++ b/frontend/editor/src/proprietary/routes/signup/SignupForm.tsx@@ -1,5 +1,5 @@import { useEffect } from "react";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import { useTranslation } from "react-i18next";import { Checkbox, TextInput, PasswordInput, Button } from "@mantine/core";import { SignupFieldErrors } from "@app/routes/signup/SignupFormValidation";diff --git a/frontend/editor/src/proprietary/tsconfig.json b/frontend/editor/src/proprietary/tsconfig.jsonindex 6047a6ac14..39345ee241 100644--- a/frontend/editor/src/proprietary/tsconfig.json+++ b/frontend/editor/src/proprietary/tsconfig.json@@ -3,8 +3,8 @@"compilerOptions": {"paths": {"@app/*": ["../../src/proprietary/*", "../../src/core/*"],- "@core/*": ["../../src/core/*"],- "@shared/*": ["../../../shared/*"]+ "@portal/*": ["../../src/portal/*"],+ "@core/*": ["../../src/core/*"]}},"include": [diff --git a/frontend/shared/components/Avatar.css b/frontend/editor/src/proprietary/ui/Avatar.csssimilarity index 100%rename from frontend/shared/components/Avatar.cssrename to frontend/editor/src/proprietary/ui/Avatar.cssdiff --git a/frontend/shared/components/Avatar.stories.tsx b/frontend/editor/src/proprietary/ui/Avatar.stories.tsxsimilarity index 96%rename from frontend/shared/components/Avatar.stories.tsxrename to frontend/editor/src/proprietary/ui/Avatar.stories.tsxindex ac959f47af..b7a293bb63 100644--- a/frontend/shared/components/Avatar.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Avatar.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Avatar } from "@shared/components/Avatar";+import { Avatar } from "@app/ui/Avatar";const meta: Meta<typeof Avatar> = {title: "Primitives/Avatar",diff --git a/frontend/shared/components/Avatar.tsx b/frontend/editor/src/proprietary/ui/Avatar.tsxsimilarity index 97%rename from frontend/shared/components/Avatar.tsxrename to frontend/editor/src/proprietary/ui/Avatar.tsxindex 5246e24006..e848217e88 100644--- a/frontend/shared/components/Avatar.tsx+++ b/frontend/editor/src/proprietary/ui/Avatar.tsx@@ -1,4 +1,4 @@-import "@shared/components/Avatar.css";+import "@app/ui/Avatar.css";export type AvatarSize = "xs" | "sm" | "md" | "lg";export type AvatarTone =diff --git a/frontend/shared/components/Banner.css b/frontend/editor/src/proprietary/ui/Banner.csssimilarity index 100%rename from frontend/shared/components/Banner.cssrename to frontend/editor/src/proprietary/ui/Banner.cssdiff --git a/frontend/shared/components/Banner.stories.tsx b/frontend/editor/src/proprietary/ui/Banner.stories.tsxsimilarity index 94%rename from frontend/shared/components/Banner.stories.tsxrename to frontend/editor/src/proprietary/ui/Banner.stories.tsxindex 55ea4ac16f..c6b8ddfd1e 100644--- a/frontend/shared/components/Banner.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Banner.stories.tsx@@ -1,6 +1,6 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Banner } from "@shared/components/Banner";-import { Button } from "@shared/components/Button";+import { Banner } from "@app/ui/Banner";+import { Button } from "@app/ui/Button";const meta: Meta<typeof Banner> = {title: "Primitives/Banner",diff --git a/frontend/shared/components/Banner.tsx b/frontend/editor/src/proprietary/ui/Banner.tsxsimilarity index 97%rename from frontend/shared/components/Banner.tsxrename to frontend/editor/src/proprietary/ui/Banner.tsxindex f419ebcc2b..b7db925740 100644--- a/frontend/shared/components/Banner.tsx+++ b/frontend/editor/src/proprietary/ui/Banner.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/Banner.css";+import "@app/ui/Banner.css";export type BannerTone = "info" | "success" | "warning" | "danger" | "neutral";diff --git a/frontend/shared/components/Button.css b/frontend/editor/src/proprietary/ui/Button.csssimilarity index 100%rename from frontend/shared/components/Button.cssrename to frontend/editor/src/proprietary/ui/Button.cssdiff --git a/frontend/shared/components/Button.stories.tsx b/frontend/editor/src/proprietary/ui/Button.stories.tsxsimilarity index 96%rename from frontend/shared/components/Button.stories.tsxrename to frontend/editor/src/proprietary/ui/Button.stories.tsxindex e2c3189d56..66b203ec3b 100644--- a/frontend/shared/components/Button.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Button.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react";-import { Button } from "@shared/components/Button";+import { Button } from "@app/ui/Button";const meta: Meta<typeof Button> = {title: "Primitives/Button",diff --git a/frontend/shared/components/Button.tsx b/frontend/editor/src/proprietary/ui/Button.tsxsimilarity index 98%rename from frontend/shared/components/Button.tsxrename to frontend/editor/src/proprietary/ui/Button.tsxindex 0d978ea196..f3dc73e933 100644--- a/frontend/shared/components/Button.tsx+++ b/frontend/editor/src/proprietary/ui/Button.tsx@@ -1,5 +1,5 @@import type { ButtonHTMLAttributes, ReactNode } from "react";-import "@shared/components/Button.css";+import "@app/ui/Button.css";export type ButtonVariant = "gradient" | "outline" | "ghost";export type ButtonSize = "sm" | "md";diff --git a/frontend/shared/components/Card.css b/frontend/editor/src/proprietary/ui/Card.csssimilarity index 100%rename from frontend/shared/components/Card.cssrename to frontend/editor/src/proprietary/ui/Card.cssdiff --git a/frontend/shared/components/Card.stories.tsx b/frontend/editor/src/proprietary/ui/Card.stories.tsxsimilarity index 95%rename from frontend/shared/components/Card.stories.tsxrename to frontend/editor/src/proprietary/ui/Card.stories.tsxindex 10b31b9784..df445fd89a 100644--- a/frontend/shared/components/Card.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Card.stories.tsx@@ -1,8 +1,8 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Card } from "@shared/components/Card";-import { Button } from "@shared/components/Button";-import { MetricCard } from "@shared/components/MetricCard";-import { StatusBadge } from "@shared/components/StatusBadge";+import { Card } from "@app/ui/Card";+import { Button } from "@app/ui/Button";+import { MetricCard } from "@app/ui/MetricCard";+import { StatusBadge } from "@app/ui/StatusBadge";function CardBody({ color }: { color: string }) {return (diff --git a/frontend/shared/components/Card.tsx b/frontend/editor/src/proprietary/ui/Card.tsxsimilarity index 97%rename from frontend/shared/components/Card.tsxrename to frontend/editor/src/proprietary/ui/Card.tsxindex 2afd2ddc7c..27eb7aed62 100644--- a/frontend/shared/components/Card.tsx+++ b/frontend/editor/src/proprietary/ui/Card.tsx@@ -1,5 +1,5 @@import type { HTMLAttributes, ReactNode } from "react";-import "@shared/components/Card.css";+import "@app/ui/Card.css";export interface CardProps extends HTMLAttributes<HTMLDivElement> {/** Adds an accent strip on the left edge of the card. */diff --git a/frontend/shared/components/ChatFABButton.css b/frontend/editor/src/proprietary/ui/ChatFABButton.csssimilarity index 100%rename from frontend/shared/components/ChatFABButton.cssrename to frontend/editor/src/proprietary/ui/ChatFABButton.cssdiff --git a/frontend/shared/components/ChatFABButton.stories.tsx b/frontend/editor/src/proprietary/ui/ChatFABButton.stories.tsxsimilarity index 94%rename from frontend/shared/components/ChatFABButton.stories.tsxrename to frontend/editor/src/proprietary/ui/ChatFABButton.stories.tsxindex bd7a5bcf8f..c6986dad14 100644--- a/frontend/shared/components/ChatFABButton.stories.tsx+++ b/frontend/editor/src/proprietary/ui/ChatFABButton.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { ChatFABButton } from "@shared/components/ChatFABButton";+import { ChatFABButton } from "@app/ui/ChatFABButton";const meta: Meta<typeof ChatFABButton> = {title: "Editor/ChatFAB/ChatFABButton",diff --git a/frontend/shared/components/ChatFABButton.tsx b/frontend/editor/src/proprietary/ui/ChatFABButton.tsxsimilarity index 97%rename from frontend/shared/components/ChatFABButton.tsxrename to frontend/editor/src/proprietary/ui/ChatFABButton.tsxindex 8c630a13d4..8ee8e74d7a 100644--- a/frontend/shared/components/ChatFABButton.tsx+++ b/frontend/editor/src/proprietary/ui/ChatFABButton.tsx@@ -1,5 +1,5 @@import type { ButtonHTMLAttributes } from "react";-import "@shared/components/ChatFABButton.css";+import "@app/ui/ChatFABButton.css";export interface ChatFABButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {/** Shows a green pulse dot to indicate the agent is actively working. */diff --git a/frontend/shared/components/ChatFABWindow.css b/frontend/editor/src/proprietary/ui/ChatFABWindow.csssimilarity index 100%rename from frontend/shared/components/ChatFABWindow.cssrename to frontend/editor/src/proprietary/ui/ChatFABWindow.cssdiff --git a/frontend/shared/components/ChatFABWindow.stories.tsx b/frontend/editor/src/proprietary/ui/ChatFABWindow.stories.tsxsimilarity index 98%rename from frontend/shared/components/ChatFABWindow.stories.tsxrename to frontend/editor/src/proprietary/ui/ChatFABWindow.stories.tsxindex b2063ce3db..a90ae63cad 100644--- a/frontend/shared/components/ChatFABWindow.stories.tsx+++ b/frontend/editor/src/proprietary/ui/ChatFABWindow.stories.tsx@@ -1,6 +1,6 @@import type { Meta, StoryObj } from "@storybook/react-vite";import { useState } from "react";-import { ChatFABWindow } from "@shared/components/ChatFABWindow";+import { ChatFABWindow } from "@app/ui/ChatFABWindow";const DEMO_MESSAGES = [{diff --git a/frontend/shared/components/ChatFABWindow.tsx b/frontend/editor/src/proprietary/ui/ChatFABWindow.tsxsimilarity index 95%rename from frontend/shared/components/ChatFABWindow.tsxrename to frontend/editor/src/proprietary/ui/ChatFABWindow.tsxindex c1cafed220..2acd8085e8 100644--- a/frontend/shared/components/ChatFABWindow.tsx+++ b/frontend/editor/src/proprietary/ui/ChatFABWindow.tsx@@ -1,5 +1,5 @@import type { CSSProperties, MouseEventHandler, ReactNode } from "react";-import "@shared/components/ChatFABWindow.css";+import "@app/ui/ChatFABWindow.css";export interface ChatFABWindowProps {/** Whether the window is in its expanded/visible state. Controls the CSS transition. */diff --git a/frontend/shared/components/Checkbox.css b/frontend/editor/src/proprietary/ui/Checkbox.csssimilarity index 100%rename from frontend/shared/components/Checkbox.cssrename to frontend/editor/src/proprietary/ui/Checkbox.cssdiff --git a/frontend/shared/components/Checkbox.tsx b/frontend/editor/src/proprietary/ui/Checkbox.tsxsimilarity index 98%rename from frontend/shared/components/Checkbox.tsxrename to frontend/editor/src/proprietary/ui/Checkbox.tsxindex 7d6be673d0..778bd13b01 100644--- a/frontend/shared/components/Checkbox.tsx+++ b/frontend/editor/src/proprietary/ui/Checkbox.tsx@@ -1,5 +1,5 @@import { forwardRef, type InputHTMLAttributes, type ReactNode } from "react";-import "@shared/components/Checkbox.css";+import "@app/ui/Checkbox.css";export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>,diff --git a/frontend/shared/components/Chip.css b/frontend/editor/src/proprietary/ui/Chip.csssimilarity index 100%rename from frontend/shared/components/Chip.cssrename to frontend/editor/src/proprietary/ui/Chip.cssdiff --git a/frontend/shared/components/Chip.stories.tsx b/frontend/editor/src/proprietary/ui/Chip.stories.tsxsimilarity index 97%rename from frontend/shared/components/Chip.stories.tsxrename to frontend/editor/src/proprietary/ui/Chip.stories.tsxindex c92b21344d..a19e0eff96 100644--- a/frontend/shared/components/Chip.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Chip.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Chip } from "@shared/components/Chip";+import { Chip } from "@app/ui/Chip";const meta: Meta<typeof Chip> = {title: "Primitives/Chip",diff --git a/frontend/shared/components/Chip.tsx b/frontend/editor/src/proprietary/ui/Chip.tsxsimilarity index 98%rename from frontend/shared/components/Chip.tsxrename to frontend/editor/src/proprietary/ui/Chip.tsxindex 3cc670a2ab..340b4a493d 100644--- a/frontend/shared/components/Chip.tsx+++ b/frontend/editor/src/proprietary/ui/Chip.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/Chip.css";+import "@app/ui/Chip.css";export type ChipTone =| "neutral"diff --git a/frontend/shared/components/ChipFlow.css b/frontend/editor/src/proprietary/ui/ChipFlow.csssimilarity index 100%rename from frontend/shared/components/ChipFlow.cssrename to frontend/editor/src/proprietary/ui/ChipFlow.cssdiff --git a/frontend/shared/components/ChipFlow.stories.tsx b/frontend/editor/src/proprietary/ui/ChipFlow.stories.tsxsimilarity index 92%rename from frontend/shared/components/ChipFlow.stories.tsxrename to frontend/editor/src/proprietary/ui/ChipFlow.stories.tsxindex 5be1c72386..6beb2a0982 100644--- a/frontend/shared/components/ChipFlow.stories.tsx+++ b/frontend/editor/src/proprietary/ui/ChipFlow.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { ChipFlow } from "@shared/components/ChipFlow";+import { ChipFlow } from "@app/ui/ChipFlow";const meta: Meta<typeof ChipFlow> = {title: "Primitives/ChipFlow",diff --git a/frontend/shared/components/ChipFlow.tsx b/frontend/editor/src/proprietary/ui/ChipFlow.tsxsimilarity index 87%rename from frontend/shared/components/ChipFlow.tsxrename to frontend/editor/src/proprietary/ui/ChipFlow.tsxindex 7415387dea..4af337e308 100644--- a/frontend/shared/components/ChipFlow.tsx+++ b/frontend/editor/src/proprietary/ui/ChipFlow.tsx@@ -1,8 +1,8 @@import { Fragment } from "react";import type { ReactNode } from "react";-import { Chip } from "@shared/components/Chip";-import type { ChipTone, ChipSize } from "@shared/components/Chip";-import "@shared/components/ChipFlow.css";+import { Chip } from "@app/ui/Chip";+import type { ChipTone, ChipSize } from "@app/ui/Chip";+import "@app/ui/ChipFlow.css";export interface ChipFlowProps {/** Items rendered as chips, in order. */diff --git a/frontend/shared/components/CodeBlock.css b/frontend/editor/src/proprietary/ui/CodeBlock.csssimilarity index 100%rename from frontend/shared/components/CodeBlock.cssrename to frontend/editor/src/proprietary/ui/CodeBlock.cssdiff --git a/frontend/shared/components/CodeBlock.stories.tsx b/frontend/editor/src/proprietary/ui/CodeBlock.stories.tsxsimilarity index 97%rename from frontend/shared/components/CodeBlock.stories.tsxrename to frontend/editor/src/proprietary/ui/CodeBlock.stories.tsxindex cad00e08bb..b47fee419f 100644--- a/frontend/shared/components/CodeBlock.stories.tsx+++ b/frontend/editor/src/proprietary/ui/CodeBlock.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { CodeBlock } from "@shared/components/CodeBlock";+import { CodeBlock } from "@app/ui/CodeBlock";const CURL_EXAMPLE = `curl https://api.stirling.com/v1/coi \\-H "Authorization: Bearer sk_live_a3f8..." \\diff --git a/frontend/shared/components/CodeBlock.tsx b/frontend/editor/src/proprietary/ui/CodeBlock.tsxsimilarity index 98%rename from frontend/shared/components/CodeBlock.tsxrename to frontend/editor/src/proprietary/ui/CodeBlock.tsxindex c3952a3f8b..4e0dc645e1 100644--- a/frontend/shared/components/CodeBlock.tsx+++ b/frontend/editor/src/proprietary/ui/CodeBlock.tsx@@ -1,5 +1,5 @@import { useState, type ReactNode } from "react";-import "@shared/components/CodeBlock.css";+import "@app/ui/CodeBlock.css";export type CodeLang =| "json"diff --git a/frontend/shared/components/Collapsible.css b/frontend/editor/src/proprietary/ui/Collapsible.csssimilarity index 100%rename from frontend/shared/components/Collapsible.cssrename to frontend/editor/src/proprietary/ui/Collapsible.cssdiff --git a/frontend/shared/components/Collapsible.stories.tsx b/frontend/editor/src/proprietary/ui/Collapsible.stories.tsxsimilarity index 96%rename from frontend/shared/components/Collapsible.stories.tsxrename to frontend/editor/src/proprietary/ui/Collapsible.stories.tsxindex 79e71cbe51..3d49a9465f 100644--- a/frontend/shared/components/Collapsible.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Collapsible.stories.tsx@@ -1,6 +1,6 @@import { useState } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import { Collapsible } from "@shared/components/Collapsible";+import { Collapsible } from "@app/ui/Collapsible";const meta: Meta<typeof Collapsible> = {title: "Components/Collapsible",diff --git a/frontend/shared/components/Collapsible.tsx b/frontend/editor/src/proprietary/ui/Collapsible.tsxsimilarity index 97%rename from frontend/shared/components/Collapsible.tsxrename to frontend/editor/src/proprietary/ui/Collapsible.tsxindex d4768e9d1e..94f1052056 100644--- a/frontend/shared/components/Collapsible.tsx+++ b/frontend/editor/src/proprietary/ui/Collapsible.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/Collapsible.css";+import "@app/ui/Collapsible.css";export interface CollapsibleProps {/** Whether the section is expanded. Controlled — pair with `onToggle`. */diff --git a/frontend/shared/components/DataRow.css b/frontend/editor/src/proprietary/ui/DataRow.csssimilarity index 100%rename from frontend/shared/components/DataRow.cssrename to frontend/editor/src/proprietary/ui/DataRow.cssdiff --git a/frontend/shared/components/DataRow.stories.tsx b/frontend/editor/src/proprietary/ui/DataRow.stories.tsxsimilarity index 85%rename from frontend/shared/components/DataRow.stories.tsxrename to frontend/editor/src/proprietary/ui/DataRow.stories.tsxindex 887d8541f8..b53cc2b3c2 100644--- a/frontend/shared/components/DataRow.stories.tsx+++ b/frontend/editor/src/proprietary/ui/DataRow.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { DataRow } from "@shared/components/DataRow";-import { ChipFlow } from "@shared/components/ChipFlow";-import { Card } from "@shared/components/Card";+import { DataRow } from "@app/ui/DataRow";+import { ChipFlow } from "@app/ui/ChipFlow";+import { Card } from "@app/ui/Card";const meta: Meta<typeof DataRow> = {title: "Primitives/DataRow",diff --git a/frontend/shared/components/DataRow.tsx b/frontend/editor/src/proprietary/ui/DataRow.tsxsimilarity index 96%rename from frontend/shared/components/DataRow.tsxrename to frontend/editor/src/proprietary/ui/DataRow.tsxindex 93a52377eb..8633c56e3f 100644--- a/frontend/shared/components/DataRow.tsx+++ b/frontend/editor/src/proprietary/ui/DataRow.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/DataRow.css";+import "@app/ui/DataRow.css";export interface DataRowProps {/** Left-aligned key. */diff --git a/frontend/shared/components/Drawer.css b/frontend/editor/src/proprietary/ui/Drawer.csssimilarity index 100%rename from frontend/shared/components/Drawer.cssrename to frontend/editor/src/proprietary/ui/Drawer.cssdiff --git a/frontend/shared/components/Drawer.stories.tsx b/frontend/editor/src/proprietary/ui/Drawer.stories.tsxsimilarity index 95%rename from frontend/shared/components/Drawer.stories.tsxrename to frontend/editor/src/proprietary/ui/Drawer.stories.tsxindex 1f218ed19e..3600d774a2 100644--- a/frontend/shared/components/Drawer.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Drawer.stories.tsx@@ -1,7 +1,7 @@import { useState } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import { Drawer } from "@shared/components/Drawer";-import { Button } from "@shared/components/Button";+import { Drawer } from "@app/ui/Drawer";+import { Button } from "@app/ui/Button";const meta: Meta<typeof Drawer> = {title: "Primitives/Drawer",diff --git a/frontend/shared/components/Drawer.tsx b/frontend/editor/src/proprietary/ui/Drawer.tsxsimilarity index 98%rename from frontend/shared/components/Drawer.tsxrename to frontend/editor/src/proprietary/ui/Drawer.tsxindex 5e6561e6f8..20279c3c59 100644--- a/frontend/shared/components/Drawer.tsx+++ b/frontend/editor/src/proprietary/ui/Drawer.tsx@@ -1,7 +1,7 @@import { useEffect, useId, type ReactNode } from "react";import { createPortal } from "react-dom";import { FocusTrap } from "@mantine/core";-import "@shared/components/Drawer.css";+import "@app/ui/Drawer.css";export type DrawerSide = "right" | "left";export type DrawerWidth = "sm" | "md" | "lg";diff --git a/frontend/shared/components/Dropdown.css b/frontend/editor/src/proprietary/ui/Dropdown.csssimilarity index 100%rename from frontend/shared/components/Dropdown.cssrename to frontend/editor/src/proprietary/ui/Dropdown.cssdiff --git a/frontend/shared/components/Dropdown.stories.tsx b/frontend/editor/src/proprietary/ui/Dropdown.stories.tsxsimilarity index 95%rename from frontend/shared/components/Dropdown.stories.tsxrename to frontend/editor/src/proprietary/ui/Dropdown.stories.tsxindex f86aeb04c7..7e05785ee6 100644--- a/frontend/shared/components/Dropdown.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Dropdown.stories.tsx@@ -1,6 +1,6 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Dropdown } from "@shared/components/Dropdown";-import { Button } from "@shared/components/Button";+import { Dropdown } from "@app/ui/Dropdown";+import { Button } from "@app/ui/Button";const meta: Meta = {title: "Primitives/Dropdown",diff --git a/frontend/shared/components/Dropdown.tsx b/frontend/editor/src/proprietary/ui/Dropdown.tsxsimilarity index 99%rename from frontend/shared/components/Dropdown.tsxrename to frontend/editor/src/proprietary/ui/Dropdown.tsxindex 8d47ba9dff..bf481c9ea5 100644--- a/frontend/shared/components/Dropdown.tsx+++ b/frontend/editor/src/proprietary/ui/Dropdown.tsx@@ -12,7 +12,7 @@ import {type ReactElement,type ReactNode,} from "react";-import "@shared/components/Dropdown.css";+import "@app/ui/Dropdown.css";type Alignment = "start" | "end";diff --git a/frontend/shared/components/EmptyState.css b/frontend/editor/src/proprietary/ui/EmptyState.csssimilarity index 100%rename from frontend/shared/components/EmptyState.cssrename to frontend/editor/src/proprietary/ui/EmptyState.cssdiff --git a/frontend/shared/components/EmptyState.stories.tsx b/frontend/editor/src/proprietary/ui/EmptyState.stories.tsxsimilarity index 89%rename from frontend/shared/components/EmptyState.stories.tsxrename to frontend/editor/src/proprietary/ui/EmptyState.stories.tsxindex e3fc1f4968..ac153ec0b0 100644--- a/frontend/shared/components/EmptyState.stories.tsx+++ b/frontend/editor/src/proprietary/ui/EmptyState.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { EmptyState } from "@shared/components/EmptyState";-import { Button } from "@shared/components/Button";-import { Card } from "@shared/components/Card";+import { EmptyState } from "@app/ui/EmptyState";+import { Button } from "@app/ui/Button";+import { Card } from "@app/ui/Card";const meta: Meta<typeof EmptyState> = {title: "Primitives/EmptyState",diff --git a/frontend/shared/components/EmptyState.tsx b/frontend/editor/src/proprietary/ui/EmptyState.tsxsimilarity index 96%rename from frontend/shared/components/EmptyState.tsxrename to frontend/editor/src/proprietary/ui/EmptyState.tsxindex 1981c0a91f..7b2a512cad 100644--- a/frontend/shared/components/EmptyState.tsx+++ b/frontend/editor/src/proprietary/ui/EmptyState.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/EmptyState.css";+import "@app/ui/EmptyState.css";export interface EmptyStateProps {/** Eyebrow text shown above the title (e.g. "No pipelines yet"). */diff --git a/frontend/shared/components/FormField.css b/frontend/editor/src/proprietary/ui/FormField.csssimilarity index 100%rename from frontend/shared/components/FormField.cssrename to frontend/editor/src/proprietary/ui/FormField.cssdiff --git a/frontend/shared/components/FormField.tsx b/frontend/editor/src/proprietary/ui/FormField.tsxsimilarity index 98%rename from frontend/shared/components/FormField.tsxrename to frontend/editor/src/proprietary/ui/FormField.tsxindex dc84d27158..65eec64eb8 100644--- a/frontend/shared/components/FormField.tsx+++ b/frontend/editor/src/proprietary/ui/FormField.tsx@@ -5,7 +5,7 @@ import {type ReactElement,type ReactNode,} from "react";-import "@shared/components/FormField.css";+import "@app/ui/FormField.css";export interface FormFieldProps {label?: ReactNode;diff --git a/frontend/shared/components/Forms.stories.tsx b/frontend/editor/src/proprietary/ui/Forms.stories.tsxsimilarity index 94%rename from frontend/shared/components/Forms.stories.tsxrename to frontend/editor/src/proprietary/ui/Forms.stories.tsxindex d38bc38347..10f4e0b1c3 100644--- a/frontend/shared/components/Forms.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Forms.stories.tsx@@ -1,13 +1,13 @@import { useState } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import { FormField } from "@shared/components/FormField";-import { Input } from "@shared/components/Input";-import { Select } from "@shared/components/Select";-import { Checkbox } from "@shared/components/Checkbox";-import { RadioGroup } from "@shared/components/Radio";-import { Slider } from "@shared/components/Slider";-import { Stack } from "@shared/components/Stack";-import { Inline } from "@shared/components/Inline";+import { FormField } from "@app/ui/FormField";+import { Input } from "@app/ui/Input";+import { Select } from "@app/ui/Select";+import { Checkbox } from "@app/ui/Checkbox";+import { RadioGroup } from "@app/ui/Radio";+import { Slider } from "@app/ui/Slider";+import { Stack } from "@app/ui/Stack";+import { Inline } from "@app/ui/Inline";// Inline icon to avoid a cross-layer import; shared/ must not depend on portal/.function SearchIcon({ size = 14 }: { size?: number }) {diff --git a/frontend/shared/components/IconBadge.css b/frontend/editor/src/proprietary/ui/IconBadge.csssimilarity index 100%rename from frontend/shared/components/IconBadge.cssrename to frontend/editor/src/proprietary/ui/IconBadge.cssdiff --git a/frontend/shared/components/IconBadge.stories.tsx b/frontend/editor/src/proprietary/ui/IconBadge.stories.tsxsimilarity index 95%rename from frontend/shared/components/IconBadge.stories.tsxrename to frontend/editor/src/proprietary/ui/IconBadge.stories.tsxindex 8ac7f8d394..538208f14a 100644--- a/frontend/shared/components/IconBadge.stories.tsx+++ b/frontend/editor/src/proprietary/ui/IconBadge.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { IconBadge } from "@shared/components/IconBadge";+import { IconBadge } from "@app/ui/IconBadge";function Glyph() {return (diff --git a/frontend/shared/components/IconBadge.tsx b/frontend/editor/src/proprietary/ui/IconBadge.tsxsimilarity index 95%rename from frontend/shared/components/IconBadge.tsxrename to frontend/editor/src/proprietary/ui/IconBadge.tsxindex 0968b64592..9b421d47c5 100644--- a/frontend/shared/components/IconBadge.tsx+++ b/frontend/editor/src/proprietary/ui/IconBadge.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/IconBadge.css";+import "@app/ui/IconBadge.css";export type IconBadgeAccent = "blue" | "purple" | "green" | "amber" | "red";diff --git a/frontend/shared/components/Inline.css b/frontend/editor/src/proprietary/ui/Inline.csssimilarity index 100%rename from frontend/shared/components/Inline.cssrename to frontend/editor/src/proprietary/ui/Inline.cssdiff --git a/frontend/shared/components/Inline.stories.tsx b/frontend/editor/src/proprietary/ui/Inline.stories.tsxsimilarity index 87%rename from frontend/shared/components/Inline.stories.tsxrename to frontend/editor/src/proprietary/ui/Inline.stories.tsxindex 2737d956ed..b6e4ed54eb 100644--- a/frontend/shared/components/Inline.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Inline.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Inline } from "@shared/components/Inline";-import { Button } from "@shared/components/Button";-import { StatusBadge } from "@shared/components/StatusBadge";+import { Inline } from "@app/ui/Inline";+import { Button } from "@app/ui/Button";+import { StatusBadge } from "@app/ui/StatusBadge";const meta: Meta<typeof Inline> = {title: "Primitives/Layout/Inline",diff --git a/frontend/shared/components/Inline.tsx b/frontend/editor/src/proprietary/ui/Inline.tsxsimilarity index 89%rename from frontend/shared/components/Inline.tsxrename to frontend/editor/src/proprietary/ui/Inline.tsxindex 2ee5f2ac90..4b3474199b 100644--- a/frontend/shared/components/Inline.tsx+++ b/frontend/editor/src/proprietary/ui/Inline.tsx@@ -1,10 +1,6 @@import type { ElementType, ReactNode, HTMLAttributes } from "react";-import type {- StackGap,- StackAlign,- StackJustify,-} from "@shared/components/Stack";-import "@shared/components/Inline.css";+import type { StackGap, StackAlign, StackJustify } from "@app/ui/Stack";+import "@app/ui/Inline.css";export interface InlineProps extends HTMLAttributes<HTMLElement> {/** Token-aligned gap between children (maps to `--space-*`). */diff --git a/frontend/shared/components/Input.css b/frontend/editor/src/proprietary/ui/Input.csssimilarity index 100%rename from frontend/shared/components/Input.cssrename to frontend/editor/src/proprietary/ui/Input.cssdiff --git a/frontend/shared/components/Input.tsx b/frontend/editor/src/proprietary/ui/Input.tsxsimilarity index 97%rename from frontend/shared/components/Input.tsxrename to frontend/editor/src/proprietary/ui/Input.tsxindex 61cf136b24..27e15ed37f 100644--- a/frontend/shared/components/Input.tsx+++ b/frontend/editor/src/proprietary/ui/Input.tsx@@ -1,5 +1,5 @@import { forwardRef, type InputHTMLAttributes, type ReactNode } from "react";-import "@shared/components/Input.css";+import "@app/ui/Input.css";export type InputSize = "sm" | "md";diff --git a/frontend/shared/components/ListRow.css b/frontend/editor/src/proprietary/ui/ListRow.csssimilarity index 100%rename from frontend/shared/components/ListRow.cssrename to frontend/editor/src/proprietary/ui/ListRow.cssdiff --git a/frontend/shared/components/ListRow.stories.tsx b/frontend/editor/src/proprietary/ui/ListRow.stories.tsxsimilarity index 92%rename from frontend/shared/components/ListRow.stories.tsxrename to frontend/editor/src/proprietary/ui/ListRow.stories.tsxindex 5aa7f7e975..8ec4099836 100644--- a/frontend/shared/components/ListRow.stories.tsx+++ b/frontend/editor/src/proprietary/ui/ListRow.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { ListRow } from "@shared/components/ListRow";-import { Card } from "@shared/components/Card";-import { StatusBadge } from "@shared/components/StatusBadge";+import { ListRow } from "@app/ui/ListRow";+import { Card } from "@app/ui/Card";+import { StatusBadge } from "@app/ui/StatusBadge";const meta: Meta<typeof ListRow> = {title: "Primitives/ListRow",diff --git a/frontend/shared/components/ListRow.tsx b/frontend/editor/src/proprietary/ui/ListRow.tsxsimilarity index 95%rename from frontend/shared/components/ListRow.tsxrename to frontend/editor/src/proprietary/ui/ListRow.tsxindex 098df78503..33821a82d9 100644--- a/frontend/shared/components/ListRow.tsx+++ b/frontend/editor/src/proprietary/ui/ListRow.tsx@@ -1,6 +1,6 @@import type { ReactNode } from "react";-import "@shared/components/ListRow.css";-import type { StatusTone } from "@shared/components/StatusBadge";+import "@app/ui/ListRow.css";+import type { StatusTone } from "@app/ui/StatusBadge";export interface ListRowProps {/** Leading visual (icon/avatar), shown in a tone-tinted square. */diff --git a/frontend/shared/components/MethodBadge.css b/frontend/editor/src/proprietary/ui/MethodBadge.csssimilarity index 100%rename from frontend/shared/components/MethodBadge.cssrename to frontend/editor/src/proprietary/ui/MethodBadge.cssdiff --git a/frontend/shared/components/MethodBadge.stories.tsx b/frontend/editor/src/proprietary/ui/MethodBadge.stories.tsxsimilarity index 92%rename from frontend/shared/components/MethodBadge.stories.tsxrename to frontend/editor/src/proprietary/ui/MethodBadge.stories.tsxindex 698689f86b..9110ef9f06 100644--- a/frontend/shared/components/MethodBadge.stories.tsx+++ b/frontend/editor/src/proprietary/ui/MethodBadge.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react";-import { MethodBadge, type HttpMethod } from "@shared/components/MethodBadge";+import { MethodBadge, type HttpMethod } from "@app/ui/MethodBadge";const meta: Meta<typeof MethodBadge> = {title: "Primitives/MethodBadge",diff --git a/frontend/shared/components/MethodBadge.tsx b/frontend/editor/src/proprietary/ui/MethodBadge.tsxsimilarity index 93%rename from frontend/shared/components/MethodBadge.tsxrename to frontend/editor/src/proprietary/ui/MethodBadge.tsxindex d64ad3a5ed..6dd32bd09d 100644--- a/frontend/shared/components/MethodBadge.tsx+++ b/frontend/editor/src/proprietary/ui/MethodBadge.tsx@@ -1,4 +1,4 @@-import "@shared/components/MethodBadge.css";+import "@app/ui/MethodBadge.css";export type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";diff --git a/frontend/shared/components/MetricCard.css b/frontend/editor/src/proprietary/ui/MetricCard.csssimilarity index 100%rename from frontend/shared/components/MetricCard.cssrename to frontend/editor/src/proprietary/ui/MetricCard.cssdiff --git a/frontend/shared/components/MetricCard.stories.tsx b/frontend/editor/src/proprietary/ui/MetricCard.stories.tsxsimilarity index 97%rename from frontend/shared/components/MetricCard.stories.tsxrename to frontend/editor/src/proprietary/ui/MetricCard.stories.tsxindex 2a63397c03..0e54806345 100644--- a/frontend/shared/components/MetricCard.stories.tsx+++ b/frontend/editor/src/proprietary/ui/MetricCard.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { MetricCard } from "@shared/components/MetricCard";+import { MetricCard } from "@app/ui/MetricCard";const meta: Meta<typeof MetricCard> = {title: "Primitives/MetricCard",diff --git a/frontend/shared/components/MetricCard.tsx b/frontend/editor/src/proprietary/ui/MetricCard.tsxsimilarity index 98%rename from frontend/shared/components/MetricCard.tsxrename to frontend/editor/src/proprietary/ui/MetricCard.tsxindex 1d357932f4..cd61580095 100644--- a/frontend/shared/components/MetricCard.tsx+++ b/frontend/editor/src/proprietary/ui/MetricCard.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/MetricCard.css";+import "@app/ui/MetricCard.css";export type DeltaDirection = "up" | "down" | "flat";diff --git a/frontend/shared/components/MetricStrip.css b/frontend/editor/src/proprietary/ui/MetricStrip.csssimilarity index 100%rename from frontend/shared/components/MetricStrip.cssrename to frontend/editor/src/proprietary/ui/MetricStrip.cssdiff --git a/frontend/shared/components/MetricStrip.stories.tsx b/frontend/editor/src/proprietary/ui/MetricStrip.stories.tsxsimilarity index 85%rename from frontend/shared/components/MetricStrip.stories.tsxrename to frontend/editor/src/proprietary/ui/MetricStrip.stories.tsxindex b2dfc0c689..0c1ba975f2 100644--- a/frontend/shared/components/MetricStrip.stories.tsx+++ b/frontend/editor/src/proprietary/ui/MetricStrip.stories.tsx@@ -1,6 +1,6 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { MetricStrip } from "@shared/components/MetricStrip";-import { MetricCard } from "@shared/components/MetricCard";+import { MetricStrip } from "@app/ui/MetricStrip";+import { MetricCard } from "@app/ui/MetricCard";const meta: Meta<typeof MetricStrip> = {title: "Layout/MetricStrip",diff --git a/frontend/shared/components/MetricStrip.tsx b/frontend/editor/src/proprietary/ui/MetricStrip.tsxsimilarity index 92%rename from frontend/shared/components/MetricStrip.tsxrename to frontend/editor/src/proprietary/ui/MetricStrip.tsxindex 4b78200691..27ca2fc30a 100644--- a/frontend/shared/components/MetricStrip.tsx+++ b/frontend/editor/src/proprietary/ui/MetricStrip.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/MetricStrip.css";+import "@app/ui/MetricStrip.css";export interface MetricStripProps {children: ReactNode;diff --git a/frontend/shared/components/Modal.css b/frontend/editor/src/proprietary/ui/Modal.csssimilarity index 91%rename from frontend/shared/components/Modal.cssrename to frontend/editor/src/proprietary/ui/Modal.cssindex 235f2f4ccd..d63985d97d 100644--- a/frontend/shared/components/Modal.css+++ b/frontend/editor/src/proprietary/ui/Modal.css@@ -12,6 +12,9 @@}.sui-modal {+ /* Set our own font: the modal portals to <body>, so it can't inherit the+ app's font through the DOM (the portal's .portal-scope isn't an ancestor). */+ font-family: var(--font-sans);background: var(--color-surface);border: 1px solid var(--color-border);border-radius: var(--radius-xl);diff --git a/frontend/shared/components/Modal.tsx b/frontend/editor/src/proprietary/ui/Modal.tsxsimilarity index 99%rename from frontend/shared/components/Modal.tsxrename to frontend/editor/src/proprietary/ui/Modal.tsxindex 4ab65c9586..c0de1d475c 100644--- a/frontend/shared/components/Modal.tsx+++ b/frontend/editor/src/proprietary/ui/Modal.tsx@@ -1,7 +1,7 @@import { useEffect, useId, type ReactNode } from "react";import { createPortal } from "react-dom";import { FocusTrap } from "@mantine/core";-import "@shared/components/Modal.css";+import "@app/ui/Modal.css";export type ModalWidth = "sm" | "md" | "lg" | "xl";diff --git a/frontend/shared/components/NavItem.css b/frontend/editor/src/proprietary/ui/NavItem.csssimilarity index 100%rename from frontend/shared/components/NavItem.cssrename to frontend/editor/src/proprietary/ui/NavItem.cssdiff --git a/frontend/shared/components/NavItem.stories.tsx b/frontend/editor/src/proprietary/ui/NavItem.stories.tsxsimilarity index 95%rename from frontend/shared/components/NavItem.stories.tsxrename to frontend/editor/src/proprietary/ui/NavItem.stories.tsxindex 2cf5794a75..7ceb981d79 100644--- a/frontend/shared/components/NavItem.stories.tsx+++ b/frontend/editor/src/proprietary/ui/NavItem.stories.tsx@@ -1,7 +1,7 @@import { useState } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import { NavItem } from "@shared/components/NavItem";-import { SectionDivider } from "@shared/components/SectionDivider";+import { NavItem } from "@app/ui/NavItem";+import { SectionDivider } from "@app/ui/SectionDivider";function Dot({ color = "var(--color-blue)" }: { color?: string }) {return (diff --git a/frontend/shared/components/NavItem.tsx b/frontend/editor/src/proprietary/ui/NavItem.tsxsimilarity index 97%rename from frontend/shared/components/NavItem.tsxrename to frontend/editor/src/proprietary/ui/NavItem.tsxindex 05826e4b6e..b912d1fd19 100644--- a/frontend/shared/components/NavItem.tsx+++ b/frontend/editor/src/proprietary/ui/NavItem.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/NavItem.css";+import "@app/ui/NavItem.css";export type NavItemAccent = "blue" | "purple" | "green" | "amber" | "red";diff --git a/frontend/shared/components/PanelHeader.css b/frontend/editor/src/proprietary/ui/PanelHeader.csssimilarity index 100%rename from frontend/shared/components/PanelHeader.cssrename to frontend/editor/src/proprietary/ui/PanelHeader.cssdiff --git a/frontend/shared/components/PanelHeader.stories.tsx b/frontend/editor/src/proprietary/ui/PanelHeader.stories.tsxsimilarity index 93%rename from frontend/shared/components/PanelHeader.stories.tsxrename to frontend/editor/src/proprietary/ui/PanelHeader.stories.tsxindex 02cf26360a..36f193e1d8 100644--- a/frontend/shared/components/PanelHeader.stories.tsx+++ b/frontend/editor/src/proprietary/ui/PanelHeader.stories.tsx@@ -1,8 +1,8 @@import type { Meta, StoryObj } from "@storybook/react-vite";import ShieldOutlinedIcon from "@mui/icons-material/ShieldOutlined";import DeleteSweepIcon from "@mui/icons-material/DeleteSweep";-import { PanelHeader } from "@shared/components/PanelHeader";-import { StatusBadge } from "@shared/components/StatusBadge";+import { PanelHeader } from "@app/ui/PanelHeader";+import { StatusBadge } from "@app/ui/StatusBadge";const meta: Meta<typeof PanelHeader> = {title: "Primitives/PanelHeader",diff --git a/frontend/shared/components/PanelHeader.tsx b/frontend/editor/src/proprietary/ui/PanelHeader.tsxsimilarity index 97%rename from frontend/shared/components/PanelHeader.tsxrename to frontend/editor/src/proprietary/ui/PanelHeader.tsxindex 1fcedd88ac..26ba1b738c 100644--- a/frontend/shared/components/PanelHeader.tsx+++ b/frontend/editor/src/proprietary/ui/PanelHeader.tsx@@ -2,8 +2,8 @@ import type { CSSProperties, ReactNode } from "react";import { ActionIcon, Menu } from "@mantine/core";import CloseIcon from "@mui/icons-material/Close";import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";-import type { IconBadgeAccent } from "@shared/components/IconBadge";-import "@shared/components/PanelHeader.css";+import type { IconBadgeAccent } from "@app/ui/IconBadge";+import "@app/ui/PanelHeader.css";export interface PanelHeaderMenuItem {/** Stable key; falls back to the item index. */diff --git a/frontend/shared/components/ProgressBar.css b/frontend/editor/src/proprietary/ui/ProgressBar.csssimilarity index 100%rename from frontend/shared/components/ProgressBar.cssrename to frontend/editor/src/proprietary/ui/ProgressBar.cssdiff --git a/frontend/shared/components/ProgressBar.stories.tsx b/frontend/editor/src/proprietary/ui/ProgressBar.stories.tsxsimilarity index 97%rename from frontend/shared/components/ProgressBar.stories.tsxrename to frontend/editor/src/proprietary/ui/ProgressBar.stories.tsxindex bc7db818e7..0f3f4f927b 100644--- a/frontend/shared/components/ProgressBar.stories.tsx+++ b/frontend/editor/src/proprietary/ui/ProgressBar.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { ProgressBar } from "@shared/components/ProgressBar";+import { ProgressBar } from "@app/ui/ProgressBar";const meta: Meta<typeof ProgressBar> = {title: "Primitives/ProgressBar",diff --git a/frontend/shared/components/ProgressBar.tsx b/frontend/editor/src/proprietary/ui/ProgressBar.tsxsimilarity index 98%rename from frontend/shared/components/ProgressBar.tsxrename to frontend/editor/src/proprietary/ui/ProgressBar.tsxindex cf3a9b9c78..570fc43099 100644--- a/frontend/shared/components/ProgressBar.tsx+++ b/frontend/editor/src/proprietary/ui/ProgressBar.tsx@@ -1,4 +1,4 @@-import "@shared/components/ProgressBar.css";+import "@app/ui/ProgressBar.css";export interface ProgressBarProps {/** 0–1. Values outside the range are clamped. */diff --git a/frontend/shared/components/Radio.css b/frontend/editor/src/proprietary/ui/Radio.csssimilarity index 100%rename from frontend/shared/components/Radio.cssrename to frontend/editor/src/proprietary/ui/Radio.cssdiff --git a/frontend/shared/components/Radio.tsx b/frontend/editor/src/proprietary/ui/Radio.tsxsimilarity index 98%rename from frontend/shared/components/Radio.tsxrename to frontend/editor/src/proprietary/ui/Radio.tsxindex 64f2dfb3e2..acc3c626ea 100644--- a/frontend/shared/components/Radio.tsx+++ b/frontend/editor/src/proprietary/ui/Radio.tsx@@ -1,5 +1,5 @@import { type InputHTMLAttributes, type ReactNode } from "react";-import "@shared/components/Radio.css";+import "@app/ui/Radio.css";export interface RadioOption<V extends string = string> {value: V;diff --git a/frontend/shared/components/SectionDivider.css b/frontend/editor/src/proprietary/ui/SectionDivider.csssimilarity index 100%rename from frontend/shared/components/SectionDivider.cssrename to frontend/editor/src/proprietary/ui/SectionDivider.cssdiff --git a/frontend/shared/components/SectionDivider.stories.tsx b/frontend/editor/src/proprietary/ui/SectionDivider.stories.tsxsimilarity index 95%rename from frontend/shared/components/SectionDivider.stories.tsxrename to frontend/editor/src/proprietary/ui/SectionDivider.stories.tsxindex b2b3f17ba5..8cd433e83a 100644--- a/frontend/shared/components/SectionDivider.stories.tsx+++ b/frontend/editor/src/proprietary/ui/SectionDivider.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { SectionDivider } from "@shared/components/SectionDivider";+import { SectionDivider } from "@app/ui/SectionDivider";const meta: Meta<typeof SectionDivider> = {title: "Primitives/SectionDivider",diff --git a/frontend/shared/components/SectionDivider.tsx b/frontend/editor/src/proprietary/ui/SectionDivider.tsxsimilarity index 92%rename from frontend/shared/components/SectionDivider.tsxrename to frontend/editor/src/proprietary/ui/SectionDivider.tsxindex 6fe5556edf..28b0bd6b79 100644--- a/frontend/shared/components/SectionDivider.tsx+++ b/frontend/editor/src/proprietary/ui/SectionDivider.tsx@@ -1,4 +1,4 @@-import "@shared/components/SectionDivider.css";+import "@app/ui/SectionDivider.css";export interface SectionDividerProps {/** Vertical margin in px. */diff --git a/frontend/shared/components/SectionHeader.css b/frontend/editor/src/proprietary/ui/SectionHeader.csssimilarity index 100%rename from frontend/shared/components/SectionHeader.cssrename to frontend/editor/src/proprietary/ui/SectionHeader.cssdiff --git a/frontend/shared/components/SectionHeader.stories.tsx b/frontend/editor/src/proprietary/ui/SectionHeader.stories.tsxsimilarity index 92%rename from frontend/shared/components/SectionHeader.stories.tsxrename to frontend/editor/src/proprietary/ui/SectionHeader.stories.tsxindex d3adffd1c3..1f4ff21b43 100644--- a/frontend/shared/components/SectionHeader.stories.tsx+++ b/frontend/editor/src/proprietary/ui/SectionHeader.stories.tsx@@ -1,6 +1,6 @@import { useState } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import { SectionHeader } from "@shared/components/SectionHeader";+import { SectionHeader } from "@app/ui/SectionHeader";const meta: Meta<typeof SectionHeader> = {title: "Primitives/SectionHeader",diff --git a/frontend/shared/components/SectionHeader.tsx b/frontend/editor/src/proprietary/ui/SectionHeader.tsxsimilarity index 97%rename from frontend/shared/components/SectionHeader.tsxrename to frontend/editor/src/proprietary/ui/SectionHeader.tsxindex 2578730933..be7cab5d32 100644--- a/frontend/shared/components/SectionHeader.tsx+++ b/frontend/editor/src/proprietary/ui/SectionHeader.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/SectionHeader.css";+import "@app/ui/SectionHeader.css";export interface SectionHeaderProps {/** Uppercase eyebrow title. */diff --git a/frontend/shared/components/Select.css b/frontend/editor/src/proprietary/ui/Select.csssimilarity index 100%rename from frontend/shared/components/Select.cssrename to frontend/editor/src/proprietary/ui/Select.cssdiff --git a/frontend/shared/components/Select.tsx b/frontend/editor/src/proprietary/ui/Select.tsxsimilarity index 97%rename from frontend/shared/components/Select.tsxrename to frontend/editor/src/proprietary/ui/Select.tsxindex 4327342212..b970cc1815 100644--- a/frontend/shared/components/Select.tsx+++ b/frontend/editor/src/proprietary/ui/Select.tsx@@ -1,5 +1,5 @@import { forwardRef, type SelectHTMLAttributes } from "react";-import "@shared/components/Select.css";+import "@app/ui/Select.css";export interface SelectOption {value: string;diff --git a/frontend/shared/components/SettingsRow.css b/frontend/editor/src/proprietary/ui/SettingsRow.csssimilarity index 100%rename from frontend/shared/components/SettingsRow.cssrename to frontend/editor/src/proprietary/ui/SettingsRow.cssdiff --git a/frontend/shared/components/SettingsRow.stories.tsx b/frontend/editor/src/proprietary/ui/SettingsRow.stories.tsxsimilarity index 89%rename from frontend/shared/components/SettingsRow.stories.tsxrename to frontend/editor/src/proprietary/ui/SettingsRow.stories.tsxindex 964a92a1ee..4527ef2689 100644--- a/frontend/shared/components/SettingsRow.stories.tsx+++ b/frontend/editor/src/proprietary/ui/SettingsRow.stories.tsx@@ -1,8 +1,8 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { SettingsRow } from "@shared/components/SettingsRow";-import { ToggleSwitch } from "@shared/components/ToggleSwitch";-import { Select } from "@shared/components/Select";-import { Card } from "@shared/components/Card";+import { SettingsRow } from "@app/ui/SettingsRow";+import { ToggleSwitch } from "@app/ui/ToggleSwitch";+import { Select } from "@app/ui/Select";+import { Card } from "@app/ui/Card";const meta: Meta<typeof SettingsRow> = {title: "Primitives/SettingsRow",diff --git a/frontend/shared/components/SettingsRow.tsx b/frontend/editor/src/proprietary/ui/SettingsRow.tsxsimilarity index 96%rename from frontend/shared/components/SettingsRow.tsxrename to frontend/editor/src/proprietary/ui/SettingsRow.tsxindex 00bfe8da97..65f48cddc8 100644--- a/frontend/shared/components/SettingsRow.tsx+++ b/frontend/editor/src/proprietary/ui/SettingsRow.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/SettingsRow.css";+import "@app/ui/SettingsRow.css";export interface SettingsRowProps {/** Left-aligned setting name. */diff --git a/frontend/shared/components/SettingsShell.css b/frontend/editor/src/proprietary/ui/SettingsShell.csssimilarity index 100%rename from frontend/shared/components/SettingsShell.cssrename to frontend/editor/src/proprietary/ui/SettingsShell.cssdiff --git a/frontend/shared/components/SettingsShell.stories.tsx b/frontend/editor/src/proprietary/ui/SettingsShell.stories.tsxsimilarity index 92%rename from frontend/shared/components/SettingsShell.stories.tsxrename to frontend/editor/src/proprietary/ui/SettingsShell.stories.tsxindex eb69c18ad3..4d14cd98c9 100644--- a/frontend/shared/components/SettingsShell.stories.tsx+++ b/frontend/editor/src/proprietary/ui/SettingsShell.stories.tsx@@ -1,10 +1,7 @@import { useState } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import {- SettingsShell,- type SettingsNavSection,-} from "@shared/components/SettingsShell";-import { Button } from "@shared/components/Button";+import { SettingsShell, type SettingsNavSection } from "@app/ui/SettingsShell";+import { Button } from "@app/ui/Button";const SECTIONS: SettingsNavSection[] = [{diff --git a/frontend/shared/components/SettingsShell.tsx b/frontend/editor/src/proprietary/ui/SettingsShell.tsxsimilarity index 98%rename from frontend/shared/components/SettingsShell.tsxrename to frontend/editor/src/proprietary/ui/SettingsShell.tsxindex 9dafcb14f4..77dd36e2ca 100644--- a/frontend/shared/components/SettingsShell.tsx+++ b/frontend/editor/src/proprietary/ui/SettingsShell.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/SettingsShell.css";+import "@app/ui/SettingsShell.css";export interface SettingsNavItem {key: string;diff --git a/frontend/shared/components/Skeleton.css b/frontend/editor/src/proprietary/ui/Skeleton.csssimilarity index 100%rename from frontend/shared/components/Skeleton.cssrename to frontend/editor/src/proprietary/ui/Skeleton.cssdiff --git a/frontend/shared/components/Skeleton.stories.tsx b/frontend/editor/src/proprietary/ui/Skeleton.stories.tsxsimilarity index 96%rename from frontend/shared/components/Skeleton.stories.tsxrename to frontend/editor/src/proprietary/ui/Skeleton.stories.tsxindex ed926004d6..9ba54627dc 100644--- a/frontend/shared/components/Skeleton.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Skeleton.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Skeleton } from "@shared/components/Skeleton";+import { Skeleton } from "@app/ui/Skeleton";const meta: Meta<typeof Skeleton> = {title: "Primitives/Skeleton",diff --git a/frontend/shared/components/Skeleton.tsx b/frontend/editor/src/proprietary/ui/Skeleton.tsxsimilarity index 97%rename from frontend/shared/components/Skeleton.tsxrename to frontend/editor/src/proprietary/ui/Skeleton.tsxindex b4fafc9b72..bb018b3f68 100644--- a/frontend/shared/components/Skeleton.tsx+++ b/frontend/editor/src/proprietary/ui/Skeleton.tsx@@ -1,4 +1,4 @@-import "@shared/components/Skeleton.css";+import "@app/ui/Skeleton.css";export interface SkeletonProps {/** Width as a CSS length (`100%`, `12rem`, …). Defaults to 100%. */diff --git a/frontend/shared/components/Slider.css b/frontend/editor/src/proprietary/ui/Slider.csssimilarity index 100%rename from frontend/shared/components/Slider.cssrename to frontend/editor/src/proprietary/ui/Slider.cssdiff --git a/frontend/shared/components/Slider.tsx b/frontend/editor/src/proprietary/ui/Slider.tsxsimilarity index 97%rename from frontend/shared/components/Slider.tsxrename to frontend/editor/src/proprietary/ui/Slider.tsxindex 2829cae949..3b540def06 100644--- a/frontend/shared/components/Slider.tsx+++ b/frontend/editor/src/proprietary/ui/Slider.tsx@@ -1,5 +1,5 @@import { forwardRef, type InputHTMLAttributes } from "react";-import "@shared/components/Slider.css";+import "@app/ui/Slider.css";export interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>,diff --git a/frontend/shared/components/Spinner.css b/frontend/editor/src/proprietary/ui/Spinner.csssimilarity index 100%rename from frontend/shared/components/Spinner.cssrename to frontend/editor/src/proprietary/ui/Spinner.cssdiff --git a/frontend/shared/components/Spinner.stories.tsx b/frontend/editor/src/proprietary/ui/Spinner.stories.tsxsimilarity index 95%rename from frontend/shared/components/Spinner.stories.tsxrename to frontend/editor/src/proprietary/ui/Spinner.stories.tsxindex 68ca648f45..9435ffec3a 100644--- a/frontend/shared/components/Spinner.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Spinner.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Spinner } from "@shared/components/Spinner";+import { Spinner } from "@app/ui/Spinner";const meta: Meta<typeof Spinner> = {title: "Primitives/Spinner",diff --git a/frontend/shared/components/Spinner.tsx b/frontend/editor/src/proprietary/ui/Spinner.tsxsimilarity index 94%rename from frontend/shared/components/Spinner.tsxrename to frontend/editor/src/proprietary/ui/Spinner.tsxindex d383e2cd07..9d7a2c8b37 100644--- a/frontend/shared/components/Spinner.tsx+++ b/frontend/editor/src/proprietary/ui/Spinner.tsx@@ -1,4 +1,4 @@-import "@shared/components/Spinner.css";+import "@app/ui/Spinner.css";export type SpinnerSize = "xs" | "sm" | "md" | "lg";diff --git a/frontend/shared/components/Stack.css b/frontend/editor/src/proprietary/ui/Stack.csssimilarity index 100%rename from frontend/shared/components/Stack.cssrename to frontend/editor/src/proprietary/ui/Stack.cssdiff --git a/frontend/shared/components/Stack.stories.tsx b/frontend/editor/src/proprietary/ui/Stack.stories.tsxsimilarity index 91%rename from frontend/shared/components/Stack.stories.tsxrename to frontend/editor/src/proprietary/ui/Stack.stories.tsxindex ef98c57aea..d35a40928c 100644--- a/frontend/shared/components/Stack.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Stack.stories.tsx@@ -1,7 +1,7 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Stack } from "@shared/components/Stack";-import { Inline } from "@shared/components/Inline";-import { Card } from "@shared/components/Card";+import { Stack } from "@app/ui/Stack";+import { Inline } from "@app/ui/Inline";+import { Card } from "@app/ui/Card";const meta: Meta<typeof Stack> = {title: "Primitives/Layout/Stack",diff --git a/frontend/shared/components/Stack.tsx b/frontend/editor/src/proprietary/ui/Stack.tsxsimilarity index 97%rename from frontend/shared/components/Stack.tsxrename to frontend/editor/src/proprietary/ui/Stack.tsxindex be02f7f23f..650e89a411 100644--- a/frontend/shared/components/Stack.tsx+++ b/frontend/editor/src/proprietary/ui/Stack.tsx@@ -1,5 +1,5 @@import type { ElementType, ReactNode, HTMLAttributes } from "react";-import "@shared/components/Stack.css";+import "@app/ui/Stack.css";export type StackGap =| "0"diff --git a/frontend/shared/components/StatTile.css b/frontend/editor/src/proprietary/ui/StatTile.csssimilarity index 100%rename from frontend/shared/components/StatTile.cssrename to frontend/editor/src/proprietary/ui/StatTile.cssdiff --git a/frontend/shared/components/StatTile.stories.tsx b/frontend/editor/src/proprietary/ui/StatTile.stories.tsxsimilarity index 93%rename from frontend/shared/components/StatTile.stories.tsxrename to frontend/editor/src/proprietary/ui/StatTile.stories.tsxindex 1fcde52094..59b4648bb9 100644--- a/frontend/shared/components/StatTile.stories.tsx+++ b/frontend/editor/src/proprietary/ui/StatTile.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { StatTile } from "@shared/components/StatTile";+import { StatTile } from "@app/ui/StatTile";const meta: Meta<typeof StatTile> = {title: "Primitives/StatTile",diff --git a/frontend/shared/components/StatTile.tsx b/frontend/editor/src/proprietary/ui/StatTile.tsxsimilarity index 95%rename from frontend/shared/components/StatTile.tsxrename to frontend/editor/src/proprietary/ui/StatTile.tsxindex 3143c44e2c..32e6140f24 100644--- a/frontend/shared/components/StatTile.tsx+++ b/frontend/editor/src/proprietary/ui/StatTile.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/StatTile.css";+import "@app/ui/StatTile.css";export type StatTileTone = "default" | "success" | "warning" | "danger";diff --git a/frontend/shared/components/StatusBadge.css b/frontend/editor/src/proprietary/ui/StatusBadge.csssimilarity index 100%rename from frontend/shared/components/StatusBadge.cssrename to frontend/editor/src/proprietary/ui/StatusBadge.cssdiff --git a/frontend/shared/components/StatusBadge.stories.tsx b/frontend/editor/src/proprietary/ui/StatusBadge.stories.tsxsimilarity index 96%rename from frontend/shared/components/StatusBadge.stories.tsxrename to frontend/editor/src/proprietary/ui/StatusBadge.stories.tsxindex 4c8f069a04..fe4b322248 100644--- a/frontend/shared/components/StatusBadge.stories.tsx+++ b/frontend/editor/src/proprietary/ui/StatusBadge.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react";-import { StatusBadge } from "@shared/components/StatusBadge";+import { StatusBadge } from "@app/ui/StatusBadge";const meta: Meta<typeof StatusBadge> = {title: "Primitives/StatusBadge",diff --git a/frontend/shared/components/StatusBadge.tsx b/frontend/editor/src/proprietary/ui/StatusBadge.tsxsimilarity index 96%rename from frontend/shared/components/StatusBadge.tsxrename to frontend/editor/src/proprietary/ui/StatusBadge.tsxindex 72207de985..5ffd5d44f9 100644--- a/frontend/shared/components/StatusBadge.tsx+++ b/frontend/editor/src/proprietary/ui/StatusBadge.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/StatusBadge.css";+import "@app/ui/StatusBadge.css";export type StatusTone =| "neutral"diff --git a/frontend/shared/components/StepIndicator.css b/frontend/editor/src/proprietary/ui/StepIndicator.csssimilarity index 100%rename from frontend/shared/components/StepIndicator.cssrename to frontend/editor/src/proprietary/ui/StepIndicator.cssdiff --git a/frontend/shared/components/StepIndicator.stories.tsx b/frontend/editor/src/proprietary/ui/StepIndicator.stories.tsxsimilarity index 93%rename from frontend/shared/components/StepIndicator.stories.tsxrename to frontend/editor/src/proprietary/ui/StepIndicator.stories.tsxindex 7d75798f80..062119cb5a 100644--- a/frontend/shared/components/StepIndicator.stories.tsx+++ b/frontend/editor/src/proprietary/ui/StepIndicator.stories.tsx@@ -1,5 +1,5 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { StepIndicator } from "@shared/components/StepIndicator";+import { StepIndicator } from "@app/ui/StepIndicator";const meta: Meta<typeof StepIndicator> = {title: "Primitives/StepIndicator",diff --git a/frontend/shared/components/StepIndicator.tsx b/frontend/editor/src/proprietary/ui/StepIndicator.tsxsimilarity index 95%rename from frontend/shared/components/StepIndicator.tsxrename to frontend/editor/src/proprietary/ui/StepIndicator.tsxindex 700c923671..dcfaf7cddd 100644--- a/frontend/shared/components/StepIndicator.tsx+++ b/frontend/editor/src/proprietary/ui/StepIndicator.tsx@@ -1,4 +1,4 @@-import "@shared/components/StepIndicator.css";+import "@app/ui/StepIndicator.css";export interface StepIndicatorProps {/** Total number of steps. */diff --git a/frontend/shared/components/Table.css b/frontend/editor/src/proprietary/ui/Table.csssimilarity index 100%rename from frontend/shared/components/Table.cssrename to frontend/editor/src/proprietary/ui/Table.cssdiff --git a/frontend/shared/components/Table.stories.tsx b/frontend/editor/src/proprietary/ui/Table.stories.tsxsimilarity index 94%rename from frontend/shared/components/Table.stories.tsxrename to frontend/editor/src/proprietary/ui/Table.stories.tsxindex 0434dd67d4..2e7e0f64f1 100644--- a/frontend/shared/components/Table.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Table.stories.tsx@@ -1,6 +1,6 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { Table, type TableColumn } from "@shared/components/Table";-import { StatusBadge } from "@shared/components/StatusBadge";+import { Table, type TableColumn } from "@app/ui/Table";+import { StatusBadge } from "@app/ui/StatusBadge";interface Region {id: string;diff --git a/frontend/shared/components/Table.tsx b/frontend/editor/src/proprietary/ui/Table.tsxsimilarity index 98%rename from frontend/shared/components/Table.tsxrename to frontend/editor/src/proprietary/ui/Table.tsxindex 6eb90b2d38..0a07315a3d 100644--- a/frontend/shared/components/Table.tsx+++ b/frontend/editor/src/proprietary/ui/Table.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/Table.css";+import "@app/ui/Table.css";export interface TableColumn<T> {/** Stable column id. */diff --git a/frontend/shared/components/Tabs.css b/frontend/editor/src/proprietary/ui/Tabs.csssimilarity index 100%rename from frontend/shared/components/Tabs.cssrename to frontend/editor/src/proprietary/ui/Tabs.cssdiff --git a/frontend/shared/components/Tabs.stories.tsx b/frontend/editor/src/proprietary/ui/Tabs.stories.tsxsimilarity index 97%rename from frontend/shared/components/Tabs.stories.tsxrename to frontend/editor/src/proprietary/ui/Tabs.stories.tsxindex ef0c71acac..6e9780f622 100644--- a/frontend/shared/components/Tabs.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Tabs.stories.tsx@@ -1,6 +1,6 @@import { useState } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import { Tabs, type TabItem } from "@shared/components/Tabs";+import { Tabs, type TabItem } from "@app/ui/Tabs";const baseItems: TabItem[] = [{ key: "deployed", label: "Deployed", count: 6 },diff --git a/frontend/shared/components/Tabs.tsx b/frontend/editor/src/proprietary/ui/Tabs.tsxsimilarity index 98%rename from frontend/shared/components/Tabs.tsxrename to frontend/editor/src/proprietary/ui/Tabs.tsxindex 0727c3ced0..5c91934c77 100644--- a/frontend/shared/components/Tabs.tsx+++ b/frontend/editor/src/proprietary/ui/Tabs.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import "@shared/components/Tabs.css";+import "@app/ui/Tabs.css";export interface TabItem<K extends string = string> {/** Stable identifier for the tab. */diff --git a/frontend/shared/components/Toast.css b/frontend/editor/src/proprietary/ui/Toast.csssimilarity index 100%rename from frontend/shared/components/Toast.cssrename to frontend/editor/src/proprietary/ui/Toast.cssdiff --git a/frontend/shared/components/Toast.stories.tsx b/frontend/editor/src/proprietary/ui/Toast.stories.tsxsimilarity index 91%rename from frontend/shared/components/Toast.stories.tsxrename to frontend/editor/src/proprietary/ui/Toast.stories.tsxindex 4c599bc9fb..bab8a96b1e 100644--- a/frontend/shared/components/Toast.stories.tsx+++ b/frontend/editor/src/proprietary/ui/Toast.stories.tsx@@ -1,6 +1,6 @@import type { Meta, StoryObj } from "@storybook/react-vite";-import { ToastProvider, useToast } from "@shared/components/Toast";-import { Button } from "@shared/components/Button";+import { ToastProvider, useToast } from "@app/ui/Toast";+import { Button } from "@app/ui/Button";function Trigger() {const { toast } = useToast();diff --git a/frontend/shared/components/Toast.tsx b/frontend/editor/src/proprietary/ui/Toast.tsxsimilarity index 98%rename from frontend/shared/components/Toast.tsxrename to frontend/editor/src/proprietary/ui/Toast.tsxindex 9dd9a00ff5..055f5ec08d 100644--- a/frontend/shared/components/Toast.tsx+++ b/frontend/editor/src/proprietary/ui/Toast.tsx@@ -9,7 +9,7 @@ import {type ReactNode,} from "react";import { createPortal } from "react-dom";-import "@shared/components/Toast.css";+import "@app/ui/Toast.css";export type ToastTone = "info" | "success" | "warning" | "danger";diff --git a/frontend/shared/components/ToggleSwitch.css b/frontend/editor/src/proprietary/ui/ToggleSwitch.csssimilarity index 100%rename from frontend/shared/components/ToggleSwitch.cssrename to frontend/editor/src/proprietary/ui/ToggleSwitch.cssdiff --git a/frontend/shared/components/ToggleSwitch.stories.tsx b/frontend/editor/src/proprietary/ui/ToggleSwitch.stories.tsxsimilarity index 97%rename from frontend/shared/components/ToggleSwitch.stories.tsxrename to frontend/editor/src/proprietary/ui/ToggleSwitch.stories.tsxindex 9dc2f0abd8..2cb07d6161 100644--- a/frontend/shared/components/ToggleSwitch.stories.tsx+++ b/frontend/editor/src/proprietary/ui/ToggleSwitch.stories.tsx@@ -1,6 +1,6 @@import { useState } from "react";import type { Meta, StoryObj } from "@storybook/react-vite";-import { ToggleSwitch } from "@shared/components/ToggleSwitch";+import { ToggleSwitch } from "@app/ui/ToggleSwitch";const meta: Meta<typeof ToggleSwitch> = {title: "Primitives/ToggleSwitch",diff --git a/frontend/shared/components/ToggleSwitch.tsx b/frontend/editor/src/proprietary/ui/ToggleSwitch.tsxsimilarity index 97%rename from frontend/shared/components/ToggleSwitch.tsxrename to frontend/editor/src/proprietary/ui/ToggleSwitch.tsxindex a921e763cb..8e418d7dc5 100644--- a/frontend/shared/components/ToggleSwitch.tsx+++ b/frontend/editor/src/proprietary/ui/ToggleSwitch.tsx@@ -1,5 +1,5 @@import { useId } from "react";-import "@shared/components/ToggleSwitch.css";+import "@app/ui/ToggleSwitch.css";export interface ToggleSwitchProps {checked: boolean;diff --git a/frontend/editor/src/proprietary/ui/index.ts b/frontend/editor/src/proprietary/ui/index.tsnew file mode 100644index 0000000000..6c2132f894--- /dev/null+++ b/frontend/editor/src/proprietary/ui/index.ts@@ -0,0 +1,43 @@+export * from "@app/ui/Button";+export * from "@app/ui/StatusBadge";+export * from "@app/ui/MethodBadge";+export * from "@app/ui/ToggleSwitch";+export * from "@app/ui/ProgressBar";+export * from "@app/ui/MetricCard";+export * from "@app/ui/NavItem";+export * from "@app/ui/PanelHeader";+export * from "@app/ui/CodeBlock";+export * from "@app/ui/SectionDivider";+export * from "@app/ui/Card";+export * from "@app/ui/Modal";+export * from "@app/ui/SettingsShell";++// Layout+export * from "@app/ui/Stack";+export * from "@app/ui/Inline";+export * from "@app/ui/MetricStrip";+export * from "@app/ui/StatTile";++// Feedback+export * from "@app/ui/Spinner";+export * from "@app/ui/Skeleton";+export * from "@app/ui/Avatar";+export * from "@app/ui/Chip";+export * from "@app/ui/EmptyState";+export * from "@app/ui/Banner";+export * from "@app/ui/Toast";++// Compound+export * from "@app/ui/Collapsible";+export * from "@app/ui/Tabs";+export * from "@app/ui/Dropdown";+export * from "@app/ui/Drawer";+export * from "@app/ui/Table";++// Forms+export * from "@app/ui/FormField";+export * from "@app/ui/Input";+export * from "@app/ui/Select";+export * from "@app/ui/Checkbox";+export * from "@app/ui/Radio";+export * from "@app/ui/Slider";diff --git a/frontend/editor/src/prototypes/App.tsx b/frontend/editor/src/prototypes/App.tsxindex 191b22dfd0..bdddadff93 100644--- a/frontend/editor/src/prototypes/App.tsx+++ b/frontend/editor/src/prototypes/App.tsx@@ -18,7 +18,7 @@ import Onboarding from "@app/components/onboarding/Onboarding";import "@app/styles/tailwind.css";import "@app/styles/cookieconsent.css";import "@app/styles/index.css";-import "@shared/auth/ui/auth-theme.css";+import "@app/auth/ui/auth-theme.css";// Import file ID debugging helpers (development only)import "@app/utils/fileIdSafety";diff --git a/frontend/editor/src/prototypes/tsconfig.json b/frontend/editor/src/prototypes/tsconfig.jsonindex 23d39570d7..74c2316a9e 100644--- a/frontend/editor/src/prototypes/tsconfig.json+++ b/frontend/editor/src/prototypes/tsconfig.json@@ -8,8 +8,7 @@"../../src/core/*"],"@proprietary/*": ["../../src/proprietary/*"],- "@core/*": ["../../src/core/*"],- "@shared/*": ["../../../shared/*"]+ "@core/*": ["../../src/core/*"]}},"include": [diff --git a/frontend/editor/src/saas/App.tsx b/frontend/editor/src/saas/App.tsxindex 4ddefe28f3..59de137d32 100644--- a/frontend/editor/src/saas/App.tsx+++ b/frontend/editor/src/saas/App.tsx@@ -17,6 +17,7 @@ import ResetPassword from "@app/routes/ResetPassword";import OAuthConsent from "@app/routes/OAuthConsent";import ShareLinkPage from "@app/routes/ShareLinkPage";import MobileScannerPage from "@app/pages/MobileScannerPage";+import { getAdminRouteExtensions } from "@app/routes/adminRouteExtensions";import OnboardingBootstrap from "@app/components/OnboardingBootstrap";import SignupRequiredBootstrap from "@app/components/SignupRequiredBootstrap";import UsageLimitModalHost from "@app/components/UsageLimitModalHost";@@ -80,6 +81,10 @@ export default function App() {}/>+ {/* Admin-only route-set (the portal): its own top-level shell, mounted+ before the catch-all. */}+ {getAdminRouteExtensions()}+{/* Everything else needs the auth/backend providers. */}<Routepath="*"diff --git a/frontend/editor/src/saas/components/shared/config/configSections/Overview.tsx b/frontend/editor/src/saas/components/shared/config/configSections/Overview.tsxindex 69685e2e26..6033b5cd90 100644--- a/frontend/editor/src/saas/components/shared/config/configSections/Overview.tsx+++ b/frontend/editor/src/saas/components/shared/config/configSections/Overview.tsx@@ -21,7 +21,7 @@ import {linkOAuthIdentity,supabase,} from "@app/auth/supabase";-import { oauthIconUrl } from "@shared/auth/ui/oauthIcons";+import { oauthIconUrl } from "@app/auth/ui/oauthIcons";import { oauthProviders } from "@app/constants/authProviders";import { Tooltip } from "@app/components/shared/Tooltip";import { absoluteWithBasePath } from "@app/constants/app";diff --git a/frontend/editor/src/saas/routes/Login.tsx b/frontend/editor/src/saas/routes/Login.tsxindex dc52096dba..4395bef998 100644--- a/frontend/editor/src/saas/routes/Login.tsx+++ b/frontend/editor/src/saas/routes/Login.tsx@@ -5,7 +5,7 @@ import { useAuth } from "@app/auth/UseSession";import { useTranslation } from "@app/hooks/useTranslation";import { useDocumentMeta } from "@app/hooks/useDocumentMeta";import AuthLayout from "@app/routes/authShared/AuthLayout";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import "@app/routes/authShared/saas-auth.css";import {absoluteWithBasePath,@@ -15,11 +15,11 @@ import {import LinkRoundedIcon from "@mui/icons-material/LinkRounded";// Import login components-import ErrorMessage from "@shared/auth/ui/ErrorMessage";+import ErrorMessage from "@app/auth/ui/ErrorMessage";import EmailPasswordForm from "@app/routes/login/EmailPasswordForm";import OAuthButtons from "@app/routes/login/OAuthButtons";import LoggedInState from "@app/routes/login/LoggedInState";-import loginHeader from "@shared/assets/brand/modern-logo/LoginLightModeHeader.svg";+import loginHeader from "@app/assets/brand/modern-logo/LoginLightModeHeader.svg";export default function Login() {const navigate = useNavigate();diff --git a/frontend/editor/src/saas/routes/OAuthConsent.tsx b/frontend/editor/src/saas/routes/OAuthConsent.tsxindex 8aa42cc430..e36f4d371b 100644--- a/frontend/editor/src/saas/routes/OAuthConsent.tsx+++ b/frontend/editor/src/saas/routes/OAuthConsent.tsx@@ -4,11 +4,11 @@ import { useAuth } from "@app/auth/UseSession";import { useTranslation } from "@app/hooks/useTranslation";import { useDocumentMeta } from "@app/hooks/useDocumentMeta";import AuthLayout from "@app/routes/authShared/AuthLayout";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import "@app/routes/authShared/saas-auth.css";import { withBasePath } from "@app/constants/app";-import ErrorMessage from "@shared/auth/ui/ErrorMessage";-import loginHeader from "@shared/assets/brand/modern-logo/LoginLightModeHeader.svg";+import ErrorMessage from "@app/auth/ui/ErrorMessage";+import loginHeader from "@app/assets/brand/modern-logo/LoginLightModeHeader.svg";/*** OAuth 2.1 consent screen for the Supabase OAuth server (used by MCP clientsdiff --git a/frontend/editor/src/saas/routes/ResetPassword.tsx b/frontend/editor/src/saas/routes/ResetPassword.tsxindex 12c50c0d78..f17e82bd68 100644--- a/frontend/editor/src/saas/routes/ResetPassword.tsx+++ b/frontend/editor/src/saas/routes/ResetPassword.tsx@@ -2,7 +2,7 @@ import { useEffect, useState } from "react";import { useNavigate } from "react-router-dom";import AuthLayout from "@app/routes/authShared/AuthLayout";import LoginHeader from "@app/routes/login/LoginHeader";-import ErrorMessage from "@shared/auth/ui/ErrorMessage";+import ErrorMessage from "@app/auth/ui/ErrorMessage";import SuccessMessage from "@app/routes/login/SuccessMessage";import EmailPasswordForm from "@app/routes/login/EmailPasswordForm";import NavigationLink from "@app/routes/login/NavigationLink";diff --git a/frontend/editor/src/saas/routes/Signup.tsx b/frontend/editor/src/saas/routes/Signup.tsxindex 430fd54863..36d162a549 100644--- a/frontend/editor/src/saas/routes/Signup.tsx+++ b/frontend/editor/src/saas/routes/Signup.tsx@@ -6,12 +6,12 @@ import { useTranslation } from "@app/hooks/useTranslation";import { useDocumentMeta } from "@app/hooks/useDocumentMeta";import { getBaseUrl, withBasePath } from "@app/constants/app";import AuthLayout from "@app/routes/authShared/AuthLayout";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import "@app/routes/authShared/saas-auth.css";import { alert } from "@app/components/toast";// Import signup components-import ErrorMessage from "@shared/auth/ui/ErrorMessage";+import ErrorMessage from "@app/auth/ui/ErrorMessage";import OAuthButtons from "@app/routes/login/OAuthButtons";import SignupForm from "@app/routes/signup/SignupForm";import {@@ -19,7 +19,7 @@ import {SignupFieldErrors,} from "@app/routes/signup/SignupFormValidation";import { useAuthService } from "@app/routes/signup/AuthService";-import loginHeader from "@shared/assets/brand/modern-logo/LoginLightModeHeader.svg";+import loginHeader from "@app/assets/brand/modern-logo/LoginLightModeHeader.svg";export default function Signup() {const navigate = useNavigate();diff --git a/frontend/editor/src/saas/routes/authShared/AuthLayout.tsx b/frontend/editor/src/saas/routes/authShared/AuthLayout.tsxindex 75c6b1e7f9..84937053f1 100644--- a/frontend/editor/src/saas/routes/authShared/AuthLayout.tsx+++ b/frontend/editor/src/saas/routes/authShared/AuthLayout.tsx@@ -1,6 +1,6 @@import React, { useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";-import LoginRightCarousel from "@shared/auth/ui/LoginRightCarousel";+import LoginRightCarousel from "@app/auth/ui/LoginRightCarousel";import buildLoginSlides from "@app/components/shared/loginSlides";import styles from "@app/routes/authShared/AuthLayout.module.css";import { useLogoVariant } from "@app/hooks/useLogoVariant";diff --git a/frontend/editor/src/saas/routes/authShared/GuestSignInButton.tsx b/frontend/editor/src/saas/routes/authShared/GuestSignInButton.tsxindex c28a6dc486..31bbc35ca0 100644--- a/frontend/editor/src/saas/routes/authShared/GuestSignInButton.tsx+++ b/frontend/editor/src/saas/routes/authShared/GuestSignInButton.tsx@@ -1,5 +1,5 @@import React from "react";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import "@app/routes/authShared/saas-auth.css";interface GuestSignInButtonProps {diff --git a/frontend/editor/src/saas/routes/login/EmailPasswordForm.tsx b/frontend/editor/src/saas/routes/login/EmailPasswordForm.tsxindex 92210d5c37..ecc8cbd209 100644--- a/frontend/editor/src/saas/routes/login/EmailPasswordForm.tsx+++ b/frontend/editor/src/saas/routes/login/EmailPasswordForm.tsx@@ -1,5 +1,5 @@import { useTranslation } from "react-i18next";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import "@app/routes/authShared/saas-auth.css";interface EmailPasswordFormProps {diff --git a/frontend/editor/src/saas/routes/login/MagicLinkForm.tsx b/frontend/editor/src/saas/routes/login/MagicLinkForm.tsxindex df9e35b840..9833928247 100644--- a/frontend/editor/src/saas/routes/login/MagicLinkForm.tsx+++ b/frontend/editor/src/saas/routes/login/MagicLinkForm.tsx@@ -1,5 +1,5 @@import { useTranslation } from "@app/hooks/useTranslation";-import "@shared/auth/ui/auth.css";+import "@app/auth/ui/auth.css";import "@app/routes/authShared/saas-auth.css";interface MagicLinkFormProps {diff --git a/frontend/editor/src/saas/routes/login/OAuthButtons.tsx b/frontend/editor/src/saas/routes/login/OAuthButtons.tsxindex d7143e7557..21e76348f9 100644--- a/frontend/editor/src/saas/routes/login/OAuthButtons.tsx+++ b/frontend/editor/src/saas/routes/login/OAuthButtons.tsx@@ -1,7 +1,7 @@import { oauthProviders } from "@app/constants/authProviders";import { useTranslation } from "@app/hooks/useTranslation";import { Tooltip } from "@app/components/shared/Tooltip";-import { oauthIconUrl } from "@shared/auth/ui/oauthIcons";+import { oauthIconUrl } from "@app/auth/ui/oauthIcons";// Exports for compatibility with proprietary codeexport const DEBUG_SHOW_ALL_PROVIDERS = false;diff --git a/frontend/editor/src/saas/tsconfig.json b/frontend/editor/src/saas/tsconfig.jsonindex 259c98c380..08beefbb77 100644--- a/frontend/editor/src/saas/tsconfig.json+++ b/frontend/editor/src/saas/tsconfig.json@@ -8,10 +8,10 @@"../../src/proprietary/*","../../src/core/*"],+ "@portal/*": ["../../src/portal/*"],"@cloud/*": ["../../src/cloud/*"],"@proprietary/*": ["../../src/proprietary/*"],- "@core/*": ["../../src/core/*"],- "@shared/*": ["../../../shared/*"]+ "@core/*": ["../../src/core/*"]}},"include": ["../global.d.ts", "../*.js", "../*.ts", "../*.tsx", "."]diff --git a/frontend/editor/tsconfig.core.vite.json b/frontend/editor/tsconfig.core.vite.jsonindex 0f5ba9789b..3018db519b 100644--- a/frontend/editor/tsconfig.core.vite.json+++ b/frontend/editor/tsconfig.core.vite.json@@ -2,8 +2,7 @@"extends": "./tsconfig.json","compilerOptions": {"paths": {- "@app/*": ["./src/core/*"],- "@shared/*": ["../shared/*"]+ "@app/*": ["./src/core/*"]}},"exclude": ["src/proprietary", "src/desktop"]diff --git a/frontend/editor/tsconfig.desktop.vite.json b/frontend/editor/tsconfig.desktop.vite.jsonindex d144debfc3..40f84a9ec3 100644--- a/frontend/editor/tsconfig.desktop.vite.json+++ b/frontend/editor/tsconfig.desktop.vite.json@@ -10,8 +10,7 @@],"@cloud/*": ["./src/cloud/*"],"@proprietary/*": ["./src/proprietary/*"],- "@core/*": ["./src/core/*"],- "@shared/*": ["../shared/*"]+ "@core/*": ["./src/core/*"]}},"exclude": [diff --git a/frontend/editor/tsconfig.json b/frontend/editor/tsconfig.jsonindex 43b8b8a7f0..34532963ff 100644--- a/frontend/editor/tsconfig.json+++ b/frontend/editor/tsconfig.json@@ -32,8 +32,7 @@"paths": {"@app/*": ["./src/desktop/*", "./src/proprietary/*", "./src/core/*"],"@proprietary/*": ["./src/proprietary/*"],- "@core/*": ["./src/core/*"],- "@shared/*": ["../shared/*"]+ "@core/*": ["./src/core/*"]},// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */diff --git a/frontend/editor/tsconfig.portal.vite.json b/frontend/editor/tsconfig.portal.vite.jsonnew file mode 100644index 0000000000..8a63033eb6--- /dev/null+++ b/frontend/editor/tsconfig.portal.vite.json@@ -0,0 +1,18 @@+{+ "extends": "./tsconfig.json",+ "comment": "Path resolution for the portal's vitest project (referenced by vitest.config.ts). Broad include ('src', via the base) so vite-tsconfig-paths rewrites @app/* in every editor/src file the portal tests pull in (e.g. proprietary/ui), not just the portal layer. The portal's own typecheck uses src/portal/tsconfig.json.",+ "compilerOptions": {+ "paths": {+ "@app/*": [+ "./src/portal/*",+ "./src/cloud/*",+ "./src/proprietary/*",+ "./src/core/*"+ ],+ "@portal/*": ["./src/portal/*"],+ "@cloud/*": ["./src/cloud/*"],+ "@proprietary/*": ["./src/proprietary/*"],+ "@core/*": ["./src/core/*"]+ }+ }+}diff --git a/frontend/editor/tsconfig.proprietary.vite.json b/frontend/editor/tsconfig.proprietary.vite.jsonindex 3264246c8e..077a0ffd86 100644--- a/frontend/editor/tsconfig.proprietary.vite.json+++ b/frontend/editor/tsconfig.proprietary.vite.json@@ -3,9 +3,9 @@"compilerOptions": {"paths": {"@app/*": ["./src/proprietary/*", "./src/core/*"],+ "@portal/*": ["./src/portal/*"],"@proprietary/*": ["./src/proprietary/*"],- "@core/*": ["./src/core/*"],- "@shared/*": ["../shared/*"]+ "@core/*": ["./src/core/*"]}},"exclude": ["src/core/**/*.test.ts*", "src/core/**/*.spec.ts*", "src/desktop"]diff --git a/frontend/editor/tsconfig.prototypes.vite.json b/frontend/editor/tsconfig.prototypes.vite.jsonindex 63326bf903..2166b53670 100644--- a/frontend/editor/tsconfig.prototypes.vite.json+++ b/frontend/editor/tsconfig.prototypes.vite.json@@ -4,8 +4,7 @@"paths": {"@app/*": ["./src/prototypes/*", "./src/proprietary/*", "./src/core/*"],"@proprietary/*": ["./src/proprietary/*"],- "@core/*": ["./src/core/*"],- "@shared/*": ["../shared/*"]+ "@core/*": ["./src/core/*"]}},"exclude": [diff --git a/frontend/editor/tsconfig.saas.vite.json b/frontend/editor/tsconfig.saas.vite.jsonindex 54e232e565..c7d2c03eb2 100644--- a/frontend/editor/tsconfig.saas.vite.json+++ b/frontend/editor/tsconfig.saas.vite.json@@ -8,10 +8,10 @@"./src/proprietary/*","./src/core/*"],+ "@portal/*": ["./src/portal/*"],"@cloud/*": ["./src/cloud/*"],"@proprietary/*": ["./src/proprietary/*"],- "@core/*": ["./src/core/*"],- "@shared/*": ["../shared/*"]+ "@core/*": ["./src/core/*"]}},"exclude": [diff --git a/frontend/editor/vite.config.ts b/frontend/editor/vite.config.tsindex b2077ccc96..17c0c09282 100644--- a/frontend/editor/vite.config.ts+++ b/frontend/editor/vite.config.ts@@ -272,14 +272,14 @@ export default defineConfig(async ({ mode }) => {dest: "pdfjs/standard_fonts",},{- // Brand assets live in the shared design system; the editor serves- // them by URL per variant, so copy each set to the /{variant}-logo- // path its manifests, index.html and useLogoAssets resolve against.- src: "../shared/assets/brand/classic-logo/*",+ // Brand assets live in core; the editor serves them by URL per+ // variant, so copy each set to the /{variant}-logo path its+ // manifests, index.html and useLogoAssets resolve against.+ src: "src/core/assets/brand/classic-logo/*",dest: "classic-logo",},{- src: "../shared/assets/brand/modern-logo/*",+ src: "src/core/assets/brand/modern-logo/*",dest: "modern-logo",},],@@ -287,15 +287,6 @@ export default defineConfig(async ({ mode }) => {compressStaticCopyPlugin(),prerenderOgPlugin(),],- resolve: {- // Global alias so @shared resolves for ALL importers — including the- // shared components' own `@shared/components/X.css` self-imports, which- // live outside the editor tsconfig scope and so aren't rewritten by- // vite-tsconfig-paths. Required for the editor to consume SUI components.- alias: {- "@shared": path.resolve(__dirname, "../shared"),- },- },server: {host: true,allowedHosts: allowedHosts.length > 0 ? allowedHosts : undefined,diff --git a/frontend/editor/vitest.config.ts b/frontend/editor/vitest.config.tsindex 806a4db306..5a0fc50651 100644--- a/frontend/editor/vitest.config.ts+++ b/frontend/editor/vitest.config.ts@@ -1,13 +1,6 @@import { defineConfig } from "vitest/config";import react from "@vitejs/plugin-react-swc";import tsconfigPaths from "vite-tsconfig-paths";-import path from "node:path";--// Global @shared alias so SUI components (and their own `@shared/*` self-imports,-// which live outside the editor tsconfig scope) resolve under test — mirrors the-// resolve.alias in vite.config.ts.-const sharedDir = path.resolve(__dirname, "../shared");-export default defineConfig({test: {globals: true,@@ -48,9 +41,26 @@ export default defineConfig({projects: ["./tsconfig.core.vite.json"],}),],- resolve: {- alias: { "@shared": sharedDir },+ esbuild: {+ target: "es2020",},+ },+ {+ test: {+ name: "portal",+ include: ["src/portal/**/*.test.{ts,tsx}"],+ environment: "jsdom",+ globals: true,+ setupFiles: ["./src/portal/setupTests.ts"],+ },+ plugins: [+ react(),+ tsconfigPaths({+ // Broad project so @app/@portal resolve in every editor file the+ // portal tests pull in (proprietary/ui, core, ...).+ projects: ["./tsconfig.portal.vite.json"],+ }),+ ],esbuild: {target: "es2020",},@@ -69,9 +79,6 @@ export default defineConfig({projects: ["./tsconfig.proprietary.vite.json"],}),],- resolve: {- alias: { "@shared": sharedDir },- },esbuild: {target: "es2020",},@@ -90,9 +97,6 @@ export default defineConfig({projects: ["./tsconfig.desktop.vite.json"],}),],- resolve: {- alias: { "@shared": sharedDir },- },esbuild: {target: "es2020",},@@ -111,9 +115,6 @@ export default defineConfig({projects: ["./tsconfig.saas.vite.json"],}),],- resolve: {- alias: { "@shared": sharedDir },- },esbuild: {target: "es2020",},@@ -132,9 +133,6 @@ export default defineConfig({projects: ["./tsconfig.prototypes.vite.json"],}),],- resolve: {- alias: { "@shared": sharedDir },- },esbuild: {target: "es2020",},diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjsindex 4189ccb24b..4a3df8ad10 100644--- a/frontend/eslint.config.mjs+++ b/frontend/eslint.config.mjs@@ -6,17 +6,14 @@ import { defineConfig } from "eslint/config";import tseslint from "typescript-eslint";const srcGlobs = [+ // The portal layer lives under editor/src/portal, so editor/src/** covers it."editor/src/**/*.{js,mjs,jsx,ts,tsx}",- "portal/src/**/*.{js,mjs,jsx,ts,tsx}",- "portal/main.tsx",- "shared/**/*.{js,mjs,jsx,ts,tsx}",];const nodeGlobs = ["scripts/**/*.{js,ts,mjs,mts}","editor/scripts/**/*.{js,ts,mjs,mts}",- "portal/scripts/**/*.{js,ts,mjs,mts}",+ // Covers editor/vite.config.ts and editor/vitest.config.ts."editor/*.config.{js,ts,mjs}",- "portal/*.config.{js,ts,mjs}","*.config.{js,ts,mjs}",".storybook/*.{js,ts,mjs,mts,tsx}",];@@ -25,7 +22,7 @@ const baseRestrictedImportPatterns = [{regex: "^\\.",message:- "Use a workspace alias (@app/* for editor, @portal/* for portal, @shared/*) instead of relative imports.",+ "Use a workspace alias (@app/* for editor, @portal/* for portal) instead of relative imports.",},{regex: "^src/",@@ -38,7 +35,6 @@ export default defineConfig(// Everything that contains 3rd party code that we don't want to lintignores: ["dist",- "dist-portal","node_modules","playwright-report","storybook-static",@@ -48,7 +44,6 @@ export default defineConfig("editor/src-tauri","editor/playwright-report","editor/test-results",- "portal/public",],},eslint.configs.recommended,@@ -167,45 +162,6 @@ export default defineConfig(],},},- // The shared/ layer is the seed of a future packages/shared-ui — it must- // only depend on third-party packages and on itself. If it ever imports- // from editor or portal layers, extraction to a standalone package later- // becomes a rewrite instead of a `git mv`.- {- files: ["shared/**/*.{js,mjs,jsx,ts,tsx}"],- rules: {- "no-restricted-imports": [- "error",- {- patterns: [- ...baseRestrictedImportPatterns,- {- regex: "^@app/",- message:- "shared/ must not depend on the editor layer (@app/* resolves into editor/src/).",- },- {- regex: "^@portal/",- message:- "shared/ must not depend on the portal layer. Use @shared/* or third-party imports only.",- },- {- regex: "^@core/",- message: "shared/ must not depend on editor/src/core/.",- },- {- regex: "^@proprietary/",- message: "shared/ must not depend on editor/src/proprietary/.",- },- {- regex: "^@tauri-apps/",- message: "shared/ must remain web-compatible (no Tauri APIs).",- },- ],- },- ],- },- },// Stricter rules that not all sub-folders are conformant to yet.{files: srcGlobs,diff --git a/frontend/package.json b/frontend/package.jsonindex 8d47a841e5..dca6e68c43 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -173,7 +173,7 @@},"msw": {"workerDirectory": [- "portal/public"+ "editor/public"]}}diff --git a/frontend/portal/.env b/frontend/portal/.envdeleted file mode 100644index d4cae761ad..0000000000--- a/frontend/portal/.env+++ /dev/null@@ -1,31 +0,0 @@-# Portal environment (committed). Machine-specific overrides go in .env.local.--# Where the "Editor" app switcher / non-admin redirect points. "/" is correct-# for production (backend serves the editor at the root, same origin as the-# portal). In dev, override in .env.local with your running editor's URL-# (e.g. VITE_EDITOR_URL=http://localhost:5173/).-VITE_EDITOR_URL=/--# Force MSW mocks on ("true") or off ("false"). Empty = default (on in dev, off-# in production builds). The single-origin proxy task sets this to "false" so the-# portal uses the real backend.-VITE_PORTAL_MOCKS=--# Hosted SaaS Supabase project for IN-APP account linking (both values are-# public). Set per deploy; absent → the account-link UI shows a "configure"-# state. For local e2e, point these at the SaaS Supabase project the local-# backend links against (e.g. the V3 branch project).-VITE_SAAS_SUPABASE_URL=-VITE_SAAS_SUPABASE_ANON_KEY=--# Hosted SaaS Java backend base URL (e.g. https://api.stirlingpdf.com). Used-# for ATTENDED portal -> SaaS reads (wallet, billing, plans, checkout) with the-# admin's Supabase JWT. Distinct from the local backend (which the portal-# reaches same-origin via the vite proxy). Absent → wallet/billing surfaces-# stay on the MSW mock.-VITE_SAAS_API_URL=--# Stripe publishable key (pk_live_… / pk_test_…) used by the embedded Checkout-# in the billing surface. Public by design. Empty → the checkout modal shows a-# "configure" state instead of mounting Stripe.-VITE_STRIPE_PUBLISHABLE_KEY=diff --git a/frontend/portal/index.html b/frontend/portal/index.htmldeleted file mode 100644index c07e06d083..0000000000--- a/frontend/portal/index.html+++ /dev/null@@ -1,16 +0,0 @@-<!doctype html>-<html lang="en-US">- <head>- <meta charset="UTF-8" />- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <meta name="theme-color" content="#0f172a" />- <meta name="description" content="Stirling Processor" />- <link rel="icon" href="/favicon.ico" />- <title>Stirling Processor</title>- </head>- <body>- <noscript>You need to enable JavaScript to run this app.</noscript>- <div id="root"></div>- <script type="module" src="./main.tsx"></script>- </body>-</html>diff --git a/frontend/portal/main.tsx b/frontend/portal/main.tsxdeleted file mode 100644index a33ecdde36..0000000000--- a/frontend/portal/main.tsx+++ /dev/null@@ -1,38 +0,0 @@-/// <reference types="vite/client" />-import { StrictMode, Suspense } from "react";-import { createRoot } from "react-dom/client";-import { App } from "@portal/App";-import { readMocksPreference } from "@portal/mocks/preference";-// Initialise i18n (side effect) before the app renders.-import "@portal/i18n/config";--// Mantine's prebuilt styles load first so SUI tokens/base can override on-// conflicts — SUI is the primary design language, Mantine the escape hatch.-import "@mantine/core/styles.css";-import "@shared/tokens/tokens.css";-import "@shared/tokens/base.css";--const root = document.getElementById("root");-if (!root) throw new Error("No #root element");--// Start MSW before React mounts when the user has mocks enabled. The-// preference defaults to ON in dev / OFF in production. The toggle in the-// header flips it at runtime.-async function bootstrap(): Promise<void> {- if (readMocksPreference()) {- // Dynamic import keeps MSW + every handler + every fixture out of any- // chunk that doesn't need to actually run the worker.- const { startMockWorker } = await import("@portal/mocks/browser");- await startMockWorker();- }-- createRoot(root!).render(- <StrictMode>- <Suspense fallback={null}>- <App />- </Suspense>- </StrictMode>,- );-}--void bootstrap();diff --git a/frontend/portal/public/locales/en-US/translation.toml b/frontend/portal/public/locales/en-US/translation.tomldeleted file mode 100644index 2de3f0369d..0000000000--- a/frontend/portal/public/locales/en-US/translation.toml+++ /dev/null@@ -1,1895 +0,0 @@-# Portal translations — US English is the source of truth. Other languages are-# produced from this file by the Crowdin pipeline. Keys are grouped by-# view/feature; shared strings live under [common].--[common]-inviteMember = "Invite member"--[users]-title = "Users"-subtitle = "The people in your organization and the access they hold — roles, status and security controls."--[users.empty]-title = "No members yet"-description = "Invite your team to start collaborating on documents and pipelines."--# Navigation item labels, keyed by view id. Drives both the sidebar nav and the-# header breadcrumb so the visible label has a single source.-[nav]-home = "Home"-editor = "Editor"-users = "Users"-sources = "Sources"-agent-builder = "Agent Builder"-policies = "Policies"-pipelines = "Pipelines"-documents = "Documents"-components = "Components"-infrastructure = "Infrastructure"-usage = "Usage & Billing"-docs = "Developer Docs"-procurement = "Procurement"-settings = "Settings"--[shell.header]-switchToDark = "Switch to dark theme"-switchToLight = "Switch to light theme"-darkMode = "Dark mode"-lightMode = "Light mode"-search = "Search"-searchPlaceholder = "Search…"-accountMenu = "Account menu"-accountFallback = "Account"-signOut = "Sign out"--[shell.sidebar]-brandSuffix = "Stirling Processor"-primaryNav = "Primary navigation"-switchApp = "Switch app"-appProcessor = "Processor"-appEditor = "Editor"-docsProcessed = "Docs processed"-docsCount = "{{docs}} docs"-planProcessor = "Processor plan"-linkAccount = "Link Stirling account"-planEnterprise = "Enterprise plan"--[search]-ariaLabel = "Search"-placeholder = "Search Stirling — endpoints, pipelines, docs…"--[search.empty]-noMatches = "No matches for \"{{query}}\""-noMatchesDescription = "Try a different keyword or browse the catalogue."-noActionsTitle = "No quick actions"-noActionsDescription = "Quick actions will appear here once they're available."--[assistant]-open = "Open assistant"-close = "Close assistant"-title = "Assistant"-tryAsking = "Try asking"-typing = "Typing"-inputPlaceholder = "Ask about Stirling…"-inputAriaLabel = "Ask the assistant"-send = "Send"-error = "Couldn't reach the assistant."-errorWithDetail = "Couldn't reach the assistant: {{detail}}"--[settings]-ariaLabel = "Settings"-footerNote = "Changes apply to this workspace."-cancel = "Cancel"-saveChanges = "Save changes"-enterpriseBadge = "Enterprise"--[settings.groups]-account = "Account"-workspace = "Workspace"-admin = "Admin"--[settings.sections]-profile = "Profile"-appearance = "Appearance"-notifications = "Notifications"-general = "General"-authentication = "Authentication"-sessions = "Active sessions"-early-access = "Early access"-account-link = "Account link"--[settings.profile]-accountFallback = "Account"-changePhoto = "Change photo"-fullName = "Full name"-namePlaceholder = "Your name"-email = "Email"-emailHelper = "Used for sign-in and notification delivery."-emailPlaceholder = "[email protected]"--[settings.appearance]-themeTitle = "Theme"-themeSub = "Choose how the portal looks on this device."--[settings.appearance.light]-label = "Light"-hint = "Bright surfaces"--[settings.appearance.dark]-label = "Dark"-hint = "Dim surfaces"--[settings.notifications]-title = "Email notifications"-sub = "Pick which events reach your inbox."--[settings.notifications.pipeline-failures]-label = "Pipeline failures"-description = "A run errors out or a step times out."--[settings.notifications.pipeline-success]-label = "Pipeline completions"-description = "Every successful pipeline run finishes."--[settings.notifications.usage-alerts]-label = "Usage & quota alerts"-description = "You approach a plan limit or rate cap."--[settings.notifications.weekly-digest]-label = "Weekly digest"-description = "A Monday summary of volume and health."--[settings.notifications.security-alerts]-label = "Security alerts"-description = "New API keys, sign-ins, or permission changes."--[settings.notifications.product-updates]-label = "Product updates"-description = "New operations, sources, and release notes."--[settings.workspace]-nameLabel = "Workspace name"-namePlaceholder = "Workspace name"-regionLabel = "Data residency region"-regionHelper = "Where documents are processed and stored at rest."-regionEnterpriseSuffix = "{{region}} · Enterprise"-plan = "Plan"-seats = "Seats"-seatsUsed = "{{used}} of {{total}} used"-manageBilling = "Manage billing"--[settings.authentication]-title = "Sign-in policy"-sub = "Organisation-wide authentication controls."-sessionTimeout = "Session timeout"-sessionTimeoutHelper = "Members re-authenticate after this idle period."--[settings.authentication.mfa]-label = "Enforce two-factor (MFA)"-description = "Require every member to complete MFA at sign-in."--[settings.authentication.sso]-label = "Single sign-on (SAML)"-description = "Federate sign-in through your identity provider."--[settings.authentication.scim]-label = "SCIM provisioning"-description = "Sync members and roles from your directory."--[settings.authentication.timeout]-60 = "1 hour"-240 = "4 hours"-480 = "8 hours"-720 = "12 hours"-1440 = "24 hours"--[settings.sessions]-title = "Active sessions"-sub = "Devices currently signed in to this account."-thisDevice = "This device"-revoke = "Revoke"--[settings.earlyAccess]-title = "Preview features"-sub = "Opt into features still in preview."--[componentsView]-title = "Components"-subtitle = "Embeddable SDK widgets you drop into your own app — a viewer, an e-sign flow, an AI review panel. Each is metered per action. Click a card for install, usage and props."--[componentsView.lockedBanner]-title = "Some components need a paid plan"-description = "GA components are available on Pay-as-you-go; a few Beta components are enterprise-only. Locked cards show an upgrade nudge."--[componentsView.empty]-title = "No components available"-description = "The component catalogue could not be loaded. Try again shortly."--[pipelines]-title = "Pipelines"-subtitle = "Every automated document pipeline on the backend: an ordered chain of operations over a set of sources, run on a trigger. Click a row for its steps and sources."--[pipelines.actions]-newPipeline = "New pipeline"--[pipelines.kpi]-total = "Pipelines"-active = "Active"-paused = "Paused"--[pipelines.status]-active = "Active"-paused = "Paused"--[pipelines.trigger]-manual = "Manual"-schedule = "Scheduled"-folder-watch = "Folder watch"--[pipelines.output]-inline = "Return files"-folder = "Write to folder"--[pipelines.empty]-title = "No pipelines yet"-description = "Create your first pipeline: pick the sources it runs over, chain the operations, and choose where output goes."-action = "Create a pipeline"--[pipelines.table]-name = "Pipeline"-status = "Status"-steps = "Steps"-sources = "Sources"--[pipelines.detail]-subtitle = "{{trigger}} · {{status}}"-closeAriaLabel = "Close detail"-steps = "Operations"-noSteps = "No operations configured."-sources = "Sources"-noSources = "No sources. Files are supplied directly to each run."-output = "Output"-run = "Run now"-edit = "Edit"-pause = "Pause"-resume = "Resume"-delete = "Delete pipeline"--[pipelines.run]-empty = "Nothing to run: the sources had no documents to process."-failed = "Run failed: {{error}}"-running = "Run started; still in progress."-completed_one = "Run completed."-completed_other = "All {{count}} runs completed."--[pipelines.delete]-title = "Delete pipeline?"-body = "Delete \"{{name}}\"? This can't be undone."-cancel = "Cancel"-confirm = "Delete"--[pipelines.composer]-title = "New pipeline"-editTitle = "Edit pipeline"-subtitle = "Pick the sources it runs over, chain the operations, then choose when it runs and where output goes."-cancel = "Cancel"-create = "Create pipeline"-save = "Save changes"-name = "Name"-namePlaceholder = "e.g. Redaction sweep"-sources = "Sources"-sourcesLoading = "Loading sources..."-noSources = "No sources connected yet. The pipeline can still run on files supplied to it directly."-operations_one = "Operation ({{count}})"-operations_other = "Operations ({{count}})"-chainEmpty = "Add operations from the palette below."-moveUp = "Move up"-moveDown = "Move down"-removeStep = "Remove operation"-trigger = "Trigger"-triggerManual = "Manual only"-scheduleEvery = "Run every"-output = "Output"-directory = "Output folder"-directoryHelp = "Absolute path on the server. Must be within the configured allowed folders."--[pipelines.composer.unit]-minutes = "minutes"-hours = "hours"-days = "days"--[sources]-title = "Sources"-subtitle = "Reusable input connections that feed documents into Stirling. Configure a connection once, then reference it from any number of policies. Click a row for its config and which policies use it."--[sources.actions]-agentBuilder = "Agent Builder"-connectSource = "Connect source"--[sources.empty]-title = "No sources connected yet"-description = "Connect a folder (and, soon, cloud storage) so your policies have somewhere to pull documents from."--[sources.kpi]-total = "Connections"-inUse = "In use"-unused = "Unused"--[sources.status]-active = "Active"-unused = "Unused"-disabled = "Disabled"--[sources.table]-source = "Source"-status = "Status"-usedBy = "Policies"--[sources.detail]-subtitle = "{{type}} · {{status}}"-closeAriaLabel = "Close detail"-usedBy = "Used by"-notReferenced = "Not referenced by any policy, so it's safe to delete."-documents = "Documents"-docsTotal = "Total seen"-docs24h = "Last 24h"-docs30d = "Last 30 days"-docsTrend = "Documents over the last 30 days"-edit = "Edit"-pause = "Pause"-resume = "Resume"-delete = "Delete source"--[sources.delete]-title = "Delete source?"-body = "Delete \"{{name}}\"? This can't be undone. Policies that reference it would need to be updated."-cancel = "Cancel"-confirm = "Delete"--[sources.wizard]-title = "Connect a source"-editTitle = "Edit source"-subtitle = "Step {{current}} of {{total}} · {{label}}"-cancel = "Cancel"-back = "Back"-continue = "Continue"-save = "Save changes"-name = "Name"-namePlaceholder = "e.g. Claims intake"-type = "Type"--[sources.wizard.steps]-chooseType = "Choose type"-configure = "Configure"-review = "Review & connect"--[sources.types.folder]-label = "Folder"-description = "Watch a directory on the server for new documents."--[sources.types.folder.fields.directory]-label = "Directory path"-placeholder = "/data/incoming"-helperText = "Absolute path Stirling watches for files to process."--[sources.types.folder.fields.mode]-label = "Read mode"--[sources.types.folder.fields.mode.options]-consume = "Consume: process each file once"-snapshot = "Snapshot: re-read the folder every run"--[sources.types.editor]-label = "Editor"--[sources.types.unknown]-label = "Source"--[documents]-title = "Documents"-subtitle = "Review and approve documents moving through your pipelines."--[documents.summary]-inQueue = "In queue"-needsReview = "Needs review"-avgConfidence = "Avg confidence"-processedToday = "Processed today"--[documents.filters]-all = "All"-needsReview = "Needs review"-processed = "Processed"-archived = "Archived"-ariaLabel = "Filter documents by status"--[documents.queue.empty]-title = "No documents in the queue"-description = "As sources feed documents into your pipelines they'll appear here for review."--[documents.table]-empty = "No documents match this filter."-sensitiveTitle = "Sensitive — access required"-sensitiveLabel = "Sensitive"--[documents.table.columns]-name = "Name"-type = "Type"-status = "Status"-source = "Source"-confidence = "Confidence"-fields = "Fields"-time = "Time"--[documents.drawer]-sectionsAriaLabel = "Document detail sections"--[documents.drawer.tabs]-overview = "Overview"-extractions = "Extractions"-audit = "Audit"--[documents.overview]-status = "Status"-type = "Type"-confidence = "Confidence"-fieldsExtracted = "Fields extracted"-source = "Source"-received = "Received"--[documents.extractions]-masked = "Extracted fields are hidden. Request timed access to view this document's content."-empty = "No fields were extracted from this document."--[documents.extractions.columns]-field = "Field"-value = "Value"-confidence = "Confidence"--[documents.audit]-empty = "No events recorded yet."--[documents.elevation]-requestAccess = "Request access"--[documents.elevation.active]-title = "Access expires in {{time}}"-description = "Temporary grant — access is logged and time-boxed."-descriptionFourEyes = "Temporary grant — a peer reviewer was notified (four-eyes)."--[documents.elevation.gated]-title = "Sensitive document"-description = "Content is gated by zero-standing-access. Requesting starts a time-boxed grant."-descriptionFourEyes = "Content is gated by zero-standing-access. Requesting starts a time-boxed grant and notifies a peer reviewer (four-eyes)."--[agentBuilder]-title = "Agent Builder"-subtitle = "Design, test and ship the AI agents that classify, extract from and route your documents. Define scenarios, fence tool access, run a golden set, and publish a version."-bootstrapFromDocument = "Bootstrap from document"-sectionsAriaLabel = "Agent builder sections"-selectorAriaLabel = "Agents"--[agentBuilder.empty]-title = "No agents yet"-description = "Bootstrap an agent from a sample document to seed its scenarios and extraction schema, then refine and publish."--[agentBuilder.tabs]-scenarios = "Scenarios"-tools = "Tools"-evals = "Evals"-versions = "Versions"--[agentBuilder.kpi]-activeAgents = "Active agents"-avgPassRate = "Avg eval pass rate"-scenarios = "Scenarios"-latestPublished = "Latest published"-totalDescription_one = "{{count}} total"-totalDescription_other = "{{count}} total"-acrossGoldenSets = "across golden sets"-testCases = "test cases"-fleetWide = "fleet-wide"--[agentBuilder.bootstrap]-title = "Bootstrap from a document"-subtitle = "Seed a new agent from one representative file"-cancel = "Cancel"-submit = "Bootstrap agent"-lead = "Drop a sample document and we'll propose scenarios and an extraction schema you can refine. Nothing is published until you review it."-dropzoneText = "Choose a sample document (PDF or image)"--[agentBuilder.scenarios]-inEval = "in eval"-muted = "muted"-mute = "Mute"-enable = "Enable"-addScenario = "Add scenario"-nameLabel = "Name"-namePlaceholder = "e.g. Compliance escalation"-expectationLabel = "Expected behaviour"-expectationPlaceholder = "What the agent should do"-add = "Add"--[agentBuilder.tools]-restrictedAccess = "Restricted tool access"-restrictedDescription = "Allow every tool except the ones you deny below."-governanceGate = "Tool governance is available on the Enterprise plan."-restricted = "Restricted"-broadAccess = "Broad access"-deniedTools = "Denied tools"-deniedHint = "Selected tools are blocked. Everything else stays callable."--[agentBuilder.evals]-columnCase = "Eval case"-columnResult = "Result"-columnLatency = "Latency"-notRun = "not run"-pass = "pass"-fail = "fail"-latencyMs = "{{ms}} ms"-passRate = "Pass rate"-casesPassing = "Cases passing"-runEvals = "Run evals"-goldenSetPassRate = "Golden-set pass rate"--[agentBuilder.evals.empty]-title = "No golden set yet"-description = "Evals turn your scenarios into a repeatable golden set. Upgrade to capture pass-rate over time and gate publishes on it."--[agentBuilder.versions]-current = "current"-publish = "Publish"-rollBack = "Roll back"-historyGate = "Full version history and rollback are available on the Enterprise plan."--[home.productGrid]-ariaLabel = "Process PDFs at scale"--[home.productGrid.sources]-title = "Sources"-blurb = "Attach pipelines where PDFs already live — S3, agents, SharePoint, webhooks, batch, email."-cta = "Connect a source"--[home.productGrid.pipelines]-badge = "Hero"-title = "Pipelines"-blurb = "Compose document workflows from typed operations. Upload a sample to get suggestions or start blank."-cta = "Build a pipeline"--[home.productGrid.agents]-title = "Agents"-blurb = "Wire your agent via MCP, REST, or tool definitions. Deterministic operations, scenarios, evals."-cta = "Connect an agent"--[home.quickActions]-title = "Quick actions"-subtitle = "Top tasks for today"--[home.quickActions.tryOp]-title = "Try a PDF operation"-blurb = "Drop a sample, pick an op, see the JSON"--[home.quickActions.buildPipeline]-title = "Build a pipeline"-blurb = "3-step composer over the typed op library"--[home.quickActions.connectSource]-title = "Connect a source"-blurb = "S3, agents, webhooks, watched folders"--[home.quickActions.issueApiKey]-title = "Issue an API key"-blurb = "Scoped key with rate limits and IP allowlist"--[home.onboarding]-title = "Get to value"-subtitle = "Four steps to a production-shaped Stirling project."-progress = "{{done}} / {{total}} done"-runAgain = "Run again"-start = "Start"--[home.onboarding.empty]-title = "No onboarding steps yet"-description = "Onboarding tasks will appear here once your workspace is set up."--[home.kpis.free]-docsProcessed = "Docs processed"-docsProcessedDescription = "Free plan cap"-operations = "Operations"-pipelines = "Pipelines"-agents = "Agents"--[home.kpis.pro]-docs30d = "Docs / 30d"-pipelines = "Pipelines"-agentsActive = "Agents active"-evalPassRate = "Eval pass rate"--[home.kpis.enterprise]-docs30d = "Docs / 30d"-p95Latency = "P95 latency"-evalPassRate = "Eval pass rate"-slaUptime = "SLA uptime (30d)"--[home.regions]-title = "Region health"-subtitle = "Real-time status for every deployed Stirling region."--[home.regions.empty]-title = "No regions yet"-description = "Once a region is deployed, its health appears here."--[home.chart.empty]-title = "No usage yet"-description = "Once documents are processed, your 30-day usage appears here."--[editorAdmin]-title = "Editor deployment"-subtitle = "Deploy the Stirling PDF Editor, pair self-hosted instances to your org, and operate the running fleet — targets, health, credentials, and offline activation in one place."--[editorAdmin.sections.targets]-title = "Deployment targets"-sub = "Where the Editor runs. Copy a snippet to stand up a self-hosted instance, or use Managed Cloud with no ops."--[editorAdmin.sections.pairing]-title = "Pairing"-sub = "Connect a self-hosted editor to this org. Generate a token, hand off a short code, or wire it through IaC."--[editorAdmin.sections.health]-title = "Instance health"-sub = "Every Editor instance reporting in — version, region, status, last seen, and active users."--[editorAdmin.serviceToken]-title = "Service token"-subtitle = "Instances authenticate to the org with this credential. Rotate it on a schedule or immediately after a suspected leak."-currentToken = "Current token"-lastRotated = "Last rotated"-rotateButton = "Rotate service token"--[editorAdmin.serviceToken.rotatedBanner]-title = "Rotate running instances"-description = "A new token was issued. Update each self-hosted instance's STIRLING_SERVICE_TOKEN within the 24h grace window or they'll drop offline."--[editorAdmin.targets]-talkToSales = "Talk to sales"-upgradePlan = "Upgrade plan"-instanceCount_one = "{{count}} instance"-instanceCount_other = "{{count}} instances"--[editorAdmin.targets.state]-running = "Running"-available = "Available"-locked = "Locked"--[editorAdmin.targets.lock]-enterprise = "On-prem and Kubernetes self-hosting are part of Enterprise."-paid = "Self-hosting with Docker and Kubernetes unlocks on a paid plan."--[editorAdmin.pairing]-lockCopy = "IaC provisioning is part of Enterprise."-talkToSales = "Talk to sales"-generated = "Generated ✓"-generateNewCode = "Generate new code"-rotate = "Rotate"--[editorAdmin.health.columns]-host = "Host"-version = "Version"-region = "Region"-status = "Status"-lastSeen = "Last seen"-activeUsers = "Active users"--[editorAdmin.health.empty]-title = "No instances reporting"-description = "Deploy a target and pair it to see live instance health here."--[editorAdmin.offlineActivation]-title = "Air-gapped activation"-enterpriseTag = "Enterprise"-subtitle = "Generate a signed activation bundle for an offline or on-prem install with no outbound network path. Transfer it to the instance and apply it during first-run setup."-lockCopy = "Offline and on-prem activation is part of Enterprise."-talkToSales = "Talk to sales"-generateButton = "Generate offline bundle"--[editorAdmin.offlineActivation.readyBanner]-title = "Bundle ready"-description = "{{file}} is signed and ready to transfer. It activates one instance and expires in 14 days."--[policies]-title = "Policies"-subtitle = "Standing automations that enforce a tool pipeline on every document. Each policy fires on upload or export, runs its tool chain, and saves the enforced version alongside the original."--[policies.offline]-title = "Backend unavailable"-description = "Your policies are saved and will appear once the connection is restored."-retry = "Retry"--[policies.status]-active = "Active"-paused = "Paused"--[policies.stats]-docsEnforced = "Docs enforced"-dataProcessed = "Data processed"-activeFor = "Active"--[policies.summary.active]-label = "Active policies"-description = "Enforcing on upload/export"--[policies.summary.paused]-label = "Paused"-description = "Configured but not firing"--[policies.summary.categories]-label = "Categories"-description = "Available to configure"--[policies.summary.docsEnforced]-label = "Docs enforced"-description = "Across active policies"--[policies.card]-comingSoon = "Coming soon"-notSetUp = "Not set up"--[policies.detail]-outputAsNewFile = "as a new file"-outputAsNewVersion = "as a new version"-enforces = "Enforces"-sources = "Sources"-onEveryUpload = "On every upload"-onEveryExport = "On every export"-showMore = "Show more"-showLess = "Show less"-retry = "Retry"-recentActivity = "Recent activity"--[policies.detail.actions]-delete = "Delete"-runNow = "Run now"-resume = "Resume"-pause = "Pause"-editSettings = "Edit settings"--[policies.detail.emptyActivity]-title = "No activity yet"-description = "Documents will appear here once this policy runs."--[policies.wizard.title]-edit = "Edit {{category}} policy"-setUp = "Set up {{category}} policy"--[policies.wizard.actions]-cancel = "Cancel"-continue = "Continue"-back = "Back"-saveChanges = "Save changes"-enablePolicy = "Enable policy"--[policies.wizard.errors]-noTools = "Enable at least one tool in the workflow first."-saveFailed = "Couldn't save the policy. Please try again."--[policies.wizard.tabs]-ariaLabel = "Setup steps"-workflow = "Workflow"-settings = "Settings"--[policies.wizard.workflow]-description = "The sequence of tools this policy runs on each document. Each tool is a Stirling endpoint; toggle the ones this policy should enforce."--[policies.wizard.settings]-heading = "Settings"--[policies.wizard.sources]-heading = "Sources"-loading = "Loading sources…"-emptyTitle = "No sources available"-emptyDescription = "Connect a source on the Sources page first, then attach it to a policy here."--[policies.wizard.docTypes]-heading = "Document types"-allTitle = "All document types"-allDescription = "Set up an Ingestion (classification) policy to narrow this to specific document types."-selected_one = "{{count}} selected"-selected_other = "{{count}} selected"-clear = "Clear"-narrow = "Narrow"--[policies.wizard.output]-heading = "Output & run"--[policies.wizard.output.runOn]-label = "Run on"-helper = "When the policy fires: on upload, or before export."-upload = "Upload"-export = "Export"--[policies.wizard.output.outputAs]-label = "Output as"-newVersion = "New version"-newFile = "New file"--[policies.wizard.output.filenameRule]-label = "Filename rule"-prefix = "Prefix"-suffix = "Suffix"-autoNumber = "Auto-number"-placeholder = "Text to add (optional)"--[policies.wizard.output.retries]-heading = "Retries"-maxLabel = "Max retries"-delayLabel = "Retry delay (min)"--[users.summary]-members = "Members"-pendingInvites = "Pending invites"-seatsUsed = "Seats used"--[users.table]-member = "Member"-role = "Role"-status = "Status"-lastActive = "Last active"-actionsFor = "Actions for {{name}}"-changeRole = "Change role"-suspend = "Suspend"-remove = "Remove from org"--[users.invite]-subtitle = "They'll receive an email to join your organization."-cancel = "Cancel"-send = "Send invite"-email = "Email"-emailPlaceholder = "[email protected]"-emailError = "Enter a valid email address"-role = "Role"-roleHelper = "Determines what the member can do once they join."--[users.roles]-title = "Roles"-subtitle = "Every role exists on every plan — what each one can do is fixed across the org."--[users.access]-title = "Access & security"-subtitle = "Seats, authentication and provisioning for your organization."--[users.access.seats]-title = "Seats"-unlimited = "Your plan includes unlimited seats."-usedLabel = "{{used}} of {{limit}} seats used"--[users.access.auth]-title = "Authentication"--[users.access.auth.requireMfa]-label = "Require MFA"-enforced = "Enforced org-wide on this plan."-description = "Members must set up a second factor to sign in."--[users.access.auth.shortSessions]-label = "Short-lived sessions"-description = "Sign members out after inactivity (currently {{timeout}})."--[users.access.sso]-title = "SSO / SAML"-connected = "Connected"-notConfigured = "Not configured"-provider = "Provider"-domains = "Domains"-manage = "Manage connection"--[users.access.scim]-title = "SCIM provisioning"-active = "Active"-off = "Off"-directory = "Directory"-lastSync = "Last sync"-note = "Members are created, updated and deactivated automatically from your identity provider."--[users.access.upgrade]-title = "Unlock team access controls"-action = "Upgrade plan"--[docs.nav]-ariaLabel = "Documentation"--[docs.nav.empty]-title = "Docs unavailable"-description = "The documentation index could not be loaded."--[docs.authentication]-eyebrow = "GETTING STARTED"-title = "Authentication"-lead = "All requests authenticate with a bearer token. Keys are scoped per environment and never expire unless rotated."-codeCaption = "every request"-liveKey = "Production keys — billed, rate-limited per your plan."-testKey = "Sandbox keys — free, return synthetic fixtures."--[docs.components]-eyebrow = "COMPONENTS"-title = "Drop-in viewers"-lead = "Embeddable UI for review queues and document inspection. Bring your own styles or use the shipped theme."-codeCaption = "embed the viewer"--[docs.endpoints]-eyebrow = "API REFERENCE"-title = "Endpoints"-lead = "Every document type is a typed endpoint. POST a file, receive schema-validated JSON. Filter by vertical below."-filterAll = "All"-filterAriaLabel = "Filter endpoints by vertical"-fieldCount_one = "{{count}} field"-fieldCount_other = "{{count}} fields"--[docs.errors]-eyebrow = "API REFERENCE"-title = "Errors"-lead = "Errors return a stable machine-readable code plus a human message. The 4xx body always includes a request_id for support."-codeCaption = "422 Unprocessable Entity"--[docs.quickstart]-eyebrow = "GETTING STARTED"-title = "Quickstart"-lead = "Send your first document to a typed endpoint and get structured JSON back in three steps. No model training, no prompt engineering."--[docs.quickstart.step1]-title = "Issue an API key"-body = "Create a scoped key from the Infrastructure tab. Keys carry rate limits and an optional IP allowlist. Export it into your shell:"--[docs.quickstart.step2]-title = "Send a document"-body = "POST a file to any typed endpoint. The endpoint determines the schema you get back — here, the invoice extractor."-snippetCaption = "extract an invoice"--[docs.quickstart.step3]-title = "Read the structured result"-body = "Every response is validated against the endpoint schema, with a confidence score and per-field provenance."-codeCaption = "200 OK"--[docs.quickstart.callout]-label = "Next:"-bodyBeforeLink = "wire the same call into a pipeline to chain validation, redaction, and delivery — or expose it to an agent over MCP. See"-link = "Playbooks"-bodyAfterLink = "for copy-paste recipes."--[docs.recipes]-eyebrow = "PLAYBOOKS"-title = "Recipes"-lead = "End-to-end patterns that chain sources, operations, and destinations. Each maps to a pipeline you can clone."-cloneButton = "Clone recipe"--[docs.rateLimits]-eyebrow = "GETTING STARTED"-title = "Rate limits & quotas"-lead = "Limits scale with your plan. A 429 response includes a Retry-After header; the SDKs back off automatically."-requestsPerMinute = "Requests / minute"-burst = "Burst"-concurrency = "Concurrency"-codeCaption = "429 Too Many Requests"--[docs.sdks]-eyebrow = "SDKS"-title = "Official SDKs"-lead = "First-party clients with typed responses, automatic retries, and streaming uploads. All track the same endpoint catalogue."--[docs.sdks.status]-beta = "Beta"-deprecated = "Deprecated"--[docs.skills]-eyebrow = "SKILLS"-title = "Agent skills"-lead = "Bundled, named capabilities your agent invokes as a single tool. Each skill is a deterministic op chain with evals attached."--[docs.webhooks]-eyebrow = "API REFERENCE"-title = "Webhooks"-lead = "Subscribe to document.processed, pipeline.completed, and quota.threshold events. Payloads are signed with HMAC-SHA256."-codeCaption = "document.processed"--[docs.webhooks.callout]-beforeSignature = "Verify the"-beforeHelper = "header against your signing secret before trusting a payload. SDKs ship a"-afterHelper = "helper."--[catalogue.card]-openAriaLabel = "Open {{name}} component"-lockedAriaLabel = "Locked"--[catalogue.detail]-ariaLabel = "Component detail"-tabsAriaLabel = "Component detail sections"-addToProject = "Add to project"-upgradeToUnlock = "Upgrade to unlock"--[catalogue.detail.tabs]-overview = "Overview"-code = "Code"-props = "Props / API"-pricing = "Pricing"--[catalogue.detail.locked]-title = "Not available on your plan"-description = "{{name}} is included from the {{tier}} plan. Upgrade to embed it."--[catalogue.detail.preview]-badge = "Live preview"-note = "Interactive sandbox renders here"--[catalogue.detail.stats]-maturity = "Maturity"-price = "Price"-freeQuota = "Free quota"-freeQuotaValue = "{{amount}} / mo"-none = "None"-embeds30d = "Embeds (30d)"-perAction = "Per action"-billedOn = "Billed on"--[catalogue.detail.code]-install = "Install"-usage = "Usage"--[catalogue.detail.pricing]-note = "Metered per {{unit}}. Usage beyond the monthly free quota is billed to your account and itemised under Usage & Billing."--[catalogue.props]-required = "required"-optional = "optional"--[catalogue.props.columns]-name = "Prop"-type = "Type"-required = "Required"-description = "Description"--[catalogue.summary]-componentsGa = "Components GA"-inBeta = "In beta"-embedsThisMonth = "Embeds this month"-componentSpendMtd = "Component spend (MTD)"--[infrastructure]-title = "Infrastructure"-subtitle = "Deployments, credentials, security posture, storage, and the audit trail for your Stirling workspace."-manageEditorDeployment = "Manage Editor deployment"-sectionsAriaLabel = "Infrastructure sections"--[infrastructure.tabs]-deployments = "Deployments"-apiKeys = "API Keys"-security = "Security"-models = "Models"-storage = "Storage"-audit = "Audit Logs"--[infrastructure.apiKeys]-heading = "API keys"-subheading = "Scoped credentials with per-key rate limits, permissions, and IP allowlists."-createKey = "Create key"--[infrastructure.apiKeys.empty]-title = "No API keys yet"-description = "Create a scoped key to start calling the Stirling API."--[infrastructure.apiKeys.card]-created = "Created"-lastUsed = "Last used"-rateLimit = "Rate limit"-rateLimitValue = "{{value}} req/min"-usageToday = "Usage today"-usageMonth = "Usage this month"-permissions = "Permissions"-allowedIps = "Allowed IPs"-anyIp = "Any IP (no allowlist)"--[infrastructure.createKey]-title = "Create API key"-titleCreated = "Key created"-subtitle = "Scope the key to the minimum it needs. You can rotate or revoke at any time."-subtitleCreated = "Copy this secret now — it won't be shown again."-done = "Done"-cancel = "Cancel"-createKey = "Create key"-secretKeyCaption = "Secret key"-secretWarning = "Store this in a secrets manager. Stirling only ever stores a hash — there is no way to recover it later."-keyNameLabel = "Key name"-keyNamePlaceholder = "e.g. Production · ingest"-permissionsLabel = "Permissions"-ipAllowlistLabel = "IP allowlist"-ipAllowlistHelper = "Comma-separated CIDR ranges. Leave blank to allow any IP."--[infrastructure.deployments]-msValue = "{{value}} ms"-throughputValue = "{{value}}/min"--[infrastructure.deployments.regionColumns]-region = "Region"-latency = "Latency"-load = "Load"-status = "Status"-version = "Version"-uptime = "Uptime"-instances = "Instances"-throughput = "Throughput"-p99 = "P99"--[infrastructure.deployments.deployColumns]-version = "Version"-environment = "Environment"-product = "Product"-status = "Status"-deployedBy = "Deployed by"-when = "When"--[infrastructure.deployments.regions]-heading = "Regions"-subheading = "Live health for every deployed Stirling region — latency, load, and rollout version."--[infrastructure.deployments.regions.empty]-title = "No regions deployed"-description = "Deployed regions appear here once your workspace is provisioned."--[infrastructure.deployments.recent]-heading = "Recent deployments"-subheading = "The latest rollouts across products and environments."--[infrastructure.audit]-heading = "Audit logs"-subheading = "Every authentication, configuration, and processing event across your workspace."-filterAriaLabel = "Filter audit events by category"-latencyValue = "{{value}} ms"-noEventsInCategory = "No events in this category."--[infrastructure.audit.filters]-all = "All"-auth = "Auth"-config = "Config"-elevation = "Elevation"-processing = "Processing"-security = "Security"--[infrastructure.audit.columns]-timestamp = "Timestamp"-event = "Event"-actor = "Actor"-target = "Target"-status = "Status"-latency = "Latency"--[infrastructure.audit.metrics]-totalEvents = "Total events · 24h"-processing = "Processing"-elevation = "Elevation"-config = "Config"--[infrastructure.audit.empty]-title = "No audit events"-description = "Workspace activity will appear here as it happens."--[infrastructure.models]-heading = "Models"-subheading = "The model catalogue and routing that powers document processing across your workspace."-msValue = "{{value}} ms"--[infrastructure.models.columns]-model = "Model"-type = "Type"-status = "Status"-load = "Load"-latency = "Latency"-cost = "Cost"-version = "Version"--[infrastructure.models.routingColumns]-operation = "Operation"-default = "Default"-docType = "Document type"-routedTo = "Routed to"-modelForAria = "Model for {{operation}}"--[infrastructure.models.metrics]-activeModels = "Active models"-avgLatency = "Avg latency"-monthlySpend = "Monthly model spend"-included = "Included"--[infrastructure.models.catalogue]-heading = "Catalogue"-sub = "Managed models available to your workspace, with live latency and cost."-subEnterprise = "Managed, bring-your-own, and on-prem models — with per-region pinning available."--[infrastructure.models.catalogue.empty]-title = "No models available"-description = "Models in your workspace's catalogue appear here."--[infrastructure.models.byom]-title = "Bring your own model"-description = "Register an on-prem or self-hosted model and pin it to a region for data-residency-bound processing."--[infrastructure.models.routing]-heading = "Routing rules"-sub = "Which model handles each operation. The default applies when no narrower rule matches."-subLocked = "Route operations to specific models — available on paid plans."-empty = "No routing rules configured."--[infrastructure.models.routing.lockedBanner]-title = "Model routing is a paid feature"-description = "Upgrade to Pro to control which model handles each operation and document type."--[infrastructure.security.empty]-title = "Security posture unavailable"-description = "Your workspace's security configuration will appear here."--[infrastructure.security.access.stirling]-label = "Stirling-held keys"-description = "Stirling manages encryption keys. Simplest — zero key ops on your side."--[infrastructure.security.access.byok]-label = "Bring your own key (BYOK)"-description = "Supply a key from your own KMS. Stirling encrypts with it but can still read."--[infrastructure.security.access.hyok]-label = "Hold your own key (HYOK)"-description = "Keys never leave your KMS. Stirling holds only ciphertext."--[infrastructure.security.residency.us]-label = "United States"-description = "us-east-1 · us-west-2"--[infrastructure.security.residency.eu]-label = "European Union"-description = "eu-west-1 · GDPR data boundary"--[infrastructure.security.residency.apac]-label = "Asia Pacific"-description = "ap-southeast-1"--[infrastructure.security.ipColumns]-label = "Label"-cidr = "CIDR"-addedBy = "Added by"-added = "Added"--[infrastructure.security.accessPolicy]-heading = "Document access policy"-subheading = "Controls who can decrypt processed documents at rest."--[infrastructure.security.hyokBanner]-title = "Stirling cannot decrypt your documents"-description = "With HYOK, encryption keys never leave your KMS. Stirling stores and processes only ciphertext you can revoke at any time."--[infrastructure.security.residencyHeader]-heading = "Data residency"-subheading = "Where documents are stored and processed."--[infrastructure.security.keyManagement]-heading = "Encryption key management"-subheading = "Custody of the keys that encrypt documents at rest — who can decrypt, and how keys rotate."-rotateKey = "Rotate key"-keyId = "Key identifier"-algorithm = "Algorithm"-lastRotated = "Last rotated"-rotationPolicy = "Rotation policy"--[infrastructure.security.managedBanner]-title = "Keys are managed by Stirling on your plan"-description = "Bring-your-own-key (BYOK) and hold-your-own-key (HYOK) custody are available on Enterprise. Upgrade to supply keys from your own KMS."--[infrastructure.security.compliance]-heading = "Compliance"-subheading = "Attestations and certifications covering the Stirling platform."--[infrastructure.security.attestations]-heading = "Compliance attestations"-subheading = "Framework-by-framework audit posture, with reports available on attested controls."-viewReport = "View report →"-noReport = "No report available"--[infrastructure.security.ipAllowlist]-heading = "IP allowlist"-sub = "API access is restricted to these CIDR ranges."-subLocked = "Restrict API access to known IP ranges — available on paid plans."-empty = "No IP ranges configured — all IPs allowed."--[infrastructure.security.ipAllowlist.lockedBanner]-title = "IP allowlisting is a paid feature"-description = "Upgrade to Pro to restrict API access to specific networks."--[infrastructure.storage]-gbValue = "{{value}} GB"-percentUsed = "{{value}} used"--[infrastructure.storage.retentionOption]-days_one = "{{count}} day"-days_other = "{{count}} days"-never = "Never delete"--[infrastructure.storage.empty]-title = "No storage configured"-description = "Connected storage and usage appear here."--[infrastructure.storage.totalUsage]-heading = "Total usage"-subheading = "Storage consumed across all connected providers."-progressLabel = "Storage used"--[infrastructure.storage.providers]-heading = "Connected providers"-subheading = "Where processed artifacts are written."-connected = "Connected"-connect = "Connect"--[infrastructure.storage.retention]-heading = "Retention"-subheading = "How long artifacts are kept before lifecycle deletion."-windowLabel = "Default retention window"--[infrastructure.storage.lifecycle]-active = "Active"-activeRange = "0–{{value}}d"-archived = "Archived"-coldStorage = "cold storage"-deleted = "Deleted"-never = "never"-purged = "purged"--[recentActivity]-title = "Recent activity"-viewAll = "View all"--[recentActivity.empty]-title = "Nothing here yet"-description = "Pipeline runs, deploys and agent events will appear here."--[useCases]-title = "Popular use cases"-viewAll = "View all pipelines"--[useCases.items.autoRouting]-eyebrow = "AUTO-ROUTING"-title = "Auto-classify and route incoming documents"-blurb = "One classifier reads what arrived — KYC form, invoice, contract, COI — and routes to the right downstream pipeline. No manual triage, no docs in the wrong workflow."-cta = "Build a classifier pipeline"--[useCases.items.piiRedaction]-eyebrow = "PII REDACTION"-title = "Redact PII before it leaves your stack"-blurb = "Strip sensitive fields before storage, indexing, or LLM processing. Schema-aware, per-field audit, BYOK or HYOK keys. Compliance at the document boundary, not per pipeline."-cta = "See redaction pipelines"--[useCases.items.trainingData]-eyebrow = "TRAINING DATA"-title = "Turn PDFs into training data"-blurb = "Batch-import an archive, redact PII, classify, chunk, and emit ready-to-load JSON for fine-tuning, eval sets, or RAG. Self-completing and replayable."-cta = "Build a training-data pipeline"--[useCases.items.authenticity]-eyebrow = "AUTHENTICITY"-title = "Verify signatures and detect tampering"-blurb = "Cryptographic checks at the document boundary — signature validation, tamper detection, signing flows for outbound documents. Trust decisions in the pipeline, not your app code."-cta = "Try authenticity check"--[policySummary]-title = "What runs on your PDFs"-subtitle = "Standing automations every document passes through, regardless of which pipeline handles it."-activeSummary = "{{active}} / {{total}} active"-noRule = "No rule enforced yet"--[policySummary.state]-active = "Active"-off = "Off"-soon = "Soon"--[policySummary.column]-policy = "Policy"-status = "Status"-activeRule = "Active rule"--[policySummary.action]-comingSoon = "Coming soon"-configure = "Configure"-setUp = "Set up"--[policySummary.empty]-title = "No policies yet"-description = "Once policies are configured, the categories appear here."--[opRunner]-title = "Try a PDF operation"-subtitle = "Drop a sample, pick an op, see what Stirling returns."-featuredOps = "Featured ops"-durationMs = "{{ms}} ms"--[opRunner.action]-close = "Close"-runAgain = "Run again"-openBuilder = "Open the pipeline builder"-run = "Run operation"-running = "Running…"--[opRunner.status]-failed = "Failed"-completed = "Completed"--[opRunner.drop]-title = "Drop a PDF here"-hint = "or use a sample document."-replaceHint = "Drop again or pick another sample to replace."-pickAnother = "Pick another sample"-useSample = "Use a sample"--[opRunner.empty]-title = "No featured ops yet"-description = "Once operations are published, they'll show up here."--[opRunner.hint]-ready = "Ready"-aSample = "a sample"-press = "Press"-toInvoke = "to invoke"--[opRunner.hint.runOn]-before = "Run"-middle = "on"--[opRunner.running]-title = "Running {{label}}…"--[opRunner.error]-title = "The operation didn't complete"-unknown = "Unknown error"--[welcome]-ariaLabel = "Stirling product highlights"-pagination = "Carousel pagination"-slideLabel = "Slide {{number}}: {{title}}"--[welcome.ornament.editor]-critical = "Critical"-signed = "signed"-ocrClean = "OCR-clean"-schemaMatch = "schema match 0.97"--[welcome.slides.editor]-eyebrow = "PDF Editor"-title = "The #1 PDF Editor on GitHub"-sub = "Annotate, sign, redact, and review locally or in the cloud. Brought to the platform as the credibility anchor of the Stirling control plane."-primary = "Install PDF Editor"-secondary = "Connect an instance"--[welcome.slides.platform]-eyebrow = "Platform"-title = "PDF Infrastructure for Developers"-sub = "Ingest from agents, APIs and connectors. Run composable pipelines with evals and golden sets. Land in a vault with zero-standing-access controls."-primary = "Try a PDF operation"-secondary = "Get an API key"--[welcome.slides.agents]-eyebrow = "AI Agents"-title = "PDF Processor for AI Agents"-sub = "Wire your agent via MCP, REST or tool definitions. Deterministic operations and guardrails — test with scenarios and evals before you ship."-primary = "Try PDF Processor"-secondary = "View MCP docs"--[notifications]-title = "Notifications"-markAllRead = "Mark all read"-viewAll = "View all"--[notifications.ariaLabel]-unread_one = "Notifications, {{count}} unread"-unread_other = "Notifications, {{count}} unread"-none = "Notifications, no unread"--[notifications.count]-new_one = "{{count}} new"-new_other = "{{count}} new"-loading = "loading"-allRead = "all read"--[notifications.empty]-title = "You're all caught up"-description = "No new notifications."--[mocks.label]-on = "Mocks ON"-off = "Mocks OFF"--[mocks.tooltip]-on = "Mock data ON — fetch calls are intercepted by MSW. Click to switch to the real network (reloads the page)."-off = "Mock data OFF — fetch calls go to the real network. Click to re-enable mocks (reloads the page)."--[forkWizard]-title = "Fork a starter pipeline"-subtitle = "Clone a proven workflow and tune it — every template ships the same four-stage backbone."--[forkWizard.status]-ready = "Ready to deploy"-building = "Building…"--[forkWizard.action]-pickAnother = "Pick another"-cancel = "Cancel"-deploy = "Deploy pipeline"--[processingStatus]-upgrade = "Upgrade"-pdfsThisMonth = "PDFs this month"-progressLabel = "{{used}} of {{cap}} PDFs used this month"-volumeSuffix = "PDFs processed · last 30 days"-managePlan = "Manage plan"--[usageChart]-defaultLabel = "Docs processed · last 30 days"-delta = "{{pct}}% vs prior 30d"-docsValue = "{{value}} docs"-srAnnounce = "{{date}}: {{value}} docs"--# Login screen - keys used by the shared auth UI (@shared/auth/ui/*), which the-# portal renders identically to the editor. Values mirror the editor's en-US locale.-[login]-enterMfaCode = "Enter 6-digit code"-enterPassword = "Enter your password"-enterUsername = "Enter username"-failedToSignIn = "Failed to sign in with {{provider}}: {{message}}"-loggingIn = "Logging In..."-login = "Login"-mfaCode = "Authentication Code"-mfaRequired = "Two-factor code required"-password = "Password"-pleaseEnterBoth = "Please enter both email and password"-signInWith = "Sign in with"-unexpectedError = "Unexpected error: {{message}}"-username = "Username"--[login.slides.edit]-alt = "Edit PDFs"-subtitle = "With over a dozen tools to help you redact, sign, read and manipulate PDFs, you will be sure to find what you are looking for."-title = "Edit PDFs to display/secure the information you want"--[login.slides.overview]-alt = "Stirling PDF overview"-subtitle = "A privacy-first cloud suite for PDFs that lets you convert, sign, redact, and manage documents, along with 50+ other powerful tools."-title = "Your one-stop-shop for all your PDF needs."--[login.slides.secure]-alt = "Secure PDFs"-subtitle = "Add passwords, redact content, and manage certificates with ease."-title = "Protect sensitive information in your PDFs"--[signup]-or = "or"--# Auth gate (portal is admin-only): transient states shown by AuthGate.-[auth]-loading = "Loading"-redirectingToEditor = "Redirecting to the editor..."--[errorBoundary]-title = "Something went wrong on this page"-description = "This view hit an unexpected error. Try again, or pick another section from the sidebar."-retry = "Try again"--# ── Account link (combined-billing Mode A) ───────────────────────────────────-[accountLink.state]-unlinked = "Not linked"-free = "Editor plan"-subscribed = "Processor plan"--[accountLink.panel]-sub = "Link this self-hosted org to its Stirling account so unattended processing bills against your org wallet."-instancesTitle = "Linked instances"-instancesSub = "Every self-hosted instance registered to this org. Revoke a credential to immediately cut off its unattended access."-revokeError = "Couldn't revoke instance"--[accountLink.panel.loadError]-title = "Couldn't load linked instances"-forbidden = "Only the team owner can view the org's linked instances."-generic = "Couldn't load the team's linked instances. Try again in a moment."--[accountLink.card]-eyebrow = "Account link"-title = "Link this org to its Stirling account"-linked = "Linked"-notLinked = "Not linked"-unlink = "Unlink"-linkButton = "Link your Stirling account"-linkedAs = "Linked as {{name}}."-linkedGeneric = "This instance is linked."-billingNote = "Unattended processing bills against your org wallet."--[accountLink.card.error]-title = "Couldn't link"--[accountLink.card.loginNotConfigured]-title = "SaaS login not configured"-before = "Set"-after = "to enable account linking against the hosted Stirling account. In dev you can simulate sign-in from the link dialog."--[accountLink.modal]-linkTitle = "Link your Stirling account"-reauthTitle = "Sign in again"-linkSubtitle = "Sign in to the account this server should bill against."-reauthSubtitle = "Your session expired — sign back in to your Stirling account. Your instance stays linked."-simulateSignIn = "Simulate sign-in (dev)"--[accountLink.modal.loginNotConfigured]-title = "SaaS login not configured"-before = "Set"-and = "and"-after = "to enable in-app linking against the hosted Stirling account."--[accountLink.gate]-title = "Link to unlock"-titleFeature = "Link to unlock {{feature}}"-description = "Link this org's Stirling account to use billable features."-action = "Link account"--[accountLink.instances]-unnamed = "Unnamed instance"-revoked = "Revoked"-active = "Active"-revoke = "Revoke"--[accountLink.instances.columns]-instance = "Instance"-status = "Status"-lastSeen = "Last seen"-linked = "Linked"--[accountLink.instances.empty]-title = "No linked instances"-description = "Link this org's account, then register your self-hosted instances to see them here."--[accountLink.instances.time]-never = "never"-justNow = "just now"-minutesAgo_one = "{{count}}m ago"-minutesAgo_other = "{{count}}m ago"-hoursAgo_one = "{{count}}h ago"-hoursAgo_other = "{{count}}h ago"-daysAgo_one = "{{count}}d ago"-daysAgo_other = "{{count}}d ago"--# ── Billing surface (Usage & billing) ────────────────────────────────────────-[billing.enterpriseUpsell]-eyebrow = "Volume discount · 1M+ PDFs"-title = "Stirling Enterprise"-description = "Committed volume discounts, air-gapped deployment, custom MSA and security reviews, and 3rd-party distributor partnerships."-cta = "Build your Enterprise quote"--[billing.freeEditors]-title = "Free PDF Editors"-previewBadge = "Preview · sample data"-subtitle = "Deploy anywhere, for your whole team."-editorsDeployed = "Editors deployed"-activeThisMonth = "Active this month"-pdfsEdited = "PDFs edited"-cost = "Cost"-inviteTeammates = "Invite teammates"--[billing.freePlan]-currentPlan = "Current plan"-planName = "Editor"-freeForever = "Free forever"-ssoIncluded = "SSO included"-unlimitedUsers = "Unlimited users"-switchOnProcessor = "Switch on the Processor →"-noTeamResolved = "No team is resolved on your wallet yet — refresh and try again."-checkoutErrorTitle = "Couldn't start checkout"-ownerOnly = "Only the team owner can switch on the Processor plan."--[billing.linkPrompt]-title = "Link your Stirling account"-description = "Manual PDF editing — view, sign, merge, split, watermark, compress, convert, manual OCR — is always free, linked or not. Link to claim 500 free PDFs of metered processing (automation, AI, and the API); when you need more, turn on the Processor plan and only pay for what you use."-cta = "Link Stirling account"--[billing.walletMeter]-eyebrow = "Processor trial"-sub = "Use the PDF Editor for free. Pay to process PDFs automatically."-title_one = "Process {{allowance}} PDFs free"-title_other = "Process {{allowance}} PDFs free"-titleWithRate_one = "Process {{allowance}} PDFs free, then {{rate}}/PDF"-titleWithRate_other = "Process {{allowance}} PDFs free, then {{rate}}/PDF"-capSuffix_one = "of {{allowance}} free PDFs used"-capSuffix_other = "of {{allowance}} free PDFs used"-statusLabel_one = "{{remaining}} left"-statusLabel_other = "{{remaining}} left"--[billing.pdfsProcessed]-eyebrow = "PDFs processed this period"-unit = "metered PDFs"-segbarAriaLabel = "Metered PDFs split by category"-segmentApiLabel = "API"-segmentApiDesc = "Direct API requests"-segmentAgentsLabel = "Agents"-segmentAgentsDesc = "AI agent actions"-segmentAutomationLabel = "Automation"-segmentAutomationDesc = "Automations & pipelines"-legendValue_one = "{{formatted}} PDFs"-legendValue_other = "{{formatted}} PDFs"-emptyPeriod = "No metered processing yet this period."--[billing.spendThisMonth]-eyebrow = "Spend this month"-processed_one = "{{formattedCount}} PDF processed."-processed_other = "{{formattedCount}} PDFs processed."-processedWithRate_one = "{{formattedCount}} PDF processed, at {{rate}} each."-processedWithRate_other = "{{formattedCount}} PDFs processed, at {{rate}} each."--[billing.spendLimit]-eyebrow = "Spend limit"-editTitle = "Set your monthly ceiling"-capControlNote = "Changes apply immediately — raise or lower the ceiling any time."-useSuggested = "Use suggested · {{amount}} / month"-guardrailLabel = "Your guardrail:"-guardrailBody = "a hard ceiling — you're never billed past it. At the cap, metered processing pauses (unlimited PDF editing keeps working) until you raise it or the cycle resets. Nothing is lost."-saveError = "Couldn't save limit"-cancel = "Cancel"-save = "Save limit"-displaySub = "You're only billed for what you process automatically — never past the ceiling."-adjustLimit = "Adjust limit"-capSuffix = "/ month"-capSuffixWithDocs = "/ month · ≈ {{documents}} documents"-noCap = "no cap"-pctUsed = "{{pct}}% used"-usedThisMonth = "{{amount}} used this month"-remaining = "{{amount}} remaining"-thisPeriodUncapped = "{{amount}} this period · uncapped"--[billing.spendLimit.projection]-label = "Projected to exceed."-body_one = "At {{rate}}/day you reach the cap in ~{{count}} day (~{{monthEnd}} month-end). Suggested limit ~{{suggested}}."-body_other = "At {{rate}}/day you reach the cap in ~{{count}} days (~{{monthEnd}} month-end). Suggested limit ~{{suggested}}."--[billing.invoices]-title = "Invoice history"-columnDate = "Date"-columnPdfsProcessed = "PDFs processed"-columnAmount = "Amount"-columnStatus = "Status"-columnDescription = "Description"-descriptionFallback = "Invoice"-viewLink = "View ↗"-viewAriaLabel = "View invoice {{number}} in Stripe"-pdfLink = "PDF ↓"-downloadAriaLabel = "Download invoice {{number}} as PDF"-loadError = "Couldn't load invoices: {{error}}"-emptyTitle = "No invoices yet"-emptyDescription = "Once your team subscribes and the first cycle closes, your invoices appear here."-showFewer_one = "Show fewer (top {{count}})"-showFewer_other = "Show fewer (top {{count}})"-showMostRecent_one = "Show {{count}} most recent"-showMostRecent_other = "Show {{count}} most recent"-showAll_one = "Show all {{count}}"-showAll_other = "Show all {{count}}"-fetchLimitNote_one = "Showing your {{count}} most recent invoices. Older invoices are in the Stripe portal."-fetchLimitNote_other = "Showing your {{count}} most recent invoices. Older invoices are in the Stripe portal."--[billing.paymentMethod]-eyebrow = "Payment method"-cardEnding = "{{brand}} ending {{last4}}"-cardFallback = "Card"-expiresBilledMonthly = "Expires {{expiry}} · billed monthly"-billedMonthly = "Billed monthly"-managedTitle = "Managed in Stripe"-managedSub = "Your card and billing details are kept securely in Stripe's customer portal."-update = "Update"--[billing.checkout]-title = "Turn on the Processor plan"-subtitle = "Add a card to keep going past your free Editor-plan grant. Stripe handles the rest."-noClientSecret = "Edge function returned no client_secret."--[billing.checkout.notConfigured]-title = "Stripe not configured"-bodyBefore = "Set"-bodyAfter = "in the portal env to enable in-app checkout."--[billing.checkout.error]-title = "Couldn't start checkout"--[billing.subscribedPlan.capWarn]-reachedTitle = "Monthly spend limit reached"-approachingTitle = "You're at {{pct}}% of your monthly spend limit"-raiseLimit = "Raise limit"-reachedBody = "Metered processing is paused until you raise the limit or the cycle resets. Unlimited PDF editing keeps working."-approachingBody = "Raise it now so automated processing never pauses."--[billing.subscribedPlan.portalError]-title = "Couldn't open Stripe portal"--# ── Usage & billing view ─────────────────────────────────────────────────────-[usage]-title = "Usage & billing"-subtitle = "Consumption, invoices, and plan management for every PDF Stirling has billed, in one console."-managePayment = "Manage Payment"--[usage.finalizing]-title = "Finalizing your subscription…"-body = "It can take a few seconds for your subscription to activate. This page updates automatically."--[usage.sessionExpired]-title = "Session expired"-action = "Sign in again"-body = "Your Stirling account session has expired. Sign in again to view billing — your instance stays linked."--[usage.error]-loadWallet = "Couldn't load wallet"-openStripePortal = "Couldn't open Stripe portal"-walletUnavailable = "Wallet unavailable: {{status}} {{statusText}}"--[procurement]-title = "Procurement"-subtitle = "Get your team evaluated, contracted, and onboarded. Every document in one place."-enterpriseBadge = "Enterprise"--[procurement.journey]-eyebrow = "Your rollout"-title = "From trial to live, one guided path"-subtitle = "Your solutions engineer is on every step. One next action at a time; the full checklist is below."-engineerLabel = "Your solutions engineer"-trialTitle = "Enterprise trial"-daysLeft_one = "{{count}} day left"-daysLeft_other = "{{count}} days left"-live = "You're live on Stirling Enterprise"-nextStep = "Next step: {{action}}"--[procurement.docs]-title = "Documents"-subtitle = "Everything you need at each step of the journey, surfaced as the deal moves through it."-here = "You're here"-done = "Done"-count_one = "{{count}} doc"-count_other = "{{count}} docs"-supportingTitle = "Supporting your evaluation"-supportingSubtitle = "SOC 2, security reviews, tax forms and more, ready when your security or procurement team asks. Some carry a one-time fee."-show = "Show"-hide = "Hide"-optional = "Optional"-paidAddon = "Paid add-on"-upcoming = "Upcoming"--[procurement.status]-available = "Available"-action = "Action needed"-pending = "Pending"-request = "On request"-complete = "Complete"--[procurement.action]-download = "Download"-sign = "Review & sign"-pay = "Pay now"-upload = "Upload"-request = "Request"--[procurement.modal]-cancel = "Cancel"-chooseFile = "Choose file"-noFile = "No file selected"-signTitle = "Review and sign your agreement"-signBody = "Opens the Stirling Enterprise Agreement for e-signature: one signature covers the MSA, order form, EULA and DPA. We countersign automatically and you advance to payment."-signCta = "Open for signature"-payTitle = "Confirm payment"-payBody = "Pay your committed contract by card or bank transfer through Stripe. Your workspace provisions as soon as payment clears."-payCta = "Continue to Stripe"-uploadTitle = "Upload your purchase order"-uploadBody = "Send us your PO and we invoice against it on your terms. Drag in the PDF or pick a file below."-uploadCta = "Upload purchase order"-requestTitle = "Request this document"-requestBodyPaid = "This is a paid add-on. Confirm and your solutions engineer will scope it and send the paperwork."-requestBodyFree = "We generate this on demand. Confirm and your solutions engineer will send it across shortly."-requestCta = "Request"-downloadTitle = "Download"-downloadBody = "Your download will begin shortly."-downloadCta = "Download"--[procurement.locked]-eyebrow = "Enterprise only"-title = "The procurement track opens with Enterprise"-description = "Trial keys, committed-volume quotes, the one-signature agreement, payment, and your document ledger all live here once you start an enterprise evaluation."-talkToSales = "Talk to sales"diff --git a/frontend/portal/src/ViewRouter.tsx b/frontend/portal/src/ViewRouter.tsxdeleted file mode 100644index 3ad54cd1bb..0000000000--- a/frontend/portal/src/ViewRouter.tsx+++ /dev/null@@ -1,40 +0,0 @@-import { Navigate, Route, Routes } from "react-router-dom";-import { Home } from "@portal/views/Home";-import { Users } from "@portal/views/Users";-import { Documents } from "@portal/views/Documents";-import { Pipelines } from "@portal/views/Pipelines";-import { Sources } from "@portal/views/Sources";-import { AgentBuilder } from "@portal/views/AgentBuilder";-import { Policies } from "@portal/views/Policies";-import { Components } from "@portal/views/Components";-import { EditorAdmin } from "@portal/views/EditorAdmin";-import { Infrastructure } from "@portal/views/Infrastructure";-import { Usage } from "@portal/views/Usage";-import { DeveloperDocs } from "@portal/views/DeveloperDocs";-import { Procurement } from "@portal/views/Procurement";-import { VIEW_PATHS } from "@portal/contexts/ViewContext";--export function ViewRouter() {- return (- <Routes>- <Route path={VIEW_PATHS.home} element={<Home />} />- <Route path={VIEW_PATHS.users} element={<Users />} />- <Route path={VIEW_PATHS.pipelines} element={<Pipelines />} />- <Route path={VIEW_PATHS.sources} element={<Sources />} />- <Route path={VIEW_PATHS["agent-builder"]} element={<AgentBuilder />} />- <Route path={VIEW_PATHS.policies} element={<Policies />} />- <Route path={VIEW_PATHS.documents} element={<Documents />} />- <Route path={VIEW_PATHS.components} element={<Components />} />- <Route path={VIEW_PATHS.editor} element={<EditorAdmin />} />- <Route path={VIEW_PATHS.infrastructure} element={<Infrastructure />} />- <Route path={VIEW_PATHS.usage} element={<Usage />} />- <Route path={VIEW_PATHS.procurement} element={<Procurement />} />- <Route path={VIEW_PATHS.docs} element={<DeveloperDocs />} />- {/* Account-link is now a Settings panel; redirect legacy bookmarks home. */}- <Route path="/account-link" element={<Navigate to="/" replace />} />- {/* Settings is a modal overlay, not a route (see AppShell + UIContext). */}- {/* Unknown paths land on Home. */}- <Route path="*" element={<Navigate to={VIEW_PATHS.home} replace />} />- </Routes>- );-}diff --git a/frontend/portal/src/i18n/config.ts b/frontend/portal/src/i18n/config.tsdeleted file mode 100644index 48245a63d9..0000000000--- a/frontend/portal/src/i18n/config.ts+++ /dev/null@@ -1,54 +0,0 @@-/**- * Portal i18n setup. Shares the editor's system via @shared/i18n: the same- * TOML backend, the same language list, and the same Crowdin-managed- * `public/locales/{lng}/translation.toml` layout. US English is the source.- *- * Imported once for its side effect (see portal/main.tsx) before the app- * renders. The portal is a separate bundle, so it configures its own i18next- * default instance.- */-import i18n from "i18next";-import { initReactI18next } from "react-i18next";-import LanguageDetector from "i18next-browser-languagedetector";-import TomlBackend from "@shared/i18n/tomlBackend";-import { supportedLanguages, rtlLanguages } from "@shared/i18n/languages";--void i18n- .use(TomlBackend)- .use(LanguageDetector)- .use(initReactI18next)- .init({- fallbackLng: "en-US",- supportedLngs: Object.keys(supportedLanguages),- load: "currentOnly",- nonExplicitSupportedLngs: false,- interpolation: {- // React already escapes values, so i18next must not double-escape.- escapeValue: false,- },- backend: {- loadPath: (lngs: string[], namespaces: string[]) => {- const basePath = import.meta.env.BASE_URL || "/";- const cleanBasePath = basePath.endsWith("/")- ? basePath.slice(0, -1)- : basePath;- return `${cleanBasePath}/locales/${lngs[0]}/${namespaces[0]}.toml`;- },- },- detection: {- order: ["localStorage", "navigator", "htmlTag"],- caches: ["localStorage"],- convertDetectedLanguage: (lng: string) => (lng === "en" ? "en-US" : lng),- },- react: {- useSuspense: true,- },- });--// Mirror the document direction/lang to the active language.-i18n.on("languageChanged", (lng) => {- document.documentElement.dir = rtlLanguages.includes(lng) ? "rtl" : "ltr";- document.documentElement.lang = lng;-});--export default i18n;diff --git a/frontend/portal/src/mocks/browser.ts b/frontend/portal/src/mocks/browser.tsdeleted file mode 100644index aa4607f174..0000000000--- a/frontend/portal/src/mocks/browser.ts+++ /dev/null@@ -1,41 +0,0 @@-import { setupWorker } from "msw/browser";-import { JWT_STORAGE_KEY } from "@shared/auth";-import { handlers } from "@portal/mocks/handlers";-import { MOCK_TOKEN } from "@portal/mocks/auth";--export const worker = setupWorker(...handlers);--let workerStarted = false;--/**- * Seed the shared auth token so the auth gate resolves to the mock admin in- * design-prototype mode (no backend needed). Only ever runs when mocks are on;- * real deployments leave the token untouched and authenticate for real.- */-function seedMockAuthToken(): void {- try {- if (typeof localStorage !== "undefined") {- localStorage.setItem(JWT_STORAGE_KEY, MOCK_TOKEN);- }- } catch {- // localStorage unavailable - the gate will simply show the login screen.- }-}--/**- * Start the MSW worker. Idempotent — calling repeatedly is safe.- *- * The toggle flips MSW by writing the preference to localStorage and- * reloading the page, so there's no need for a `stopMockWorker` counterpart:- * the next boot just decides whether to call this or not.- */-export async function startMockWorker(): Promise<void> {- if (workerStarted) return;- seedMockAuthToken();- await worker.start({- onUnhandledRequest: "bypass",- serviceWorker: { url: "/mockServiceWorker.js" },- quiet: true,- });- workerStarted = true;-}diff --git a/frontend/portal/tsconfig.json b/frontend/portal/tsconfig.jsondeleted file mode 100644index 98764b218b..0000000000--- a/frontend/portal/tsconfig.json+++ /dev/null@@ -1,18 +0,0 @@-{- "compilerOptions": {- "target": "es2022",- "jsx": "react-jsx",- "module": "esnext",- "moduleResolution": "bundler",- "paths": {- "@portal/*": ["./src/*"],- "@shared/*": ["../shared/*"]- },- "resolveJsonModule": true,- "esModuleInterop": true,- "forceConsistentCasingInFileNames": true,- "strict": true,- "skipLibCheck": true- },- "include": ["src", "main.tsx", "vite.config.ts"]-}diff --git a/frontend/portal/vite.config.ts b/frontend/portal/vite.config.tsdeleted file mode 100644index b28b1e2168..0000000000--- a/frontend/portal/vite.config.ts+++ /dev/null@@ -1,84 +0,0 @@-import { resolve } from "node:path";-import { defineConfig, loadEnv } from "vite";-import react from "@vitejs/plugin-react-swc";-import tsconfigPaths from "vite-tsconfig-paths";--// Portal app — sibling to frontend/editor/. Standalone vite config so the-// editor's config stays editor-only.-//-// Layout:-// frontend/portal/ <-- this config's root-// index.html-// main.tsx-// src/-// public/-// tsconfig.json-// frontend/shared/ <-- imported via @shared/*-// frontend/node_modules/ <-- hoisted workspace deps-//-// The build emits to frontend/dist-portal/ (parallel to the editor's dist/).--export default defineConfig(async ({ mode }) => {- // Load .env files relative to this config, regardless of where invoked from.- const env = loadEnv(mode, import.meta.dirname, "");-- // Backend proxy so the portal shares the editor's origin for auth: with mocks- // off, /api/v1/auth/* (and OAuth/SAML redirects) reach the Spring backend and- // the same stirling_jwt token works across both apps. Mirrors the editor's- // proxy; override the target via BACKEND_URL.- const backendUrl = process.env.BACKEND_URL || "http://localhost:8080";- const backendProxy = {- target: backendUrl,- changeOrigin: true,- secure: false,- xfwd: true,- };- const backendProxyConfig = {- "/api": backendProxy,- "/oauth2": backendProxy,- "/saml2": backendProxy,- };-- return {- plugins: [- react(),- tsconfigPaths({- projects: [resolve(import.meta.dirname, "tsconfig.json")],- }),- ],- // Explicit aliases — tsconfigPaths only resolves imports inside files- // covered by portal/tsconfig.json's `include`. shared/components/index.ts- // re-exports via `@shared/*` from inside shared/ itself, so we need- // resolve.alias for vite to handle those too.- resolve: {- alias: {- "@portal": resolve(import.meta.dirname, "src"),- "@shared": resolve(import.meta.dirname, "..", "shared"),- },- },- // The portal's @shared/* alias resolves to frontend/shared/, one level up- // from this config's root. Vite refuses to serve files outside its root- // by default; whitelisting the workspace root opens up shared/ and the- // hoisted node_modules.- server: {- host: true,- port: 5173,- strictPort: true,- fs: {- allow: [resolve(import.meta.dirname, "..")],- },- proxy: backendProxyConfig,- },- preview: {- host: true,- port: 5173,- strictPort: true,- proxy: backendProxyConfig,- },- build: {- outDir: "../dist-portal",- emptyOutDir: true,- },- base: env.RUN_SUBPATH ? `/${env.RUN_SUBPATH}` : "./",- };-});diff --git a/frontend/portal/vitest.config.ts b/frontend/portal/vitest.config.tsdeleted file mode 100644index 172c551f37..0000000000--- a/frontend/portal/vitest.config.ts+++ /dev/null@@ -1,45 +0,0 @@-import { defineConfig } from "vitest/config";-import react from "@vitejs/plugin-react-swc";-import tsconfigPaths from "vite-tsconfig-paths";-import { resolve } from "node:path";--// Standalone test config for the portal app, mirroring the editor's setup.-// Explicit resolve.alias for @portal and @shared so imports resolve even when-// they originate inside frontend/shared/ (outside the portal tsconfig scope),-// matching the resolve.alias block in the portal's vite.config.ts.-const portalDir = resolve(__dirname, "src");-const sharedDir = resolve(__dirname, "..", "shared");--export default defineConfig({- plugins: [- react(),- tsconfigPaths({- projects: [resolve(__dirname, "tsconfig.json")],- }),- ],- resolve: {- alias: {- "@portal": portalDir,- "@shared": sharedDir,- },- },- server: {- fs: {- // Allow Vite to serve files from the shared/ sibling directory when- // running tests with --root portal (which would otherwise block them).- allow: [".."],- },- },- test: {- globals: true,- environment: "jsdom",- setupFiles: ["./src/setupTests.ts"],- css: false,- include: ["src/**/*.test.{ts,tsx}", "../shared/**/*.test.ts"],- testTimeout: 10000,- hookTimeout: 10000,- },- esbuild: {- target: "es2020",- },-});diff --git a/frontend/scripts/dev-origin-proxy.ts b/frontend/scripts/dev-origin-proxy.tsdeleted file mode 100644index 34ebf1f8a7..0000000000--- a/frontend/scripts/dev-origin-proxy.ts+++ /dev/null@@ -1,246 +0,0 @@-/**- * Single-origin dev server for testing unified auth locally.- *- * The editor and portal store their session as a `stirling_jwt` token in- * localStorage, which the browser scopes per origin. On separate dev ports they- * can't share it; this server fronts both apps plus the backend on ONE origin- * so a token from one app is automatically seen by the other - mirroring the- * real same-origin production topology.- *- * Routing (single port):- * /api, /oauth2, /saml2, /v1/api-docs -> reverse-proxy to the backend- * /portal, /portal/* -> the portal app- * everything else -> the editor app (SPA)- *- * Each app is served either from a production build (static files) or from a- * running Vite dev server, chosen per app:- * - EDITOR_DEV_URL / PORTAL_DEV_URL set -> reverse-proxy to that dev server.- * - otherwise serve EDITOR_DIST / PORTAL_DIST as static files (SPA fallback).- *- * Vite HMR websockets connect straight to each dev server's own port, so live- * mode keeps hot reload without this proxy needing to multiplex HMR sockets.- *- * Config via env: PORT, BACKEND_URL, EDITOR_DEV_URL, PORTAL_DEV_URL,- * EDITOR_DIST, PORTAL_DIST.- */-import http from "node:http";-import https from "node:https";-import { createReadStream } from "node:fs";-import { stat } from "node:fs/promises";-import path from "node:path";-import { fileURLToPath } from "node:url";-import type { Duplex } from "node:stream";--const here = path.dirname(fileURLToPath(import.meta.url));-const FRONTEND = path.resolve(here, "..");--const PORT = Number(process.env.PORT || 3000);-const BACKEND_URL = process.env.BACKEND_URL || "http://localhost:8080";-const EDITOR_DEV_URL = process.env.EDITOR_DEV_URL || "";-const PORTAL_DEV_URL = process.env.PORTAL_DEV_URL || "";-const EDITOR_DIST = path.resolve(- process.env.EDITOR_DIST || path.join(FRONTEND, "editor", "dist"),-);-const PORTAL_DIST = path.resolve(- process.env.PORTAL_DIST || path.join(FRONTEND, "dist-portal"),-);--const backend = new URL(BACKEND_URL);-const editorDev = EDITOR_DEV_URL ? new URL(EDITOR_DEV_URL) : null;-const portalDev = PORTAL_DEV_URL ? new URL(PORTAL_DEV_URL) : null;--// Paths owned by the backend (mirrors the editor/portal Vite dev proxies).-const API_PREFIXES = ["/api", "/oauth2", "/saml2", "/v1/api-docs"];--const MIME: Record<string, string> = {- ".html": "text/html; charset=utf-8",- ".js": "text/javascript",- ".mjs": "text/javascript",- ".css": "text/css",- ".json": "application/json",- ".svg": "image/svg+xml",- ".png": "image/png",- ".jpg": "image/jpeg",- ".jpeg": "image/jpeg",- ".gif": "image/gif",- ".webp": "image/webp",- ".ico": "image/x-icon",- ".woff": "font/woff",- ".woff2": "font/woff2",- ".ttf": "font/ttf",- ".wasm": "application/wasm",- ".map": "application/json",- ".txt": "text/plain; charset=utf-8",- ".toml": "text/plain; charset=utf-8",-};--function isApiPath(pathname: string): boolean {- return API_PREFIXES.some(- (p) => pathname === p || pathname.startsWith(`${p}/`),- );-}--function clientFor(target: URL): typeof http | typeof https {- return target.protocol === "https:" ? https : http;-}--function proxyHttp(- req: http.IncomingMessage,- res: http.ServerResponse,- target: URL,- label: string,-): void {- const upstream = clientFor(target).request(- {- protocol: target.protocol,- hostname: target.hostname,- port: target.port,- path: req.url,- method: req.method,- headers: { ...req.headers, host: target.host },- },- (upRes) => {- res.writeHead(upRes.statusCode || 502, upRes.headers);- upRes.pipe(res);- },- );- upstream.on("error", (err: Error) => {- res.writeHead(502, { "Content-Type": "text/plain" });- res.end(`${label} not reachable at ${target.origin}: ${err.message}`);- });- req.pipe(upstream);-}--async function serveStatic(- distDir: string,- urlPath: string,- res: http.ServerResponse,-): Promise<void> {- const pathname = decodeURIComponent((urlPath.split("?")[0] || "/").trim());- const hasExtension = path.extname(pathname) !== "";- // Routes (no file extension) and "/" fall back to index.html so the SPA- // router can take over; real assets resolve to their file.- const candidate = hasExtension- ? path.join(distDir, pathname)- : path.join(distDir, "index.html");- const resolved = path.resolve(candidate);-- // Path-traversal guard.- if (resolved !== distDir && !resolved.startsWith(distDir + path.sep)) {- res.writeHead(403, { "Content-Type": "text/plain" });- res.end("Forbidden");- return;- }-- try {- const info = await stat(resolved);- if (!info.isFile()) throw new Error("not a file");- } catch {- res.writeHead(404, { "Content-Type": "text/plain" });- res.end(- hasExtension- ? "Not found"- : `index.html not found in ${distDir}. Did the build run? (task dev:portal:proxy builds first)`,- );- return;- }-- const ext = path.extname(resolved).toLowerCase();- res.writeHead(200, {- "Content-Type": MIME[ext] || "application/octet-stream",- "Cache-Control": "no-store",- });- createReadStream(resolved).pipe(res);-}--const server = http.createServer((req, res) => {- const pathname = (req.url || "/").split("?")[0];-- if (isApiPath(pathname)) {- proxyHttp(req, res, backend, "Backend");- return;- }- if (pathname === "/portal" || pathname.startsWith("/portal/")) {- if (portalDev) {- // Dev server is served under the /portal base, so keep the full path.- proxyHttp(req, res, portalDev, "Portal dev server");- } else {- const rest = (req.url || "").slice("/portal".length) || "/";- void serveStatic(PORTAL_DIST, rest, res);- }- return;- }- if (editorDev) {- proxyHttp(req, res, editorDev, "Editor dev server");- } else {- void serveStatic(EDITOR_DIST, req.url || "/", res);- }-});--// Forward websocket upgrades to the matching upstream. Backend streaming-// endpoints need /api; the dev servers' HMR sockets connect directly to their-// own ports, but routing them here too keeps things working if a browser sends-// them through the proxy.-function proxyUpgrade(- req: http.IncomingMessage,- socket: Duplex,- head: Buffer,- target: URL,-): void {- const upstream = clientFor(target).request({- protocol: target.protocol,- hostname: target.hostname,- port: target.port,- path: req.url,- method: req.method,- headers: { ...req.headers, host: target.host },- });- upstream.on("upgrade", (upRes, upSocket, upHead) => {- const headerLines = Object.entries(upRes.headers).map(- ([k, v]) => `${k}: ${v as string}`,- );- socket.write(- `HTTP/1.1 101 Switching Protocols\r\n${headerLines.join("\r\n")}\r\n\r\n`,- );- if (upHead && upHead.length) upSocket.unshift(upHead);- if (head && head.length) upSocket.write(head);- upSocket.pipe(socket);- socket.pipe(upSocket);- upSocket.on("error", () => socket.destroy());- socket.on("error", () => upSocket.destroy());- });- upstream.on("error", () => socket.destroy());- upstream.end();-}--server.on("upgrade", (req, socket, head) => {- const pathname = (req.url || "/").split("?")[0];- if (isApiPath(pathname)) {- proxyUpgrade(req, socket, head, backend);- } else if (- portalDev &&- (pathname === "/portal" || pathname.startsWith("/portal/"))- ) {- proxyUpgrade(req, socket, head, portalDev);- } else if (editorDev) {- proxyUpgrade(req, socket, head, editorDev);- } else {- socket.destroy();- }-});--server.listen(PORT, () => {- const editorSrc = editorDev ? `${editorDev.origin} (dev)` : EDITOR_DIST;- const portalSrc = portalDev ? `${portalDev.origin} (dev)` : PORTAL_DIST;- console.log("");- console.log(" Unified-auth single-origin server");- console.log(` ▶ open http://localhost:${PORT}/ (editor)`);- console.log(` ▶ open http://localhost:${PORT}/portal (portal)`);- console.log(` ▶ backend ${BACKEND_URL} (proxying /api, /oauth2, /saml2)`);- console.log(` ▶ editor ${editorSrc}`);- console.log(` ▶ portal ${portalSrc}`);- console.log(- " Log into one, open the other - the stirling_jwt token is shared (same origin).",- );- console.log("");-});diff --git a/frontend/scripts/tsconfig.json b/frontend/scripts/tsconfig.jsondeleted file mode 100644index b5f1184159..0000000000--- a/frontend/scripts/tsconfig.json+++ /dev/null@@ -1,15 +0,0 @@-{- "compilerOptions": {- "target": "es2022",- "lib": ["es2022"],- "module": "esnext",- "moduleResolution": "bundler",- "types": ["node"],- "strict": true,- "esModuleInterop": true,- "skipLibCheck": true,- "forceConsistentCasingInFileNames": true,- "noEmit": true- },- "include": ["./**/*.ts", "./**/*.mts"]-}diff --git a/frontend/shared/assets/brand/modern-logo/favicon.ico b/frontend/shared/assets/brand/modern-logo/favicon.icodeleted file mode 100644index 6d6c8521c1..0000000000Binary files a/frontend/shared/assets/brand/modern-logo/favicon.ico and /dev/null differdiff --git a/frontend/shared/components/index.ts b/frontend/shared/components/index.tsdeleted file mode 100644index 0416614d97..0000000000--- a/frontend/shared/components/index.ts+++ /dev/null@@ -1,43 +0,0 @@-export * from "@shared/components/Button";-export * from "@shared/components/StatusBadge";-export * from "@shared/components/MethodBadge";-export * from "@shared/components/ToggleSwitch";-export * from "@shared/components/ProgressBar";-export * from "@shared/components/MetricCard";-export * from "@shared/components/NavItem";-export * from "@shared/components/PanelHeader";-export * from "@shared/components/CodeBlock";-export * from "@shared/components/SectionDivider";-export * from "@shared/components/Card";-export * from "@shared/components/Modal";-export * from "@shared/components/SettingsShell";--// Layout-export * from "@shared/components/Stack";-export * from "@shared/components/Inline";-export * from "@shared/components/MetricStrip";-export * from "@shared/components/StatTile";--// Feedback-export * from "@shared/components/Spinner";-export * from "@shared/components/Skeleton";-export * from "@shared/components/Avatar";-export * from "@shared/components/Chip";-export * from "@shared/components/EmptyState";-export * from "@shared/components/Banner";-export * from "@shared/components/Toast";--// Compound-export * from "@shared/components/Collapsible";-export * from "@shared/components/Tabs";-export * from "@shared/components/Dropdown";-export * from "@shared/components/Drawer";-export * from "@shared/components/Table";--// Forms-export * from "@shared/components/FormField";-export * from "@shared/components/Input";-export * from "@shared/components/Select";-export * from "@shared/components/Checkbox";-export * from "@shared/components/Radio";-export * from "@shared/components/Slider";diff --git a/frontend/shared/tsconfig.json b/frontend/shared/tsconfig.jsondeleted file mode 100644index e06bcd9b9d..0000000000--- a/frontend/shared/tsconfig.json+++ /dev/null@@ -1,17 +0,0 @@-{- "compilerOptions": {- "target": "es2022",- "jsx": "react-jsx",- "module": "esnext",- "moduleResolution": "bundler",- "paths": {- "@shared/*": ["./*"]- },- "resolveJsonModule": true,- "esModuleInterop": true,- "forceConsistentCasingInFileNames": true,- "strict": true,- "skipLibCheck": true- },- "include": ["**/*.ts", "**/*.tsx"]-}diff --git a/frontend/shared/vite-env.d.ts b/frontend/shared/vite-env.d.tsdeleted file mode 100644index cde860e1ea..0000000000--- a/frontend/shared/vite-env.d.ts+++ /dev/null@@ -1,13 +0,0 @@-declare module "*.css" {- // Default export is the CSS-module class map; side-effect imports ignore it.- const classes: { readonly [key: string]: string };- export default classes;-}-declare module "*.svg" {- const src: string;- export default src;-}-declare module "*.png" {- const src: string;- export default src;-}