Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Remove dead frontend exports and their orphaned translation keys (#7226)

ConnorYohd5e3c3e6e102
diff --git a/frontend/editor/public/locales/en-US/translation.toml b/frontend/editor/public/locales/en-US/translation.toml
index d02925fe46..045ea581f4 100644
--- a/frontend/editor/public/locales/en-US/translation.toml
+++ b/frontend/editor/public/locales/en-US/translation.toml
@@ -46,10 +46,8 @@ filesSelected = "{{count}} files"
font = "Font"
fontSizeTooltip = "Size of the page number text in points. Larger numbers create bigger text."
fontTypeTooltip = "Font family for the page numbers. Choose based on your document style."
-genericSubmit = "Submit"
green = "Green"
help = "Help"
-imgPrompt = "Select Image(s)"
incorrectPasswordMessage = "Current password is incorrect."
info = "Info"
invalidUndoData = "Cannot undo: invalid operation data"
@@ -62,7 +60,6 @@ loginAgreementTitle = "Login Agreement"
logOut = "Log out"
marginTooltip = "Distance between the page number and the edge of the page."
moreOptions = "More Options"
-multiPdfPrompt = "Select PDFs (2+)"
never = "Never"
no = "No"
noFileSelected = "No file loaded. Please upload one."
@@ -80,7 +77,6 @@ pageOrderPrompt = "Custom Page Order (Enter a comma-separated list of page numbe
pages = "Pages"
pageSelectionPrompt = "Custom Page Selection (Enter a comma-separated list of page numbers 1,5,6 or Functions like 2n+1)"
password = "Password"
-pdfPrompt = "Select PDF(s)"
pin = "Pin File (keep active after tool run)"
pro = "Pro"
processingComplete = "Your file is ready."
@@ -2444,33 +2440,6 @@ keywords = "Keywords: odd, even"
numbers = "Numbers/ranges: 5, 10-20"
progressions = "Progressions: 3n, 4n+1"
-[certificateChoice.tooltip]
-header = "Certificate Types"
-
-[certificateChoice.tooltip.organization]
-bullet1 = "Managed by system administrators"
-bullet2 = "Shared across authorized users"
-bullet3 = "Represents company identity, not individual"
-bullet4 = "Best for: Official documents, team signatures"
-description = "A shared certificate provided by your organization. Used for company-wide signing authority."
-title = "Organization Certificate"
-
-[certificateChoice.tooltip.personal]
-bullet1 = "Generated automatically on first use"
-bullet2 = "Tied to your user account"
-bullet3 = "Cannot be shared with other users"
-bullet4 = "Best for: Personal documents, individual accountability"
-description = "An auto-generated certificate unique to your user account. Suitable for individual signatures."
-title = "Personal Certificate"
-
-[certificateChoice.tooltip.upload]
-bullet1 = "Requires P12/PFX file and password"
-bullet2 = "Can be issued by external Certificate Authorities"
-bullet3 = "Higher trust level for legal documents"
-bullet4 = "Best for: Legally binding contracts, external validation"
-description = "Use your own PKCS#12 certificate file. Provides full control over certificate properties."
-title = "Upload Custom P12"
-
[certSign]
awaitingSignatures = "Awaiting signatures"
chooseCertificate = "Choose Certificate File"
@@ -2797,34 +2766,6 @@ server = "Server"
stepTitle = "Certificate source"
upload = "Upload"
-[certSign.tooltip.header]
-title = "About Managing Signatures"
-
-[certSign.tooltip.overview]
-bullet1 = "Check existing signatures and their validity"
-bullet2 = "View detailed information about signers and certificates"
-bullet3 = "Add new digital signatures to secure your documents"
-bullet4 = "Multiple files supported with easy navigation"
-text = "This tool lets you check if your PDFs are digitally signed and add new digital signatures. Digital signatures prove who created or approved a document and show if it has been changed since signing."
-title = "What can this tool do?"
-
-[certSign.tooltip.signing]
-bullet1 = "Supports PEM, PKCS12, JKS, and server certificate formats"
-bullet2 = "Option to show or hide signature on the PDF"
-bullet3 = "Add reason, location, and signer name"
-bullet4 = "Choose which page to place visible signatures"
-bullet5 = "Use server certificate for simple 'Sign with Stirling-PDF' option"
-text = "To sign a PDF, you need a digital certificate (like PEM, PKCS12, or JKS). You can choose to make the signature visible on the document or keep it invisible for security only."
-title = "Adding Signatures"
-
-[certSign.tooltip.validation]
-bullet1 = "Shows if signatures are valid or invalid"
-bullet2 = "Displays signer information and signing date"
-bullet3 = "Checks if the document was modified after signing"
-bullet4 = "Can use custom certificates for verification"
-text = "When you check signatures, the tool tells you if they're valid, who signed the document, when it was signed, and whether the document has been changed since signing."
-title = "Checking Signatures"
-
[changeCreds]
changeUsername = "Update your username. You will be logged out after updating."
credsUpdated = "Account updated"
@@ -3520,24 +3461,6 @@ description = "These cookies are essential for the website to function properly.
posthog = "PostHog Analytics"
scarf = "Scarf Pixel"
-[credits.modal]
-advancedMonitoring = "Advanced monitoring"
-allInOneWorkspace = "All-in-one PDF workspace (viewer, tools & agent)"
-apiSandbox = "API sandbox"
-dedicatedSupportSlas = "Dedicated support & SLAs"
-fasterThroughput = "10x faster throughput"
-fullyPrivateFiles = "Fully private files"
-largeFileProcessing = "Large file processing"
-orgWideAccess = "Org-wide access controls"
-premiumAiModels = "Premium AI models"
-prioritySupport = "Priority support"
-privateDocCloud = "Private Document Cloud"
-ragFineTuning = "RAG + fine-tuning"
-secureApiAccess = "Secure API access"
-standardThroughput = "Standard throughput"
-unlimitedApiAccess = "Unlimited API access"
-unlimitedSeats = "Unlimited seats"
-
[crop]
autoCrop = "Auto-crop whitespace"
noFileSelected = "Add a PDF file to begin cropping"
@@ -8903,11 +8826,6 @@ name = "Name"
namePlaceholder = "e.g. Claims intake"
type = "Type"
-[portal.tier]
-enterprise = "Enterprise plan"
-free = "Editor plan"
-pro = "Processor plan"
-
[portal.usage]
managePayment = "Manage Payment"
subtitle = "Consumption, invoices, and plan management for every PDF Stirling has billed, in one console."
@@ -9673,38 +9591,6 @@ toolNotAvailableLocally = "Your Stirling-PDF server is offline and \"{{endpoint}
[session]
expired = "Your session has expired. Please refresh the page and try again."
-[sessionManagement.tooltip]
-header = "Managing Signing Sessions"
-
-[sessionManagement.tooltip.addParticipants]
-bullet1 = "New participants added to the end of signing order"
-bullet2 = "Cannot add participants after session is finalized"
-bullet3 = "Each participant receives a notification when it's their turn"
-description = "You can add more participants to an active session at any time before finalization."
-title = "Adding Participants"
-
-[sessionManagement.tooltip.finalization]
-bullet1 = "<b>Full finalization</b>: All participants have signed"
-bullet2 = "<b>Partial finalization</b>: Some participants haven't signed yet"
-bullet3 = "Unsigned participants will be excluded from the final document"
-bullet4 = "Once finalized, you can load the signed PDF into active files"
-description = "Finalization combines all signatures into a single signed PDF. This action cannot be undone."
-title = "Session Finalization"
-
-[sessionManagement.tooltip.participantRemoval]
-bullet1 = "Cannot remove participants who have already signed"
-bullet2 = "Removed participants no longer receive notifications"
-bullet3 = "Signing order adjusts automatically"
-description = "Participants can be removed from sessions before they sign."
-title = "Removing Participants"
-
-[sessionManagement.tooltip.signatureOrder]
-bullet1 = "Each signature is applied sequentially to the PDF"
-bullet2 = "Later signers can see earlier signatures"
-bullet3 = "Critical for approval workflows and legal chains of custody"
-description = "The order you specify when creating the session determines who signs first."
-title = "Signature Order"
-
[settings]
close = "Close"
@@ -10783,11 +10669,6 @@ noToolsFound = "No tools found"
quickAccess = "QUICK ACCESS"
searchPlaceholder = "Search tools..."
-[toolPicker.categories]
-advancedTools = "Advanced Tools"
-recommendedTools = "Recommended Tools"
-standardTools = "Standard Tools"
-
[toolPicker.subcategories]
advancedFormatting = "Advanced Formatting"
automation = "Automation"
@@ -11612,30 +11493,6 @@ title = "Watermark Text"
image = "Image"
text = "Text"
-[wetSignature.tooltip]
-header = "Signature Creation Methods"
-
-[wetSignature.tooltip.draw]
-bullet1 = "Customize pen color and thickness"
-bullet2 = "Clear and redraw until satisfied"
-bullet3 = "Works on touch devices (tablets, phones)"
-description = "Create a handwritten signature using your mouse or touchscreen. Best for personal, authentic signatures."
-title = "Draw Signature"
-
-[wetSignature.tooltip.type]
-bullet1 = "Choose from multiple fonts"
-bullet2 = "Customize text size and color"
-bullet3 = "Perfect for standardized signatures"
-description = "Generate a signature from typed text. Fast and consistent, suitable for business documents."
-title = "Type Signature"
-
-[wetSignature.tooltip.upload]
-bullet1 = "Supports PNG, JPG, and other image formats"
-bullet2 = "Transparent backgrounds recommended for best results"
-bullet3 = "Image will be resized to fit signature area"
-description = "Upload a pre-created signature image. Ideal if you have a scanned signature or company logo."
-title = "Upload Signature Image"
-
[workbenchBar]
activeFiles = "Active Files"
annotations = "Annotations"
diff --git a/frontend/editor/src/core/components/filesPage/fileOrigin.ts b/frontend/editor/src/core/components/filesPage/fileOrigin.ts
index f8edb40656..273e370053 100644
--- a/frontend/editor/src/core/components/filesPage/fileOrigin.ts
+++ b/frontend/editor/src/core/components/filesPage/fileOrigin.ts
@@ -11,8 +11,6 @@ import { StirlingFileStub } from "@app/types/fileContext";
export type FileOrigin = "local" | "cloud" | "shared-with-me";
-export const FILE_ORIGINS: FileOrigin[] = ["local", "cloud", "shared-with-me"];
-
export function getFileOrigin(file: StirlingFileStub): FileOrigin {
if (file.remoteSharedViaLink || file.remoteOwnedByCurrentUser === false) {
return "shared-with-me";
diff --git a/frontend/editor/src/core/components/shared/FileSidebarFileItem.tsx b/frontend/editor/src/core/components/shared/FileSidebarFileItem.tsx
index 8647e18a68..a289a245f1 100644
--- a/frontend/editor/src/core/components/shared/FileSidebarFileItem.tsx
+++ b/frontend/editor/src/core/components/shared/FileSidebarFileItem.tsx
@@ -34,14 +34,6 @@ export type DateGroup =
| "thisMonth"
| "older";
-export const DATE_GROUP_ORDER: DateGroup[] = [
- "today",
- "yesterday",
- "thisWeek",
- "thisMonth",
- "older",
-];
-
export function getDateGroup(lastModified: number | undefined): DateGroup {
if (!lastModified) return "older";
const now = new Date();
diff --git a/frontend/editor/src/core/components/tools/compare/compare.ts b/frontend/editor/src/core/components/tools/compare/compare.ts
index cd8d65a2f9..30d0c42304 100644
--- a/frontend/editor/src/core/components/tools/compare/compare.ts
+++ b/frontend/editor/src/core/components/tools/compare/compare.ts
@@ -3,16 +3,6 @@ import type { FileId } from "@app/types/file";
import type { StirlingFile, StirlingFileStub } from "@app/types/fileContext";
import type { PagePreview } from "@app/types/compare";
-/** Convert hex color (#rrggbb) to rgba() string with alpha; falls back to input if invalid. */
-export const toRgba = (hexColor: string, alpha: number): string => {
- const hex = hexColor.replace("#", "");
- if (hex.length !== 6) return hexColor;
- const r = parseInt(hex.slice(0, 2), 16);
- const g = parseInt(hex.slice(2, 4), 16);
- const b = parseInt(hex.slice(4, 6), 16);
- return `rgba(${r}, ${g}, ${b}, ${alpha})`;
-};
-
/** Normalize rotation to [0, 360). */
export const normalizeRotation = (deg: number | undefined | null): number => {
const n = (((deg ?? 0) % 360) + 360) % 360;
diff --git a/frontend/editor/src/core/components/tooltips/useCertSignTooltips.ts b/frontend/editor/src/core/components/tooltips/useCertSignTooltips.ts
deleted file mode 100644
index 1588e9fea1..0000000000
--- a/frontend/editor/src/core/components/tooltips/useCertSignTooltips.ts
+++ /dev/null
@@ -1,93 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { TooltipContent } from "@app/types/tips";
-
-export const useCertSignTooltips = (): TooltipContent => {
- const { t } = useTranslation();
-
- return {
- header: {
- title: t("certSign.tooltip.header.title", "About Managing Signatures"),
- },
- tips: [
- {
- title: t("certSign.tooltip.overview.title", "What can this tool do?"),
- description: t(
- "certSign.tooltip.overview.text",
- "This tool lets you check if your PDFs are digitally signed and add new digital signatures. Digital signatures prove who created or approved a document and show if it has been changed since signing.",
- ),
- bullets: [
- t(
- "certSign.tooltip.overview.bullet1",
- "Check existing signatures and their validity",
- ),
- t(
- "certSign.tooltip.overview.bullet2",
- "View detailed information about signers and certificates",
- ),
- t(
- "certSign.tooltip.overview.bullet3",
- "Add new digital signatures to secure your documents",
- ),
- t(
- "certSign.tooltip.overview.bullet4",
- "Multiple files supported with easy navigation",
- ),
- ],
- },
- {
- title: t("certSign.tooltip.validation.title", "Checking Signatures"),
- description: t(
- "certSign.tooltip.validation.text",
- "When you check signatures, the tool tells you if they're valid, who signed the document, when it was signed, and whether the document has been changed since signing.",
- ),
- bullets: [
- t(
- "certSign.tooltip.validation.bullet1",
- "Shows if signatures are valid or invalid",
- ),
- t(
- "certSign.tooltip.validation.bullet2",
- "Displays signer information and signing date",
- ),
- t(
- "certSign.tooltip.validation.bullet3",
- "Checks if the document was modified after signing",
- ),
- t(
- "certSign.tooltip.validation.bullet4",
- "Can use custom certificates for verification",
- ),
- ],
- },
- {
- title: t("certSign.tooltip.signing.title", "Adding Signatures"),
- description: t(
- "certSign.tooltip.signing.text",
- "To sign a PDF, you need a digital certificate (like PEM, PKCS12, or JKS). You can choose to make the signature visible on the document or keep it invisible for security only.",
- ),
- bullets: [
- t(
- "certSign.tooltip.signing.bullet1",
- "Supports PEM, PKCS12, JKS, and server certificate formats",
- ),
- t(
- "certSign.tooltip.signing.bullet2",
- "Option to show or hide signature on the PDF",
- ),
- t(
- "certSign.tooltip.signing.bullet3",
- "Add reason, location, and signer name",
- ),
- t(
- "certSign.tooltip.signing.bullet4",
- "Choose which page to place visible signatures",
- ),
- t(
- "certSign.tooltip.signing.bullet5",
- "Use server certificate for simple 'Sign with Stirling-PDF' option",
- ),
- ],
- },
- ],
- };
-};
diff --git a/frontend/editor/src/core/components/tooltips/useCertificateChoiceTips.ts b/frontend/editor/src/core/components/tooltips/useCertificateChoiceTips.ts
deleted file mode 100644
index 12f132c40a..0000000000
--- a/frontend/editor/src/core/components/tooltips/useCertificateChoiceTips.ts
+++ /dev/null
@@ -1,95 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { TooltipContent } from "@app/types/tips";
-
-export const useCertificateChoiceTips = (): TooltipContent => {
- const { t } = useTranslation();
-
- return {
- header: {
- title: t("certificateChoice.tooltip.header", "Certificate Types"),
- },
- tips: [
- {
- title: t(
- "certificateChoice.tooltip.personal.title",
- "Personal Certificate",
- ),
- description: t(
- "certificateChoice.tooltip.personal.description",
- "An auto-generated certificate unique to your user account. Suitable for individual signatures.",
- ),
- bullets: [
- t(
- "certificateChoice.tooltip.personal.bullet1",
- "Generated automatically on first use",
- ),
- t(
- "certificateChoice.tooltip.personal.bullet2",
- "Tied to your user account",
- ),
- t(
- "certificateChoice.tooltip.personal.bullet3",
- "Cannot be shared with other users",
- ),
- t(
- "certificateChoice.tooltip.personal.bullet4",
- "Best for: Personal documents, individual accountability",
- ),
- ],
- },
- {
- title: t(
- "certificateChoice.tooltip.organization.title",
- "Organization Certificate",
- ),
- description: t(
- "certificateChoice.tooltip.organization.description",
- "A shared certificate provided by your organization. Used for company-wide signing authority.",
- ),
- bullets: [
- t(
- "certificateChoice.tooltip.organization.bullet1",
- "Managed by system administrators",
- ),
- t(
- "certificateChoice.tooltip.organization.bullet2",
- "Shared across authorized users",
- ),
- t(
- "certificateChoice.tooltip.organization.bullet3",
- "Represents company identity, not individual",
- ),
- t(
- "certificateChoice.tooltip.organization.bullet4",
- "Best for: Official documents, team signatures",
- ),
- ],
- },
- {
- title: t("certificateChoice.tooltip.upload.title", "Upload Custom P12"),
- description: t(
- "certificateChoice.tooltip.upload.description",
- "Use your own PKCS#12 certificate file. Provides full control over certificate properties.",
- ),
- bullets: [
- t(
- "certificateChoice.tooltip.upload.bullet1",
- "Requires P12/PFX file and password",
- ),
- t(
- "certificateChoice.tooltip.upload.bullet2",
- "Can be issued by external Certificate Authorities",
- ),
- t(
- "certificateChoice.tooltip.upload.bullet3",
- "Higher trust level for legal documents",
- ),
- t(
- "certificateChoice.tooltip.upload.bullet4",
- "Best for: Legally binding contracts, external validation",
- ),
- ],
- },
- ],
- };
-};
diff --git a/frontend/editor/src/core/components/tooltips/useChangeMetadataTips.ts b/frontend/editor/src/core/components/tooltips/useChangeMetadataTips.ts
index 26975f000d..99fc23b654 100644
--- a/frontend/editor/src/core/components/tooltips/useChangeMetadataTips.ts
+++ b/frontend/editor/src/core/components/tooltips/useChangeMetadataTips.ts
@@ -93,38 +93,6 @@ export const useDocumentDatesTips = (): TooltipContent => {
};
};
-export const useCustomMetadataTips = (): TooltipContent => {
- const { t } = useTranslation();
-
- return {
- header: {
- title: t("changeMetadata.tooltip.customFields.title", "Custom Metadata"),
- },
- tips: [
- {
- description: t(
- "changeMetadata.tooltip.customFields.text",
- "Add your own custom key-value metadata pairs.",
- ),
- bullets: [
- t(
- "changeMetadata.tooltip.customFields.bullet1",
- "Add any custom fields relevant to your document",
- ),
- t(
- "changeMetadata.tooltip.customFields.bullet2",
- "Examples: Department, Project, Version, Status",
- ),
- t(
- "changeMetadata.tooltip.customFields.bullet3",
- "Both key and value are required for each entry",
- ),
- ],
- },
- ],
- };
-};
-
export const useAdvancedOptionsTips = (): TooltipContent => {
const { t } = useTranslation();
diff --git a/frontend/editor/src/core/components/tooltips/useSessionManagementTips.ts b/frontend/editor/src/core/components/tooltips/useSessionManagementTips.ts
deleted file mode 100644
index dd36f7fc83..0000000000
--- a/frontend/editor/src/core/components/tooltips/useSessionManagementTips.ts
+++ /dev/null
@@ -1,114 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { TooltipContent } from "@app/types/tips";
-
-export const useSessionManagementTips = (): TooltipContent => {
- const { t } = useTranslation();
-
- return {
- header: {
- title: t("sessionManagement.tooltip.header", "Managing Signing Sessions"),
- },
- tips: [
- {
- title: t(
- "sessionManagement.tooltip.addParticipants.title",
- "Adding Participants",
- ),
- description: t(
- "sessionManagement.tooltip.addParticipants.description",
- "You can add more participants to an active session at any time before finalization.",
- ),
- bullets: [
- t(
- "sessionManagement.tooltip.addParticipants.bullet1",
- "New participants added to the end of signing order",
- ),
- t(
- "sessionManagement.tooltip.addParticipants.bullet2",
- "Cannot add participants after session is finalized",
- ),
- t(
- "sessionManagement.tooltip.addParticipants.bullet3",
- "Each participant receives a notification when it's their turn",
- ),
- ],
- },
- {
- title: t(
- "sessionManagement.tooltip.finalization.title",
- "Session Finalization",
- ),
- description: t(
- "sessionManagement.tooltip.finalization.description",
- "Finalization combines all signatures into a single signed PDF. This action cannot be undone.",
- ),
- bullets: [
- t(
- "sessionManagement.tooltip.finalization.bullet1",
- "<b>Full finalization</b>: All participants have signed",
- ),
- t(
- "sessionManagement.tooltip.finalization.bullet2",
- "<b>Partial finalization</b>: Some participants haven't signed yet",
- ),
- t(
- "sessionManagement.tooltip.finalization.bullet3",
- "Unsigned participants will be excluded from the final document",
- ),
- t(
- "sessionManagement.tooltip.finalization.bullet4",
- "Once finalized, you can load the signed PDF into active files",
- ),
- ],
- },
- {
- title: t(
- "sessionManagement.tooltip.signatureOrder.title",
- "Signature Order",
- ),
- description: t(
- "sessionManagement.tooltip.signatureOrder.description",
- "The order you specify when creating the session determines who signs first.",
- ),
- bullets: [
- t(
- "sessionManagement.tooltip.signatureOrder.bullet1",
- "Each signature is applied sequentially to the PDF",
- ),
- t(
- "sessionManagement.tooltip.signatureOrder.bullet2",
- "Later signers can see earlier signatures",
- ),
- t(
- "sessionManagement.tooltip.signatureOrder.bullet3",
- "Critical for approval workflows and legal chains of custody",
- ),
- ],
- },
- {
- title: t(
- "sessionManagement.tooltip.participantRemoval.title",
- "Removing Participants",
- ),
- description: t(
- "sessionManagement.tooltip.participantRemoval.description",
- "Participants can be removed from sessions before they sign.",
- ),
- bullets: [
- t(
- "sessionManagement.tooltip.participantRemoval.bullet1",
- "Cannot remove participants who have already signed",
- ),
- t(
- "sessionManagement.tooltip.participantRemoval.bullet2",
- "Removed participants no longer receive notifications",
- ),
- t(
- "sessionManagement.tooltip.participantRemoval.bullet3",
- "Signing order adjusts automatically",
- ),
- ],
- },
- ],
- };
-};
diff --git a/frontend/editor/src/core/components/tooltips/useWetSignatureTips.ts b/frontend/editor/src/core/components/tooltips/useWetSignatureTips.ts
deleted file mode 100644
index aff3e69fea..0000000000
--- a/frontend/editor/src/core/components/tooltips/useWetSignatureTips.ts
+++ /dev/null
@@ -1,74 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { TooltipContent } from "@app/types/tips";
-
-export const useWetSignatureTips = (): TooltipContent => {
- const { t } = useTranslation();
-
- return {
- header: {
- title: t("wetSignature.tooltip.header", "Signature Creation Methods"),
- },
- tips: [
- {
- title: t("wetSignature.tooltip.draw.title", "Draw Signature"),
- description: t(
- "wetSignature.tooltip.draw.description",
- "Create a handwritten signature using your mouse or touchscreen. Best for personal, authentic signatures.",
- ),
- bullets: [
- t(
- "wetSignature.tooltip.draw.bullet1",
- "Customize pen color and thickness",
- ),
- t(
- "wetSignature.tooltip.draw.bullet2",
- "Clear and redraw until satisfied",
- ),
- t(
- "wetSignature.tooltip.draw.bullet3",
- "Works on touch devices (tablets, phones)",
- ),
- ],
- },
- {
- title: t("wetSignature.tooltip.upload.title", "Upload Signature Image"),
- description: t(
- "wetSignature.tooltip.upload.description",
- "Upload a pre-created signature image. Ideal if you have a scanned signature or company logo.",
- ),
- bullets: [
- t(
- "wetSignature.tooltip.upload.bullet1",
- "Supports PNG, JPG, and other image formats",
- ),
- t(
- "wetSignature.tooltip.upload.bullet2",
- "Transparent backgrounds recommended for best results",
- ),
- t(
- "wetSignature.tooltip.upload.bullet3",
- "Image will be resized to fit signature area",
- ),
- ],
- },
- {
- title: t("wetSignature.tooltip.type.title", "Type Signature"),
- description: t(
- "wetSignature.tooltip.type.description",
- "Generate a signature from typed text. Fast and consistent, suitable for business documents.",
- ),
- bullets: [
- t("wetSignature.tooltip.type.bullet1", "Choose from multiple fonts"),
- t(
- "wetSignature.tooltip.type.bullet2",
- "Customize text size and color",
- ),
- t(
- "wetSignature.tooltip.type.bullet3",
- "Perfect for standardized signatures",
- ),
- ],
- },
- ],
- };
-};
diff --git a/frontend/editor/src/core/constants/splitConstants.ts b/frontend/editor/src/core/constants/splitConstants.ts
index 5561ae957f..20ff307f0d 100644
--- a/frontend/editor/src/core/constants/splitConstants.ts
+++ b/frontend/editor/src/core/constants/splitConstants.ts
@@ -21,9 +21,6 @@ export const ENDPOINTS = {
} as const;
export type SplitMethod = (typeof SPLIT_METHODS)[keyof typeof SPLIT_METHODS];
-export const isSplitMethod = (value: string | null): value is SplitMethod => {
- return Object.values(SPLIT_METHODS).includes(value as SplitMethod);
-};
import { CardOption } from "@app/components/shared/CardSelector";
diff --git a/frontend/editor/src/core/contexts/SignatureContext.tsx b/frontend/editor/src/core/contexts/SignatureContext.tsx
index 1c1a53e05f..a53a58ee21 100644
--- a/frontend/editor/src/core/contexts/SignatureContext.tsx
+++ b/frontend/editor/src/core/contexts/SignatureContext.tsx
@@ -211,12 +211,3 @@ export const useSignature = (): SignatureContextValue => {
}
return context;
};
-
-// Hook for components that need to check if signature mode is active
-export const useSignatureMode = () => {
- const context = useContext(SignatureContext);
- return {
- isSignatureModeActive: context?.isPlacementMode || false,
- hasSignatureConfig: context?.signatureConfig !== null,
- };
-};
diff --git a/frontend/editor/src/core/data/toolsTaxonomy.ts b/frontend/editor/src/core/data/toolsTaxonomy.ts
index 18b8561535..fc9b37565c 100644
--- a/frontend/editor/src/core/data/toolsTaxonomy.ts
+++ b/frontend/editor/src/core/data/toolsTaxonomy.ts
@@ -148,8 +148,6 @@ export const getSubcategoryIcon = (
}
};
-export const getCategoryLabel = (t: TFunction, id: ToolCategoryId): string =>
- t(`toolPicker.categories.${id}`, id);
export const getSubcategoryLabel = (t: TFunction, id: SubcategoryId): string =>
t(`toolPicker.subcategories.${id}`, id);
export const getSubcategoryColor = (subcategory: SubcategoryId): string =>
diff --git a/frontend/editor/src/core/hooks/tools/shared/useOperationResults.ts b/frontend/editor/src/core/hooks/tools/shared/useOperationResults.ts
deleted file mode 100644
index 0e085fb920..0000000000
--- a/frontend/editor/src/core/hooks/tools/shared/useOperationResults.ts
+++ /dev/null
@@ -1,67 +0,0 @@
-import { useState, useCallback } from "react";
-
-export interface OperationResult {
- files: File[];
- thumbnails: string[];
- isGeneratingThumbnails: boolean;
-}
-
-export interface OperationResultsHook {
- results: OperationResult;
- downloadUrl: string | null;
- status: string;
- errorMessage: string | null;
- isLoading: boolean;
-
- setResults: (results: OperationResult) => void;
- setDownloadUrl: (url: string | null) => void;
- setStatus: (status: string) => void;
- setErrorMessage: (error: string | null) => void;
- setIsLoading: (loading: boolean) => void;
-
- resetResults: () => void;
- clearError: () => void;
-}
-
-const initialResults: OperationResult = {
- files: [],
- thumbnails: [],
- isGeneratingThumbnails: false,
-};
-
-export const useOperationResults = (): OperationResultsHook => {
- const [results, setResults] = useState<OperationResult>(initialResults);
- const [downloadUrl, setDownloadUrl] = useState<string | null>(null);
- const [status, setStatus] = useState("");
- const [errorMessage, setErrorMessage] = useState<string | null>(null);
- const [isLoading, setIsLoading] = useState(false);
-
- const resetResults = useCallback(() => {
- setResults(initialResults);
- setDownloadUrl(null);
- setStatus("");
- setErrorMessage(null);
- setIsLoading(false);
- }, []);
-
- const clearError = useCallback(() => {
- setErrorMessage(null);
- }, []);
-
- return {
- results,
- downloadUrl,
- status,
- errorMessage,
- isLoading,
-
- setResults,
- setDownloadUrl,
- setStatus,
- setErrorMessage,
- setIsLoading,
-
- resetResults,
- clearError,
- };
-};
diff --git a/frontend/editor/src/core/hooks/useTranslation.ts b/frontend/editor/src/core/hooks/useTranslation.ts
index 6da312c3d6..910c16ebf9 100644
--- a/frontend/editor/src/core/hooks/useTranslation.ts
+++ b/frontend/editor/src/core/hooks/useTranslation.ts
@@ -1,20 +1,2 @@
// Re-export react-i18next hook with our custom types
export { useTranslation } from "react-i18next";
-
-// You can add custom hooks here later if needed
-// For example, a hook that returns commonly used translations
-import { useTranslation as useI18nTranslation } from "react-i18next";
-
-export const useCommonTranslations = () => {
- const { t } = useI18nTranslation();
-
- return {
- submit: t("genericSubmit"),
- selectPdf: t("pdfPrompt"),
- selectPdfs: t("multiPdfPrompt"),
- selectImages: t("imgPrompt"),
- loading: t("loading", "Loading..."), // fallback if not found
- error: t("error._value", "Error"),
- success: t("success", "Success"),
- };
-};
diff --git a/frontend/editor/src/core/services/fileProcessingService.ts b/frontend/editor/src/core/services/fileProcessingService.ts
index 2c8aba2b15..357021711a 100644
--- a/frontend/editor/src/core/services/fileProcessingService.ts
+++ b/frontend/editor/src/core/services/fileProcessingService.ts
@@ -1,13 +1,8 @@
/**
- * Centralized file processing service
- * Handles metadata discovery, page counting, and thumbnail generation
- * Called when files are added to FileContext, before any view sees them
+ * Shape of the per-file metadata (page count, per-page thumbnails and rotation)
+ * that FileContext stores against a file stub.
*/
-import { generateThumbnailForFile } from "@app/utils/thumbnailUtils";
-import { pdfWorkerManager } from "@app/services/pdfWorkerManager";
-import { FileId } from "@app/types/file";
-
export interface ProcessedFileMetadata {
totalPages: number;
pages: Array<{
@@ -19,224 +14,3 @@ export interface ProcessedFileMetadata {
thumbnailUrl?: string; // Page 1 thumbnail for FileEditor
lastProcessed: number;
}
-
-export interface FileProcessingResult {
- success: boolean;
- metadata?: ProcessedFileMetadata;
- error?: string;
-}
-
-interface ProcessingOperation {
- promise: Promise<FileProcessingResult>;
- abortController: AbortController;
-}
-
-class FileProcessingService {
- private processingCache = new Map<string, ProcessingOperation>();
-
- /**
- * Process a file to extract metadata, page count, and generate thumbnails
- * This is the single source of truth for file processing
- */
- async processFile(file: File, fileId: FileId): Promise<FileProcessingResult> {
- // Check if we're already processing this file
- const existingOperation = this.processingCache.get(fileId);
- if (existingOperation) {
- console.log(
- `πŸ“ FileProcessingService: Using cached processing for ${file.name}`,
- );
- return existingOperation.promise;
- }
-
- // Create abort controller for this operation
- const abortController = new AbortController();
-
- // Create processing promise
- const processingPromise = this.performProcessing(
- file,
- fileId,
- abortController,
- );
-
- // Store operation with abort controller
- const operation: ProcessingOperation = {
- promise: processingPromise,
- abortController,
- };
- this.processingCache.set(fileId, operation);
-
- // Clean up cache after completion
- processingPromise.finally(() => {
- this.processingCache.delete(fileId);
- });
-
- return processingPromise;
- }
-
- private async performProcessing(
- file: File,
- fileId: FileId,
- abortController: AbortController,
- ): Promise<FileProcessingResult> {
- console.log(
- `πŸ“ FileProcessingService: Starting processing for ${file.name} (${fileId})`,
- );
-
- try {
- // Check for cancellation at start
- if (abortController.signal.aborted) {
- throw new Error("Processing cancelled");
- }
-
- let totalPages = 1;
- let thumbnailUrl: string | undefined;
-
- // Handle PDF files
- if (file.type === "application/pdf") {
- // Read arrayBuffer once and reuse for both PDF.js and fallback
- const arrayBuffer = await file.arrayBuffer();
-
- // Check for cancellation after async operation
- if (abortController.signal.aborted) {
- throw new Error("Processing cancelled");
- }
-
- // Discover page count using PDF.js (most accurate)
- try {
- const pdfDoc = await pdfWorkerManager.createDocument(arrayBuffer, {
- disableAutoFetch: true,
- disableStream: true,
- });
-
- totalPages = pdfDoc.numPages;
- console.log(
- `πŸ“ FileProcessingService: PDF.js discovered ${totalPages} pages for ${file.name}`,
- );
-
- // Clean up immediately
- pdfWorkerManager.destroyDocument(pdfDoc);
-
- // Check for cancellation after PDF.js processing
- if (abortController.signal.aborted) {
- throw new Error("Processing cancelled");
- }
- } catch (pdfError) {
- console.warn(
- `πŸ“ FileProcessingService: PDF.js failed for ${file.name}, setting pages to 0:`,
- pdfError,
- );
- totalPages = 0; // Unknown page count - UI will hide page count display
- }
- }
-
- // Generate page 1 thumbnail
- try {
- thumbnailUrl = await generateThumbnailForFile(file);
- console.log(
- `πŸ“ FileProcessingService: Generated thumbnail for ${file.name}`,
- );
-
- // Check for cancellation after thumbnail generation
- if (abortController.signal.aborted) {
- throw new Error("Processing cancelled");
- }
- } catch (thumbError) {
- console.warn(
- `πŸ“ FileProcessingService: Thumbnail generation failed for ${file.name}:`,
- thumbError,
- );
- }
-
- // Create page structure
- const pages = Array.from({ length: totalPages }, (_, index) => ({
- pageNumber: index + 1,
- thumbnail: index === 0 ? thumbnailUrl : undefined, // Only page 1 gets thumbnail initially
- rotation: 0,
- splitBefore: false,
- }));
-
- const metadata: ProcessedFileMetadata = {
- totalPages,
- pages,
- thumbnailUrl, // For FileEditor display
- lastProcessed: Date.now(),
- };
-
- console.log(
- `πŸ“ FileProcessingService: Processing complete for ${file.name} - ${totalPages} pages`,
- );
-
- return {
- success: true,
- metadata,
- };
- } catch (error) {
- console.error(
- `πŸ“ FileProcessingService: Processing failed for ${file.name}:`,
- error,
- );
-
- return {
- success: false,
- error:
- error instanceof Error ? error.message : "Unknown processing error",
- };
- }
- }
-
- /**
- * Clear all processing caches
- */
- clearCache(): void {
- this.processingCache.clear();
- }
-
- /**
- * Check if a file is currently being processed
- */
- isProcessing(fileId: FileId): boolean {
- return this.processingCache.has(fileId);
- }
-
- /**
- * Cancel processing for a specific file
- */
- cancelProcessing(fileId: FileId): boolean {
- const operation = this.processingCache.get(fileId);
- if (operation) {
- operation.abortController.abort();
- console.log(
- `πŸ“ FileProcessingService: Cancelled processing for ${fileId}`,
- );
- return true;
- }
- return false;
- }
-
- /**
- * Cancel all ongoing processing operations
- */
- cancelAllProcessing(): void {
- this.processingCache.forEach((operation, fileId) => {
- operation.abortController.abort();
- console.log(
- `πŸ“ FileProcessingService: Cancelled processing for ${fileId}`,
- );
- });
- console.log(
- `πŸ“ FileProcessingService: Cancelled ${this.processingCache.size} processing operations`,
- );
- }
-
- /**
- * Emergency cleanup - cancel all processing and destroy workers
- */
- emergencyCleanup(): void {
- this.cancelAllProcessing();
- this.clearCache();
- pdfWorkerManager.destroyAllDocuments();
- }
-}
-
-// Export singleton instance
-export const fileProcessingService = new FileProcessingService();
diff --git a/frontend/editor/src/core/services/signatureDetectionService.ts b/frontend/editor/src/core/services/signatureDetectionService.ts
index cae3fed8ed..0062380a79 100644
--- a/frontend/editor/src/core/services/signatureDetectionService.ts
+++ b/frontend/editor/src/core/services/signatureDetectionService.ts
@@ -98,54 +98,3 @@ export const detectSignaturesInFiles = async (
return results;
};
-
-/**
- * Hook for managing signature detection state
- */
-export const useSignatureDetection = () => {
- const [detectionResults, setDetectionResults] = React.useState<
- FileSignatureStatus[]
- >([]);
- const [isDetecting, setIsDetecting] = React.useState(false);
-
- const detectSignatures = async (files: File[]) => {
- if (files.length === 0) {
- setDetectionResults([]);
- return;
- }
-
- setIsDetecting(true);
- try {
- const results = await detectSignaturesInFiles(files);
- setDetectionResults(results);
- } finally {
- setIsDetecting(false);
- }
- };
-
- const getFileSignatureStatus = (
- file: File,
- ): SignatureDetectionResult | null => {
- const result = detectionResults.find((r) => r.file === file);
- return result ? result.result : null;
- };
-
- const hasAnySignatures = detectionResults.some((r) => r.result.hasSignatures);
- const totalSignatures = detectionResults.reduce(
- (sum, r) => sum + (r.result.signatureCount || 0),
- 0,
- );
-
- return {
- detectionResults,
- isDetecting,
- detectSignatures,
- getFileSignatureStatus,
- hasAnySignatures,
- totalSignatures,
- reset: () => setDetectionResults([]),
- };
-};
-
-// Import React for the hook
-import React from "react";
diff --git a/frontend/editor/src/core/styles/zIndex.ts b/frontend/editor/src/core/styles/zIndex.ts
index 3bc0801dee..b9e3df4ad1 100644
--- a/frontend/editor/src/core/styles/zIndex.ts
+++ b/frontend/editor/src/core/styles/zIndex.ts
@@ -1,7 +1,6 @@
// Centralized z-index constants for new usages added in this branch.
// Keep values identical to their original inline usages.
-export const Z_INDEX_FULLSCREEN_SURFACE = 1000;
export const Z_INDEX_OVER_FULLSCREEN_SURFACE = 1300;
export const Z_ANALYTICS_MODAL = 1301;
// Config/Settings modal - should appear above analytics modal when navigating from onboarding
@@ -45,8 +44,6 @@ export const Z_INDEX_VIEWER_FLOATING_MENU = 10000;
export const Z_INDEX_TOAST = 10001;
-// Signature preview overlays inside the PDF viewer
-export const Z_INDEX_SIGNATURE_DRAG_BLOCKER = 999;
export const Z_INDEX_SIGNATURE_OVERLAY = 1000;
export const Z_INDEX_SIGNATURE_OVERLAY_HANDLE = 1001;
export const Z_INDEX_SIGNATURE_OVERLAY_DELETE = 1002;
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/fontAnalysis.ts b/frontend/editor/src/core/tools/pdfTextEditor/fontAnalysis.ts
index 197a350ebd..87b2f92d20 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/fontAnalysis.ts
+++ b/frontend/editor/src/core/tools/pdfTextEditor/fontAnalysis.ts
@@ -502,21 +502,3 @@ export const getFontStatusColor = (status: FontStatus): string => {
return "gray";
}
};
-
-/**
- * Gets an icon indicator for the font status
- */
-export const getFontStatusIcon = (status: FontStatus): string => {
- switch (status) {
- case "perfect":
- return "βœ“";
- case "embedded-subset":
- return "⚠";
- case "system-fallback":
- return "⚠";
- case "missing":
- return "βœ—";
- case "unknown":
- return "?";
- }
-};
diff --git a/frontend/editor/src/core/tools/pdfTextEditor/pdfTextEditorUtils.ts b/frontend/editor/src/core/tools/pdfTextEditor/pdfTextEditorUtils.ts
index f2a5777b8e..522e25684f 100644
--- a/frontend/editor/src/core/tools/pdfTextEditor/pdfTextEditorUtils.ts
+++ b/frontend/editor/src/core/tools/pdfTextEditor/pdfTextEditorUtils.ts
@@ -1334,42 +1334,6 @@ const rebuildParagraphLineElements = (
return rebuilt;
};
-export const buildUpdatedDocument = (
- source: PdfJsonDocument,
- groupsByPage: TextGroup[][],
- imagesByPage: PdfJsonImageElement[][],
-): PdfJsonDocument => {
- const updated = deepCloneDocument(source);
- const pages = updated.pages ?? [];
-
- updated.pages = pages.map((page, pageIndex) => {
- const groups = groupsByPage[pageIndex] ?? [];
- const images = imagesByPage[pageIndex] ?? [];
- if (!groups.length) {
- return {
- ...page,
- imageElements: images.map(cloneImageElement),
- };
- }
-
- const updatedElements: PdfJsonTextElement[] = groups.flatMap((group) => {
- if (group.text === group.originalText) {
- return group.originalElements.map(cloneTextElement);
- }
- return [createMergedElement(group)];
- });
-
- return {
- ...page,
- textElements: updatedElements,
- imageElements: images.map(cloneImageElement),
- contentStreams: page.contentStreams ?? null,
- };
- });
-
- return updated;
-};
-
export const restoreGlyphElements = (
source: PdfJsonDocument,
groupsByPage: TextGroup[][],
diff --git a/frontend/editor/src/core/types/getPdfInfo.ts b/frontend/editor/src/core/types/getPdfInfo.ts
index 46b73c2371..8fd2ca361a 100644
--- a/frontend/editor/src/core/types/getPdfInfo.ts
+++ b/frontend/editor/src/core/types/getPdfInfo.ts
@@ -279,4 +279,3 @@ export interface PdfInfoReportData {
}
export const INFO_JSON_FILENAME = "response.json";
-export const INFO_PDF_FILENAME = "pdf-information-report.pdf";
diff --git a/frontend/editor/src/desktop/config/planFeatures.ts b/frontend/editor/src/desktop/config/planFeatures.ts
deleted file mode 100644
index d0d7896c1e..0000000000
--- a/frontend/editor/src/desktop/config/planFeatures.ts
+++ /dev/null
@@ -1,86 +0,0 @@
-/**
- * Desktop plan features configuration
- * Single source of truth for plan features in desktop billing page
- */
-
-export interface PlanFeatureConfig {
- translationKey: string;
- defaultText: string;
-}
-
-export const FREE_PLAN_FEATURES: PlanFeatureConfig[] = [
- {
- translationKey: "credits.modal.allInOneWorkspace",
- defaultText: "All-in-one PDF workspace (viewer, tools & agent)",
- },
- {
- translationKey: "credits.modal.fullyPrivateFiles",
- defaultText: "Fully private files",
- },
- {
- translationKey: "credits.modal.standardThroughput",
- defaultText: "Standard throughput",
- },
- {
- translationKey: "credits.modal.customSmartFolders",
- defaultText: "Custom Smart Folders",
- },
- {
- translationKey: "credits.modal.apiSandbox",
- defaultText: "API sandbox",
- },
-];
-
-export const TEAM_PLAN_FEATURES: PlanFeatureConfig[] = [
- {
- translationKey: "credits.modal.unlimitedSeats",
- defaultText: "Unlimited seats",
- },
- {
- translationKey: "credits.modal.fasterThroughput",
- defaultText: "10x faster throughput",
- },
- {
- translationKey: "credits.modal.largeFileProcessing",
- defaultText: "Large file processing",
- },
- {
- translationKey: "credits.modal.premiumAiModels",
- defaultText: "Premium AI models",
- },
- {
- translationKey: "credits.modal.secureApiAccess",
- defaultText: "Secure API access",
- },
- {
- translationKey: "credits.modal.prioritySupport",
- defaultText: "Priority support",
- },
-];
-
-export const ENTERPRISE_PLAN_FEATURES: PlanFeatureConfig[] = [
- {
- translationKey: "credits.modal.orgWideAccess",
- defaultText: "Org-wide access controls",
- },
- {
- translationKey: "credits.modal.privateDocCloud",
- defaultText: "Private Document Cloud",
- },
- {
- translationKey: "credits.modal.ragFineTuning",
- defaultText: "RAG + fine-tuning",
- },
- {
- translationKey: "credits.modal.unlimitedApiAccess",
- defaultText: "Unlimited API access",
- },
- {
- translationKey: "credits.modal.advancedMonitoring",
- defaultText: "Advanced monitoring",
- },
- {
- translationKey: "credits.modal.dedicatedSupportSlas",
- defaultText: "Dedicated support & SLAs",
- },
-];
diff --git a/frontend/editor/src/portal/api/users.ts b/frontend/editor/src/portal/api/users.ts
index 19a686cf8c..0755185109 100644
--- a/frontend/editor/src/portal/api/users.ts
+++ b/frontend/editor/src/portal/api/users.ts
@@ -21,17 +21,6 @@ export type MemberStatus = "active" | "invited" | "suspended";
*/
export type PortalAccessState = "admin" | "role" | "team" | "granted" | "none";
-export const PORTAL_ACCESS_TONE: Record<
- PortalAccessState,
- "success" | "info" | "neutral" | "warning"
-> = {
- admin: "info",
- role: "info",
- team: "info",
- granted: "success",
- none: "neutral",
-};
-
export interface Member {
id: string;
name: string;
@@ -158,15 +147,6 @@ export interface UsersResponse {
/* Presentation metadata β€” product copy, lives client-side */
/* ──────────────────────────────────────────────────────────────────────── */
-export const MEMBER_STATUS_TONE: Record<
- MemberStatus,
- "success" | "warning" | "danger" | "neutral" | "info"
-> = {
- active: "success",
- invited: "info",
- suspended: "danger",
-};
-
/* ──────────────────────────────────────────────────────────────────────── */
/* Role catalogue */
/* The same five roles exist on every tier β€” what varies is who can fill */
@@ -233,9 +213,6 @@ export const ROLE_TONE: Record<RoleId, Role["tone"]> = Object.fromEntries(
ROLES.map((r) => [r.id, r.tone]),
) as Record<RoleId, Role["tone"]>;
-/** Roles an admin can assign from the portal; guest is derived, not assigned. */
-export const ASSIGNABLE_ROLES: RoleId[] = ["admin", "team_owner", "member"];
-
/* ── backend payload (subset of AdminSettingsData) ─────────────────────── */
interface AdminUserSummaryDto {
diff --git a/frontend/editor/src/portal/components/pipelines/pipelineOperations.ts b/frontend/editor/src/portal/components/pipelines/pipelineOperations.ts
index 2a405e8f1e..4c44a50224 100644
--- a/frontend/editor/src/portal/components/pipelines/pipelineOperations.ts
+++ b/frontend/editor/src/portal/components/pipelines/pipelineOperations.ts
@@ -1,46 +1,9 @@
-/**
- * The operation catalogue the composer builds a pipeline from. Each entry's
- * `operation` is a real Stirling endpoint path (the backend's PipelineStep
- * contract) with sensible default `parameters`, so a composed pipeline is
- * runnable as-is. Per-operation parameter editing is intentionally out of scope
- * for this version: the composer chains operations with their defaults. Labels
- * are derived from the path, so adding an operation needs no translation work.
- */
-
-export interface PipelineOperationDef {
- /** Stirling endpoint path, e.g. "/api/v1/misc/compress-pdf". */
- operation: string;
- /** Scalar form fields the endpoint accepts; defaults that keep the step valid. */
- parameters: Record<string, unknown>;
-}
-
-export const PIPELINE_OPERATIONS: PipelineOperationDef[] = [
- { operation: "/api/v1/misc/ocr-pdf", parameters: {} },
- { operation: "/api/v1/misc/compress-pdf", parameters: {} },
- { operation: "/api/v1/misc/flatten", parameters: {} },
- { operation: "/api/v1/misc/repair", parameters: {} },
- {
- operation: "/api/v1/security/auto-redact",
- parameters: { mode: "automatic", convertPDFToImage: true },
- },
- {
- operation: "/api/v1/security/sanitize-pdf",
- parameters: { removeJavaScript: true },
- },
- { operation: "/api/v1/security/add-watermark", parameters: {} },
- { operation: "/api/v1/security/add-password", parameters: {} },
- { operation: "/api/v1/security/remove-password", parameters: {} },
- { operation: "/api/v1/general/merge-pdfs", parameters: {} },
- { operation: "/api/v1/misc/add-stamp", parameters: {} },
- { operation: "/api/v1/misc/add-page-numbers", parameters: {} },
-];
-
/**
* Turn an endpoint path into a display label: take the last segment, drop the
* "pdf"/"pdfs" filler words, and title-case the rest.
* "/api/v1/misc/compress-pdf" β†’ "Compress"; "/api/v1/security/auto-redact" β†’
- * "Auto Redact". Works for any operation, including ones loaded from the backend
- * that aren't in the catalogue above.
+ * "Auto Redact". Used as the fallback name for a stored step whose endpoint has
+ * no tool in the registry to take a name from.
*/
export function humanizeOperation(path: string): string {
const last = path.split("/").filter(Boolean).pop() ?? path;
diff --git a/frontend/editor/src/portal/contexts/TierContext.tsx b/frontend/editor/src/portal/contexts/TierContext.tsx
index 411a3f75ba..22c1c055fe 100644
--- a/frontend/editor/src/portal/contexts/TierContext.tsx
+++ b/frontend/editor/src/portal/contexts/TierContext.tsx
@@ -15,17 +15,6 @@ export interface TierInfo {
dotColor: string;
}
-export const TIER_INFO: Record<Tier, TierInfo> = {
- // Matches SaaS branding (editor/cloud Payg + PaygFree): the always-free
- // manual-tools tier is "Editor plan"; the metered tier is "Processor plan".
- free: { labelKey: "portal.tier.free", dotColor: "var(--c-text-subtle)" },
- pro: { labelKey: "portal.tier.pro", dotColor: "var(--c-primary)" },
- enterprise: {
- labelKey: "portal.tier.enterprise",
- dotColor: "var(--color-purple)",
- },
-};
-
interface TierContextValue {
tier: Tier;
/** No-op when the tier is derived from the real plan (i.e. in the app). */
diff --git a/frontend/editor/src/portal/contexts/ViewContext.tsx b/frontend/editor/src/portal/contexts/ViewContext.tsx
index be333f56d3..dd9cf41b6c 100644
--- a/frontend/editor/src/portal/contexts/ViewContext.tsx
+++ b/frontend/editor/src/portal/contexts/ViewContext.tsx
@@ -17,22 +17,6 @@ export type ViewId =
| "procurement"
| "settings";
-export const VIEW_LABELS: Record<ViewId, string> = {
- home: "Home",
- editor: "Editor",
- users: "Users",
- sources: "Sources",
- integrations: "Integrations",
- policies: "Policies",
- pipelines: "Pipelines",
- documents: "Documents",
- infrastructure: "Infrastructure",
- usage: "Usage & Billing",
- docs: "Documentation",
- procurement: "Procurement",
- settings: "Settings",
-};
-
export const VIEW_PATHS: Record<ViewId, string> = {
home: "/",
editor: "/editor",
diff --git a/frontend/editor/src/portal/data/endpoints.ts b/frontend/editor/src/portal/data/endpoints.ts
index d6e440805d..974b654b5b 100644
--- a/frontend/editor/src/portal/data/endpoints.ts
+++ b/frontend/editor/src/portal/data/endpoints.ts
@@ -1254,14 +1254,6 @@ export const ENDPOINTS_BY_PATH: Record<string, Endpoint> = Object.fromEntries(
ALL_ENDPOINTS.map((e) => [e.endpoint, e]),
);
-/** Lookup a vertical by its key. */
-export const lookupVertical = (key: VerticalKey): Vertical | null =>
- VERTICALS.find((v) => v.key === key) ?? null;
-
-/** Lookup an endpoint by its route path. */
-export const lookupEndpoint = (path: string): Endpoint | null =>
- ENDPOINTS_BY_PATH[path] ?? null;
-
/** Tier-availability gate used by the docs / cards / picker. */
export function isEndpointAvailable(endpoint: Endpoint, tier: Tier): boolean {
if (endpoint.tier === 0) return true;
diff --git a/frontend/editor/src/portal/data/ops.ts b/frontend/editor/src/portal/data/ops.ts
index f650a13fad..e529eaab06 100644
--- a/frontend/editor/src/portal/data/ops.ts
+++ b/frontend/editor/src/portal/data/ops.ts
@@ -404,9 +404,6 @@ export const PIPELINE_AGENTS: readonly PipelineAgent[] = [
},
];
-export const lookupAgent = (id: string): PipelineAgent | null =>
- PIPELINE_AGENTS.find((a) => a.id === id) ?? null;
-
/* ──────────────────────────────────────────────────────────────────────── */
/* OP_CATEGORIES β€” picker section metadata */
/* ──────────────────────────────────────────────────────────────────────── */
@@ -1301,8 +1298,3 @@ export const DESTINATION_OPTIONS: readonly DestinationOption[] = [
desc: "Drop output files on an SFTP server",
},
];
-
-export const lookupSource = (id: string) =>
- SOURCE_OPTIONS.find((s) => s.id === id) ?? null;
-export const lookupDestination = (id: string) =>
- DESTINATION_OPTIONS.find((d) => d.id === id) ?? null;
diff --git a/frontend/editor/src/portal/docs/manifest/registry.ts b/frontend/editor/src/portal/docs/manifest/registry.ts
index 02d608f264..730367f87e 100644
--- a/frontend/editor/src/portal/docs/manifest/registry.ts
+++ b/frontend/editor/src/portal/docs/manifest/registry.ts
@@ -14,9 +14,6 @@ import type {
const manifest = JSON.parse(manifestRaw) as DocsManifest;
-/** Provenance of the current manifest (repo + ref it was generated from). */
-export const docsSource = manifest.source;
-
/** The auto-sorted nav tree (sections β†’ items). */
export function loadDocsNav(): DocsNavSection[] {
return manifest.nav;