#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
Remove the Editor deployment admin page at /processor/editor (#7859)
Anthony Stirling20819855d07f
diff --git a/frontend/editor/public/locales/en-US/translation.toml b/frontend/editor/public/locales/en-US/translation.tomlindex 0225fbb3a6..a077c52161 100644--- a/frontend/editor/public/locales/en-US/translation.toml+++ b/frontend/editor/public/locales/en-US/translation.toml@@ -8032,86 +8032,6 @@ status = "Status"time = "Time"user = "User"-[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"-target = "Target"-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.status]-degraded = "Degraded"-healthy = "Healthy"-offline = "Offline"-pairing = "Pairing"--[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"@@ -8249,7 +8169,6 @@ evening = "Good evening"morning = "Good morning"[portal.infrastructure]-manageEditorDeployment = "Manage Editor deployment"sectionsAriaLabel = "Infrastructure sections"subtitle = "API credentials and the audit trail for your Stirling workspace."title = "Infrastructure"diff --git a/frontend/editor/src/core/i18n/translationAudit.ts b/frontend/editor/src/core/i18n/translationAudit.tsindex 5d7ffd7a38..0f04e150ee 100644--- a/frontend/editor/src/core/i18n/translationAudit.ts+++ b/frontend/editor/src/core/i18n/translationAudit.ts@@ -98,7 +98,6 @@ export const I18N_PROJECTS: TranslationProject[] = [// (label maps, role/policy/journey catalogues) and rendered via// t(constant), invisible to the static scan./^portal\.documents\.(status|audit)\./,- /^portal\.editorAdmin\.status\./,/^portal\.components\.(maturity|billingUnit)\./,/^portal\.home\.(pipelineTemplates|pipelineStages)\./,/^portal\.procurement\.journeySteps\./,diff --git a/frontend/editor/src/portal-saas/views/Infrastructure.test.tsx b/frontend/editor/src/portal-saas/views/Infrastructure.test.tsxindex 205c9b170c..4d6be47ae0 100644--- a/frontend/editor/src/portal-saas/views/Infrastructure.test.tsx+++ b/frontend/editor/src/portal-saas/views/Infrastructure.test.tsx@@ -29,12 +29,9 @@ describe("Infrastructure (SaaS)", () => {enterprise.loading = false;});- it("defaults to the live API keys tab and drops the manage-editor button", () => {+ it("defaults to the live API keys tab", () => {render(<Infrastructure />);expect(screen.getByTestId("api-keys-tab")).toBeInTheDocument();- expect(- screen.queryByText("portal.infrastructure.manageEditorDeployment"),- ).not.toBeInTheDocument();});it("renders the not-yet-shipped tabs as disabled 'coming soon'", () => {diff --git a/frontend/editor/src/portal-saas/views/Infrastructure.tsx b/frontend/editor/src/portal-saas/views/Infrastructure.tsxindex 66204db202..b0c3f316fd 100644--- a/frontend/editor/src/portal-saas/views/Infrastructure.tsx+++ b/frontend/editor/src/portal-saas/views/Infrastructure.tsx@@ -8,8 +8,7 @@ import "@portal/views/Infrastructure.css";// SaaS pre-release: only API keys + Audit are shipped. Deployments, Security,// Models and Storage are shown as disabled "coming soon" tabs (greyed, to the-// right of the live ones), and the self-hosted-only "Manage editor deployment"-// header button is dropped. Selection is never one of the coming-soon keys — the+// right of the live ones). Selection is never one of the coming-soon keys — the// Tabs primitive renders them as native-disabled buttons, so onChange can't fire.type InfraTab =| "api-keys"diff --git a/frontend/editor/src/portal/ViewRouter.tsx b/frontend/editor/src/portal/ViewRouter.tsxindex cd54ead740..9db3c91e07 100644--- a/frontend/editor/src/portal/ViewRouter.tsx+++ b/frontend/editor/src/portal/ViewRouter.tsx@@ -7,7 +7,6 @@ import { Pipelines } from "@portal/views/Pipelines";import { PipelineBuilder } from "@portal/views/PipelineBuilder";import { Sources } from "@portal/views/Sources";import { Integrations } from "@portal/views/Integrations";-import { EditorAdmin } from "@portal/views/EditorAdmin";import { Infrastructure } from "@portal/views/Infrastructure";import { PortalBillingGate } from "@portal/components/billing/PortalBillingGate";import { ConnectGuardedRoute } from "@portal/components/account-link/ConnectGuardedRoute";@@ -79,7 +78,6 @@ export function ViewRouter() {path working, preserving its query (e.g. onboarding's ?setup=<category>). */}<Route path={rel(VIEW_PATHS.policies)} element={<PoliciesRedirect />} /><Route path={rel(VIEW_PATHS.documents)} element={<Documents />} />- <Route path={rel(VIEW_PATHS.editor)} element={<EditorAdmin />} /><Routepath={rel(VIEW_PATHS.infrastructure)}element={<Infrastructure />}diff --git a/frontend/editor/src/portal/api/editorDeploy.ts b/frontend/editor/src/portal/api/editorDeploy.tsindex e90cac89c3..5a7df2530e 100644--- a/frontend/editor/src/portal/api/editorDeploy.ts+++ b/frontend/editor/src/portal/api/editorDeploy.ts@@ -114,38 +114,6 @@ export interface EditorDeploymentResponse {instances: EditorInstance[];}-/* ──────────────────────────────────────────────────────────────────────── */-/* Presentation metadata (lives client-side — product copy, not data) */-/* ──────────────────────────────────────────────────────────────────────── */--export interface TargetMeta {- tone: "neutral" | "blue" | "purple";-}--export const TARGET_META: Record<TargetKind, TargetMeta> = {- cloud: { tone: "blue" },- docker: { tone: "neutral" },- kubernetes: { tone: "purple" },-};--export const INSTANCE_STATUS_TONE: Record<- InstanceStatus,- "success" | "warning" | "danger" | "info" | "neutral"-> = {- healthy: "success",- degraded: "warning",- offline: "danger",- pairing: "info",-};--/** Values are i18n keys — render with t(). */-export const INSTANCE_STATUS_LABEL: Record<InstanceStatus, string> = {- healthy: "portal.editorAdmin.status.healthy",- degraded: "portal.editorAdmin.status.degraded",- offline: "portal.editorAdmin.status.offline",- pairing: "portal.editorAdmin.status.pairing",-};-/* ──────────────────────────────────────────────────────────────────────── *//* Endpoints *//* ──────────────────────────────────────────────────────────────────────── */diff --git a/frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.stories.tsx b/frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.stories.tsxdeleted file mode 100644index 29bcdeeb2d..0000000000--- a/frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.stories.tsx+++ /dev/null@@ -1,37 +0,0 @@-import type { Meta, StoryObj } from "@storybook/react-vite";-import { CredentialRotationCard } from "@portal/components/editor-admin/CredentialRotationCard";-import "@portal/views/EditorAdmin.css";--const meta: Meta<typeof CredentialRotationCard> = {- title: "Portal/EditorAdmin/CredentialRotationCard",- component: CredentialRotationCard,- parameters: { layout: "padded" },- decorators: [- (S) => (- <div style={{ maxWidth: "40rem" }}>- <S />- </div>- ),- ],-};-export default meta;-type Story = StoryObj<typeof CredentialRotationCard>;--export const Default: Story = {- args: {- serviceToken: {- masked: "svc_live_••••••••••••7b21",- lastRotated: "34 days ago",- },- },-};--/** Press "Rotate" in the story to see the post-rotation warning banner. */-export const RecentlyRotated: Story = {- args: {- serviceToken: {- masked: "svc_live_••••••••••••7b21",- lastRotated: "2 days ago",- },- },-};diff --git a/frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.tsx b/frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.tsxdeleted file mode 100644index c4e80c1db1..0000000000--- a/frontend/editor/src/portal/components/editor-admin/CredentialRotationCard.tsx+++ /dev/null@@ -1,77 +0,0 @@-import { useState } from "react";-import { useTranslation } from "react-i18next";-import { Banner, Button, Card, StatTile } from "@app/ui";-import type { DeploymentSummary } from "@portal/api/editorDeploy";--interface Props {- serviceToken: DeploymentSummary["serviceToken"];-}--/**- * Rotation control for the deployment's service token — the credential- * instances use to authenticate back to the org. Rotation is a demo shell:- * it flashes a warning that running instances must pick up the new value, but- * there's no submit endpoint yet.- */-export function CredentialRotationCard({ serviceToken }: Props) {- const { t } = useTranslation();- const [rotating, setRotating] = useState(false);- const [rotated, setRotated] = useState(false);-- function rotate() {- // TODO(backend): POST /v1/editor/deployment/rotate → mints a new service- // token and revokes the old one after a grace window.- setRotating(true);- setTimeout(() => {- setRotating(false);- setRotated(true);- }, 700);- }-- return (- <Card padding="default" className="portal-editor__panel">- <div className="portal-editor__panel-head">- <div>- <h3 className="portal-editor__panel-title">- {t("portal.editorAdmin.serviceToken.title")}- </h3>- <p className="portal-editor__panel-sub">- {t("portal.editorAdmin.serviceToken.subtitle")}- </p>- </div>- </div>-- <div className="portal-editor__token-row">- <StatTile- label={t("portal.editorAdmin.serviceToken.currentToken")}- value={serviceToken.masked}- />- <StatTile- label={t("portal.editorAdmin.serviceToken.lastRotated")}- value={serviceToken.lastRotated}- />- </div>-- {rotated && (- <Banner- tone="warning"- title={t("portal.editorAdmin.serviceToken.rotatedBanner.title")}- description={t(- "portal.editorAdmin.serviceToken.rotatedBanner.description",- )}- />- )}-- <div className="portal-editor__panel-actions">- <Button- variant="secondary"- accent="warning"- loading={rotating}- onClick={rotate}- >- {t("portal.editorAdmin.serviceToken.rotateButton")}- </Button>- </div>- </Card>- );-}diff --git a/frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.stories.tsx b/frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.stories.tsxdeleted file mode 100644index 1dd63dc0a2..0000000000--- a/frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.stories.tsx+++ /dev/null@@ -1,24 +0,0 @@-import type { Meta, StoryObj } from "@storybook/react-vite";-import { buildEditorDeploymentResponse } from "@portal/mocks/editorDeploy";-import { DeploymentSummaryStrip } from "@portal/components/editor-admin/DeploymentSummaryStrip";-import "@portal/views/EditorAdmin.css";--const meta: Meta<typeof DeploymentSummaryStrip> = {- title: "Portal/EditorAdmin/DeploymentSummaryStrip",- component: DeploymentSummaryStrip,- parameters: { layout: "padded" },-};-export default meta;-type Story = StoryObj<typeof DeploymentSummaryStrip>;--export const Pro: Story = {- args: { summary: buildEditorDeploymentResponse("pro").summary },-};--export const Enterprise: Story = {- args: { summary: buildEditorDeploymentResponse("enterprise").summary },-};--export const Loading: Story = {- args: { loading: true },-};diff --git a/frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.tsx b/frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.tsxdeleted file mode 100644index 2a23b4992a..0000000000--- a/frontend/editor/src/portal/components/editor-admin/DeploymentSummaryStrip.tsx+++ /dev/null@@ -1,36 +0,0 @@-import { MetricCard, MetricStrip, Skeleton } from "@app/ui";-import { EditorIcon } from "@portal/components/icons";-import type { DeploymentSummary } from "@portal/api/editorDeploy";--interface Props {- summary?: DeploymentSummary;- loading?: boolean;-}--/** Top-of-page metric strip summarising the org's Editor deployment health. */-export function DeploymentSummaryStrip({ summary, loading }: Props) {- if (loading || !summary) {- return (- <MetricStrip layout="row" leading={<EditorIcon size={22} />}>- {Array.from({ length: 4 }).map((_, i) => (- <Skeleton key={i} width="5rem" height="2rem" />- ))}- </MetricStrip>- );- }-- return (- <MetricStrip layout="row" leading={<EditorIcon size={22} />}>- {summary.metrics.map((m) => (- <MetricCard- key={m.label}- label={m.label}- value={m.value}- delta={m.delta}- deltaDirection={m.deltaDirection}- description={m.description}- />- ))}- </MetricStrip>- );-}diff --git a/frontend/editor/src/portal/components/editor-admin/DeploymentTargets.stories.tsx b/frontend/editor/src/portal/components/editor-admin/DeploymentTargets.stories.tsxdeleted file mode 100644index 68383a2e82..0000000000--- a/frontend/editor/src/portal/components/editor-admin/DeploymentTargets.stories.tsx+++ /dev/null@@ -1,48 +0,0 @@-import type { Meta, StoryObj } from "@storybook/react-vite";-import { buildEditorDeploymentResponse } from "@portal/mocks/editorDeploy";-import { TierProvider } from "@portal/contexts/TierContext";-import { DeploymentTargets } from "@portal/components/editor-admin/DeploymentTargets";-import "@portal/views/EditorAdmin.css";--const meta: Meta<typeof DeploymentTargets> = {- title: "Portal/EditorAdmin/DeploymentTargets",- component: DeploymentTargets,- parameters: { layout: "padded" },-};-export default meta;-type Story = StoryObj<typeof DeploymentTargets>;--/** Free: only Managed Cloud runs; Docker + K8s are locked behind a paywall. */-export const Free: Story = {- args: { targets: buildEditorDeploymentResponse("free").targets },- decorators: [- (S) => (- <TierProvider initialTier="free">- <S />- </TierProvider>- ),- ],-};--/** Pro: Docker running, Kubernetes available but not yet deployed. */-export const Pro: Story = {- args: { targets: buildEditorDeploymentResponse("pro").targets },- decorators: [- (S) => (- <TierProvider initialTier="pro">- <S />- </TierProvider>- ),- ],-};--export const Enterprise: Story = {- args: { targets: buildEditorDeploymentResponse("enterprise").targets },- decorators: [- (S) => (- <TierProvider initialTier="enterprise">- <S />- </TierProvider>- ),- ],-};diff --git a/frontend/editor/src/portal/components/editor-admin/DeploymentTargets.tsx b/frontend/editor/src/portal/components/editor-admin/DeploymentTargets.tsxdeleted file mode 100644index 0d97441f3c..0000000000--- a/frontend/editor/src/portal/components/editor-admin/DeploymentTargets.tsx+++ /dev/null@@ -1,114 +0,0 @@-import { useTranslation } from "react-i18next";-import CloudQueueRounded from "@mui/icons-material/CloudQueueRounded";-import HubRounded from "@mui/icons-material/HubRounded";-import Inventory2Rounded from "@mui/icons-material/Inventory2Rounded";-import { Button, Card, CodeBlock, StatusBadge } from "@app/ui";-import {- TARGET_META,- type DeploymentTarget,- type TargetKind,-} from "@portal/api/editorDeploy";-import { useTier } from "@portal/contexts/TierContext";--const TARGET_ICON: Record<TargetKind, typeof CloudQueueRounded> = {- cloud: CloudQueueRounded,- docker: Inventory2Rounded,- kubernetes: HubRounded,-};--const STATE_BADGE_TONE: Record<- DeploymentTarget["state"],- "success" | "info" | "neutral"-> = {- running: "success",- available: "info",- locked: "neutral",-};--interface Props {- targets: DeploymentTarget[];- /** Invoked from a locked target's upgrade nudge. */- onUpgrade?: () => void;-}--/**- * The three deployment targets (Managed Cloud / Docker / Kubernetes). Unlocked- * targets show their install/run snippet; locked ones swap it for an upgrade- * nudge so the value of the higher tier is visible inline.- */-export function DeploymentTargets({ targets, onUpgrade }: Props) {- const { t } = useTranslation();- const { tier } = useTier();-- const lockCopy = (target: DeploymentTarget): string =>- target.requiresTier === "enterprise"- ? t("portal.editorAdmin.targets.lock.enterprise")- : t("portal.editorAdmin.targets.lock.paid");-- return (- <div className="portal-editor__targets">- {targets.map((target) => {- const meta = TARGET_META[target.kind];- const Icon = TARGET_ICON[target.kind];- const locked = target.state === "locked";- return (- <Card- key={target.kind}- padding="default"- className="portal-editor__target"- >- <div className="portal-editor__target-head">- <span- className={`portal-editor__target-icon portal-editor__target-icon--${meta.tone}`}- aria-hidden- >- <Icon style={{ fontSize: "1.2rem" }} />- </span>- <div className="portal-editor__target-titles">- <h3 className="portal-editor__target-name">{target.label}</h3>- <p className="portal-editor__target-tagline">- {target.tagline}- </p>- </div>- <StatusBadge tone={STATE_BADGE_TONE[target.state]} size="sm">- {t(`portal.editorAdmin.targets.state.${target.state}`)}- </StatusBadge>- </div>-- {target.state === "running" && (- <p className="portal-editor__target-meta">- v{target.runningVersion} ·{" "}- {t("portal.editorAdmin.targets.instanceCount", {- count: target.instanceCount,- })}- </p>- )}-- {locked ? (- <div className="portal-editor__lock">- <p className="portal-editor__lock-copy">{lockCopy(target)}</p>- <Button- size="sm"- variant="secondary"- onClick={onUpgrade}- disabled={tier === "enterprise"}- >- {target.requiresTier === "enterprise"- ? t("portal.editorAdmin.targets.talkToSales")- : t("portal.editorAdmin.targets.upgradePlan")}- </Button>- </div>- ) : (- <CodeBlock- code={target.snippet}- lang={target.snippetLang}- caption={target.label}- maxHeight={180}- />- )}- </Card>- );- })}- </div>- );-}diff --git a/frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.stories.tsx b/frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.stories.tsxdeleted file mode 100644index 940cac5eb0..0000000000--- a/frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.stories.tsx+++ /dev/null@@ -1,26 +0,0 @@-import type { Meta, StoryObj } from "@storybook/react-vite";-import { buildEditorDeploymentResponse } from "@portal/mocks/editorDeploy";-import { InstanceHealthTable } from "@portal/components/editor-admin/InstanceHealthTable";-import "@portal/views/EditorAdmin.css";--const meta: Meta<typeof InstanceHealthTable> = {- title: "Portal/EditorAdmin/InstanceHealthTable",- component: InstanceHealthTable,- parameters: { layout: "padded" },-};-export default meta;-type Story = StoryObj<typeof InstanceHealthTable>;--/** Pro: Managed Cloud + two Docker edge nodes, one on a stale version. */-export const Pro: Story = {- args: { instances: buildEditorDeploymentResponse("pro").instances },-};--/** Enterprise: adds the K8s fleet and an offline air-gapped node. */-export const Enterprise: Story = {- args: { instances: buildEditorDeploymentResponse("enterprise").instances },-};--export const Empty: Story = {- args: { instances: [] },-};diff --git a/frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.tsx b/frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.tsxdeleted file mode 100644index 28a220eb81..0000000000--- a/frontend/editor/src/portal/components/editor-admin/InstanceHealthTable.tsx+++ /dev/null@@ -1,85 +0,0 @@-import { useTranslation } from "react-i18next";-import { column, DataTable, type DataTableColumn, EmptyState } from "@app/ui";-import {- INSTANCE_STATUS_LABEL,- INSTANCE_STATUS_TONE,- type EditorInstance,-} from "@portal/api/editorDeploy";--// Deployment target names are product/brand terms, not localised.-const TARGET_LABEL: Record<EditorInstance["target"], string> = {- cloud: "Cloud",- docker: "Docker",- kubernetes: "K8s",-};--interface Props {- instances: EditorInstance[];-}--/** Live health for every Editor instance reporting in to the org. */-export function InstanceHealthTable({ instances }: Props) {- const { t } = useTranslation();-- const cols: DataTableColumn<EditorInstance>[] = [- column.entity({- key: "host",- header: t("portal.editorAdmin.health.columns.host"),- sortable: true,- primary: (i) => i.host,- }),- column.text({- key: "target",- header: t("portal.editorAdmin.health.columns.target", "Target"),- sortable: true,- get: (i) => TARGET_LABEL[i.target],- }),- column.mono({- key: "version",- header: t("portal.editorAdmin.health.columns.version"),- sortable: true,- get: (i) => i.version,- }),- column.mono({- key: "region",- header: t("portal.editorAdmin.health.columns.region"),- sortable: true,- get: (i) => i.region,- }),- column.badge({- key: "status",- header: t("portal.editorAdmin.health.columns.status"),- sortable: true,- get: (i) => ({- tone: INSTANCE_STATUS_TONE[i.status],- label: t(INSTANCE_STATUS_LABEL[i.status]),- }),- }),- column.muted({- key: "lastSeen",- header: t("portal.editorAdmin.health.columns.lastSeen"),- get: (i) => i.lastSeen,- }),- column.number({- key: "activeUsers",- header: t("portal.editorAdmin.health.columns.activeUsers"),- sortable: true,- get: (i) => i.activeUsers,- }),- ];-- return (- <DataTable<EditorInstance>- columns={cols}- rows={instances}- rowKey={(i) => i.id}- empty={- <EmptyState- size="compact"- title={t("portal.editorAdmin.health.empty.title")}- description={t("portal.editorAdmin.health.empty.description")}- />- }- />- );-}diff --git a/frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.stories.tsx b/frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.stories.tsxdeleted file mode 100644index 4f2f94bfb7..0000000000--- a/frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.stories.tsx+++ /dev/null@@ -1,28 +0,0 @@-import type { Meta, StoryObj } from "@storybook/react-vite";-import { OfflineActivationCard } from "@portal/components/editor-admin/OfflineActivationCard";-import "@portal/views/EditorAdmin.css";--const meta: Meta<typeof OfflineActivationCard> = {- title: "Portal/EditorAdmin/OfflineActivationCard",- component: OfflineActivationCard,- parameters: { layout: "padded" },- decorators: [- (S) => (- <div style={{ maxWidth: "40rem" }}>- <S />- </div>- ),- ],-};-export default meta;-type Story = StoryObj<typeof OfflineActivationCard>;--/** Enterprise: bundle generation is live. */-export const Available: Story = {- args: { available: true },-};--/** Free / Pro: locked behind an upgrade nudge. */-export const Locked: Story = {- args: { available: false },-};diff --git a/frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.tsx b/frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.tsxdeleted file mode 100644index ff780ea516..0000000000--- a/frontend/editor/src/portal/components/editor-admin/OfflineActivationCard.tsx+++ /dev/null@@ -1,90 +0,0 @@-import { useState } from "react";-import { useTranslation } from "react-i18next";-import { Banner, Button, Card } from "@app/ui";--interface Props {- /** Enterprise-only. When false the card renders an upgrade nudge. */- available: boolean;- onUpgrade?: () => void;-}--/**- * Air-gapped / offline activation. Networks with no outbound path can't pair- * live, so this generates a signed activation bundle to carry in by hand.- * Enterprise-only; lower tiers see an upgrade nudge. Generation is a demo- * shell with no submit endpoint yet.- */-export function OfflineActivationCard({ available, onUpgrade }: Props) {- const { t } = useTranslation();- const [generating, setGenerating] = useState(false);- const [generated, setGenerated] = useState(false);-- function generate() {- // TODO(backend): POST /v1/editor/deployment/offline-bundle → streams a- // signed .stirlingpkg activation bundle for an air-gapped install.- setGenerating(true);- setTimeout(() => {- setGenerating(false);- setGenerated(true);- }, 900);- }-- return (- <Card padding="default" accent="premium" className="portal-editor__panel">- <div className="portal-editor__panel-head">- <div>- <h3 className="portal-editor__panel-title">- {t("portal.editorAdmin.offlineActivation.title")}- <span className="portal-editor__enterprise-tag">- {t("portal.editorAdmin.offlineActivation.enterpriseTag")}- </span>- </h3>- <p className="portal-editor__panel-sub">- {t("portal.editorAdmin.offlineActivation.subtitle")}- </p>- </div>- </div>-- {!available ? (- <div className="portal-editor__lock">- <p className="portal-editor__lock-copy">- {t("portal.editorAdmin.offlineActivation.lockCopy")}- </p>- <Button- variant="secondary"- accent="premium"- size="sm"- onClick={onUpgrade}- >- {t("portal.editorAdmin.offlineActivation.talkToSales")}- </Button>- </div>- ) : (- <>- {generated && (- <Banner- tone="success"- title={t(- "portal.editorAdmin.offlineActivation.readyBanner.title",- )}- description={t(- "portal.editorAdmin.offlineActivation.readyBanner.description",- { file: "activation-acme-3.2.1.stirlingpkg" },- )}- />- )}- <div className="portal-editor__panel-actions">- <Button- variant="secondary"- accent="premium"- loading={generating}- onClick={generate}- >- {t("portal.editorAdmin.offlineActivation.generateButton")}- </Button>- </div>- </>- )}- </Card>- );-}diff --git a/frontend/editor/src/portal/components/editor-admin/PairingPanel.stories.tsx b/frontend/editor/src/portal/components/editor-admin/PairingPanel.stories.tsxdeleted file mode 100644index fce1446e97..0000000000--- a/frontend/editor/src/portal/components/editor-admin/PairingPanel.stories.tsx+++ /dev/null@@ -1,22 +0,0 @@-import type { Meta, StoryObj } from "@storybook/react-vite";-import { buildEditorDeploymentResponse } from "@portal/mocks/editorDeploy";-import { PairingPanel } from "@portal/components/editor-admin/PairingPanel";-import "@portal/views/EditorAdmin.css";--const meta: Meta<typeof PairingPanel> = {- title: "Portal/EditorAdmin/PairingPanel",- component: PairingPanel,- parameters: { layout: "padded" },-};-export default meta;-type Story = StoryObj<typeof PairingPanel>;--/** Pro: token + short code usable, IaC locked behind Enterprise. */-export const Pro: Story = {- args: { pairings: buildEditorDeploymentResponse("pro").pairings },-};--/** Enterprise: all three methods unlocked, including the IaC module snippet. */-export const Enterprise: Story = {- args: { pairings: buildEditorDeploymentResponse("enterprise").pairings },-};diff --git a/frontend/editor/src/portal/components/editor-admin/PairingPanel.tsx b/frontend/editor/src/portal/components/editor-admin/PairingPanel.tsxdeleted file mode 100644index ea14ffd669..0000000000--- a/frontend/editor/src/portal/components/editor-admin/PairingPanel.tsx+++ /dev/null@@ -1,116 +0,0 @@-import { useState } from "react";-import { useTranslation } from "react-i18next";-import CastRounded from "@mui/icons-material/CastRounded";-import TerminalRounded from "@mui/icons-material/TerminalRounded";-import VpnKeyRounded from "@mui/icons-material/VpnKeyRounded";-import { Button, Card, Chip, CodeBlock } from "@app/ui";-import type { PairingMethod, PairingOption } from "@portal/api/editorDeploy";--const METHOD_ICON: Record<PairingMethod, typeof VpnKeyRounded> = {- token: VpnKeyRounded,- shortcode: CastRounded,- iac: TerminalRounded,-};--const METHOD_TONE: Record<PairingMethod, "blue" | "purple" | "green"> = {- token: "blue",- shortcode: "purple",- iac: "green",-};--interface Props {- pairings: PairingOption[];- onUpgrade?: () => void;-}--/**- * Pairing options for connecting a self-hosted editor to the org — a long-lived- * pairing token, a TV-style short code, and IaC provisioning. The- * generate/rotate affordance is a demo shell: it shows transient feedback but- * has no submit endpoint yet.- */-export function PairingPanel({ pairings, onUpgrade }: Props) {- const { t } = useTranslation();- // Tracks which option just got a (mock) rotate so we can flash confirmation.- const [rotated, setRotated] = useState<PairingMethod | null>(null);-- function rotate(method: PairingMethod) {- // TODO(backend): POST /v1/editor/pairings { method } → returns a freshly- // minted token / short code / IaC reference.- setRotated(method);- setTimeout(() => setRotated((m) => (m === method ? null : m)), 1800);- }-- return (- <div className="portal-editor__pairings">- {pairings.map((p) => {- const isCode = p.method === "iac";- const Icon = METHOD_ICON[p.method];- return (- <Card- key={p.method}- padding="default"- className="portal-editor__pairing"- >- <div className="portal-editor__pairing-head">- <span- className={`portal-editor__pairing-icon portal-editor__pairing-icon--${METHOD_TONE[p.method]}`}- aria-hidden- >- <Icon style={{ fontSize: "1.2rem" }} />- </span>- <div className="portal-editor__pairing-titles">- <h3 className="portal-editor__pairing-name">{p.label}</h3>- <p className="portal-editor__pairing-desc">{p.description}</p>- </div>- </div>-- {p.locked ? (- <div className="portal-editor__lock">- <p className="portal-editor__lock-copy">- {t("portal.editorAdmin.pairing.lockCopy")}- </p>- <Button- size="sm"- variant="secondary"- accent="premium"- onClick={onUpgrade}- >- {t("portal.editorAdmin.pairing.talkToSales")}- </Button>- </div>- ) : (- <>- {isCode ? (- <CodeBlock code={p.value} lang="plain" maxHeight={80} />- ) : (- <div className="portal-editor__pairing-value">- <code>{p.value}</code>- </div>- )}- <div className="portal-editor__pairing-foot">- {p.expires && (- <Chip size="sm" accent="neutral">- {p.expires}- </Chip>- )}- <Button- size="sm"- variant="secondary"- onClick={() => rotate(p.method)}- >- {rotated === p.method- ? t("portal.editorAdmin.pairing.generated")- : p.method === "shortcode"- ? t("portal.editorAdmin.pairing.generateNewCode")- : t("portal.editorAdmin.pairing.rotate")}- </Button>- </div>- </>- )}- </Card>- );- })}- </div>- );-}diff --git a/frontend/editor/src/portal/contexts/ViewContext.tsx b/frontend/editor/src/portal/contexts/ViewContext.tsxindex f622eda6b6..9da2d1517c 100644--- a/frontend/editor/src/portal/contexts/ViewContext.tsx+++ b/frontend/editor/src/portal/contexts/ViewContext.tsx@@ -4,7 +4,6 @@ import { PORTAL_BASENAME } from "@app/routes/portalBasename";export type ViewId =| "home"- | "editor"| "users"| "sources"| "integrations"@@ -18,7 +17,6 @@ export type ViewId =export const VIEW_PATHS: Record<ViewId, string> = {home: "/",- editor: "/editor",users: "/users",sources: "/sources",integrations: "/integrations",diff --git a/frontend/editor/src/portal/queries/infrastructure.ts b/frontend/editor/src/portal/queries/infrastructure.tsindex 40e0e829cd..c70763598b 100644--- a/frontend/editor/src/portal/queries/infrastructure.ts+++ b/frontend/editor/src/portal/queries/infrastructure.ts@@ -33,9 +33,9 @@ export function useAuditLog(tier: Tier): AsyncState<AuditLogResponse> {);}-/** Base query: editor deployment health (tier-scoped). Shared by Home's hero /- * status card, EditorAdmin, and onboarding. Best-effort — callers tolerate a- * 404 on a bare backend, so no retry. */+/** Base query: editor deployment health (tier-scoped). Read by Home's hero+ * status card. Best-effort — callers tolerate a 404 on a bare backend, so no+ * retry. */export function useEditorDeployment(tier: Tier,): AsyncState<EditorDeploymentResponse> {diff --git a/frontend/editor/src/portal/views/EditorAdmin.css b/frontend/editor/src/portal/views/EditorAdmin.cssdeleted file mode 100644index 34aa81d69f..0000000000--- a/frontend/editor/src/portal/views/EditorAdmin.css+++ /dev/null@@ -1,352 +0,0 @@-.portal-editor {- display: flex;- flex-direction: column;- gap: 1.5rem;- padding: 1.5rem;- max-width: 84rem;- margin: 0 auto;-}--/* Header */-.portal-editor__head {- display: flex;- align-items: flex-start;- justify-content: space-between;- gap: 1rem;-}--.portal-editor__title {- margin: 0;- font-size: 1.375rem;- font-weight: 650;- color: var(--c-text);-}--.portal-editor__sub {- margin: 0.25rem 0 0;- font-size: 0.8125rem;- line-height: 1.5;- color: var(--c-text-subtle);- max-width: 52rem;-}--/* Section headings */-.portal-editor__section-head {- margin-bottom: 0.875rem;-}--.portal-editor__section-title {- margin: 0;- font-size: 1rem;- font-weight: 600;- color: var(--c-text);-}--.portal-editor__section-sub {- margin: 0.1875rem 0 0;- font-size: 0.8125rem;- line-height: 1.5;- color: var(--c-text-subtle);- max-width: 52rem;-}--/* ──────────────────────────────────────────────────────────────────────── */-/* Deployment targets */-/* ──────────────────────────────────────────────────────────────────────── */--.portal-editor__targets {- display: grid;- grid-template-columns: repeat(3, 1fr);- gap: 1rem;- align-items: start;-}--@media (max-width: 64rem) {- .portal-editor__targets {- grid-template-columns: 1fr;- }-}--.portal-editor__target {- display: flex;- flex-direction: column;- gap: 0.875rem;-}--.portal-editor__target-head {- display: flex;- align-items: flex-start;- gap: 0.625rem;-}--.portal-editor__target-icon {- display: inline-flex;- align-items: center;- justify-content: center;- width: 2rem;- height: 2rem;- flex-shrink: 0;- border-radius: var(--radius-md);- font-size: 1rem;-}--.portal-editor__target-icon--neutral {- background: var(--color-bg-subtle);- color: var(--c-text-subtle);-}-.portal-editor__target-icon--blue {- background: var(--c-primary-tint);- color: var(--c-accent-text);-}-.portal-editor__target-icon--purple {- background: var(--color-purple-light);- color: var(--color-purple-dark);-}--.portal-editor__target-titles {- flex: 1;- min-width: 0;-}--.portal-editor__target-name {- margin: 0;- font-size: 0.9375rem;- font-weight: 600;- color: var(--c-text);-}--.portal-editor__target-tagline {- margin: 0.1875rem 0 0;- font-size: 0.75rem;- line-height: 1.45;- color: var(--c-text-subtle);-}--.portal-editor__target-meta {- margin: 0;- font-size: 0.75rem;- font-family: var(--font-mono);- color: var(--c-text-subtle);-}--/* ──────────────────────────────────────────────────────────────────────── */-/* Upgrade nudge (shared by locked targets / pairings / offline card) */-/* ──────────────────────────────────────────────────────────────────────── */--.portal-editor__lock {- display: flex;- flex-direction: column;- align-items: flex-start;- gap: 0.625rem;- padding: 0.875rem;- background: var(--color-bg-subtle);- border: 1px dashed var(--c-border);- border-radius: var(--radius-md);-}--.portal-editor__lock-copy {- margin: 0;- font-size: 0.8125rem;- line-height: 1.45;- color: var(--c-text-subtle);-}--/* ──────────────────────────────────────────────────────────────────────── */-/* Pairing */-/* ──────────────────────────────────────────────────────────────────────── */--.portal-editor__pairings {- display: grid;- grid-template-columns: repeat(3, 1fr);- gap: 1rem;- align-items: start;-}--@media (max-width: 64rem) {- .portal-editor__pairings {- grid-template-columns: 1fr;- }-}--.portal-editor__pairing {- display: flex;- flex-direction: column;- gap: 0.875rem;-}--.portal-editor__pairing-head {- display: flex;- align-items: flex-start;- gap: 0.625rem;-}--.portal-editor__pairing-icon {- display: inline-flex;- align-items: center;- justify-content: center;- width: 2rem;- height: 2rem;- flex-shrink: 0;- border-radius: var(--radius-md);-}--.portal-editor__pairing-icon--blue {- background: color-mix(in srgb, var(--c-primary) 12%, var(--c-surface));- color: var(--c-accent-text);-}-.portal-editor__pairing-icon--purple {- background: var(--color-purple-light);- color: var(--color-purple-dark);-}-.portal-editor__pairing-icon--green {- background: var(--color-green-light);- color: var(--color-green-dark);-}--.portal-editor__pairing-titles {- flex: 1;- min-width: 0;-}--.portal-editor__pairing-name {- margin: 0;- font-size: 0.9375rem;- font-weight: 600;- color: var(--c-text);-}--.portal-editor__pairing-desc {- margin: 0.1875rem 0 0;- font-size: 0.75rem;- line-height: 1.45;- color: var(--c-text-subtle);-}--.portal-editor__pairing-value {- padding: 0.625rem 0.75rem;- background: var(--color-bg-subtle);- border: 1px solid var(--c-border-subtle);- border-radius: var(--radius-md);-}--.portal-editor__pairing-value code {- font-family: var(--font-mono);- font-size: 0.8125rem;- color: var(--c-text);- word-break: break-all;-}--.portal-editor__pairing-foot {- display: flex;- align-items: center;- justify-content: space-between;- gap: 0.5rem;- margin-top: auto;-}--/* ──────────────────────────────────────────────────────────────────────── */-/* Instance health table cells */-/* ──────────────────────────────────────────────────────────────────────── */--.portal-editor__cell-stack {- display: flex;- flex-direction: column;- gap: 0.3125rem;- min-width: 0;-}--.portal-editor__cell-strong {- font-size: 0.8125rem;- font-weight: 600;- color: var(--c-text);-}--.portal-editor__cell-muted {- display: flex;-}--.portal-editor__mono {- font-family: var(--font-mono);- font-size: 0.8125rem;- color: var(--c-text-muted);-}--.portal-editor__muted {- font-size: 0.8125rem;- color: var(--c-text-subtle);-}--/* ──────────────────────────────────────────────────────────────────────── */-/* Operations row (rotation + offline activation) */-/* ──────────────────────────────────────────────────────────────────────── */--.portal-editor__ops {- display: grid;- grid-template-columns: repeat(2, 1fr);- gap: 1rem;- align-items: start;-}--@media (max-width: 64rem) {- .portal-editor__ops {- grid-template-columns: 1fr;- }-}--.portal-editor__panel {- display: flex;- flex-direction: column;- gap: 1rem;-}--.portal-editor__panel-head {- display: flex;- align-items: flex-start;- justify-content: space-between;- gap: 0.75rem;-}--.portal-editor__panel-title {- display: flex;- align-items: center;- gap: 0.5rem;- margin: 0;- font-size: 0.9375rem;- font-weight: 600;- color: var(--c-text);-}--.portal-editor__panel-sub {- margin: 0.25rem 0 0;- font-size: 0.8125rem;- line-height: 1.5;- color: var(--c-text-subtle);-}--.portal-editor__enterprise-tag {- font-size: 0.625rem;- font-weight: 600;- text-transform: uppercase;- letter-spacing: 0.04em;- padding: 0.125rem 0.4375rem;- border-radius: var(--radius-sm);- background: var(--color-purple-light);- color: var(--color-purple-dark);-}--.portal-editor__token-row {- display: grid;- grid-template-columns: 1fr 1fr;- gap: 0.875rem;-}--@media (max-width: 30rem) {- .portal-editor__token-row {- grid-template-columns: 1fr;- }-}--.portal-editor__panel-actions {- display: flex;- gap: 0.5rem;-}diff --git a/frontend/editor/src/portal/views/EditorAdmin.tsx b/frontend/editor/src/portal/views/EditorAdmin.tsxdeleted file mode 100644index bd202a2bd3..0000000000--- a/frontend/editor/src/portal/views/EditorAdmin.tsx+++ /dev/null@@ -1,105 +0,0 @@-import { useTranslation } from "react-i18next";-import { Skeleton } from "@app/ui";-import { useTier } from "@portal/contexts/TierContext";-import { useView } from "@portal/contexts/ViewContext";-import { useSectionFlags } from "@portal/hooks/useAsync";-import { useEditorDeployment } from "@portal/queries/infrastructure";-import { DeploymentSummaryStrip } from "@portal/components/editor-admin/DeploymentSummaryStrip";-import { DeploymentTargets } from "@portal/components/editor-admin/DeploymentTargets";-import { PairingPanel } from "@portal/components/editor-admin/PairingPanel";-import { InstanceHealthTable } from "@portal/components/editor-admin/InstanceHealthTable";-import { CredentialRotationCard } from "@portal/components/editor-admin/CredentialRotationCard";-import { OfflineActivationCard } from "@portal/components/editor-admin/OfflineActivationCard";-import "@portal/views/EditorAdmin.css";--/** Title + sub-line for a section block on this page. */-function SectionHead({ title, sub }: { title: string; sub: string }) {- return (- <header className="portal-editor__section-head">- <h2 className="portal-editor__section-title">{title}</h2>- <p className="portal-editor__section-sub">{sub}</p>- </header>- );-}--/**- * Editor deployment management. Deploy the Stirling PDF Editor product to a- * target (Managed Cloud / Docker / Kubernetes), pair self-hosted instances back- * to the org, watch instance health, and run credential / offline-activation- * lifecycle tasks. Reached from Infrastructure → Deployments, not the sidebar.- */-export function EditorAdmin() {- const { t } = useTranslation();- const { tier } = useTier();- const { setActiveView } = useView();- const state = useEditorDeployment(tier);- const { data } = state;- const { isLoading } = useSectionFlags(state);-- // Lower tiers nudge toward Usage & Billing to upgrade; the snippet shows the- // value of the higher tier inline before the user gets there.- const goUpgrade = () => setActiveView("usage");-- return (- <div className="portal-editor">- <header className="portal-editor__head">- <div>- <h1 className="portal-editor__title">- {t("portal.editorAdmin.title")}- </h1>- <p className="portal-editor__sub">- {t("portal.editorAdmin.subtitle")}- </p>- </div>- </header>-- <DeploymentSummaryStrip summary={data?.summary} loading={isLoading} />-- <section>- <SectionHead- title={t("portal.editorAdmin.sections.targets.title")}- sub={t("portal.editorAdmin.sections.targets.sub")}- />- {isLoading || !data ? (- <div className="portal-editor__targets">- {Array.from({ length: 3 }).map((_, i) => (- <Skeleton key={i} height="14rem" />- ))}- </div>- ) : (- <DeploymentTargets targets={data.targets} onUpgrade={goUpgrade} />- )}- </section>-- <section>- <SectionHead- title={t("portal.editorAdmin.sections.pairing.title")}- sub={t("portal.editorAdmin.sections.pairing.sub")}- />- {data && (- <PairingPanel pairings={data.pairings} onUpgrade={goUpgrade} />- )}- </section>-- <section>- <SectionHead- title={t("portal.editorAdmin.sections.health.title")}- sub={t("portal.editorAdmin.sections.health.sub")}- />- {data && <InstanceHealthTable instances={data.instances} />}- </section>-- <section className="portal-editor__ops">- {data && (- <CredentialRotationCard serviceToken={data.summary.serviceToken} />- )}- {data && (- <OfflineActivationCard- available={data.summary.offlineActivationAvailable}- onUpgrade={goUpgrade}- />- )}- </section>- </div>- );-}diff --git a/frontend/editor/src/portal/views/Infrastructure.tsx b/frontend/editor/src/portal/views/Infrastructure.tsxindex 18a34d7efb..fb42188e98 100644--- a/frontend/editor/src/portal/views/Infrastructure.tsx+++ b/frontend/editor/src/portal/views/Infrastructure.tsx@@ -1,8 +1,7 @@import { useCallback, useEffect, useState } from "react";import { useSearchParams } from "react-router-dom";import { useTranslation } from "react-i18next";-import { Button, Tabs, type TabItem } from "@app/ui";-import { useView } from "@portal/contexts/ViewContext";+import { Tabs, type TabItem } from "@app/ui";import { useEnterpriseEnabled } from "@portal/hooks/useEnterpriseEnabled";import { ApiKeysTab } from "@portal/components/infrastructure/ApiKeysTab";import { AuditTab } from "@portal/components/infrastructure/AuditTab";@@ -17,7 +16,6 @@ type DisabledInfraTab = "deployments" | "security" | "models";export function Infrastructure() {const { t } = useTranslation();const [tab, setTab] = useState<InfraTab>("api-keys");- const { setActiveView } = useView();const [searchParams, setSearchParams] = useSearchParams();// Audit is Enterprise-only; disabled (greyed, inert) on non-enterprise instances.const enterprise = useEnterpriseEnabled();@@ -82,9 +80,6 @@ export function Infrastructure() {{t("portal.infrastructure.subtitle")}</p></div>- <Button fat onClick={() => setActiveView("editor")}>- {t("portal.infrastructure.manageEditorDeployment")}- </Button></header><Tabs<InfraTab | DisabledInfraTab>