#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
Render files, the editors and the file actions through <Icon> (#7896)
EthanHealy0198fb3c6e1b42
diff --git a/app/proprietary/src/main/resources/classification/classification-labels.json b/app/proprietary/src/main/resources/classification/classification-labels.jsonindex 72f09c3aea..e1adef6db2 100644--- a/app/proprietary/src/main/resources/classification/classification-labels.json+++ b/app/proprietary/src/main/resources/classification/classification-labels.json@@ -3,7 +3,7 @@{"id": "invoice","name": "Invoice",- "icon": "receipt-long"+ "icon": "receipt-text"},{"id": "receipt",@@ -13,12 +13,12 @@{"id": "credit-note","name": "Credit note",- "icon": "currency-exchange"+ "icon": "coins"},{"id": "debit-note","name": "Debit note",- "icon": "attach-money"+ "icon": "dollar-sign"},{"id": "purchase-order",@@ -33,42 +33,42 @@{"id": "quote","name": "Quote",- "icon": "request-quote"+ "icon": "file-text"},{"id": "estimate","name": "Estimate",- "icon": "price-check"+ "icon": "badge-dollar-sign"},{"id": "proforma-invoice","name": "Proforma invoice",- "icon": "paid"+ "icon": "circle-dollar-sign"},{"id": "bank-statement","name": "Bank statement",- "icon": "account-balance"+ "icon": "landmark"},{"id": "financial-statement","name": "Financial statement",- "icon": "account-balance-wallet"+ "icon": "wallet-cards"},{"id": "balance-sheet","name": "Balance sheet",- "icon": "table-chart"+ "icon": "table"},{"id": "income-statement","name": "Income statement",- "icon": "functions"+ "icon": "sigma"},{"id": "cash-flow-statement","name": "Cash flow statement",- "icon": "query-stats"+ "icon": "chart-line"},{"id": "expense-report",@@ -78,17 +78,17 @@{"id": "budget","name": "Budget",- "icon": "savings"+ "icon": "piggy-bank"},{"id": "financial-forecast","name": "Financial forecast",- "icon": "insights"+ "icon": "lightbulb"},{"id": "payslip","name": "Payslip",- "icon": "payments"+ "icon": "banknote"},{"id": "payroll-document",@@ -98,7 +98,7 @@{"id": "tax-form","name": "Tax form",- "icon": "calculate"+ "icon": "calculator"},{"id": "tax-return",@@ -108,7 +108,7 @@{"id": "tax-statement","name": "Tax statement",- "icon": "calculate"+ "icon": "calculator"},{"id": "remittance-advice",@@ -118,7 +118,7 @@{"id": "payment-reminder","name": "Payment reminder",- "icon": "schedule"+ "icon": "clock"},{"id": "statement-of-account",@@ -133,37 +133,37 @@{"id": "audit-report","name": "Audit report",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "annual-report","name": "Annual report",- "icon": "leaderboard"+ "icon": "trophy"},{"id": "quarterly-report","name": "Quarterly report",- "icon": "bar-chart"+ "icon": "chart-column"},{"id": "pricing-sheet","name": "Pricing sheet",- "icon": "sell"+ "icon": "tag"},{"id": "price-list","name": "Price list",- "icon": "format-list-bulleted"+ "icon": "list"},{"id": "loan-document","name": "Loan document",- "icon": "assured-workload"+ "icon": "shield-check"},{"id": "mortgage-document","name": "Mortgage document",- "icon": "home"+ "icon": "house"},{"id": "investment-summary",@@ -173,7 +173,7 @@{"id": "donation-receipt","name": "Donation receipt",- "icon": "volunteer-activism"+ "icon": "heart-handshake"},{"id": "contract",@@ -193,22 +193,22 @@{"id": "employment-contract","name": "Employment contract",- "icon": "work"+ "icon": "briefcase"},{"id": "lease-agreement","name": "Lease agreement",- "icon": "home-work"+ "icon": "building-2"},{"id": "rental-agreement","name": "Rental agreement",- "icon": "home-work"+ "icon": "building-2"},{"id": "license-agreement","name": "License agreement",- "icon": "verified"+ "icon": "badge-check"},{"id": "purchase-agreement",@@ -218,27 +218,27 @@{"id": "partnership-agreement","name": "Partnership agreement",- "icon": "diversity-3"+ "icon": "users"},{"id": "loan-agreement","name": "Loan agreement",- "icon": "account-balance"+ "icon": "landmark"},{"id": "settlement-agreement","name": "Settlement agreement",- "icon": "balance"+ "icon": "scale"},{"id": "vendor-agreement","name": "Vendor agreement",- "icon": "storefront"+ "icon": "store"},{"id": "franchise-agreement","name": "Franchise agreement",- "icon": "business-center"+ "icon": "briefcase-business"},{"id": "non-compete-agreement",@@ -248,12 +248,12 @@{"id": "amendment","name": "Amendment",- "icon": "edit-document"+ "icon": "file-pen"},{"id": "addendum","name": "Addendum",- "icon": "edit-document"+ "icon": "file-pen"},{"id": "terms-and-conditions",@@ -268,7 +268,7 @@{"id": "privacy-policy","name": "Privacy policy",- "icon": "privacy-tip"+ "icon": "shield-alert"},{"id": "power-of-attorney",@@ -283,7 +283,7 @@{"id": "will","name": "Will",- "icon": "history-edu"+ "icon": "book-open-text"},{"id": "trust-document",@@ -293,22 +293,22 @@{"id": "deed","name": "Deed",- "icon": "home-work"+ "icon": "building-2"},{"id": "court-filing","name": "Court filing",- "icon": "balance"+ "icon": "scale"},{"id": "legal-brief","name": "Legal brief",- "icon": "balance"+ "icon": "scale"},{"id": "legal-opinion","name": "Legal opinion",- "icon": "balance"+ "icon": "scale"},{"id": "legal-notice",@@ -328,22 +328,22 @@{"id": "compliance-document","name": "Compliance document",- "icon": "rule"+ "icon": "list-checks"},{"id": "regulatory-filing","name": "Regulatory filing",- "icon": "rule"+ "icon": "list-checks"},{"id": "consent-form","name": "Consent form",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "waiver","name": "Waiver",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "memorandum-of-understanding",@@ -353,17 +353,17 @@{"id": "letter-of-intent","name": "Letter of intent",- "icon": "draft"+ "icon": "file"},{"id": "articles-of-incorporation","name": "Articles of incorporation",- "icon": "business-center"+ "icon": "briefcase-business"},{"id": "bylaws","name": "Bylaws",- "icon": "rule"+ "icon": "list-checks"},{"id": "shareholder-agreement",@@ -373,17 +373,17 @@{"id": "board-resolution","name": "Board resolution",- "icon": "groups"+ "icon": "users"},{"id": "resume","name": "Resume",- "icon": "person"+ "icon": "user"},{"id": "cv","name": "CV",- "icon": "person"+ "icon": "user"},{"id": "cover-letter",@@ -393,17 +393,17 @@{"id": "job-description","name": "Job description",- "icon": "topic"+ "icon": "folder-open"},{"id": "job-application","name": "Job application",- "icon": "note-add"+ "icon": "file-plus"},{"id": "offer-letter","name": "Offer letter",- "icon": "work"+ "icon": "briefcase"},{"id": "onboarding-document",@@ -413,27 +413,27 @@{"id": "employee-handbook","name": "Employee handbook",- "icon": "menu-book"+ "icon": "book-open"},{"id": "hr-policy","name": "HR policy",- "icon": "policy"+ "icon": "scroll-text"},{"id": "performance-review","name": "Performance review",- "icon": "monitoring"+ "icon": "activity"},{"id": "timesheet","name": "Timesheet",- "icon": "schedule"+ "icon": "clock"},{"id": "leave-request","name": "Leave request",- "icon": "event"+ "icon": "calendar-days"},{"id": "resignation-letter",@@ -448,12 +448,12 @@{"id": "reference-letter","name": "Reference letter",- "icon": "contact-page"+ "icon": "contact"},{"id": "recommendation-letter","name": "Recommendation letter",- "icon": "how-to-reg"+ "icon": "user-check"},{"id": "training-material",@@ -463,17 +463,17 @@{"id": "organization-chart","name": "Organization chart",- "icon": "supervisor-account"+ "icon": "users-round"},{"id": "benefits-summary","name": "Benefits summary",- "icon": "health-and-safety"+ "icon": "shield-plus"},{"id": "hr-memo","name": "HR memo",- "icon": "sticky-note-2"+ "icon": "sticky-note"},{"id": "letter",@@ -483,22 +483,22 @@{"id": "email-thread","name": "Email thread",- "icon": "alternate-email"+ "icon": "at-sign"},{"id": "memo","name": "Memo",- "icon": "sticky-note-2"+ "icon": "sticky-note"},{"id": "meeting-minutes","name": "Meeting minutes",- "icon": "groups"+ "icon": "users"},{"id": "meeting-agenda","name": "Meeting agenda",- "icon": "checklist"+ "icon": "list-checks"},{"id": "newsletter",@@ -508,27 +508,27 @@{"id": "announcement","name": "Announcement",- "icon": "campaign"+ "icon": "megaphone"},{"id": "notice","name": "Notice",- "icon": "campaign"+ "icon": "megaphone"},{"id": "public-notice","name": "Public notice",- "icon": "public"+ "icon": "globe"},{"id": "press-release","name": "Press release",- "icon": "campaign"+ "icon": "megaphone"},{"id": "complaint-letter","name": "Complaint letter",- "icon": "forum"+ "icon": "messages-square"},{"id": "demand-letter",@@ -543,7 +543,7 @@{"id": "report","name": "Report",- "icon": "bar-chart"+ "icon": "chart-column"},{"id": "progress-report",@@ -553,62 +553,62 @@{"id": "status-report","name": "Status report",- "icon": "monitoring"+ "icon": "activity"},{"id": "incident-report","name": "Incident report",- "icon": "emergency"+ "icon": "siren"},{"id": "inspection-report","name": "Inspection report",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "survey-results","name": "Survey results",- "icon": "pie-chart"+ "icon": "chart-pie"},{"id": "market-research","name": "Market research",- "icon": "insights"+ "icon": "lightbulb"},{"id": "case-study","name": "Case study",- "icon": "article"+ "icon": "file-text"},{"id": "white-paper","name": "White paper",- "icon": "library-books"+ "icon": "library"},{"id": "research-paper","name": "Research paper",- "icon": "science"+ "icon": "flask-conical"},{"id": "research-abstract","name": "Research abstract",- "icon": "text-snippet"+ "icon": "file-text"},{"id": "feasibility-study","name": "Feasibility study",- "icon": "architecture"+ "icon": "drafting-compass"},{"id": "risk-assessment","name": "Risk assessment",- "icon": "security"+ "icon": "shield-check"},{"id": "analytics-report","name": "Analytics report",- "icon": "analytics"+ "icon": "chart-column"},{"id": "sales-report",@@ -618,52 +618,52 @@{"id": "expense-summary","name": "Expense summary",- "icon": "pie-chart"+ "icon": "chart-pie"},{"id": "board-report","name": "Board report",- "icon": "groups"+ "icon": "users"},{"id": "sustainability-report","name": "Sustainability report",- "icon": "eco"+ "icon": "leaf"},{"id": "standard-operating-procedure","name": "Standard operating procedure",- "icon": "rule"+ "icon": "list-checks"},{"id": "work-instruction","name": "Work instruction",- "icon": "checklist"+ "icon": "list-checks"},{"id": "manual","name": "Manual",- "icon": "menu-book"+ "icon": "book-open"},{"id": "user-guide","name": "User guide",- "icon": "auto-stories"+ "icon": "book-open"},{"id": "quick-start-guide","name": "Quick start guide",- "icon": "menu-book"+ "icon": "book-open"},{"id": "checklist","name": "Checklist",- "icon": "checklist"+ "icon": "list-checks"},{"id": "inventory-list","name": "Inventory list",- "icon": "inventory-2"+ "icon": "package"},{"id": "stock-report",@@ -678,12 +678,12 @@{"id": "delivery-note","name": "Delivery note",- "icon": "local-shipping"+ "icon": "truck"},{"id": "bill-of-lading","name": "Bill of lading",- "icon": "pallet"+ "icon": "boxes"},{"id": "waybill",@@ -693,12 +693,12 @@{"id": "customs-declaration","name": "Customs declaration",- "icon": "flight"+ "icon": "plane"},{"id": "customs-form","name": "Customs form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "freight-document",@@ -718,52 +718,52 @@{"id": "work-order","name": "Work order",- "icon": "task"+ "icon": "list-todo"},{"id": "maintenance-log","name": "Maintenance log",- "icon": "build"+ "icon": "wrench"},{"id": "service-report","name": "Service report",- "icon": "engineering"+ "icon": "hard-hat"},{"id": "quality-report","name": "Quality report",- "icon": "verified"+ "icon": "badge-check"},{"id": "safety-data-sheet","name": "Safety data sheet",- "icon": "health-and-safety"+ "icon": "shield-plus"},{"id": "safety-procedure","name": "Safety procedure",- "icon": "health-and-safety"+ "icon": "shield-plus"},{"id": "warehouse-receipt","name": "Warehouse receipt",- "icon": "inventory-2"+ "icon": "package"},{"id": "return-authorization","name": "Return authorization",- "icon": "redeem"+ "icon": "gift"},{"id": "proposal","name": "Proposal",- "icon": "slideshow"+ "icon": "presentation"},{"id": "business-proposal","name": "Business proposal",- "icon": "business-center"+ "icon": "briefcase-business"},{"id": "sales-proposal",@@ -773,12 +773,12 @@{"id": "pitch-deck","name": "Pitch deck",- "icon": "leaderboard"+ "icon": "trophy"},{"id": "presentation","name": "Presentation",- "icon": "slideshow"+ "icon": "presentation"},{"id": "brochure",@@ -793,67 +793,67 @@{"id": "catalog","name": "Catalog",- "icon": "menu-book"+ "icon": "book-open"},{"id": "product-sheet","name": "Product sheet",- "icon": "description"+ "icon": "file-text"},{"id": "marketing-plan","name": "Marketing plan",- "icon": "campaign"+ "icon": "megaphone"},{"id": "campaign-brief","name": "Campaign brief",- "icon": "campaign"+ "icon": "megaphone"},{"id": "media-kit","name": "Media kit",- "icon": "photo-camera"+ "icon": "camera"},{"id": "promotional-material","name": "Promotional material",- "icon": "celebration"+ "icon": "party-popper"},{"id": "advertisement","name": "Advertisement",- "icon": "campaign"+ "icon": "megaphone"},{"id": "request-for-proposal","name": "Request for proposal",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "request-for-quotation","name": "Request for quotation",- "icon": "request-quote"+ "icon": "file-text"},{"id": "tender-document","name": "Tender document",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "statement-of-work","name": "Statement of work",- "icon": "task"+ "icon": "list-todo"},{"id": "scope-of-work","name": "Scope of work",- "icon": "task"+ "icon": "list-todo"},{"id": "specification","name": "Specification",- "icon": "engineering"+ "icon": "hard-hat"},{"id": "technical-specification",@@ -863,22 +863,22 @@{"id": "requirements-document","name": "Requirements document",- "icon": "checklist"+ "icon": "list-checks"},{"id": "design-document","name": "Design document",- "icon": "design-services"+ "icon": "pencil-ruler"},{"id": "architecture-document","name": "Architecture document",- "icon": "architecture"+ "icon": "drafting-compass"},{"id": "datasheet","name": "Datasheet",- "icon": "table-chart"+ "icon": "table"},{"id": "schematic",@@ -893,12 +893,12 @@{"id": "technical-drawing","name": "Technical drawing",- "icon": "engineering"+ "icon": "hard-hat"},{"id": "floor-plan","name": "Floor plan",- "icon": "apartment"+ "icon": "building"},{"id": "patent",@@ -908,22 +908,22 @@{"id": "test-plan","name": "Test plan",- "icon": "checklist"+ "icon": "list-checks"},{"id": "test-report","name": "Test report",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "release-notes","name": "Release notes",- "icon": "article"+ "icon": "file-text"},{"id": "change-log","name": "Change log",- "icon": "edit-document"+ "icon": "file-pen"},{"id": "api-documentation",@@ -933,22 +933,22 @@{"id": "bill-of-materials","name": "Bill of materials",- "icon": "inventory-2"+ "icon": "package"},{"id": "business-plan","name": "Business plan",- "icon": "business-center"+ "icon": "briefcase-business"},{"id": "project-plan","name": "Project plan",- "icon": "task"+ "icon": "list-todo"},{"id": "project-charter","name": "Project charter",- "icon": "task"+ "icon": "list-todo"},{"id": "roadmap",@@ -963,17 +963,17 @@{"id": "meeting-notes","name": "Meeting notes",- "icon": "sticky-note-2"+ "icon": "sticky-note"},{"id": "action-plan","name": "Action plan",- "icon": "checklist"+ "icon": "list-checks"},{"id": "retrospective","name": "Retrospective",- "icon": "psychology"+ "icon": "brain"},{"id": "transcript",@@ -983,22 +983,22 @@{"id": "diploma","name": "Diploma",- "icon": "history-edu"+ "icon": "book-open-text"},{"id": "certificate","name": "Certificate",- "icon": "verified"+ "icon": "badge-check"},{"id": "certificate-of-completion","name": "Certificate of completion",- "icon": "verified"+ "icon": "badge-check"},{"id": "course-syllabus","name": "Course syllabus",- "icon": "menu-book"+ "icon": "book-open"},{"id": "lesson-plan",@@ -1008,12 +1008,12 @@{"id": "assignment-brief","name": "Assignment brief",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "exam-paper","name": "Exam paper",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "grade-report",@@ -1023,17 +1023,17 @@{"id": "thesis","name": "Thesis",- "icon": "science"+ "icon": "flask-conical"},{"id": "dissertation","name": "Dissertation",- "icon": "science"+ "icon": "flask-conical"},{"id": "study-guide","name": "Study guide",- "icon": "menu-book"+ "icon": "book-open"},{"id": "academic-record",@@ -1043,27 +1043,27 @@{"id": "medical-report","name": "Medical report",- "icon": "medical-services"+ "icon": "briefcase-medical"},{"id": "lab-report","name": "Lab report",- "icon": "science"+ "icon": "flask-conical"},{"id": "radiology-report","name": "Radiology report",- "icon": "monitor-heart"+ "icon": "heart-pulse"},{"id": "pathology-report","name": "Pathology report",- "icon": "medical-information"+ "icon": "clipboard-plus"},{"id": "prescription","name": "Prescription",- "icon": "medication"+ "icon": "pill"},{"id": "referral-letter",@@ -1073,17 +1073,17 @@{"id": "discharge-summary","name": "Discharge summary",- "icon": "medical-services"+ "icon": "briefcase-medical"},{"id": "immunization-record","name": "Immunization record",- "icon": "vaccines"+ "icon": "syringe"},{"id": "medical-invoice","name": "Medical invoice",- "icon": "receipt-long"+ "icon": "receipt-text"},{"id": "insurance-policy",@@ -1093,47 +1093,47 @@{"id": "insurance-claim","name": "Insurance claim",- "icon": "security"+ "icon": "shield-check"},{"id": "insurance-certificate","name": "Insurance certificate",- "icon": "approval"+ "icon": "badge-check"},{"id": "explanation-of-benefits","name": "Explanation of benefits",- "icon": "medical-information"+ "icon": "clipboard-plus"},{"id": "property-listing","name": "Property listing",- "icon": "real-estate-agent"+ "icon": "house-plus"},{"id": "appraisal-report","name": "Appraisal report",- "icon": "real-estate-agent"+ "icon": "house-plus"},{"id": "home-inspection-report","name": "Home inspection report",- "icon": "home"+ "icon": "house"},{"id": "title-document","name": "Title document",- "icon": "home-work"+ "icon": "building-2"},{"id": "closing-statement","name": "Closing statement",- "icon": "real-estate-agent"+ "icon": "house-plus"},{"id": "tenancy-agreement","name": "Tenancy agreement",- "icon": "home-work"+ "icon": "building-2"},{"id": "eviction-notice",@@ -1143,7 +1143,7 @@{"id": "hoa-document","name": "HOA document",- "icon": "home-work"+ "icon": "building-2"},{"id": "utility-bill",@@ -1153,32 +1153,32 @@{"id": "permit","name": "Permit",- "icon": "approval"+ "icon": "badge-check"},{"id": "license","name": "License",- "icon": "verified"+ "icon": "badge-check"},{"id": "registration-form","name": "Registration form",- "icon": "how-to-reg"+ "icon": "user-check"},{"id": "application-form","name": "Application form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "government-notice","name": "Government notice",- "icon": "campaign"+ "icon": "megaphone"},{"id": "grant-application","name": "Grant application",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "grant-agreement",@@ -1188,7 +1188,7 @@{"id": "visa-document","name": "Visa document",- "icon": "public"+ "icon": "globe"},{"id": "immigration-document",@@ -1198,7 +1198,7 @@{"id": "legal-filing","name": "Legal filing",- "icon": "balance"+ "icon": "scale"},{"id": "itinerary",@@ -1208,7 +1208,7 @@{"id": "travel-itinerary","name": "Travel itinerary",- "icon": "flight"+ "icon": "plane"},{"id": "booking-confirmation",@@ -1218,22 +1218,22 @@{"id": "reservation","name": "Reservation",- "icon": "restaurant"+ "icon": "utensils"},{"id": "ticket","name": "Ticket",- "icon": "confirmation-number"+ "icon": "ticket"},{"id": "event-agenda","name": "Event agenda",- "icon": "calendar-month"+ "icon": "calendar"},{"id": "event-program","name": "Event program",- "icon": "calendar-month"+ "icon": "calendar"},{"id": "invitation",@@ -1243,32 +1243,32 @@{"id": "registration-confirmation","name": "Registration confirmation",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "form","name": "Form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "questionnaire","name": "Questionnaire",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "survey-form","name": "Survey form",- "icon": "checklist"+ "icon": "list-checks"},{"id": "feedback-form","name": "Feedback form",- "icon": "forum"+ "icon": "messages-square"},{"id": "intake-form","name": "Intake form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "order-form",@@ -1278,12 +1278,12 @@{"id": "claim-form","name": "Claim form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "warranty-document","name": "Warranty document",- "icon": "assured-workload"+ "icon": "shield-check"},{"id": "membership-document",@@ -1293,12 +1293,12 @@{"id": "subscription-confirmation","name": "Subscription confirmation",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "gift-certificate","name": "Gift certificate",- "icon": "redeem"+ "icon": "gift"},{"id": "sponsorship-agreement",@@ -1308,37 +1308,37 @@{"id": "petition","name": "Petition",- "icon": "history-edu"+ "icon": "book-open-text"},{"id": "agenda","name": "Agenda",- "icon": "checklist"+ "icon": "list-checks"},{"id": "fact-sheet","name": "Fact sheet",- "icon": "summarize"+ "icon": "file-text"},{"id": "faq-document","name": "FAQ document",- "icon": "chat"+ "icon": "message-circle"},{"id": "glossary","name": "Glossary",- "icon": "menu-book"+ "icon": "book-open"},{"id": "index","name": "Index",- "icon": "format-list-bulleted"+ "icon": "list"},{"id": "table-of-contents","name": "Table of contents",- "icon": "topic"+ "icon": "folder-open"}]}diff --git a/frontend/editor/src/core/components/StorageStatsCard.tsx b/frontend/editor/src/core/components/StorageStatsCard.tsxindex d075e053b2..9e5d7bdd3d 100644--- a/frontend/editor/src/core/components/StorageStatsCard.tsx+++ b/frontend/editor/src/core/components/StorageStatsCard.tsx@@ -2,8 +2,7 @@ import React from "react";import { Card, Group, Text, Progress } from "@mantine/core";import { Button } from "@app/ui/Button";import { useTranslation } from "react-i18next";-import StorageIcon from "@mui/icons-material/Storage";-import DeleteIcon from "@mui/icons-material/Delete";+import { Icon } from "@app/ui/Icon";import { StorageStats } from "@app/services/fileStorage";import { formatFileSize } from "@app/utils/fileUtils";import { getStorageUsagePercent } from "@app/utils/storageUtils";@@ -30,7 +29,7 @@ const StorageStatsCard: React.FC<StorageStatsCardProps> = ({return (<Card withBorder p="sm" mb="md" style={{ width: "90%", maxWidth: 600 }}><Group align="center" gap="md">- <StorageIcon />+ <Icon name="server" /><div style={{ flex: 1 }}><Text size="sm" fw={500}>{t("fileManager.storage", "Storage")}:{" "}@@ -64,7 +63,7 @@ const StorageStatsCard: React.FC<StorageStatsCardProps> = ({accent="danger"size="sm"onClick={onClearAll}- leftSection={<DeleteIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="trash" size={16} />}>{t("fileManager.clearAll", "Clear All")}</Button>diff --git a/frontend/editor/src/core/components/fileEditor/AddFileCard.tsx b/frontend/editor/src/core/components/fileEditor/AddFileCard.tsxindex 5bce53410e..8138e4b895 100644--- a/frontend/editor/src/core/components/fileEditor/AddFileCard.tsx+++ b/frontend/editor/src/core/components/fileEditor/AddFileCard.tsx@@ -3,13 +3,13 @@ import { Group } from "@mantine/core";import { Button } from "@app/ui/Button";import { useTranslation } from "react-i18next";import { useFilesModalContext } from "@app/contexts/FilesModalContext";-import LocalIcon from "@app/components/shared/LocalIcon";import { Wordmark } from "@app/components/shared/Wordmark";import styles from "@app/components/fileEditor/FileEditor.module.css";import { useFileActionTerminology } from "@app/hooks/useFileActionTerminology";import { useFileActionIcons } from "@app/hooks/useFileActionIcons";import { openFilesFromDisk } from "@app/services/openFilesFromDisk";+import { Icon } from "@app/ui/Icon";interface AddFileCardProps {onFileSelect: (files: File[]) => void;accept?: string;@@ -125,10 +125,9 @@ const AddFileCard = ({onClick={handleOpenFilesModal}onMouseEnter={() => setIsUploadHover(false)}>- <LocalIcon- icon="add"- width="1.5rem"- height="1.5rem"+ <Icon+ name="plus"+ size="1.5rem"className="text-[var(--c-primary)]"/><span>{t("landing.addFiles", "Add Files")}</span>@@ -157,10 +156,9 @@ const AddFileCard = ({onClick={handleNativeUploadClick}onMouseEnter={() => setIsUploadHover(true)}>- <LocalIcon- icon={icons.uploadIconName}- width="1.25rem"- height="1.25rem"+ <Icon+ name={icons.upload}+ size="1.25rem"style={{ color: "var(--c-accent-text)", flexShrink: 0 }}/>{isUploadHover && (diff --git a/frontend/editor/src/core/components/fileEditor/FileEditorThumbnail.tsx b/frontend/editor/src/core/components/fileEditor/FileEditorThumbnail.tsxindex da218584d2..72d2e17f3e 100644--- a/frontend/editor/src/core/components/fileEditor/FileEditorThumbnail.tsx+++ b/frontend/editor/src/core/components/fileEditor/FileEditorThumbnail.tsx@@ -7,16 +7,7 @@ import { alert } from "@app/components/toast";import { useTranslation } from "react-i18next";import { useFileActionTerminology } from "@app/hooks/useFileActionTerminology";import { useFileActionIcons } from "@app/hooks/useFileActionIcons";-import CloseIcon from "@mui/icons-material/Close";-import VisibilityIcon from "@mui/icons-material/Visibility";-import UnarchiveIcon from "@mui/icons-material/Unarchive";-import CloudUploadIcon from "@mui/icons-material/CloudUpload";-import LinkIcon from "@mui/icons-material/Link";-import HistoryIcon from "@mui/icons-material/History";-import PushPinIcon from "@mui/icons-material/PushPin";-import LockOpenIcon from "@mui/icons-material/LockOpen";-import DragIndicatorIcon from "@mui/icons-material/DragIndicator";-import ShieldOutlinedIcon from "@mui/icons-material/ShieldOutlined";+import { Icon } from "@app/ui/Icon";import {draggable,dropTargetForElements,@@ -92,7 +83,6 @@ const FileEditorThumbnail = ({const { config } = useAppConfig();const terminology = useFileActionTerminology();const icons = useFileActionIcons();- const DownloadOutlinedIcon = icons.download;const {pinFile,unpinFile,@@ -325,7 +315,7 @@ const FileEditorThumbnail = ({const enforcingTooltip = (action: string): React.ReactNode => (<Stack gap={4} py={2} w={180}><Group gap={6} wrap="nowrap">- <ShieldOutlinedIcon style={{ fontSize: 13 }} />+ <Icon name="shield" size={13} /><Text size="xs" fw={600}>{t("policy.blockingAction",@@ -340,7 +330,7 @@ const FileEditorThumbnail = ({return [{id: "view",- icon: <VisibilityIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="eye" size={20} />,label: t("openInViewer", "Open in Viewer"),onClick: (e) => {e.stopPropagation();@@ -349,7 +339,7 @@ const FileEditorThumbnail = ({},{id: "pin",- icon: <PushPinIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="pin" size={20} filled={isPinned} />,label: isPinned? t("unpin", "Unpin File (replace after tool run)"): t("pin", "Pin File (keep active after tool run)"),@@ -379,7 +369,7 @@ const FileEditorThumbnail = ({},{id: "download",- icon: <DownloadOutlinedIcon style={{ fontSize: 20 }} />,+ icon: <Icon name={icons.download} size={20} />,label: terminology.download,disabled: policyEnforcing,tooltip: policyEnforcing@@ -394,7 +384,7 @@ const FileEditorThumbnail = ({? [{id: "upload",- icon: <CloudUploadIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="cloud-upload" size={20} />,label: uploadLabel,disabled: policyEnforcing,tooltip: policyEnforcing@@ -411,7 +401,7 @@ const FileEditorThumbnail = ({? [{id: "share",- icon: <LinkIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="link" size={20} />,label: t("fileManager.share", "Share"),disabled: policyEnforcing,tooltip: policyEnforcing@@ -426,7 +416,7 @@ const FileEditorThumbnail = ({: []),{id: "unzip",- icon: <UnarchiveIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="archive-restore" size={20} />,label: t("fileManager.unzip", "Unzip"),onClick: (e) => {e.stopPropagation();@@ -444,7 +434,7 @@ const FileEditorThumbnail = ({},{id: "versionHistory",- icon: <HistoryIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="rotate-ccw-clock" size={20} />,label: t("fileManager.versionHistory", "Version history"),onClick: (e) => {e.stopPropagation();@@ -454,7 +444,7 @@ const FileEditorThumbnail = ({},{id: "close",- icon: <CloseIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="x" size={20} />,label: t("close", "Close"),onClick: (e) => {e.stopPropagation();@@ -474,7 +464,6 @@ const FileEditorThumbnail = ({isPinned,actualFile,terminology,- DownloadOutlinedIcon,onViewFile,onDownloadFile,onUnzipFile,@@ -603,9 +592,7 @@ const FileEditorThumbnail = ({className={styles.backgroundPolicyPill}style={{ color: backgroundPolicy.accentColor }}>- {policyCategoryIcon(backgroundPolicy.id, {- fontSize: 14,- })}+ {policyCategoryIcon(backgroundPolicy.id, 14)}<Loader size={10} color={backgroundPolicy.accentColor} /></span></span>@@ -622,7 +609,7 @@ const FileEditorThumbnail = ({</span>{isPinned && (<span className={styles.pinnedBadge}>- <PushPinIcon style={{ fontSize: 12 }} />+ <Icon name="pin" size={12} filled /></span>)}{isSharedFile && !isOwnedOrLocal && (@@ -650,7 +637,7 @@ const FileEditorThumbnail = ({}}style={{ pointerEvents: "auto" }}>- <LockOpenIcon style={{ fontSize: 12 }} />+ <Icon name="lock-open" size={12} /></ActionIcon></Tooltip>)}@@ -663,7 +650,7 @@ const FileEditorThumbnail = ({{/* Drag handle */}<span ref={handleRef} className={styles.dragHandle} aria-hidden>- <DragIndicatorIcon fontSize="small" />+ <Icon name="grip-vertical" size={20} /></span></div>diff --git a/frontend/editor/src/core/components/fileManager/CompactFileDetails.tsx b/frontend/editor/src/core/components/fileManager/CompactFileDetails.tsxindex 27f55ce060..d99512593a 100644--- a/frontend/editor/src/core/components/fileManager/CompactFileDetails.tsx+++ b/frontend/editor/src/core/components/fileManager/CompactFileDetails.tsx@@ -2,9 +2,7 @@ import React from "react";import { Stack, Box, Text, Center } from "@mantine/core";import { Button } from "@app/ui/Button";import { ActionIcon } from "@app/ui/ActionIcon";-import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";-import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";-import ChevronRightIcon from "@mui/icons-material/ChevronRight";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";import { getFileSize } from "@app/utils/fileUtils";import { toolOperationLabel } from "@app/utils/toolOperationLabel";@@ -88,8 +86,10 @@ const CompactFileDetails: React.FC<CompactFileDetailsProps> = ({borderRadius: 4,}}>- <PictureAsPdfIcon- style={{ fontSize: 20, color: "var(--mantine-color-gray-6)" }}+ <Icon+ name="file-pdf"+ size={20}+ style={{ color: "var(--mantine-color-gray-6)" }}/></Center>) : null}@@ -137,7 +137,7 @@ const CompactFileDetails: React.FC<CompactFileDetailsProps> = ({disabled={isAnimating}aria-label={t("fileManager.previousFile", "Previous file")}>- <ChevronLeftIcon style={{ fontSize: 16 }} />+ <Icon name="chevron-left" size={16} /></ActionIcon><ActionIconvariant="tertiary"@@ -146,7 +146,7 @@ const CompactFileDetails: React.FC<CompactFileDetailsProps> = ({disabled={isAnimating}aria-label={t("fileManager.nextFile", "Next file")}>- <ChevronRightIcon style={{ fontSize: 16 }} />+ <Icon name="chevron-right" size={16} /></ActionIcon></Box>)}diff --git a/frontend/editor/src/core/components/fileManager/DragOverlay.tsx b/frontend/editor/src/core/components/fileManager/DragOverlay.tsxindex 04af539346..13fff23de2 100644--- a/frontend/editor/src/core/components/fileManager/DragOverlay.tsx+++ b/frontend/editor/src/core/components/fileManager/DragOverlay.tsx@@ -1,6 +1,6 @@import React from "react";import { Stack, Text } from "@mantine/core";-import UploadFileIcon from "@mui/icons-material/UploadFile";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";interface DragOverlayProps {@@ -34,8 +34,10 @@ const DragOverlay: React.FC<DragOverlayProps> = ({ isVisible }) => {<Stack align="center" gap="md">{/* Muted ink rather than the accent shade: it has to read on whateverthe overlay happens to sit on, in either scheme. */}- <UploadFileIcon- style={{ fontSize: "4rem", color: "var(--c-text-muted)" }}+ <Icon+ name="file-up"+ size={"4rem"}+ style={{ color: "var(--c-text-muted)" }}/><Text size="xl" fw={500} c="var(--c-text-muted)">{t("fileManager.dropFilesHere", "Drop files here to upload")}diff --git a/frontend/editor/src/core/components/fileManager/EmptyFilesState.tsx b/frontend/editor/src/core/components/fileManager/EmptyFilesState.tsxindex 890906abda..ad7691066b 100644--- a/frontend/editor/src/core/components/fileManager/EmptyFilesState.tsx+++ b/frontend/editor/src/core/components/fileManager/EmptyFilesState.tsx@@ -1,10 +1,9 @@import React, { useState } from "react";import { Group, Text, Stack } from "@mantine/core";import { Button } from "@app/ui/Button";-import HistoryIcon from "@mui/icons-material/History";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";import { useFileManagerContext } from "@app/contexts/FileManagerContext";-import LocalIcon from "@app/components/shared/LocalIcon";import { Wordmark } from "@app/components/shared/Wordmark";import { useFileActionTerminology } from "@app/hooks/useFileActionTerminology";import { useFileActionIcons } from "@app/hooks/useFileActionIcons";@@ -48,8 +47,10 @@ const EmptyFilesState: React.FC = () => {>{/* No Recent Files Message */}<Stack align="center" gap="sm">- <HistoryIcon- style={{ fontSize: "3rem", color: "var(--mantine-color-gray-5)" }}+ <Icon+ name="rotate-ccw-clock"+ size={"3rem"}+ style={{ color: "var(--mantine-color-gray-5)" }}/><Text c="dimmed" ta="center" size="lg">{t("fileManager.noRecentFiles", "No recent files")}@@ -99,10 +100,9 @@ const EmptyFilesState: React.FC = () => {onClick={handleUploadClick}onMouseEnter={() => setIsUploadHover(true)}>- <LocalIcon- icon={icons.uploadIconName}- width="1.25rem"- height="1.25rem"+ <Icon+ name={icons.upload}+ size="1.25rem"style={{ color: "var(--c-accent-text)" }}/>{isUploadHover && (diff --git a/frontend/editor/src/core/components/fileManager/FileActions.tsx b/frontend/editor/src/core/components/fileManager/FileActions.tsxindex 3226420c3f..eb383c6386 100644--- a/frontend/editor/src/core/components/fileManager/FileActions.tsx+++ b/frontend/editor/src/core/components/fileManager/FileActions.tsx@@ -2,10 +2,7 @@ import React, { useEffect } from "react";import { Group, Text, Tooltip } from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";import { SegmentedControl } from "@app/ui/SegmentedControl";-import SelectAllIcon from "@mui/icons-material/SelectAll";-import DeleteIcon from "@mui/icons-material/Delete";-import CloudUploadIcon from "@mui/icons-material/CloudUpload";-import LinkIcon from "@mui/icons-material/Link";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";import { useFileManagerContext } from "@app/contexts/FileManagerContext";import { useFileActionTerminology } from "@app/hooks/useFileActionTerminology";@@ -18,7 +15,6 @@ const FileActions: React.FC = () => {const { t } = useTranslation();const terminology = useFileActionTerminology();const icons = useFileActionIcons();- const DownloadIcon = icons.download;const { config } = useAppConfig();const [showBulkUploadModal, setShowBulkUploadModal] = React.useState(false);const [showBulkShareModal, setShowBulkShareModal] = React.useState(false);@@ -137,7 +133,7 @@ const FileActions: React.FC = () => {: t("fileManager.selectAll", "Select All")}>- <SelectAllIcon style={{ fontSize: "1rem" }} />+ <Icon name="select-all" size={"1rem"} /></ActionIcon></Tooltip>{showStorageFilter && (@@ -182,7 +178,7 @@ const FileActions: React.FC = () => {disabled={!canBulkUpload}aria-label={t("fileManager.uploadSelected", "Upload Selected")}>- <CloudUploadIcon style={{ fontSize: "1rem" }} />+ <Icon name="cloud-upload" size={"1rem"} /></ActionIcon></Tooltip>)}@@ -195,7 +191,7 @@ const FileActions: React.FC = () => {disabled={!canBulkShare}aria-label={t("fileManager.shareSelected", "Share Selected")}>- <LinkIcon style={{ fontSize: "1rem" }} />+ <Icon name="link" size={"1rem"} /></ActionIcon></Tooltip>)}@@ -208,7 +204,7 @@ const FileActions: React.FC = () => {disabled={!hasSelection}aria-label={t("fileManager.deleteSelected", "Delete Selected")}>- <DeleteIcon style={{ fontSize: "1rem" }} />+ <Icon name="trash" size={"1rem"} /></ActionIcon></Tooltip>@@ -220,7 +216,7 @@ const FileActions: React.FC = () => {disabled={!hasSelection || !hasDownloadAccess}aria-label={terminology.downloadSelected}>- <DownloadIcon style={{ fontSize: "1rem" }} />+ <Icon name={icons.download} size="1rem" /></ActionIcon></Tooltip></Group>diff --git a/frontend/editor/src/core/components/fileManager/FileListArea.tsx b/frontend/editor/src/core/components/fileManager/FileListArea.tsxindex 4ee5d7f2bd..110bb6bea4 100644--- a/frontend/editor/src/core/components/fileManager/FileListArea.tsx+++ b/frontend/editor/src/core/components/fileManager/FileListArea.tsx@@ -1,6 +1,6 @@import React from "react";import { Center, ScrollArea, Text, Stack } from "@mantine/core";-import CloudIcon from "@mui/icons-material/Cloud";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";import FileListItem from "@app/components/fileManager/FileListItem";import FileHistoryGroup from "@app/components/fileManager/FileHistoryGroup";@@ -94,8 +94,10 @@ const FileListArea: React.FC<FileListAreaProps> = ({return (<Center style={{ height: "12.5rem" }}><Stack align="center" gap="sm">- <CloudIcon- style={{ fontSize: "3rem", color: "var(--mantine-color-gray-5)" }}+ <Icon+ name="cloud"+ size={"3rem"}+ style={{ color: "var(--mantine-color-gray-5)" }}/><Text c="dimmed" ta="center">{t(diff --git a/frontend/editor/src/core/components/fileManager/FileListItem.tsx b/frontend/editor/src/core/components/fileManager/FileListItem.tsxindex 5a8e721c1b..c8c2964068 100644--- a/frontend/editor/src/core/components/fileManager/FileListItem.tsx+++ b/frontend/editor/src/core/components/fileManager/FileListItem.tsx@@ -9,16 +9,7 @@ import {Badge,} from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";-import MoreVertIcon from "@mui/icons-material/MoreVert";-import DeleteIcon from "@mui/icons-material/Delete";-import DownloadIcon from "@mui/icons-material/Download";-import HistoryIcon from "@mui/icons-material/History";-import RestoreIcon from "@mui/icons-material/Restore";-import UnarchiveIcon from "@mui/icons-material/Unarchive";-import CloseIcon from "@mui/icons-material/Close";-import CloudUploadIcon from "@mui/icons-material/CloudUpload";-import CloudDoneIcon from "@mui/icons-material/CloudDone";-import LinkIcon from "@mui/icons-material/Link";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";import { getFileSize, getFileDate } from "@app/utils/fileUtils";import { FileId, StirlingFileStub } from "@app/types/fileContext";@@ -274,7 +265,7 @@ const FileListItem: React.FC<FileListItemProps> = ({size="xs"variant="light"color="yellow"- leftSection={<CloudUploadIcon style={{ fontSize: 12 }} />}+ leftSection={<Icon name="cloud-upload" size={12} />}>{t("fileManager.changesNotUploaded", "Changes not uploaded")}</Badge>@@ -283,7 +274,7 @@ const FileListItem: React.FC<FileListItemProps> = ({size="xs"variant="light"color="teal"- leftSection={<CloudDoneIcon style={{ fontSize: 12 }} />}+ leftSection={<Icon name="cloud-check" size={12} />}>{t("fileManager.synced", "Synced")}</Badge>@@ -335,7 +326,7 @@ const FileListItem: React.FC<FileListItemProps> = ({pointerEvents: shouldShowHovered ? "auto" : "none",}}>- <MoreVertIcon style={{ fontSize: 20 }} />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon></Menu.Target>@@ -344,7 +335,7 @@ const FileListItem: React.FC<FileListItemProps> = ({{isActive && (<><Menu.Item- leftSection={<CloseIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="x" size={16} />}onClick={(e) => {e.stopPropagation();removeFiles([file.id]);@@ -358,7 +349,7 @@ const FileListItem: React.FC<FileListItemProps> = ({{canDownloadFile && (<Menu.Item- leftSection={<DownloadIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="download" size={16} />}onClick={(e) => {e.stopPropagation();onDownload?.();@@ -370,7 +361,7 @@ const FileListItem: React.FC<FileListItemProps> = ({{canUpload && (<Menu.Item- leftSection={<CloudUploadIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="cloud-upload" size={16} />}onClick={(e) => {e.stopPropagation();setShowUploadModal(true);@@ -384,7 +375,7 @@ const FileListItem: React.FC<FileListItemProps> = ({{canShare && (<Menu.Item- leftSection={<LinkIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="link" size={16} />}onClick={(e) => {e.stopPropagation();setShowShareModal(true);@@ -396,7 +387,7 @@ const FileListItem: React.FC<FileListItemProps> = ({{canCopyShareLink && (<Menu.Item- leftSection={<LinkIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="link" size={16} />}onClick={(e) => {e.stopPropagation();void handleCopyShareLink();@@ -408,7 +399,7 @@ const FileListItem: React.FC<FileListItemProps> = ({{canManageShare && (<Menu.Item- leftSection={<LinkIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="link" size={16} />}onClick={(e) => {e.stopPropagation();setShowShareManageModal(true);@@ -422,7 +413,7 @@ const FileListItem: React.FC<FileListItemProps> = ({{isLatestVersion && hasVersionHistory && (<><Menu.Item- leftSection={<HistoryIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="rotate-ccw-clock" size={16} />}onClick={(e) => {e.stopPropagation();onToggleExpansion(leafFileId);@@ -440,7 +431,7 @@ const FileListItem: React.FC<FileListItemProps> = ({{isHistoryFile && (<><Menu.Item- leftSection={<RestoreIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="rotate-ccw-clock" size={16} />}onClick={(e) => {e.stopPropagation();}}@@ -455,7 +446,7 @@ const FileListItem: React.FC<FileListItemProps> = ({{isZipFile && !isHistoryFile && !isCBZ && !isCBR && (<><Menu.Item- leftSection={<UnarchiveIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="archive-restore" size={16} />}onClick={(e) => {e.stopPropagation();onUnzipFile(file);@@ -468,7 +459,7 @@ const FileListItem: React.FC<FileListItemProps> = ({)}<Menu.Item- leftSection={<DeleteIcon style={{ fontSize: 16 }} />}+ leftSection={<Icon name="trash" size={16} />}onClick={(e) => {e.stopPropagation();onRemove();diff --git a/frontend/editor/src/core/components/fileManager/FileSourceButtons.tsx b/frontend/editor/src/core/components/fileManager/FileSourceButtons.tsxindex 20ebaa191e..368a8a1ca2 100644--- a/frontend/editor/src/core/components/fileManager/FileSourceButtons.tsx+++ b/frontend/editor/src/core/components/fileManager/FileSourceButtons.tsx@@ -1,8 +1,7 @@import React, { useState } from "react";import { Stack, Text, Group } from "@mantine/core";import { Button } from "@app/ui/Button";-import HistoryIcon from "@mui/icons-material/History";-import PhonelinkIcon from "@mui/icons-material/Phonelink";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";import { useFileManagerContext } from "@app/contexts/FileManagerContext";import { useGoogleDrivePicker } from "@app/hooks/useGoogleDrivePicker";@@ -11,7 +10,6 @@ import { useFileActionIcons } from "@app/hooks/useFileActionIcons";import { useAppConfig } from "@app/contexts/AppConfigContext";import { useIsMobile } from "@app/hooks/useIsMobile";import MobileUploadModal from "@app/components/shared/MobileUploadModal";-import { GoogleDriveIcon } from "@app/components/shared/CloudStorageIcons";interface FileSourceButtonsProps {horizontal?: boolean;@@ -32,7 +30,6 @@ const FileSourceButtons: React.FC<FileSourceButtonsProps> = ({useGoogleDrivePicker();const terminology = useFileActionTerminology();const icons = useFileActionIcons();- const UploadIcon = icons.upload;const [mobileUploadModalOpen, setMobileUploadModalOpen] = useState(false);const { config } = useAppConfig();const isMobile = useIsMobile();@@ -74,7 +71,7 @@ const FileSourceButtons: React.FC<FileSourceButtonsProps> = ({<Buttonvariant={activeSource === "recent" ? "primary" : "tertiary"}accent="neutral"- leftSection={<HistoryIcon />}+ leftSection={<Icon name="rotate-ccw-clock" />}justify={buttonJustify}onClick={() => onSourceChange("recent")}fullWidth={!horizontal}@@ -86,7 +83,7 @@ const FileSourceButtons: React.FC<FileSourceButtonsProps> = ({<Buttonvariant="tertiary"accent="neutral"- leftSection={<UploadIcon />}+ leftSection={<Icon name={icons.upload} />}justify={buttonJustify}onClick={onLocalFileClick}fullWidth={!horizontal}@@ -99,7 +96,13 @@ const FileSourceButtons: React.FC<FileSourceButtonsProps> = ({<Buttonvariant="tertiary"accent="neutral"- leftSection={<GoogleDriveIcon colored={isGoogleDriveEnabled} />}+ leftSection={+ <Icon+ name="googledrive"+ size={18}+ colorless={!isGoogleDriveEnabled}+ />+ }justify={buttonJustify}onClick={handleGoogleDriveClick}fullWidth={!horizontal}@@ -124,7 +127,7 @@ const FileSourceButtons: React.FC<FileSourceButtonsProps> = ({<Buttonvariant="tertiary"accent="neutral"- leftSection={<PhonelinkIcon />}+ leftSection={<Icon name="monitor-smartphone" />}justify={buttonJustify}onClick={handleMobileUploadClick}fullWidth={!horizontal}diff --git a/frontend/editor/src/core/components/fileManager/SearchInput.tsx b/frontend/editor/src/core/components/fileManager/SearchInput.tsxindex b7dbf9306c..c6d369088a 100644--- a/frontend/editor/src/core/components/fileManager/SearchInput.tsx+++ b/frontend/editor/src/core/components/fileManager/SearchInput.tsx@@ -1,6 +1,6 @@import React from "react";import { TextInput } from "@mantine/core";-import SearchIcon from "@mui/icons-material/Search";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";import { useFileManagerContext } from "@app/contexts/FileManagerContext";@@ -15,7 +15,7 @@ const SearchInput: React.FC<SearchInputProps> = ({ style }) => {return (<TextInputplaceholder={t("fileManager.searchFiles", "Search files...")}- leftSection={<SearchIcon />}+ leftSection={<Icon name="search" />}value={searchTerm}onChange={(e) => onSearchChange(e.target.value)}style={{ padding: "0.5rem", ...style }}diff --git a/frontend/editor/src/core/components/filesPage/DeleteFilesDialog.tsx b/frontend/editor/src/core/components/filesPage/DeleteFilesDialog.tsxindex 0261cf58dd..697b9334e1 100644--- a/frontend/editor/src/core/components/filesPage/DeleteFilesDialog.tsx+++ b/frontend/editor/src/core/components/filesPage/DeleteFilesDialog.tsx@@ -1,8 +1,7 @@import { useEffect, useMemo, useState } from "react";import { useTranslation } from "react-i18next";import { Alert, Group, Modal, Radio, Stack, Text } from "@mantine/core";-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutlined";-+import { Icon } from "@app/ui/Icon";import { Button } from "@app/ui/Button";import type { StirlingFileStub } from "@app/types/fileContext";@@ -157,7 +156,7 @@ export function DeleteFilesDialog({{error && (<Alertcolor="red"- icon={<ErrorOutlineIcon fontSize="small" />}+ icon={<Icon name="circle-alert" size={20} />}variant="light"role="alert">diff --git a/frontend/editor/src/core/components/filesPage/DeleteFolderDialog.tsx b/frontend/editor/src/core/components/filesPage/DeleteFolderDialog.tsxindex 0a4776d203..c7cf3a196c 100644--- a/frontend/editor/src/core/components/filesPage/DeleteFolderDialog.tsx+++ b/frontend/editor/src/core/components/filesPage/DeleteFolderDialog.tsx@@ -1,8 +1,7 @@import React, { useEffect, useState } from "react";import { useTranslation } from "react-i18next";import { Alert, Checkbox, Group, Modal, Stack, Text } from "@mantine/core";-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutlined";-+import { Icon } from "@app/ui/Icon";import { Button } from "@app/ui/Button";import { folderKind, FolderRecord } from "@app/types/folder";@@ -93,7 +92,7 @@ export function DeleteFolderDialog({{error && (<Alertcolor="red"- icon={<ErrorOutlineIcon fontSize="small" />}+ icon={<Icon name="circle-alert" size={20} />}variant="light"role="alert">diff --git a/frontend/editor/src/core/components/filesPage/FileDetailsPanel.tsx b/frontend/editor/src/core/components/filesPage/FileDetailsPanel.tsxindex ff570bbe1d..6acc8cc448 100644--- a/frontend/editor/src/core/components/filesPage/FileDetailsPanel.tsx+++ b/frontend/editor/src/core/components/filesPage/FileDetailsPanel.tsx@@ -3,17 +3,7 @@ import { useTranslation } from "react-i18next";import { Badge, Tooltip } from "@mantine/core";import { Button } from "@app/ui/Button";import { ActionIcon } from "@app/ui/ActionIcon";-import CloseIcon from "@mui/icons-material/Close";-import OpenInNewIcon from "@mui/icons-material/OpenInNew";-import DriveFileMoveIcon from "@mui/icons-material/DriveFileMove";-import DeleteIcon from "@mui/icons-material/Delete";-import DownloadIcon from "@mui/icons-material/Download";-import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";-import HistoryIcon from "@mui/icons-material/History";-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";-import LinkIcon from "@mui/icons-material/Link";-import CloudUploadIcon from "@mui/icons-material/CloudUpload";-+import { Icon } from "@app/ui/Icon";import { FileId } from "@app/types/file";import { FolderRecord } from "@app/types/folder";import { StirlingFileStub } from "@app/types/fileContext";@@ -184,7 +174,7 @@ export function FileDetailsPanel({onClick={onClose}aria-label={t("filesPage.closeDetails", "Close details")}>- <CloseIcon fontSize="small" />+ <Icon name="x" size={20} /></ActionIcon></Tooltip></div>@@ -200,8 +190,10 @@ export function FileDetailsPanel({{single.thumbnailUrl ? (<img src={single.thumbnailUrl} alt="" />) : (- <PictureAsPdfIcon- style={{ fontSize: "3rem", color: "var(--c-text-subtle)" }}+ <Icon+ name="file-pdf"+ size={"3rem"}+ style={{ color: "var(--c-text-subtle)" }}/>)}</div>@@ -232,11 +224,12 @@ export function FileDetailsPanel({onClick={() => setFieldsOpen((o) => !o)}aria-expanded={fieldsOpen}rightSection={- <KeyboardArrowDownIcon+ <Icon+ name="chevron-down"+ size={20}className={`files-page-details-collapse-chevron${fieldsOpen ? " is-open" : ""}`}- fontSize="small"/>}>@@ -284,11 +277,12 @@ export function FileDetailsPanel({onClick={() => setClassificationOpen((o) => !o)}aria-expanded={classificationOpen}rightSection={- <KeyboardArrowDownIcon+ <Icon+ name="chevron-down"+ size={20}className={`files-page-details-collapse-chevron${classificationOpen ? " is-open" : ""}`}- fontSize="small"/>}>@@ -336,7 +330,7 @@ export function FileDetailsPanel({{versionChain.length > 1 &&(compactVersions && onOpenVersionHistory ? (<Button- leftSection={<HistoryIcon fontSize="small" />}+ leftSection={<Icon name="rotate-ccw-clock" size={20} />}variant="secondary"onClick={onOpenVersionHistory}>@@ -356,11 +350,12 @@ export function FileDetailsPanel({onClick={() => setVersionsOpen((o) => !o)}aria-expanded={versionsOpen}rightSection={- <KeyboardArrowDownIcon+ <Icon+ name="chevron-down"+ size={20}className={`files-page-details-collapse-chevron${versionsOpen ? " is-open" : ""}`}- fontSize="small"/>}>@@ -400,7 +395,7 @@ export function FileDetailsPanel({<div className="files-page-details-actions"><Button- leftSection={<OpenInNewIcon fontSize="small" />}+ leftSection={<Icon name="external-link" size={20} />}onClick={() => onAddToWorkspace(selectedFileIds)}>{files.length === 1@@ -410,7 +405,7 @@ export function FileDetailsPanel({})}</Button><Button- leftSection={<DownloadIcon fontSize="small" />}+ leftSection={<Icon name="download" size={20} />}variant="secondary"onClick={handleDownload}loading={downloading}@@ -437,7 +432,7 @@ export function FileDetailsPanel({w={260}><Button- leftSection={<LinkIcon fontSize="small" />}+ leftSection={<Icon name="link" size={20} />}variant="secondary"disabled={!sharingEnabled}onClick={() => setShareModalOpen(true)}@@ -451,7 +446,7 @@ export function FileDetailsPanel({</Tooltip>)}<Button- leftSection={<DriveFileMoveIcon fontSize="small" />}+ leftSection={<Icon name="folder-input" size={20} />}variant="secondary"onClick={() => onMove(selectedFileIds)}>@@ -469,7 +464,7 @@ export function FileDetailsPanel({w={260}><Button- leftSection={<CloudUploadIcon fontSize="small" />}+ leftSection={<Icon name="cloud-upload" size={20} />}variant="secondary"disabled={Boolean(saveToServerDisabledReason)}onClick={() => onSaveToServer(localOnlyFiles)}@@ -483,7 +478,7 @@ export function FileDetailsPanel({</Tooltip>)}<Button- leftSection={<DeleteIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}accent="danger"onClick={() => onRemove(selectedFileIds)}>diff --git a/frontend/editor/src/core/components/filesPage/FileGrid.tsx b/frontend/editor/src/core/components/filesPage/FileGrid.tsxindex 73606ad1e2..ee90caca1e 100644--- a/frontend/editor/src/core/components/filesPage/FileGrid.tsx+++ b/frontend/editor/src/core/components/filesPage/FileGrid.tsx@@ -9,28 +9,9 @@ import { useTranslation } from "react-i18next";import { Checkbox, Loader, Menu, Tooltip } from "@mantine/core";import { Button } from "@app/ui/Button";import { ActionIcon } from "@app/ui/ActionIcon";-import MoreVertIcon from "@mui/icons-material/MoreVert";+import { Icon } from "@app/ui/Icon";import { PolicyBadges as PolicyBadgeRow } from "@app/components/shared/PolicyBadges";import type { FileItemPolicyRef } from "@app/components/shared/PolicyBadges";-import FolderIcon from "@mui/icons-material/Folder";-import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";-import InsertDriveFileIcon from "@mui/icons-material/InsertDriveFile";-import DriveFileMoveIcon from "@mui/icons-material/DriveFileMove";-import DeleteIcon from "@mui/icons-material/Delete";-import HistoryIcon from "@mui/icons-material/History";-import OpenInNewIcon from "@mui/icons-material/OpenInNew";-import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";-import AutoModeIcon from "@mui/icons-material/AutoMode";-import PlayArrowIcon from "@mui/icons-material/PlayArrow";-import PauseIcon from "@mui/icons-material/Pause";-import ReplayIcon from "@mui/icons-material/Replay";-import TuneIcon from "@mui/icons-material/Tune";-import TaskAltIcon from "@mui/icons-material/TaskAlt";-import ContentCopyOutlinedIcon from "@mui/icons-material/ContentCopyOutlined";-import CloudUploadIcon from "@mui/icons-material/CloudUpload";-import UploadFileIcon from "@mui/icons-material/UploadFile";-import SearchIcon from "@mui/icons-material/Search";-import { FileId } from "@app/types/file";import {FolderId,@@ -451,7 +432,7 @@ function EmptyState({return (<div className="files-page-empty"><span className="files-page-empty-icon">- <SearchIcon style={{ fontSize: "2.5rem" }} />+ <Icon name="search" size={"2.5rem"} /></span><div className="files-page-empty-title">{t("filesPage.empty.noResults.title", "No matching files")}@@ -525,7 +506,7 @@ function EmptyState({return (<div className="files-page-empty"><span className="files-page-empty-icon">- <FolderIcon style={{ fontSize: "2.5rem" }} />+ <Icon name="folder" size={"2.5rem"} /></span><div className="files-page-empty-title">{t(titleKey, titleFallback)}</div><div className="files-page-empty-hint">{t(hintKey, hintFallback)}</div>@@ -534,7 +515,7 @@ function EmptyState({{showUpload && (<Buttonsize="md"- leftSection={<UploadFileIcon fontSize="small" />}+ leftSection={<Icon name="file-up" size={20} />}onClick={onUpload}>{t("filesPage.empty.uploadCta", "Upload files")}@@ -802,12 +783,12 @@ const FolderCard = React.memo(function FolderCard({onClick={(e) => e.stopPropagation()}aria-label={t("filesPage.folderMenu", "Folder actions")}>- <MoreVertIcon fontSize="small" />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon></Menu.Target><Menu.Dropdown><Menu.Item- leftSection={<OpenInNewIcon fontSize="small" />}+ leftSection={<Icon name="external-link" size={20} />}onClick={onOpen}>{t("filesPage.open", "Open")}@@ -836,7 +817,7 @@ const FolderCard = React.memo(function FolderCard({{editsHidden && folder.parentFolderId === null && (<Menu.Itemcolor="red"- leftSection={<DeleteIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}onClick={() => actions.deleteFolder(folder)}>{t("filesPage.removeLocalFolder", "Unmount from Stirling")}@@ -845,7 +826,7 @@ const FolderCard = React.memo(function FolderCard({{!editsHidden && (<><Menu.Item- leftSection={<DriveFileRenameOutlineIcon fontSize="small" />}+ leftSection={<Icon name="file-pen" size={20} />}onClick={() => actions.renameFolder(folder)}disabled={editsDisabled}title={editsDisabled ? offlineHint : undefined}@@ -881,7 +862,7 @@ const FolderCard = React.memo(function FolderCard({<Menu.Divider /><Menu.Itemcolor="red"- leftSection={<DeleteIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}onClick={() => actions.deleteFolder(folder)}disabled={editsDisabled}title={editsDisabled ? offlineHint : undefined}@@ -990,7 +971,7 @@ export function ProcessingMenuItems({<>{heading}<Menu.Item- leftSection={<AutoModeIcon fontSize="small" />}+ leftSection={<Icon name="workflow" size={20} />}onClick={onStart}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -1007,7 +988,7 @@ export function ProcessingMenuItems({<>{heading}<Menu.Item- leftSection={<PlayArrowIcon fontSize="small" />}+ leftSection={<Icon name="play" size={20} />}onClick={onResume}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -1016,7 +997,7 @@ export function ProcessingMenuItems({</Menu.Item>{onEdit && (<Menu.Item- leftSection={<TuneIcon fontSize="small" />}+ leftSection={<Icon name="sliders-horizontal" size={20} />}onClick={onEdit}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -1026,7 +1007,7 @@ export function ProcessingMenuItems({)}{onRevertAll && (<Menu.Item- leftSection={<HistoryIcon fontSize="small" />}+ leftSection={<Icon name="rotate-ccw-clock" size={20} />}onClick={onRevertAll}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -1036,7 +1017,7 @@ export function ProcessingMenuItems({)}<Menu.Itemcolor="red"- leftSection={<AutoModeIcon fontSize="small" />}+ leftSection={<Icon name="workflow" size={20} />}onClick={onRemove}disabled={disabled}title={disabled ? disabledHint : undefined}@@ -1051,23 +1032,26 @@ export function ProcessingMenuItems({{heading}{!continuous && (<Menu.Item- leftSection={<ReplayIcon fontSize="small" />}+ leftSection={<Icon name="rotate-ccw" size={20} />}onClick={onRun}>{t("filesPage.processing.sweep", "Retry failed files")}</Menu.Item>)}- <Menu.Item leftSection={<PauseIcon fontSize="small" />} onClick={onStop}>+ <Menu.Item leftSection={<Icon name="pause" size={20} />} onClick={onStop}>{t("filesPage.processing.stop", "Pause processing")}</Menu.Item>{onEdit && (- <Menu.Item leftSection={<TuneIcon fontSize="small" />} onClick={onEdit}>+ <Menu.Item+ leftSection={<Icon name="sliders-horizontal" size={20} />}+ onClick={onEdit}+ >{t("filesPage.processing.edit", "Edit processing...")}</Menu.Item>)}{onRevertAll && (<Menu.Item- leftSection={<HistoryIcon fontSize="small" />}+ leftSection={<Icon name="rotate-ccw-clock" size={20} />}onClick={onRevertAll}>{t("filesPage.processing.restoreAll", "Restore all originals")}@@ -1090,7 +1074,7 @@ function FileStateBadge({if (state === "done") {return (<span className="files-page-state-badge is-done">- <TaskAltIcon style={{ fontSize: "0.85rem" }} />+ <Icon name="circle-check-big" size="0.85rem" />{t("filesPage.diskState.done", "Ready")}</span>);@@ -1117,7 +1101,7 @@ function FileStateBadge({}}title={t("filesPage.diskState.retryHint", "Run this file again")}>- <ReplayIcon style={{ fontSize: "0.8rem" }} />+ <Icon name="rotate-ccw" size="0.8rem" />{t("filesPage.diskState.retry", "Retry")}</button>)}@@ -1165,7 +1149,7 @@ function FileActionsMenu({}: FileActionsMenuProps) {const { t } = useTranslation();const terminology = useFileActionTerminology();- const DownloadIcon = useFileActionIcons().download;+ const downloadIcon = useFileActionIcons().download;const showSaveToServer =saveToServerAvailable && file.remoteStorageId == null;const showVersionHistory =@@ -1181,12 +1165,12 @@ function FileActionsMenu({aria-label={t("filesPage.fileMenu", "File actions")}data-testid="file-card-actions">- <MoreVertIcon fontSize="small" />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon></Menu.Target><Menu.Dropdown><Menu.Item- leftSection={<OpenInNewIcon fontSize="small" />}+ leftSection={<Icon name="external-link" size={20} />}onClick={(e) => {e.stopPropagation();actions.openFile(file);@@ -1196,7 +1180,7 @@ function FileActionsMenu({</Menu.Item><OpenInNewWindowMenuItem file={file} /><Menu.Item- leftSection={<DriveFileMoveIcon fontSize="small" />}+ leftSection={<Icon name="folder-input" size={20} />}onClick={(e) => {e.stopPropagation();actions.requestMoveFile(file.id);@@ -1211,7 +1195,7 @@ function FileActionsMenu({)}{downloadAvailable && (<Menu.Item- leftSection={<DownloadIcon fontSize="small" />}+ leftSection={<Icon name={downloadIcon} size={20} />}onClick={(e) => {e.stopPropagation();actions.downloadFile(file);@@ -1223,7 +1207,7 @@ function FileActionsMenu({)}{renameAvailable && (<Menu.Item- leftSection={<DriveFileRenameOutlineIcon fontSize="small" />}+ leftSection={<Icon name="file-pen" size={20} />}onClick={(e) => {e.stopPropagation();actions.renameFile(file);@@ -1235,7 +1219,7 @@ function FileActionsMenu({)}{duplicateAvailable && (<Menu.Item- leftSection={<ContentCopyOutlinedIcon fontSize="small" />}+ leftSection={<Icon name="copy" size={20} />}onClick={(e) => {e.stopPropagation();actions.duplicateFile(file);@@ -1259,7 +1243,7 @@ function FileActionsMenu({w={240}><Menu.Item- leftSection={<CloudUploadIcon fontSize="small" />}+ leftSection={<Icon name="cloud-upload" size={20} />}disabled={Boolean(saveToServerDisabledReason)}onClick={(e) => {e.stopPropagation();@@ -1277,7 +1261,7 @@ function FileActionsMenu({)}{showVersionHistory && (<Menu.Item- leftSection={<HistoryIcon fontSize="small" />}+ leftSection={<Icon name="rotate-ccw-clock" size={20} />}onClick={(e) => {e.stopPropagation();actions.versionHistory(file);@@ -1290,7 +1274,7 @@ function FileActionsMenu({<Menu.Divider /><Menu.Itemcolor="red"- leftSection={<DeleteIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}onClick={(e) => {e.stopPropagation();actions.removeFile(file.id);@@ -1444,9 +1428,9 @@ const FileCard = React.memo(function FileCard({) : (<div className="files-page-card-thumb-fallback">{isPdf ? (- <PictureAsPdfIcon style={{ fontSize: "2rem" }} />+ <Icon name="file-pdf" size={"2rem"} />) : (- <InsertDriveFileIcon style={{ fontSize: "2rem" }} />+ <Icon name="file" size={"2rem"} />)}<span>{extension || "FILE"}</span></div>@@ -1840,12 +1824,12 @@ const FolderRow = React.memo(function FolderRow({onClick={(e) => e.stopPropagation()}aria-label={t("filesPage.folderMenu", "Folder actions")}>- <MoreVertIcon fontSize="small" />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon></Menu.Target><Menu.Dropdown><Menu.Item- leftSection={<OpenInNewIcon fontSize="small" />}+ leftSection={<Icon name="external-link" size={20} />}onClick={onOpen}>{t("filesPage.open", "Open")}@@ -1874,7 +1858,7 @@ const FolderRow = React.memo(function FolderRow({{editsHidden && folder.parentFolderId === null && (<Menu.Itemcolor="red"- leftSection={<DeleteIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}onClick={() => actions.deleteFolder(folder)}>{t("filesPage.removeLocalFolder", "Unmount from Stirling")}@@ -1883,7 +1867,7 @@ const FolderRow = React.memo(function FolderRow({{!editsHidden && (<><Menu.Item- leftSection={<DriveFileRenameOutlineIcon fontSize="small" />}+ leftSection={<Icon name="file-pen" size={20} />}onClick={() => actions.renameFolder(folder)}disabled={editsDisabled}title={editsDisabled ? offlineHint : undefined}@@ -1919,7 +1903,7 @@ const FolderRow = React.memo(function FolderRow({<Menu.Divider /><Menu.Itemcolor="red"- leftSection={<DeleteIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}onClick={() => actions.deleteFolder(folder)}disabled={editsDisabled}title={editsDisabled ? offlineHint : undefined}@@ -2064,7 +2048,7 @@ const FileRow = React.memo(function FileRow({}}/>) : (- <PictureAsPdfIcon fontSize="small" />+ <Icon name="file-pdf" size={20} />)}<spanstyle={{@@ -2180,9 +2164,9 @@ const DiskFileCard = React.memo(function DiskFileCard({) : (<div className="files-page-card-thumb-fallback">{isPdf ? (- <PictureAsPdfIcon style={{ fontSize: "2rem" }} />+ <Icon name="file-pdf" size={"2rem"} />) : (- <InsertDriveFileIcon style={{ fontSize: "2rem" }} />+ <Icon name="file" size={"2rem"} />)}<span>{extension || "FILE"}</span></div>@@ -2220,12 +2204,12 @@ const DiskFileCard = React.memo(function DiskFileCard({onClick={(e) => e.stopPropagation()}aria-label={t("filesPage.fileMenu", "File actions")}>- <MoreVertIcon fontSize="small" />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon></Menu.Target><Menu.Dropdown><Menu.Item- leftSection={<OpenInNewIcon fontSize="small" />}+ leftSection={<Icon name="external-link" size={20} />}onClick={(e) => {e.stopPropagation();onOpen();@@ -2235,7 +2219,7 @@ const DiskFileCard = React.memo(function DiskFileCard({</Menu.Item>{hasOriginal && (<Menu.Item- leftSection={<HistoryIcon fontSize="small" />}+ leftSection={<Icon name="rotate-ccw-clock" size={20} />}onClick={(e) => {e.stopPropagation();actions.revertFile(entry.name);@@ -2308,9 +2292,9 @@ const DiskFileRow = React.memo(function DiskFileRow({}}/>) : ext === "PDF" ? (- <PictureAsPdfIcon fontSize="small" />+ <Icon name="file-pdf" size={20} />) : (- <InsertDriveFileIcon fontSize="small" />+ <Icon name="file" size={20} />)}<spanstyle={{@@ -2349,19 +2333,19 @@ const DiskFileRow = React.memo(function DiskFileRow({onClick={(e) => e.stopPropagation()}aria-label={t("filesPage.fileMenu", "File actions")}>- <MoreVertIcon fontSize="small" />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon></Menu.Target><Menu.Dropdown><Menu.Item- leftSection={<OpenInNewIcon fontSize="small" />}+ leftSection={<Icon name="external-link" size={20} />}onClick={onOpen}>{t("filesPage.addToWorkspace", "Add to workspace")}</Menu.Item>{hasOriginal && (<Menu.Item- leftSection={<HistoryIcon fontSize="small" />}+ leftSection={<Icon name="rotate-ccw-clock" size={20} />}onClick={() => actions.revertFile(entry.name)}>{t("filesPage.processing.restore", "Restore original")}diff --git a/frontend/editor/src/core/components/filesPage/FileManagerView.tsx b/frontend/editor/src/core/components/filesPage/FileManagerView.tsxindex e7abbc8641..147f63a6a6 100644--- a/frontend/editor/src/core/components/filesPage/FileManagerView.tsx+++ b/frontend/editor/src/core/components/filesPage/FileManagerView.tsx@@ -1,3 +1,4 @@+import { Icon } from "@app/ui/Icon";import React, {useCallback,useEffect,@@ -20,19 +21,6 @@ import { Button } from "@app/ui/Button";import { ActionIcon } from "@app/ui/ActionIcon";import { SegmentedControl } from "@app/ui/SegmentedControl";import { useMediaQuery } from "@mantine/hooks";-import CloseIcon from "@mui/icons-material/Close";-import SearchIcon from "@mui/icons-material/Search";-import UploadFileIcon from "@mui/icons-material/UploadFile";-import GridViewIcon from "@mui/icons-material/GridView";-import ViewListIcon from "@mui/icons-material/ViewList";-import DeleteIcon from "@mui/icons-material/Delete";-import DriveFileMoveIcon from "@mui/icons-material/DriveFileMove";-import OpenInNewIcon from "@mui/icons-material/OpenInNew";-import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";-import CloudUploadIcon from "@mui/icons-material/CloudUpload";-import RefreshIcon from "@mui/icons-material/Refresh";-import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";-import MoreHorizIcon from "@mui/icons-material/MoreHoriz";import { FilesToolbarBulkMenu } from "@app/components/filesPage/FilesToolbarBulkMenu";import { FilesToolbarCount } from "@app/components/filesPage/FilesToolbarCount";import { FilesToolbarFilterMenu } from "@app/components/filesPage/FilesToolbarFilterMenu";@@ -76,14 +64,6 @@ import {FilesPageEntry,type DiskFileState,} from "@app/components/filesPage/FileGrid";-import AutoModeIcon from "@mui/icons-material/AutoMode";-import PlayArrowIcon from "@mui/icons-material/PlayArrow";-import PauseIcon from "@mui/icons-material/Pause";-import ReplayIcon from "@mui/icons-material/Replay";-import TuneIcon from "@mui/icons-material/Tune";-import HistoryIcon from "@mui/icons-material/History";-import PaletteIcon from "@mui/icons-material/Palette";-import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";import { FolderAppearancePicker } from "@app/components/filesPage/FolderAppearancePicker";import { useProcessingFolders } from "@app/hooks/useProcessingFolders";import { FolderProcessingSetup } from "@app/components/policies/FolderProcessingSetup";@@ -1473,7 +1453,7 @@ export default function FileManagerView() {aria-label={t("filesPage.refresh", "Refresh from server")}onClick={handleRefresh}>- <RefreshIcon fontSize="small" />+ <Icon name="refresh-cw" size={20} /></ActionIcon></Tooltip>{newFolderControl}@@ -1484,7 +1464,7 @@ export default function FileManagerView() {aria-label={t("filesPage.upload", "Upload")}onClick={openFilePicker}>- <UploadFileIcon fontSize="small" />+ <Icon name="file-up" size={20} /></ActionIcon></Tooltip></>@@ -1671,7 +1651,7 @@ export default function FileManagerView() {"Process files in this folder...",)}>- <AutoModeIcon fontSize="small" />+ <Icon name="workflow" size={20} /></ActionIcon></Tooltip>) : (@@ -1701,7 +1681,7 @@ export default function FileManagerView() {"Retry failed files",)}>- <ReplayIcon fontSize="small" />+ <Icon name="rotate-ccw" size={20} /></ActionIcon></Tooltip>)}@@ -1726,7 +1706,7 @@ export default function FileManagerView() {"Pause processing",)}>- <PauseIcon fontSize="small" />+ <Icon name="pause" size={20} /></ActionIcon></Tooltip></>@@ -1752,7 +1732,7 @@ export default function FileManagerView() {"Resume processing",)}>- <PlayArrowIcon fontSize="small" />+ <Icon name="play" size={20} /></ActionIcon></Tooltip>)}@@ -1772,7 +1752,7 @@ export default function FileManagerView() {"Edit processing...",)}>- <TuneIcon fontSize="small" />+ <Icon name="sliders-horizontal" size={20} /></ActionIcon></Tooltip>{folderKind(currentFolder) === "local" && (@@ -1792,7 +1772,7 @@ export default function FileManagerView() {"Restore all originals",)}>- <HistoryIcon fontSize="small" />+ <Icon name="rotate-ccw-clock" size={20} /></ActionIcon></Tooltip>)}@@ -1817,7 +1797,7 @@ export default function FileManagerView() {"Remove processing",)}>- <AutoModeIcon fontSize="small" />+ <Icon name="workflow" size={20} /></ActionIcon></Tooltip></>@@ -1840,7 +1820,7 @@ export default function FileManagerView() {"Unmount from Stirling",)}>- <DeleteIcon fontSize="small" />+ <Icon name="trash" size={20} /></ActionIcon></Tooltip>)@@ -1857,7 +1837,7 @@ export default function FileManagerView() {disabled={headerEditsDisabled}aria-label={t("filesPage.rename", "Rename")}>- <DriveFileRenameOutlineIcon fontSize="small" />+ <Icon name="file-pen" size={20} /></ActionIcon></Tooltip><Menu shadow="md" position="bottom-start" withinPortal>@@ -1875,7 +1855,7 @@ export default function FileManagerView() {"Appearance",)}>- <PaletteIcon fontSize="small" />+ <Icon name="palette" size={20} /></ActionIcon></Tooltip></Menu.Target>@@ -1921,7 +1901,7 @@ export default function FileManagerView() {"Delete folder",)}>- <DeleteIcon fontSize="small" />+ <Icon name="trash" size={20} /></ActionIcon></Tooltip></>@@ -2008,7 +1988,9 @@ export default function FileManagerView() {<Tooltip label={addLabel} withinPortal><Buttonsize="sm"- leftSection={<OpenInNewIcon fontSize="small" />}+ leftSection={+ <Icon name="external-link" size={20} />+ }onClick={() =>handleAddToWorkspace(selectedFiles)}@@ -2035,7 +2017,7 @@ export default function FileManagerView() {size="sm"variant="secondary"leftSection={- <CloudUploadIcon fontSize="small" />+ <Icon name="cloud-upload" size={20} />}disabled={Boolean(saveToServerDisabledReason)}onClick={() =>@@ -2069,9 +2051,7 @@ export default function FileManagerView() {<Buttonsize="sm"variant="secondary"- leftSection={- <InfoOutlinedIcon fontSize="small" />- }+ leftSection={<Icon name="info" size={20} />}onClick={() => setMobileDetailsOpen(true)}aria-label={t("filesPage.showDetails",@@ -2087,7 +2067,7 @@ export default function FileManagerView() {size="sm"variant="secondary"leftSection={- <DriveFileMoveIcon fontSize="small" />+ <Icon name="folder-input" size={20} />}onClick={() => promptMoveFiles(selectedFiles)}aria-label={moveLabel}@@ -2100,7 +2080,7 @@ export default function FileManagerView() {size="sm"accent="danger"variant="secondary"- leftSection={<DeleteIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}onClick={() => handleRemoveFiles(selectedFiles)}aria-label={removeLabel}>@@ -2218,7 +2198,7 @@ export default function FileManagerView() {"filesPage.search.placeholder","Filter files…",)}- leftSection={<SearchIcon sx={{ fontSize: "1rem" }} />}+ leftSection={<Icon name="search" size={"1rem"} />}rightSection={search ? (<ActionIcon@@ -2230,7 +2210,7 @@ export default function FileManagerView() {"Clear filter",)}>- <CloseIcon sx={{ fontSize: "0.9rem" }} />+ <Icon name="x" size={"0.9rem"} /></ActionIcon>) : null}@@ -2318,7 +2298,7 @@ export default function FileManagerView() {className="files-page-view-toggle-icon"title={t("filesPage.viewMode.grid", "Grid view")}>- <GridViewIcon fontSize="small" />+ <Icon name="layout-grid" size={20} /><span className="files-page-sr-only">{t("filesPage.viewMode.grid", "Grid view")}</span>@@ -2332,7 +2312,7 @@ export default function FileManagerView() {className="files-page-view-toggle-icon"title={t("filesPage.viewMode.list", "List view")}>- <ViewListIcon fontSize="small" />+ <Icon name="list" size={20} /><span className="files-page-sr-only">{t("filesPage.viewMode.list", "List view")}</span>@@ -2444,7 +2424,7 @@ export default function FileManagerView() {{isDraggingExternal && (<div className="files-page-drop-overlay" aria-live="polite"><span className="files-page-drop-overlay-icon">- <UploadFileIcon />+ <Icon name="file-up" /></span><span>{t("filesPage.dropOverlay", "Drop files to upload")}@@ -2745,7 +2725,7 @@ function Breadcrumbs() {"Show parent folders",)}>- <MoreHorizIcon fontSize="small" />+ <Icon name="ellipsis" size={20} /></ActionIcon></Menu.Target><Menu.Dropdown>@@ -2759,9 +2739,10 @@ function Breadcrumbs() {))}</Menu.Dropdown></Menu>- <KeyboardArrowRightIcon+ <Icon+ name="chevron-right"+ size={20}className="files-page-breadcrumb-sep"- fontSize="small"aria-hidden="true"/></>@@ -2780,9 +2761,10 @@ function Breadcrumbs() {{entry.name}</button>{!isLast && (- <KeyboardArrowRightIcon+ <Icon+ name="chevron-right"+ size={20}className="files-page-breadcrumb-sep"- fontSize="small"aria-hidden="true"/>)}diff --git a/frontend/editor/src/core/components/filesPage/FileOriginBadge.tsx b/frontend/editor/src/core/components/filesPage/FileOriginBadge.tsxindex 2ea4507a14..078ed1810e 100644--- a/frontend/editor/src/core/components/filesPage/FileOriginBadge.tsx+++ b/frontend/editor/src/core/components/filesPage/FileOriginBadge.tsx@@ -1,10 +1,7 @@import React from "react";import { useTranslation } from "react-i18next";import { Tooltip } from "@mantine/core";-import ComputerIcon from "@mui/icons-material/Computer";-import CloudDoneIcon from "@mui/icons-material/CloudDone";-import GroupIcon from "@mui/icons-material/Group";-+import { Icon } from "@app/ui/Icon";import { FileOrigin } from "@app/components/filesPage/fileOrigin";interface FileOriginBadgeProps {@@ -54,7 +51,7 @@ export function FileOriginBadge({case "cloud":return {label: t("filesPage.origin.cloud", "Cloud"),- icon: <CloudDoneIcon style={{ fontSize: "0.85rem" }} />,+ icon: <Icon name="cloud-check" size={"0.85rem"} />,style: styles.cloud,tooltip: t("filesPage.origin.cloudHint",@@ -64,7 +61,7 @@ export function FileOriginBadge({case "shared-with-me":return {label: t("filesPage.origin.shared", "Shared"),- icon: <GroupIcon style={{ fontSize: "0.85rem" }} />,+ icon: <Icon name="users" size={"0.85rem"} />,style: styles.shared,tooltip: t("filesPage.origin.sharedHint", "Shared with you via link"),};@@ -72,7 +69,7 @@ export function FileOriginBadge({default:return {label: t("filesPage.origin.local", "Local"),- icon: <ComputerIcon style={{ fontSize: "0.85rem" }} />,+ icon: <Icon name="monitor" size={"0.85rem"} />,style: styles.local,tooltip: t("filesPage.origin.localHint",diff --git a/frontend/editor/src/core/components/filesPage/FilesToolbarBulkMenu.tsx b/frontend/editor/src/core/components/filesPage/FilesToolbarBulkMenu.tsxindex 3e344ac7b0..5e642ef250 100644--- a/frontend/editor/src/core/components/filesPage/FilesToolbarBulkMenu.tsx+++ b/frontend/editor/src/core/components/filesPage/FilesToolbarBulkMenu.tsx@@ -1,12 +1,6 @@import { Menu } from "@mantine/core";import { useTranslation } from "react-i18next";-import CloudUploadIcon from "@mui/icons-material/CloudUpload";-import DeleteIcon from "@mui/icons-material/Delete";-import DriveFileMoveIcon from "@mui/icons-material/DriveFileMove";-import ExpandMoreIcon from "@mui/icons-material/ExpandMore";-import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";-import OpenInNewIcon from "@mui/icons-material/OpenInNew";-+import { Icon } from "@app/ui/Icon";import { Button } from "@app/ui/Button";interface FilesToolbarBulkMenuProps {@@ -52,7 +46,7 @@ export function FilesToolbarBulkMenu({size="sm"variant="secondary"className="files-page-toolbar-bulk-trigger"- rightSection={<ExpandMoreIcon sx={{ fontSize: "1.1rem" }} />}+ rightSection={<Icon name="chevron-down" size={"1.1rem"} />}aria-label={t("filesPage.bulkActions", "Actions")}>{t("filesPage.bulkActions", "Actions")}@@ -60,14 +54,14 @@ export function FilesToolbarBulkMenu({</Menu.Target><Menu.Dropdown><Menu.Item- leftSection={<OpenInNewIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="external-link" size={"1.1rem"} />}onClick={onAddToWorkspace}>{addLabel}</Menu.Item>{onSaveToServer && (<Menu.Item- leftSection={<CloudUploadIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="cloud-upload" size={"1.1rem"} />}disabled={Boolean(saveToServerDisabledReason)}onClick={onSaveToServer}>@@ -76,14 +70,14 @@ export function FilesToolbarBulkMenu({)}{onShowDetails && (<Menu.Item- leftSection={<InfoOutlinedIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="info" size={"1.1rem"} />}onClick={onShowDetails}>{t("filesPage.showDetails", "Show details")}</Menu.Item>)}<Menu.Item- leftSection={<DriveFileMoveIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="folder-input" size={"1.1rem"} />}onClick={onMove}>{t("filesPage.moveTo", "Move to…")}@@ -91,7 +85,7 @@ export function FilesToolbarBulkMenu({<Menu.Divider /><Menu.Itemcolor="red"- leftSection={<DeleteIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="trash" size={"1.1rem"} />}onClick={onRemove}>{t("filesPage.remove", "Remove")}diff --git a/frontend/editor/src/core/components/filesPage/FilesToolbarFilterMenu.tsx b/frontend/editor/src/core/components/filesPage/FilesToolbarFilterMenu.tsxindex 81d84daf67..9f54cf3364 100644--- a/frontend/editor/src/core/components/filesPage/FilesToolbarFilterMenu.tsx+++ b/frontend/editor/src/core/components/filesPage/FilesToolbarFilterMenu.tsx@@ -1,9 +1,6 @@import { MultiSelect, Popover, Select, Stack, TextInput } from "@mantine/core";import { useTranslation } from "react-i18next";-import CloseIcon from "@mui/icons-material/Close";-import SearchIcon from "@mui/icons-material/Search";-import TuneIcon from "@mui/icons-material/Tune";-+import { Icon } from "@app/ui/Icon";import { ActionIcon } from "@app/ui/ActionIcon";import { Button } from "@app/ui/Button";import { Tooltip } from "@app/components/shared/Tooltip";@@ -72,7 +69,7 @@ export function FilesToolbarFilterMenu({aria-label={label}className="files-page-toolbar-icon-btn">- <TuneIcon sx={{ fontSize: "1.1rem" }} />+ <Icon name="sliders-horizontal" size={"1.1rem"} /></ActionIcon></Tooltip></div>@@ -84,7 +81,7 @@ export function FilesToolbarFilterMenu({value={search}onChange={(e) => onSearchChange(e.currentTarget.value)}placeholder={t("filesPage.search.placeholder", "Filter files…")}- leftSection={<SearchIcon sx={{ fontSize: "1rem" }} />}+ leftSection={<Icon name="search" size={"1rem"} />}rightSection={search ? (<ActionIcon@@ -93,7 +90,7 @@ export function FilesToolbarFilterMenu({onClick={() => onSearchChange("")}aria-label={t("filesPage.search.clear", "Clear filter")}>- <CloseIcon sx={{ fontSize: "0.9rem" }} />+ <Icon name="x" size={"0.9rem"} /></ActionIcon>) : null}diff --git a/frontend/editor/src/core/components/filesPage/FilesToolbarSortMenu.tsx b/frontend/editor/src/core/components/filesPage/FilesToolbarSortMenu.tsxindex d8a5ee1018..c69a1619bb 100644--- a/frontend/editor/src/core/components/filesPage/FilesToolbarSortMenu.tsx+++ b/frontend/editor/src/core/components/filesPage/FilesToolbarSortMenu.tsx@@ -1,8 +1,6 @@import { Menu } from "@mantine/core";import { useTranslation } from "react-i18next";-import CheckIcon from "@mui/icons-material/Check";-import SwapVertIcon from "@mui/icons-material/SwapVert";-+import { Icon } from "@app/ui/Icon";import { ActionIcon } from "@app/ui/ActionIcon";import { Tooltip } from "@app/components/shared/Tooltip";import type { FilesPageSortMode } from "@app/contexts/FilesPageContext";@@ -56,7 +54,7 @@ export function FilesToolbarSortMenu({aria-label={`${label}: ${current}`}className="files-page-toolbar-icon-btn">- <SwapVertIcon sx={{ fontSize: "1.1rem" }} />+ <Icon name="arrow-up-down" size={"1.1rem"} /></ActionIcon></Tooltip></div>@@ -69,7 +67,7 @@ export function FilesToolbarSortMenu({onClick={() => onChange(option.value)}leftSection={option.value === value ? (- <CheckIcon sx={{ fontSize: "1rem" }} />+ <Icon name="check" size={"1rem"} />) : (<span style={{ display: "inline-block", width: "1rem" }} />)diff --git a/frontend/editor/src/core/components/filesPage/FolderNameDialog.tsx b/frontend/editor/src/core/components/filesPage/FolderNameDialog.tsxindex 62858076cd..c8324f38bd 100644--- a/frontend/editor/src/core/components/filesPage/FolderNameDialog.tsx+++ b/frontend/editor/src/core/components/filesPage/FolderNameDialog.tsx@@ -1,8 +1,7 @@import React, { useEffect, useState } from "react";import { useTranslation } from "react-i18next";import { Alert, Group, Modal, Stack, TextInput } from "@mantine/core";-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutlined";-+import { Icon } from "@app/ui/Icon";import { Button } from "@app/ui/Button";interface FolderNameDialogProps {@@ -88,7 +87,7 @@ export function FolderNameDialog({{error && (<Alertcolor="red"- icon={<ErrorOutlineIcon fontSize="small" />}+ icon={<Icon name="circle-alert" size={20} />}variant="light"role="alert">diff --git a/frontend/editor/src/core/components/filesPage/FolderTreeSidebar.tsx b/frontend/editor/src/core/components/filesPage/FolderTreeSidebar.tsxindex b59b0994f9..4858216ceb 100644--- a/frontend/editor/src/core/components/filesPage/FolderTreeSidebar.tsx+++ b/frontend/editor/src/core/components/filesPage/FolderTreeSidebar.tsx@@ -2,14 +2,7 @@ import React, { useCallback, useMemo, useState } from "react";import { useTranslation } from "react-i18next";import { Menu } from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";-import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";-import HomeIcon from "@mui/icons-material/Home";-import DevicesOtherIcon from "@mui/icons-material/DevicesOther";-import CreateNewFolderIcon from "@mui/icons-material/CreateNewFolder";-import EditIcon from "@mui/icons-material/Edit";-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlined";-import MoreVertIcon from "@mui/icons-material/MoreVert";+import { Icon } from "@app/ui/Icon";import { FolderThumbnail } from "@app/components/filesPage/FolderThumbnail";import { useFolders } from "@app/contexts/FolderContext";@@ -212,7 +205,7 @@ function RootRow({ fileCount, isActive, onSelect, onDropFiles }: RootRowProps) {><span className="files-page-tree-spacer" /><span className="files-page-tree-icon">- <HomeIcon fontSize="small" />+ <Icon name="house" size={20} /></span><span className="files-page-tree-name">{t("filesPage.allFiles", "All files")}@@ -250,7 +243,7 @@ function LocalRow({ isActive, onSelect }: LocalRowProps) {><span className="files-page-tree-spacer" /><span className="files-page-tree-icon">- <DevicesOtherIcon fontSize="small" />+ <Icon name="tablet-smartphone" size={20} /></span><span className="files-page-tree-name">{t("filesPage.tabName.local", "Local")}@@ -421,9 +414,9 @@ function TreeNodeRow({}}>{open ? (- <KeyboardArrowDownIcon fontSize="small" />+ <Icon name="chevron-down" size={20} />) : (- <KeyboardArrowRightIcon fontSize="small" />+ <Icon name="chevron-right" size={20} />)}</span>) : (@@ -462,12 +455,12 @@ function TreeNodeRow({setMenuOpen((o) => !o);}}>- <MoreVertIcon fontSize="small" />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon></Menu.Target><Menu.Dropdown><Menu.Item- leftSection={<EditIcon fontSize="small" />}+ leftSection={<Icon name="pencil" size={20} />}onClick={(e) => {e.stopPropagation();onRenameFolder(node.folder);@@ -487,7 +480,7 @@ function TreeNodeRow({{t("filesPage.treeMenu.rename", "Rename")}</Menu.Item><Menu.Item- leftSection={<CreateNewFolderIcon fontSize="small" />}+ leftSection={<Icon name="folder-plus" size={20} />}onClick={(e) => {e.stopPropagation();onRequestNewFolder(node.folder.id);@@ -514,7 +507,7 @@ function TreeNodeRow({{(kind !== "local" || node.folder.parentFolderId === null) && (<Menu.Itemcolor="red"- leftSection={<DeleteOutlineIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}onClick={(e) => {e.stopPropagation();onDeleteFolder(node.folder);diff --git a/frontend/editor/src/core/components/filesPage/MoveToFolderDialog.tsx b/frontend/editor/src/core/components/filesPage/MoveToFolderDialog.tsxindex 0d978621d9..b6e474a3ec 100644--- a/frontend/editor/src/core/components/filesPage/MoveToFolderDialog.tsx+++ b/frontend/editor/src/core/components/filesPage/MoveToFolderDialog.tsx@@ -9,12 +9,7 @@ import {TextInput,Tooltip,} from "@mantine/core";-import HomeIcon from "@mui/icons-material/Home";-import FolderIcon from "@mui/icons-material/Folder";-import FolderOpenIcon from "@mui/icons-material/FolderOpen";-import CreateNewFolderIcon from "@mui/icons-material/CreateNewFolder";-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutlined";-+import { Icon } from "@app/ui/Icon";import { Button } from "@app/ui/Button";import { ActionIcon } from "@app/ui/ActionIcon";import { FolderId, FolderRecord, ROOT_FOLDER_ID } from "@app/types/folder";@@ -244,7 +239,7 @@ export function MoveToFolderDialog({<Buttonvariant="tertiary"size="sm"- leftSection={<CreateNewFolderIcon fontSize="small" />}+ leftSection={<Icon name="folder-plus" size={20} />}onClick={() => {setCreatingFolder(true);setNewFolderName("");@@ -262,7 +257,7 @@ export function MoveToFolderDialog({{error && (<Alertcolor="red"- icon={<ErrorOutlineIcon fontSize="small" />}+ icon={<Icon name="circle-alert" size={20} />}variant="light"role="alert">@@ -331,11 +326,11 @@ function FolderPick({disabled={disabled}leftSection={isRoot ? (- <HomeIcon fontSize="small" />+ <Icon name="house" size={20} />) : isActive ? (- <FolderOpenIcon fontSize="small" style={{ color }} />+ <Icon name="folder-open" size={20} style={{ color }} />) : (- <FolderIcon fontSize="small" style={{ color }} />+ <Icon name="folder" size={20} style={{ color }} />)}style={{diff --git a/frontend/editor/src/core/components/filesPage/NewFolderButton.tsx b/frontend/editor/src/core/components/filesPage/NewFolderButton.tsxindex fdc39eec06..3ec7602325 100644--- a/frontend/editor/src/core/components/filesPage/NewFolderButton.tsx+++ b/frontend/editor/src/core/components/filesPage/NewFolderButton.tsx@@ -1,9 +1,6 @@+import { Icon } from "@app/ui/Icon";import type { ReactNode } from "react";import { Menu, Text, Tooltip } from "@mantine/core";-import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";-import CloudIcon from "@mui/icons-material/Cloud";-import CreateNewFolderIcon from "@mui/icons-material/CreateNewFolder";-import DriveFolderUploadIcon from "@mui/icons-material/DriveFolderUpload";import { useTranslation } from "react-i18next";import { ActionIcon } from "@app/ui/ActionIcon";@@ -77,7 +74,7 @@ export function NewFolderButton({}}><span className="file-sidebar-action-icon">- <CreateNewFolderIcon />+ <Icon name="folder-plus" /></span>{!collapsed && (<span className="file-sidebar-action-label sidebar-content-fade">@@ -108,13 +105,13 @@ export function NewFolderButton({aria-label={label}style={{ pointerEvents: "auto" }}>- <CreateNewFolderIcon fontSize="small" />+ <Icon name="folder-plus" size={20} /></ActionIcon>) : (<Buttonvariant="secondary"size={size}- leftSection={<CreateNewFolderIcon fontSize="small" />}+ leftSection={<Icon name="folder-plus" size={20} />}disabledstyle={{ pointerEvents: "auto" }}>@@ -152,7 +149,7 @@ export function NewFolderButton({aria-label={label}onClick={open}>- <CreateNewFolderIcon fontSize="small" />+ <Icon name="folder-plus" size={20} /></ActionIcon></Tooltip>);@@ -161,7 +158,7 @@ export function NewFolderButton({<Buttonvariant="secondary"size={size}- leftSection={<CreateNewFolderIcon fontSize="small" />}+ leftSection={<Icon name="folder-plus" size={20} />}onClick={() =>currentFolderId !== null? onOpenDialog()@@ -181,15 +178,15 @@ export function NewFolderButton({) : iconOnly ? (<Tooltip label={label} withinPortal><ActionIcon variant="tertiary" size="sm" aria-label={label}>- <CreateNewFolderIcon fontSize="small" />+ <Icon name="folder-plus" size={20} /></ActionIcon></Tooltip>) : (<Buttonvariant="secondary"size={size}- leftSection={<CreateNewFolderIcon fontSize="small" />}- rightSection={<ArrowDropDownIcon fontSize="small" />}+ leftSection={<Icon name="folder-plus" size={20} />}+ rightSection={<Icon name="chevron-down" size={20} />}>{label}</Button>@@ -198,8 +195,9 @@ export function NewFolderButton({<Menu.Dropdown><Menu.ItemleftSection={- <DriveFolderUploadIcon- fontSize="small"+ <Icon+ name="folder-up"+ size={20}style={{ marginRight: "0.3rem" }}/>}@@ -209,7 +207,7 @@ export function NewFolderButton({</Menu.Item><Menu.ItemclassName="files-page-new-folder-option"- leftSection={<CloudIcon fontSize="small" />}+ leftSection={<Icon name="cloud" size={20} />}disabled={Boolean(serverDisabledReason)}onClick={() => onOpenDialog(null, "server")}>diff --git a/frontend/editor/src/core/components/filesPage/OpenInNewWindowMenuItem.tsx b/frontend/editor/src/core/components/filesPage/OpenInNewWindowMenuItem.tsxindex f4fa2dadad..051d3ad73b 100644--- a/frontend/editor/src/core/components/filesPage/OpenInNewWindowMenuItem.tsx+++ b/frontend/editor/src/core/components/filesPage/OpenInNewWindowMenuItem.tsx@@ -1,5 +1,5 @@import { Menu } from "@mantine/core";-import OpenInNewIcon from "@mui/icons-material/OpenInNew";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";import { StirlingFileStub } from "@app/types/fileContext";import { useOpenInNewWindow } from "@app/extensions/openInNewWindow";@@ -23,7 +23,7 @@ export function OpenInNewWindowMenuItem({return (<Menu.Item- leftSection={<OpenInNewIcon fontSize="small" />}+ leftSection={<Icon name="external-link" size={20} />}onClick={(e) => {e.stopPropagation();openInNewWindow(file);diff --git a/frontend/editor/src/core/components/filesPage/VersionHistoryModal.tsx b/frontend/editor/src/core/components/filesPage/VersionHistoryModal.tsxindex 2bef30c763..3c22c5fa7f 100644--- a/frontend/editor/src/core/components/filesPage/VersionHistoryModal.tsx+++ b/frontend/editor/src/core/components/filesPage/VersionHistoryModal.tsx@@ -1,6 +1,6 @@import { useCallback, useEffect, useState } from "react";import { useTranslation } from "react-i18next";-import HistoryIcon from "@mui/icons-material/History";+import { Icon } from "@app/ui/Icon";import { Center, Group, Loader, Modal, Text } from "@mantine/core";import type { FileId } from "@app/types/file";@@ -102,8 +102,9 @@ export function VersionHistoryModal({size="md"title={<Group gap="xs" align="center">- <HistoryIcon- fontSize="small"+ <Icon+ name="rotate-ccw-clock"+ size={20}style={{ color: "var(--c-accent-fg, var(--c-primary))" }}/><Text fw={600} size="md" c="var(--c-text)">diff --git a/frontend/editor/src/core/components/filesPage/VersionTimeline.tsx b/frontend/editor/src/core/components/filesPage/VersionTimeline.tsxindex 77d8808c17..eeb3c627ff 100644--- a/frontend/editor/src/core/components/filesPage/VersionTimeline.tsx+++ b/frontend/editor/src/core/components/filesPage/VersionTimeline.tsx@@ -3,12 +3,7 @@ import { useTranslation } from "react-i18next";import { Badge, Group, Menu, Text } from "@mantine/core";import { Button } from "@app/ui/Button";import { ActionIcon } from "@app/ui/ActionIcon";-import OpenInNewIcon from "@mui/icons-material/OpenInNew";-import DeleteIcon from "@mui/icons-material/Delete";-import DownloadIcon from "@mui/icons-material/Download";-import HistoryIcon from "@mui/icons-material/History";-import MoreVertIcon from "@mui/icons-material/MoreVert";-+import { Icon } from "@app/ui/Icon";import { FileId, ToolOperation } from "@app/types/file";import { toolOperationLabel } from "@app/utils/toolOperationLabel";import { StirlingFileStub } from "@app/types/fileContext";@@ -136,7 +131,7 @@ export function VersionTimeline({<div className="files-page-details-version-timeline">{!hideHeader && (<div className="files-page-details-version-timeline-label">- <HistoryIcon fontSize="small" />+ <Icon name="rotate-ccw-clock" size={20} /><span>{t("filesPage.field.versionHistory", "Version journey")}</span><span className="files-page-details-version-timeline-count">{t("filesPage.versionsCount", "{{count}} versions", {@@ -261,12 +256,12 @@ export function VersionTimeline({)}onClick={(e) => e.stopPropagation()}>- <MoreVertIcon fontSize="small" />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon></Menu.Target><Menu.Dropdown><Menu.Item- leftSection={<OpenInNewIcon fontSize="small" />}+ leftSection={<Icon name="external-link" size={20} />}onClick={() => onAddToWorkspace([v.id])}>{t(@@ -275,7 +270,7 @@ export function VersionTimeline({)}</Menu.Item><Menu.Item- leftSection={<DownloadIcon fontSize="small" />}+ leftSection={<Icon name="download" size={20} />}onClick={() => {void downloadFileFromStorage(v);}}@@ -288,7 +283,7 @@ export function VersionTimeline({<Menu.Divider /><Menu.Itemcolor="red"- leftSection={<DeleteIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}onClick={() => onRemove([v.id])}>{t("filesPage.removeVersion", "Remove this version")}diff --git a/frontend/editor/src/core/components/pageEditor/DragDropGrid.tsx b/frontend/editor/src/core/components/pageEditor/DragDropGrid.tsxindex 03fa1dd096..37913f8ae2 100644--- a/frontend/editor/src/core/components/pageEditor/DragDropGrid.tsx+++ b/frontend/editor/src/core/components/pageEditor/DragDropGrid.tsx@@ -14,7 +14,7 @@ import {Z_INDEX_DROP_INDICATOR,Z_INDEX_DRAG_BADGE,} from "@app/styles/zIndex";-import { LocalIcon } from "@app/components/shared/LocalIcon";+import { Icon } from "@app/ui/Icon";import {DndContext,DragEndEvent,@@ -1015,7 +1015,7 @@ const DragDropGrid = <T extends DragDropItem>({color: "var(--mantine-color-dimmed)",}}>- <LocalIcon icon="description" width="3rem" height="3rem" />+ <Icon name="file-text" size="3rem" /></div>)}</div>diff --git a/frontend/editor/src/core/components/pageEditor/FileThumbnail.tsx b/frontend/editor/src/core/components/pageEditor/FileThumbnail.tsxindex f3730a9399..59915189a8 100644--- a/frontend/editor/src/core/components/pageEditor/FileThumbnail.tsx+++ b/frontend/editor/src/core/components/pageEditor/FileThumbnail.tsx@@ -9,11 +9,7 @@ import { CheckboxIndicator } from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";import { Button } from "@app/ui/Button";import { useTranslation } from "react-i18next";-import MoreVertIcon from "@mui/icons-material/MoreVert";-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlined";-import PushPinIcon from "@mui/icons-material/PushPin";-import PushPinOutlinedIcon from "@mui/icons-material/PushPinOutlined";-import DragIndicatorIcon from "@mui/icons-material/DragIndicator";+import { Icon } from "@app/ui/Icon";import {draggable,dropTargetForElements,@@ -70,7 +66,6 @@ const FileThumbnail = ({const { t } = useTranslation();const terminology = useFileActionTerminology();const icons = useFileActionIcons();- const DownloadOutlinedIcon = icons.download;const { pinFile, unpinFile, isFilePinned, activeFiles } = useFileContext();// ---- Drag state ----@@ -268,7 +263,7 @@ const FileThumbnail = ({setShowActions((v) => !v);}}>- <MoreVertIcon fontSize="small" />+ <Icon name="ellipsis-vertical" size={20} /></ActionIcon></div>@@ -284,13 +279,7 @@ const FileThumbnail = ({justify="start"fullWidthclassName={styles.actionRow}- leftSection={- isPinned ? (- <PushPinIcon fontSize="small" />- ) : (- <PushPinOutlinedIcon fontSize="small" />- )- }+ leftSection={<Icon name="pin" size={20} filled={isPinned} />}onClick={() => {if (actualFile) {if (isPinned) {@@ -311,7 +300,7 @@ const FileThumbnail = ({justify="start"fullWidthclassName={styles.actionRow}- leftSection={<DownloadOutlinedIcon fontSize="small" />}+ leftSection={<Icon name={icons.download} size={20} />}onClick={() => {downloadSelectedFile();setShowActions(false);@@ -325,7 +314,7 @@ const FileThumbnail = ({justify="start"fullWidthclassName={`${styles.actionRow} ${styles.actionDanger}`}- leftSection={<DeleteOutlineIcon fontSize="small" />}+ leftSection={<Icon name="trash" size={20} />}onClick={() => {onDeleteFile(file.id);onSetStatus(`Deleted ${file.name}`);@@ -386,13 +375,13 @@ const FileThumbnail = ({{/* Pin indicator (bottom-left) */}{isPinned && (<span className={styles.pinIndicator} aria-hidden>- <PushPinIcon fontSize="small" />+ <Icon name="pin" size={20} filled /></span>)}{/* Drag handle (span wrapper so we can attach a ref reliably) */}<span ref={handleRef} className={styles.dragHandle} aria-hidden>- <DragIndicatorIcon fontSize="small" />+ <Icon name="grip-vertical" size={20} /></span></div></div>diff --git a/frontend/editor/src/core/components/pageEditor/PageEditorControls.tsx b/frontend/editor/src/core/components/pageEditor/PageEditorControls.tsxindex fe73984fef..f89ff8098e 100644--- a/frontend/editor/src/core/components/pageEditor/PageEditorControls.tsx+++ b/frontend/editor/src/core/components/pageEditor/PageEditorControls.tsx@@ -1,12 +1,6 @@import { Tooltip } from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";-import UndoIcon from "@mui/icons-material/Undo";-import RedoIcon from "@mui/icons-material/Redo";-import ContentCutIcon from "@mui/icons-material/ContentCut";-import RotateLeftIcon from "@mui/icons-material/RotateLeft";-import RotateRightIcon from "@mui/icons-material/RotateRight";-import DeleteIcon from "@mui/icons-material/Delete";-import InsertPageBreakIcon from "@mui/icons-material/InsertPageBreak";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";interface PageEditorControlsProps {@@ -142,7 +136,7 @@ const PageEditorControls = ({disabled={!canUndo}aria-label={t("pageEditor.toolbar.undo", "Undo")}>- <UndoIcon />+ <Icon name="undo-2" /></ActionIcon></Tooltip><Tooltip label={t("pageEditor.toolbar.redo", "Redo")}>@@ -153,7 +147,7 @@ const PageEditorControls = ({disabled={!canRedo}aria-label={t("pageEditor.toolbar.redo", "Redo")}>- <RedoIcon />+ <Icon name="redo-2" /></ActionIcon></Tooltip>@@ -180,7 +174,7 @@ const PageEditorControls = ({"Rotate Selected Left",)}>- <RotateLeftIcon />+ <Icon name="rotate-ccw" /></ActionIcon></Tooltip><Tooltip@@ -196,7 +190,7 @@ const PageEditorControls = ({"Rotate Selected Right",)}>- <RotateRightIcon />+ <Icon name="rotate-cw" /></ActionIcon></Tooltip><Tooltip label={t("pageEditor.toolbar.delete", "Delete Selected")}>@@ -207,7 +201,7 @@ const PageEditorControls = ({disabled={selectedPageIds.length === 0}aria-label={t("pageEditor.toolbar.delete", "Delete Selected")}>- <DeleteIcon />+ <Icon name="trash" /></ActionIcon></Tooltip><Tooltip label={getSplitTooltip()}>@@ -218,7 +212,7 @@ const PageEditorControls = ({disabled={selectedPageIds.length === 0}aria-label={getSplitTooltip()}>- <ContentCutIcon />+ <Icon name="scissors" /></ActionIcon></Tooltip><Tooltip label={getPageBreakTooltip()}>@@ -229,7 +223,7 @@ const PageEditorControls = ({disabled={selectedPageIds.length === 0}aria-label={getPageBreakTooltip()}>- <InsertPageBreakIcon />+ <Icon name="square-split-vertical" /></ActionIcon></Tooltip></div>diff --git a/frontend/editor/src/core/components/pageEditor/PageSelectByNumberButton.tsx b/frontend/editor/src/core/components/pageEditor/PageSelectByNumberButton.tsxindex dc2032fa4a..c987c91c6f 100644--- a/frontend/editor/src/core/components/pageEditor/PageSelectByNumberButton.tsx+++ b/frontend/editor/src/core/components/pageEditor/PageSelectByNumberButton.tsx@@ -1,6 +1,6 @@import { Popover } from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";-import LocalIcon from "@app/components/shared/LocalIcon";+import { Icon } from "@app/ui/Icon";import { Tooltip } from "@app/components/shared/Tooltip";import BulkSelectionPanel from "@app/components/pageEditor/BulkSelectionPanel";@@ -42,7 +42,7 @@ export default function PageSelectByNumberButton({disabled={disabled || totalPages === 0}aria-label={label}>- <LocalIcon icon="pin-end" width="1.5rem" height="1.5rem" />+ <Icon name="picture-in-picture" size="1.5rem" /></ActionIcon></div></Popover.Target>diff --git a/frontend/editor/src/core/components/pageEditor/PageThumbnail.tsx b/frontend/editor/src/core/components/pageEditor/PageThumbnail.tsxindex 127c982a9d..85a79e81ea 100644--- a/frontend/editor/src/core/components/pageEditor/PageThumbnail.tsx+++ b/frontend/editor/src/core/components/pageEditor/PageThumbnail.tsx@@ -7,13 +7,7 @@ import React, {} from "react";import { Text, Checkbox } from "@mantine/core";import { useIsMobile } from "@app/hooks/useIsMobile";-import ArrowBackIcon from "@mui/icons-material/ArrowBack";-import ArrowForwardIcon from "@mui/icons-material/ArrowForward";-import RotateLeftIcon from "@mui/icons-material/RotateLeft";-import RotateRightIcon from "@mui/icons-material/RotateRight";-import DeleteIcon from "@mui/icons-material/Delete";-import ContentCutIcon from "@mui/icons-material/ContentCut";-import AddIcon from "@mui/icons-material/Add";+import { Icon } from "@app/ui/Icon";import { PDFPage, PDFDocument } from "@app/types/pageEditor";import { useFilesModalContext } from "@app/contexts/FilesModalContext";import { getFileColorWithOpacity } from "@app/components/pageEditor/fileColors";@@ -324,7 +318,7 @@ const PageThumbnail: React.FC<PageThumbnailProps> = ({() => [{id: "move-left",- icon: <ArrowBackIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="arrow-left" size={20} />,label: "Move Left",onClick: (e) => {e.stopPropagation();@@ -337,7 +331,7 @@ const PageThumbnail: React.FC<PageThumbnailProps> = ({},{id: "move-right",- icon: <ArrowForwardIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="arrow-right" size={20} />,label: "Move Right",onClick: (e) => {e.stopPropagation();@@ -351,33 +345,33 @@ const PageThumbnail: React.FC<PageThumbnailProps> = ({},{id: "rotate-left",- icon: <RotateLeftIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="rotate-ccw" size={20} />,label: "Rotate Left",onClick: handleRotateLeft,},{id: "rotate-right",- icon: <RotateRightIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="rotate-cw" size={20} />,label: "Rotate Right",onClick: handleRotateRight,},{id: "delete",- icon: <DeleteIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="trash" size={20} />,label: "Delete Page",onClick: handleDelete,color: "red",},{id: "split",- icon: <ContentCutIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="scissors" size={20} />,label: "Split After",onClick: handleSplit,hidden: pageIndex >= totalPages - 1,},{id: "insert",- icon: <AddIcon style={{ fontSize: 20 }} />,+ icon: <Icon name="plus" size={20} />,label: "Insert File After",onClick: handleInsertFileAfter,},diff --git a/frontend/editor/src/core/components/pageEditor/bulkSelectionPanel/PageSelectionInput.tsx b/frontend/editor/src/core/components/pageEditor/bulkSelectionPanel/PageSelectionInput.tsxindex f0add9d978..731614bab9 100644--- a/frontend/editor/src/core/components/pageEditor/bulkSelectionPanel/PageSelectionInput.tsx+++ b/frontend/editor/src/core/components/pageEditor/bulkSelectionPanel/PageSelectionInput.tsx@@ -1,7 +1,7 @@import { TextInput, Text, Flex, Switch } from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";import { useTranslation } from "react-i18next";-import LocalIcon from "@app/components/shared/LocalIcon";+import { Icon } from "@app/ui/Icon";import { Tooltip } from "@app/components/shared/Tooltip";import { usePageSelectionTips } from "@app/components/tooltips/usePageSelectionTips";import classes from "@app/components/pageEditor/bulkSelectionPanel/BulkSelectionPanel.module.css";@@ -40,10 +40,9 @@ const PageSelectionInput = ({tips={pageSelectionTips.tips}><Flex onClick={(e) => e.stopPropagation()} align="center" gap="xs">- <LocalIcon- icon="gpp-maybe-outline-rounded"- width="1rem"- height="1rem"+ <Icon+ name="shield-alert"+ size="1rem"style={{ color: "var(--c-accent-fg)" }}/><Text>diff --git a/frontend/editor/src/core/components/pageEditor/pageEditorWorkbenchBarButtons.tsx b/frontend/editor/src/core/components/pageEditor/pageEditorWorkbenchBarButtons.tsxindex ea47676c05..2cfa257884 100644--- a/frontend/editor/src/core/components/pageEditor/pageEditorWorkbenchBarButtons.tsx+++ b/frontend/editor/src/core/components/pageEditor/pageEditorWorkbenchBarButtons.tsx@@ -4,7 +4,7 @@ import {useWorkbenchBarButtons,WorkbenchBarButtonWithAction,} from "@app/hooks/useWorkbenchBarButtons";-import LocalIcon from "@app/components/shared/LocalIcon";+import { Icon } from "@app/ui/Icon";import PageSelectByNumberButton from "@app/components/pageEditor/PageSelectByNumberButton";interface PageEditorWorkbenchBarButtonsParams {@@ -64,7 +64,7 @@ export function usePageEditorWorkbenchBarButtons(return [{id: "page-select-all",- icon: <LocalIcon icon="select-all" width="1.5rem" height="1.5rem" />,+ icon: <Icon name="select-all" size="1.5rem" />,tooltip: selectAllLabel,ariaLabel: selectAllLabel,section: "top" as const,@@ -75,13 +75,7 @@ export function usePageEditorWorkbenchBarButtons(},{id: "page-deselect-all",- icon: (- <LocalIcon- icon="crop-square-outline"- width="1.5rem"- height="1.5rem"- />- ),+ icon: <Icon name="square" size="1.5rem" />,tooltip: deselectAllLabel,ariaLabel: deselectAllLabel,section: "top" as const,@@ -113,13 +107,7 @@ export function usePageEditorWorkbenchBarButtons(},{id: "page-delete-selected",- icon: (- <LocalIcon- icon="delete-outline-rounded"- width="1.5rem"- height="1.5rem"- />- ),+ icon: <Icon name="trash" size="1.5rem" />,tooltip: deleteSelectedLabel,ariaLabel: deleteSelectedLabel,section: "top" as const,@@ -130,7 +118,7 @@ export function usePageEditorWorkbenchBarButtons(},{id: "page-export-selected",- icon: <LocalIcon icon="download" width="1.5rem" height="1.5rem" />,+ icon: <Icon name="download" size="1.5rem" />,tooltip: exportSelectedLabel,ariaLabel: exportSelectedLabel,section: "top" as const,@@ -141,7 +129,7 @@ export function usePageEditorWorkbenchBarButtons(},{id: "page-save-changes",- icon: <LocalIcon icon="save" width="1.5rem" height="1.5rem" />,+ icon: <Icon name="save" size="1.5rem" />,tooltip: saveChangesLabel,ariaLabel: saveChangesLabel,section: "top" as const,diff --git a/frontend/editor/src/core/components/policies/policyCategoryIcon.tsx b/frontend/editor/src/core/components/policies/policyCategoryIcon.tsxindex 142dfcdaf8..dc021d35bc 100644--- a/frontend/editor/src/core/components/policies/policyCategoryIcon.tsx+++ b/frontend/editor/src/core/components/policies/policyCategoryIcon.tsx@@ -3,34 +3,31 @@// definitions and the portal's catalogue cards, summaries, and setup wizard.import type { ReactNode } from "react";-import type { SxProps, Theme } from "@mui/material";-import LayersOutlinedIcon from "@mui/icons-material/LayersOutlined";-import ShieldOutlinedIcon from "@mui/icons-material/ShieldOutlined";-import LabelOutlinedIcon from "@mui/icons-material/LabelOutlined";-import CheckCircleOutlinedIcon from "@mui/icons-material/CheckCircleOutlined";-import AltRouteOutlinedIcon from "@mui/icons-material/AltRouteOutlined";-import ScheduleOutlinedIcon from "@mui/icons-material/ScheduleOutlined";--type MuiIcon = React.ComponentType<{ sx?: SxProps<Theme>; className?: string }>;+import { Icon, type IconName } from "@app/ui/Icon";/** Policy category id → outline glyph. */-const POLICY_CATEGORY_ICONS: Record<string, MuiIcon> = {- ingestion: LayersOutlinedIcon,- security: ShieldOutlinedIcon,- classification: LabelOutlinedIcon,- compliance: CheckCircleOutlinedIcon,- routing: AltRouteOutlinedIcon,- retention: ScheduleOutlinedIcon,+const POLICY_CATEGORY_ICONS: Record<string, IconName> = {+ ingestion: "layers",+ security: "shield",+ classification: "tag",+ compliance: "circle-check",+ routing: "git-fork",+ retention: "clock",};-const FALLBACK_ICON = LabelOutlinedIcon;+const FALLBACK_ICON: IconName = "tag";// Defaults to inheriting the surrounding font-size so a wrapping box controls size.export function policyCategoryIcon(policyKey: string,- sx: SxProps<Theme> = { fontSize: "inherit" },+ size: number | string = "1em",className?: string,): ReactNode {- const Icon = POLICY_CATEGORY_ICONS[policyKey] ?? FALLBACK_ICON;- return <Icon sx={sx} className={className} />;+ return (+ <Icon+ name={POLICY_CATEGORY_ICONS[policyKey] ?? FALLBACK_ICON}+ size={size}+ className={className}+ />+ );}diff --git a/frontend/editor/src/core/components/shared/FileCard.tsx b/frontend/editor/src/core/components/shared/FileCard.tsxindex 495a76a53b..2181b6bcf0 100644--- a/frontend/editor/src/core/components/shared/FileCard.tsx+++ b/frontend/editor/src/core/components/shared/FileCard.tsx@@ -3,10 +3,7 @@ import { Card, Stack, Text, Group, Badge, Box, Tooltip } from "@mantine/core";import { Button } from "@app/ui/Button";import { ActionIcon } from "@app/ui/ActionIcon";import { useTranslation } from "react-i18next";-import StorageIcon from "@mui/icons-material/Storage";-import VisibilityIcon from "@mui/icons-material/Visibility";-import EditIcon from "@mui/icons-material/Edit";-+import { Icon } from "@app/ui/Icon";import { StirlingFileStub } from "@app/types/fileContext";import { getFileSize, getFileDate } from "@app/utils/fileUtils";import { useFileThumbnail } from "@app/hooks/useFileThumbnail";@@ -121,7 +118,7 @@ const FileCard = ({onView();}}>- <VisibilityIcon style={{ fontSize: 16 }} />+ <Icon name="eye" size={16} /></ActionIcon></Tooltip>)}@@ -142,7 +139,7 @@ const FileCard = ({onEdit();}}>- <EditIcon style={{ fontSize: 16 }} />+ <Icon name="pencil" size={16} /></ActionIcon></Tooltip>)}@@ -173,7 +170,7 @@ const FileCard = ({color="green"variant="light"size="sm"- leftSection={<StorageIcon style={{ fontSize: 12 }} />}+ leftSection={<Icon name="server" size={12} />}>DB</Badge>diff --git a/frontend/editor/src/core/components/shared/FileDropdownMenu.tsx b/frontend/editor/src/core/components/shared/FileDropdownMenu.tsxindex 37656e943e..c4b19fc340 100644--- a/frontend/editor/src/core/components/shared/FileDropdownMenu.tsx+++ b/frontend/editor/src/core/components/shared/FileDropdownMenu.tsx@@ -2,9 +2,7 @@ import React from "react";import { Menu, Loader, Group, Text, Tooltip } from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";import { useTranslation } from "react-i18next";-import InsertDriveFileIcon from "@mui/icons-material/InsertDriveFile";-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";-import CloseIcon from "@mui/icons-material/Close";+import { Icon } from "@app/ui/Icon";import FitText from "@app/components/shared/FitText";import { PrivateContent } from "@app/components/shared/PrivateContent";import { FileId } from "@app/types/file";@@ -45,7 +43,7 @@ export const FileDropdownMenu: React.FC<FileDropdownMenuProps> = ({{switchingTo === "viewer" ? (<Loader size="xs" />) : (- <InsertDriveFileIcon fontSize="small" style={{ flexShrink: 0 }} />+ <Icon name="file" size={20} style={{ flexShrink: 0 }} />)}<PrivateContent><FitText@@ -54,7 +52,7 @@ export const FileDropdownMenu: React.FC<FileDropdownMenuProps> = ({style={{ maxWidth: "12rem", display: "inline-block" }}/></PrivateContent>- <KeyboardArrowDownIcon fontSize="small" style={{ flexShrink: 0 }} />+ <Icon name="chevron-down" size={20} style={{ flexShrink: 0 }} /></div></Menu.Target><Menu.Dropdown@@ -122,7 +120,7 @@ export const FileDropdownMenu: React.FC<FileDropdownMenuProps> = ({}}style={{ flexShrink: 0 }}>- <CloseIcon style={{ fontSize: 14 }} />+ <Icon name="x" size={14} /></ActionIcon></Tooltip>)}diff --git a/frontend/editor/src/core/components/shared/FileGrid.tsx b/frontend/editor/src/core/components/shared/FileGrid.tsxindex b039fb9924..c37bc2c7f1 100644--- a/frontend/editor/src/core/components/shared/FileGrid.tsx+++ b/frontend/editor/src/core/components/shared/FileGrid.tsx@@ -2,8 +2,7 @@ import { useState } from "react";import { Box, Flex, Group, Text, TextInput, Select } from "@mantine/core";import { Button } from "@app/ui/Button";import { useTranslation } from "react-i18next";-import SearchIcon from "@mui/icons-material/Search";-import SortIcon from "@mui/icons-material/Sort";+import { Icon } from "@app/ui/Icon";import FileCard from "@app/components/shared/FileCard";import { StirlingFileStub } from "@app/types/fileContext";import { FileId } from "@app/types/file";@@ -82,7 +81,7 @@ const FileGrid = ({{showSearch && (<TextInputplaceholder={t("fileManager.searchFiles", "Search files...")}- leftSection={<SearchIcon fontSize="small" />}+ leftSection={<Icon name="search" size={20} />}value={searchTerm}onChange={(e) => setSearchTerm(e.currentTarget.value)}style={{ flexGrow: 1, maxWidth: 300, minWidth: 200 }}@@ -108,7 +107,7 @@ const FileGrid = ({]}value={sortBy}onChange={(value) => setSortBy(value as SortOption)}- leftSection={<SortIcon fontSize="small" />}+ leftSection={<Icon name="list-sort-descending" size={20} />}style={{ minWidth: 150 }}/>)}diff --git a/frontend/editor/src/core/components/shared/FilePreview.tsx b/frontend/editor/src/core/components/shared/FilePreview.tsxindex 67bb187fda..2a5ddf6f40 100644--- a/frontend/editor/src/core/components/shared/FilePreview.tsx+++ b/frontend/editor/src/core/components/shared/FilePreview.tsx@@ -1,6 +1,6 @@import React from "react";import { Box, Center } from "@mantine/core";-import InsertDriveFileIcon from "@mui/icons-material/InsertDriveFile";+import { Icon } from "@app/ui/Icon";import { StirlingFileStub } from "@app/types/fileContext";import DocumentThumbnail from "@app/components/shared/filePreview/DocumentThumbnail";import DocumentStack from "@app/components/shared/filePreview/DocumentStack";@@ -43,12 +43,10 @@ const FilePreview: React.FC<FilePreviewProps> = ({return (<Box style={{ width: "100%", height: "100%" }}><Center style={{ width: "100%", height: "100%" }}>- <InsertDriveFileIcon- style={{- fontSize: "4rem",- color: "var(--mantine-color-gray-4)",- opacity: 0.6,- }}+ <Icon+ name="file"+ size={"4rem"}+ style={{ color: "var(--mantine-color-gray-4)", opacity: 0.6 }}/></Center></Box>diff --git a/frontend/editor/src/core/components/shared/FileSelectorPicker.tsx b/frontend/editor/src/core/components/shared/FileSelectorPicker.tsxindex 2b84105ba8..fa23005c23 100644--- a/frontend/editor/src/core/components/shared/FileSelectorPicker.tsx+++ b/frontend/editor/src/core/components/shared/FileSelectorPicker.tsx@@ -2,7 +2,7 @@ import { useState, useEffect, useCallback, useMemo, useRef } from "react";import { createPortal } from "react-dom";import { Box, Popover, ScrollArea, Text, Loader } from "@mantine/core";import { Button } from "@app/ui/Button";-import AddIcon from "@mui/icons-material/Add";+import { Icon } from "@app/ui/Icon";import { useTranslation } from "react-i18next";import {createStirlingFile,@@ -419,12 +419,10 @@ export function FileSelectorPicker({{placeholder ||t("fileSelectorPicker.placeholder", "Select file")}</Text>- <AddIcon- style={{- fontSize: 18,- color: "var(--mantine-color-dimmed)",- flexShrink: 0,- }}+ <Icon+ name="plus"+ size={18}+ style={{ color: "var(--mantine-color-dimmed)", flexShrink: 0 }}/></Box></Popover.Target>diff --git a/frontend/editor/src/core/components/shared/FileSidebar.css b/frontend/editor/src/core/components/shared/FileSidebar.cssindex f7a5273037..46a847f1ff 100644--- a/frontend/editor/src/core/components/shared/FileSidebar.css+++ b/frontend/editor/src/core/components/shared/FileSidebar.css@@ -250,9 +250,12 @@flex-shrink: 0;}+/* The colorless brand mark follows currentColor, so the muted tone lives here+ and tracks the theme: dark grey on light, light grey on dark. */.file-sidebar-cloud-icon-gray {position: absolute;inset: 0;+ color: var(--c-text-muted);transition: opacity 0.2s ease;opacity: 1;}diff --git a/frontend/editor/src/core/components/shared/FileSidebar.tsx b/frontend/editor/src/core/components/shared/FileSidebar.tsxindex 096c31af17..d1e9a763d2 100644--- a/frontend/editor/src/core/components/shared/FileSidebar.tsx+++ b/frontend/editor/src/core/components/shared/FileSidebar.tsx@@ -30,24 +30,17 @@ import {useIndexedDB,useIndexedDBRevision,} from "@app/contexts/IndexedDBContext";-import { GoogleDriveIcon } from "@app/components/shared/CloudStorageIcons";import { SidebarHeader } from "@app/components/shared/SidebarHeader";import type { StirlingFileStub } from "@app/types/fileContext";-import FolderSpecialIcon from "@mui/icons-material/FolderSpecial";-import UploadFileIcon from "@mui/icons-material/UploadFile";-import AddIcon from "@mui/icons-material/Add";-import OpenInFullIcon from "@mui/icons-material/OpenInFull";import type { FileId } from "@app/types/file";import type { WatchedFolderViewData } from "@app/types/watchedFolders";import { FileItem } from "@app/components/shared/FileSidebarFileItem";import { useLabelName } from "@app/data/labelDisplay";import { useClassificationEnabled } from "@app/hooks/useClassificationEnabled";-import { LocalIcon } from "@app/components/shared/LocalIcon";import {FileSidebarGroupControls,useFileSidebarGroups,} from "@app/components/shared/fileSidebarGrouping";-import KeyboardArrowRightIcon from "@mui/icons-material/KeyboardArrowRight";import BulkUploadToServerModal from "@app/components/shared/BulkUploadToServerModal";import { getFileOrigin } from "@app/components/filesPage/fileOrigin";import { VersionHistoryModal } from "@app/components/filesPage/VersionHistoryModal";@@ -982,7 +975,7 @@ const FileSidebar = forwardRef<HTMLDivElement, FileSidebarProps>(>{isFileDragOver && (<div className="file-sidebar-drop-overlay" aria-hidden="true">- <UploadFileIcon className="file-sidebar-drop-overlay-icon" />+ <Icon name="file-up" className="file-sidebar-drop-overlay-icon" />{!collapsed && (<span className="file-sidebar-drop-overlay-text">{t("fileSidebar.dropToAdd", "Drop files to add")}@@ -1052,7 +1045,7 @@ const FileSidebar = forwardRef<HTMLDivElement, FileSidebarProps>(}}}>- <UploadFileIcon className="file-sidebar-action-icon" />+ <Icon name="file-up" className="file-sidebar-action-icon" />{!collapsed && (<span className="file-sidebar-action-label sidebar-content-fade">{t("fileSidebar.openFromComputer", "Open from computer")}@@ -1147,13 +1140,16 @@ const FileSidebar = forwardRef<HTMLDivElement, FileSidebarProps>(}><div className="file-sidebar-cloud-icon-wrapper">- <GoogleDriveIcon+ <Icon+ name="googledrive"+ colorless+ size={18}className="file-sidebar-cloud-icon-gray"- style={{ color: "var(--c-text-muted)" }}/>{isGoogleDriveEnabled && (- <GoogleDriveIcon- colored+ <Icon+ name="googledrive"+ size={18}className="file-sidebar-cloud-icon-color"/>)}@@ -1184,7 +1180,10 @@ const FileSidebar = forwardRef<HTMLDivElement, FileSidebarProps>(: undefined}>- <FolderSpecialIcon className="file-sidebar-action-icon" />+ <Icon+ name="folder-bookmark"+ className="file-sidebar-action-icon"+ />{!collapsed && (<span className="file-sidebar-action-label sidebar-content-fade">{t("watchedFolders.sidebarTitle", "Watched Folders")}@@ -1226,7 +1225,7 @@ const FileSidebar = forwardRef<HTMLDivElement, FileSidebarProps>()}data-testid="open-files-page">- <OpenInFullIcon sx={{ fontSize: "1rem" }} />+ <Icon name="maximize-2" size={"1rem"} /></ActionIcon><ActionIconvariant="quiet"@@ -1235,7 +1234,7 @@ const FileSidebar = forwardRef<HTMLDivElement, FileSidebarProps>(title={t("fileSidebar.addFiles", "Add files")}aria-label={t("fileSidebar.addFiles", "Add files")}>- <AddIcon sx={{ fontSize: "1rem" }} />+ <Icon name="plus" size={"1rem"} /></ActionIcon></div>@@ -1273,9 +1272,9 @@ const FileSidebar = forwardRef<HTMLDivElement, FileSidebarProps>(aria-hidden="true">{group.icon && (- <LocalIcon- icon={group.icon}- width="1.05rem"+ <Icon+ name={group.icon}+ size="1.05rem"className="file-sidebar-group-icon"style={group.color@@ -1318,9 +1317,7 @@ const FileSidebar = forwardRef<HTMLDivElement, FileSidebarProps>(className="file-sidebar-view-all"onClick={() => navActions.setWorkbench("myFiles")}rightSection={- <KeyboardArrowRightIcon- sx={{ fontSize: "1rem" }}- />+ <Icon name="chevron-right" size={"1rem"} />}>{t(diff --git a/frontend/editor/src/core/components/shared/FileSidebarFileItem.tsx b/frontend/editor/src/core/components/shared/FileSidebarFileItem.tsxindex 71b1182971..de90168860 100644--- a/frontend/editor/src/core/components/shared/FileSidebarFileItem.tsx+++ b/frontend/editor/src/core/components/shared/FileSidebarFileItem.tsx@@ -3,18 +3,7 @@ import { createPortal } from "react-dom";import { Group, Loader, Menu, Stack, Text, Tooltip } from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";import { useTranslation } from "react-i18next";-import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";-import VisibilityOffOutlinedIcon from "@mui/icons-material/VisibilityOffOutlined";-import ShieldOutlinedIcon from "@mui/icons-material/ShieldOutlined";-import MoreVertIcon from "@mui/icons-material/MoreVert";-import CloudUploadOutlinedIcon from "@mui/icons-material/CloudUploadOutlined";-import CloudDoneIcon from "@mui/icons-material/CloudDone";-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutlineOutlined";-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutlined";-import HistoryIcon from "@mui/icons-material/History";-import OpenInNewIcon from "@mui/icons-material/OpenInNew";-import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";-import ContentCopyOutlinedIcon from "@mui/icons-material/ContentCopyOutlined";+import { Icon } from "@app/ui/Icon";import type { FileId } from "@app/types/file";import { FileDocIcon } from "@app/components/shared/FileDocIcon";import {@@ -262,7 +251,7 @@ export const FileItem = React.memo(function FileItem({? t("files.notIncludedInToolRun", "Not included in this tool run"): undefined;const terminology = useFileActionTerminology();- const DownloadIcon = useFileActionIcons().download;+ const downloadIcon = useFileActionIcons().download;const ext = getFileExtension(name);const dateLabel = lastModified ? formatFileDate(lastModified) : "";const typeLabel = ext ? ext.toUpperCase() : "File";@@ -274,7 +263,7 @@ export const FileItem = React.memo(function FileItem({const enforcingTooltip = (action: string): React.ReactNode => (<Stack gap={6} py={2} w={200}><Group gap={6} wrap="nowrap">- <ShieldOutlinedIcon style={{ fontSize: 13 }} />+ <Icon name="shield" size={13} /><Text size="xs" fw={600}>{t("policy.blockingAction",@@ -400,7 +389,7 @@ export const FileItem = React.memo(function FileItem({position="top"><span className="file-sidebar-datalost-badge" data-no-select>- <ErrorOutlineIcon sx={{ fontSize: "0.85rem" }} />+ <Icon name="circle-alert" size={"0.85rem"} />{t("fileSidebar.fileItem.dataLost", "Data lost")}</span></Tooltip>@@ -415,7 +404,7 @@ export const FileItem = React.memo(function FileItem({position="top"><span className="file-sidebar-cloud-badge" data-no-select>- <CloudDoneIcon sx={{ fontSize: "0.85rem" }} />+ <Icon name="cloud-check" size={"0.85rem"} /></span></Tooltip>)}@@ -482,13 +471,15 @@ export const FileItem = React.memo(function FileItem({tabIndex={-1}aria-label={viewerLabel}>- <VisibilityOutlinedIcon+ <Icon+ name="eye"+ size={"1.1rem"}className="file-sidebar-eye-open"- sx={{ fontSize: "1.1rem" }}/>- <VisibilityOffOutlinedIcon+ <Icon+ name="eye-off"+ size={"1.1rem"}className="file-sidebar-eye-closed"- sx={{ fontSize: "1.1rem" }}/></ActionIcon><Menu@@ -510,7 +501,7 @@ export const FileItem = React.memo(function FileItem({"More actions",)}>- <MoreVertIcon sx={{ fontSize: "1.1rem" }} />+ <Icon name="ellipsis-vertical" size={"1.1rem"} /></ActionIcon></Menu.Target><Menu.Dropdown onClick={(e) => e.stopPropagation()}>@@ -527,9 +518,9 @@ export const FileItem = React.memo(function FileItem({disabledReason={blockedReason(viewerLabel)}icon={isViewedInViewer ? (- <VisibilityOffOutlinedIcon sx={{ fontSize: 16 }} />+ <Icon name="eye-off" size={16} />) : (- <VisibilityOutlinedIcon sx={{ fontSize: 16 }} />+ <Icon name="eye" size={16} />)}onClick={(e) => onEyeClick(fileId, e)}@@ -542,7 +533,7 @@ export const FileItem = React.memo(function FileItem({disabledReason={blockedReason(t("openInNewWindow", "Open in new window"),)}- icon={<OpenInNewIcon sx={{ fontSize: 16 }} />}+ icon={<Icon name="external-link" size={16} />}onClick={() => onOpenInNewWindow(fileId)}>{t("openInNewWindow", "Open in new window")}@@ -554,7 +545,7 @@ export const FileItem = React.memo(function FileItem({{onDownload && (<FileMenuItemdisabledReason={blockedReason(terminology.download)}- icon={<DownloadIcon sx={{ fontSize: 16 }} />}+ icon={<Icon name={downloadIcon} size={16} />}onClick={() => onDownload(fileId)}>{terminology.download}@@ -567,7 +558,7 @@ export const FileItem = React.memo(function FileItem({t("fileSidebar.fileItem.rename", "Rename"),false,)}- icon={<DriveFileRenameOutlineIcon sx={{ fontSize: 16 }} />}+ icon={<Icon name="file-pen" size={16} />}onClick={() => onRename(fileId)}>{t("fileSidebar.fileItem.rename", "Rename")}@@ -579,7 +570,7 @@ export const FileItem = React.memo(function FileItem({disabledReason={blockedReason(t("fileSidebar.fileItem.duplicate", "Duplicate"),)}- icon={<ContentCopyOutlinedIcon sx={{ fontSize: 16 }} />}+ icon={<Icon name="copy" size={16} />}onClick={() => onDuplicate(fileId)}>{t("fileSidebar.fileItem.duplicate", "Duplicate")}@@ -604,7 +595,7 @@ export const FileItem = React.memo(function FileItem({return (<FileMenuItemdisabledReason={blockedReason(uploadLabel)}- icon={<CloudUploadOutlinedIcon sx={{ fontSize: 16 }} />}+ icon={<Icon name="cloud-upload" size={16} />}onClick={() => onSaveToCloud(fileId)}>{uploadLabel}@@ -618,7 +609,7 @@ export const FileItem = React.memo(function FileItem({t("fileSidebar.fileItem.versionHistory", "Version history"),false,)}- icon={<HistoryIcon sx={{ fontSize: 16 }} />}+ icon={<Icon name="rotate-ccw-clock" size={16} />}onClick={() => onVersionHistory(fileId)}>{t("fileSidebar.fileItem.versionHistory", "Version history")}@@ -634,7 +625,7 @@ export const FileItem = React.memo(function FileItem({false,)}color="red"- icon={<DeleteOutlineIcon sx={{ fontSize: 16 }} />}+ icon={<Icon name="trash" size={16} />}onClick={() => onDelete(fileId)}>{t("fileSidebar.fileItem.delete", "Delete")}diff --git a/frontend/editor/src/core/components/shared/LandingActions.tsx b/frontend/editor/src/core/components/shared/LandingActions.tsxindex 750848f3c7..71a58f240e 100644--- a/frontend/editor/src/core/components/shared/LandingActions.tsx+++ b/frontend/editor/src/core/components/shared/LandingActions.tsx@@ -2,7 +2,7 @@ import React from "react";import { Group, Tooltip } from "@mantine/core";import { Button } from "@app/ui/Button";import { ActionIcon } from "@app/ui/ActionIcon";-import LocalIcon from "@app/components/shared/LocalIcon";+import { Icon } from "@app/ui/Icon";import { useFilesModalContext } from "@app/contexts/FilesModalContext";import { useFileActionTerminology } from "@app/hooks/useFileActionTerminology";import { useFileActionIcons } from "@app/hooks/useFileActionIcons";@@ -33,9 +33,7 @@ export function LandingActions({<Group gap="sm" justify="center" wrap="wrap" mb="xs"><Buttonfat- leftSection={- <LocalIcon icon={icons.uploadIconName} width="1rem" height="1rem" />- }+ leftSection={<Icon name={icons.upload} size="1rem" />}onClick={(e) => {e.stopPropagation();onUploadClick();@@ -47,7 +45,7 @@ export function LandingActions({<Buttonvariant="secondary"fat- leftSection={<LocalIcon icon="add" width="1rem" height="1rem" />}+ leftSection={<Icon name="plus" size="1rem" />}onClick={(e) => {e.stopPropagation();openFilesModal();@@ -68,11 +66,7 @@ export function LandingActions({onMobileUploadClick();}}>- <LocalIcon- icon="qr-code-rounded"- width="1.25rem"- height="1.25rem"- />+ <Icon name="qr-code" size="1.25rem" /></ActionIcon></Tooltip>)}diff --git a/frontend/editor/src/core/components/shared/PageEditorFileDropdown.tsx b/frontend/editor/src/core/components/shared/PageEditorFileDropdown.tsxindex e26bc19fda..4089ebd77e 100644--- a/frontend/editor/src/core/components/shared/PageEditorFileDropdown.tsx+++ b/frontend/editor/src/core/components/shared/PageEditorFileDropdown.tsx@@ -1,9 +1,6 @@import React from "react";import { Menu, Loader, Group, Text, Checkbox } from "@mantine/core";-import { LocalIcon } from "@app/components/shared/LocalIcon";-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";-import DragIndicatorIcon from "@mui/icons-material/DragIndicator";-import AddIcon from "@mui/icons-material/Add";+import { Icon } from "@app/ui/Icon";import FitText from "@app/components/shared/FitText";import { getFileColorWithOpacity } from "@app/components/pageEditor/fileColors";import { useFilesModalContext } from "@app/contexts/FilesModalContext";@@ -125,7 +122,7 @@ const FileMenuItem: React.FC<FileMenuItemProps> = ({color: "var(--mantine-color-dimmed)",}}>- <DragIndicatorIcon fontSize="small" />+ <Icon name="grip-vertical" size={20} /></div><Checkboxchecked={file.isSelected}@@ -187,16 +184,12 @@ export const PageEditorFileDropdown: React.FC<PageEditorFileDropdownProps> = ({{switchingTo === "pageEditor" ? (<Loader size="xs" />) : (- <LocalIcon- icon="dashboard-customize-rounded"- width="1.4rem"- height="1.4rem"- />+ <Icon name="layout-dashboard" size="1.4rem" />)}<span className="ph-no-capture">{selectedCount}/{totalCount} files selected</span>- <KeyboardArrowDownIcon fontSize="small" />+ <Icon name="chevron-down" size={20} /></div></Menu.Target><Menu.Dropdown@@ -249,8 +242,9 @@ export const PageEditorFileDropdown: React.FC<PageEditorFileDropdownProps> = ({}}><Group gap="xs" style={{ width: "100%" }}>- <AddIcon- fontSize="small"+ <Icon+ name="plus"+ size={20}style={{ color: "var(--mantine-color-text)" }}/><Textdiff --git a/frontend/editor/src/core/components/shared/PolicyBadges.tsx b/frontend/editor/src/core/components/shared/PolicyBadges.tsxindex 1fa57ca70a..e89e61f68c 100644--- a/frontend/editor/src/core/components/shared/PolicyBadges.tsx+++ b/frontend/editor/src/core/components/shared/PolicyBadges.tsx@@ -1,5 +1,5 @@import { Tooltip } from "@mantine/core";-import AutorenewIcon from "@mui/icons-material/Autorenew";+import { Icon } from "@app/ui/Icon";import { policyCategoryIcon } from "@app/components/policies/policyCategoryIcon";import { useTranslation } from "react-i18next";import "@app/components/shared/PolicyBadges.css";@@ -66,9 +66,9 @@ export function PolicyBadges({style={{ color: policy.accentColor }}>{running ? (- <AutorenewIcon sx={{ fontSize: "0.7rem" }} />+ <Icon name="refresh-cw" size={"0.7rem"} />) : (- policyCategoryIcon(policy.id, { fontSize: "0.7rem" })+ policyCategoryIcon(policy.id, "0.7rem"))}</span></Tooltip>diff --git a/frontend/editor/src/core/components/shared/WorkbenchBar.css b/frontend/editor/src/core/components/shared/WorkbenchBar.cssindex 0c6b1c985d..0b23884fff 100644--- a/frontend/editor/src/core/components/shared/WorkbenchBar.css+++ b/frontend/editor/src/core/components/shared/WorkbenchBar.css@@ -255,7 +255,6 @@.workbench-bar-action-icon svg,.workbench-bar-action-icon img {color: inherit !important;- fill: currentColor;}.workbench-bar-action-icon:hover {diff --git a/frontend/editor/src/core/components/shared/WorkbenchBar.tsx b/frontend/editor/src/core/components/shared/WorkbenchBar.tsxindex 7d2390ca18..124c1996ef 100644--- a/frontend/editor/src/core/components/shared/WorkbenchBar.tsx+++ b/frontend/editor/src/core/components/shared/WorkbenchBar.tsx@@ -11,7 +11,7 @@ import { ActionIcon } from "@app/ui/ActionIcon";import { SegmentedControl } from "@app/ui/SegmentedControl";import { useTranslation } from "react-i18next";import { useNavigate } from "react-router-dom";-import ArrowBackIcon from "@mui/icons-material/ArrowBack";+import { Icon } from "@app/ui/Icon";import {clearFilesPageReturnRoute,getFilesPageReturnRoute,@@ -31,7 +31,6 @@ import { useToolWorkflow } from "@app/contexts/ToolWorkflowContext";import { useNavigationState } from "@app/contexts/NavigationContext";import { ViewerContext, useViewer } from "@app/contexts/ViewerContext";import { WorkbenchType, isBaseWorkbench } from "@app/types/workbench";-import LocalIcon from "@app/components/shared/LocalIcon";import SuperSearch from "@app/components/shared/superSearch/SuperSearch";import { useEditorSearchScopes } from "@app/hooks/useSuperSearch";import ViewerShareButton from "@app/components/viewer/ViewerShareButton";@@ -50,8 +49,6 @@ import {WorkbenchBarRenderContext,WorkbenchBarSection,} from "@app/types/workbenchBar";-import InsertDriveFileOutlinedIcon from "@mui/icons-material/InsertDriveFileOutlined";-import FolderOutlinedIcon from "@mui/icons-material/FolderOutlined";import WorkbenchBarDesktopActions from "@app/components/shared/workbenchBar/WorkbenchBarDesktopActions";import WorkbenchBarMobileActions from "@app/components/shared/workbenchBar/WorkbenchBarMobileActions";import WorkbenchBarToolbarHandle from "@app/components/shared/workbenchBar/WorkbenchBarToolbarHandle";@@ -358,8 +355,8 @@ export default function WorkbenchBar({actionsDisabled,policyEnforcing,downloadLabel: downloadTooltip,- downloadIconName: icons.downloadIconName,- saveAsIconName: icons.saveAsIconName,+ downloadIconName: icons.download,+ saveAsIconName: icons.saveAs,onPrint: handlePrint,onExport: handleExportAll,onClose: handleClose,@@ -431,26 +428,20 @@ export default function WorkbenchBar({{value: "viewer" as WorkbenchType,label: t("workbenchBar.viewer", "Viewer"),- icon: <InsertDriveFileOutlinedIcon fontSize="small" />,+ icon: <Icon name="file" size={20} />,},]),{value: "fileEditor" as WorkbenchType,label: t("workbenchBar.activeFiles", "Active Files"),- icon: <FolderOutlinedIcon fontSize="small" />,+ icon: <Icon name="folder" size={20} />,},...(selectedTool === "multiTool"? [{value: "pageEditor" as WorkbenchType,label: t("workbenchBar.multiTool", "Multi-Tool"),- icon: (- <LocalIcon- icon="dashboard-customize-outline-rounded"- width="1rem"- height="1rem"- />- ),+ icon: <Icon name="layout-dashboard" size="1rem" />,},]: []),@@ -459,7 +450,7 @@ export default function WorkbenchBar({.map((v) => ({value: v.workbenchId,label: v.label,- icon: v.icon ?? <InsertDriveFileOutlinedIcon fontSize="small" />,+ icon: v.icon ?? <Icon name="file" size={20} />,})),];@@ -532,7 +523,7 @@ export default function WorkbenchBar({: "Back to File library",{ folder: returnRoute.label ?? "" },)}- leftSection={<ArrowBackIcon style={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="arrow-left" size={"1.1rem"} />}><span className="workbench-bar-view-label">{returnRoute.labeldiff --git a/frontend/editor/src/core/components/shared/filePreview/DocumentThumbnail.stories.tsx b/frontend/editor/src/core/components/shared/filePreview/DocumentThumbnail.stories.tsxindex d410c3af78..8eef37a3a3 100644--- a/frontend/editor/src/core/components/shared/filePreview/DocumentThumbnail.stories.tsx+++ b/frontend/editor/src/core/components/shared/filePreview/DocumentThumbnail.stories.tsx@@ -31,6 +31,7 @@ export const WithThumbnail: Story = {thumbnail:"data:image/svg+xml;utf8," +encodeURIComponent(+ // icon-lint-disable -- data-uri stand-in for a rendered page, not an icon'<svg xmlns="http://www.w3.org/2000/svg" width="120" height="160"><rect width="120" height="160" fill="#e0e0e0"/></svg>',),},diff --git a/frontend/editor/src/core/components/shared/filePreview/DocumentThumbnail.tsx b/frontend/editor/src/core/components/shared/filePreview/DocumentThumbnail.tsxindex dcc2f8fa8e..03ba611656 100644--- a/frontend/editor/src/core/components/shared/filePreview/DocumentThumbnail.tsx+++ b/frontend/editor/src/core/components/shared/filePreview/DocumentThumbnail.tsx@@ -1,6 +1,6 @@import React from "react";import { Box, Center, Loader, Stack, Text } from "@mantine/core";-import LockIcon from "@mui/icons-material/Lock";+import { Icon } from "@app/ui/Icon";import { getFileTypeIcon } from "@app/components/shared/filePreview/getFileTypeIcon";import { StirlingFileStub } from "@app/types/fileContext";import { PrivateContent } from "@app/components/shared/PrivateContent";@@ -91,8 +91,10 @@ const DocumentThumbnail: React.FC<DocumentThumbnailProps> = ({borderRadius: "10px",}}>- <LockIcon- style={{ fontSize: iconSize, color: "var(--mantine-color-red-6)" }}+ <Icon+ name="lock"+ size={iconSize}+ style={{ color: "var(--mantine-color-red-6)" }}/><spanstyle={{diff --git a/frontend/editor/src/core/components/shared/filePreview/HoverOverlay.tsx b/frontend/editor/src/core/components/shared/filePreview/HoverOverlay.tsxindex cc4ae15d27..4cbb9112bf 100644--- a/frontend/editor/src/core/components/shared/filePreview/HoverOverlay.tsx+++ b/frontend/editor/src/core/components/shared/filePreview/HoverOverlay.tsx@@ -1,7 +1,6 @@import React from "react";import { Box } from "@mantine/core";-import VisibilityIcon from "@mui/icons-material/Visibility";-+import { Icon } from "@app/ui/Icon";export interface HoverOverlayProps {onMouseEnter?: (e: React.MouseEvent) => void;onMouseLeave?: (e: React.MouseEvent) => void;@@ -58,7 +57,7 @@ const HoverOverlay: React.FC<HoverOverlayProps> = ({pointerEvents: "none",}}>- <VisibilityIcon style={{ color: "white", fontSize: "1.5rem" }} />+ <Icon name="eye" size={"1.5rem"} style={{ color: "white" }} /></Box></Box>);diff --git a/frontend/editor/src/core/components/shared/filePreview/NavigationArrows.tsx b/frontend/editor/src/core/components/shared/filePreview/NavigationArrows.tsxindex 28a537fd3f..a090ea5f8a 100644--- a/frontend/editor/src/core/components/shared/filePreview/NavigationArrows.tsx+++ b/frontend/editor/src/core/components/shared/filePreview/NavigationArrows.tsx@@ -2,9 +2,7 @@ import React from "react";import { Box } from "@mantine/core";import { useTranslation } from "react-i18next";import { ActionIcon } from "@app/ui/ActionIcon";-import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";-import ChevronRightIcon from "@mui/icons-material/ChevronRight";-+import { Icon } from "@app/ui/Icon";export interface NavigationArrowsProps {onPrevious: () => void;onNext: () => void;@@ -40,7 +38,7 @@ const NavigationArrows: React.FC<NavigationArrowsProps> = ({left: "0",}}>- <ChevronLeftIcon />+ <Icon name="chevron-left" /></ActionIcon>{/* Content */}@@ -68,7 +66,7 @@ const NavigationArrows: React.FC<NavigationArrowsProps> = ({right: "0",}}>- <ChevronRightIcon />+ <Icon name="chevron-right" /></ActionIcon></Box>);diff --git a/frontend/editor/src/core/components/shared/fileSidebarGrouping.tsx b/frontend/editor/src/core/components/shared/fileSidebarGrouping.tsxindex 687d15a4ac..8a5251eff4 100644--- a/frontend/editor/src/core/components/shared/fileSidebarGrouping.tsx+++ b/frontend/editor/src/core/components/shared/fileSidebarGrouping.tsx@@ -1,3 +1,4 @@+import type { IconName } from "@app/ui/Icon";// Extension seam for how the Files sidebar groups its list; core returns null (one flat, recency-sorted list) and a higher layer overrides this to group by classification. The shared sidebar just renders whatever groups it's handed.import type { StirlingFileStub } from "@app/types/fileContext";@@ -7,8 +8,8 @@ export interface FileSidebarGroup {id: string;/** Group header text. */label: string;- /** Optional Material Symbols icon key (rendered via LocalIcon). */- icon?: string;+ /** Optional registry icon name. */+ icon?: IconName;/** Optional CSS colour for the group's icon (e.g. a per-category accent). */color?: string;/** Files in this group, in display order. */diff --git a/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarDesktopActions.tsx b/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarDesktopActions.tsxindex 64fe416810..109af414a9 100644--- a/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarDesktopActions.tsx+++ b/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarDesktopActions.tsx@@ -1,9 +1,7 @@import React from "react";import { useTranslation } from "react-i18next";-import CloseIcon from "@mui/icons-material/Close";-import PrintIcon from "@mui/icons-material/Print";+import { Icon } from "@app/ui/Icon";import { ActionIcon } from "@app/ui/ActionIcon";-import LocalIcon from "@app/components/shared/LocalIcon";import {PolicyEnforcingTooltip,renderWithTooltip,@@ -59,7 +57,7 @@ export default function WorkbenchBarDesktopActions({disabled={exportDisabled}aria-label={t("workbenchBar.print", "Print PDF")}>- <PrintIcon sx={{ fontSize: "1rem" }} />+ <Icon name="printer" size={"1rem"} /></ActionIcon>,tooltipFor(t("workbenchBar.print", "Print PDF")),)}@@ -75,7 +73,7 @@ export default function WorkbenchBarDesktopActions({disabled={exportDisabled}aria-label={downloadLabel}>- <LocalIcon icon={downloadIconName} width="1rem" height="1rem" />+ <Icon name={downloadIconName} size="1rem" /></ActionIcon>,tooltipFor(downloadLabel),)}@@ -91,7 +89,7 @@ export default function WorkbenchBarDesktopActions({disabled={exportDisabled}aria-label={t("workbenchBar.saveAs", "Save As")}>- <LocalIcon icon={saveAsIconName} width="1rem" height="1rem" />+ <Icon name={saveAsIconName} size="1rem" /></ActionIcon>,tooltipFor(t("workbenchBar.saveAs", "Save As")),)}@@ -112,7 +110,7 @@ export default function WorkbenchBarDesktopActions({disabled={actionsDisabled}aria-label={closeLabel}>- <CloseIcon sx={{ fontSize: "1rem" }} />+ <Icon name="x" size={"1rem"} /></ActionIcon>,closeLabel,)}diff --git a/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarMobileActions.tsx b/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarMobileActions.tsxindex c3859ea86a..7c4ff6bc49 100644--- a/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarMobileActions.tsx+++ b/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarMobileActions.tsx@@ -1,10 +1,7 @@import { Menu } from "@mantine/core";import { useTranslation } from "react-i18next";-import CloseIcon from "@mui/icons-material/Close";-import MoreVertIcon from "@mui/icons-material/MoreVert";-import PrintIcon from "@mui/icons-material/Print";+import { Icon } from "@app/ui/Icon";import { ActionIcon } from "@app/ui/ActionIcon";-import LocalIcon from "@app/components/shared/LocalIcon";import { WorkbenchBarActionsProps } from "@app/components/shared/workbenchBar/types";/**@@ -42,13 +39,13 @@ export default function WorkbenchBarMobileActions({className="workbench-bar-action-icon"aria-label={t("workbenchBar.moreActions", "More actions")}>- <MoreVertIcon sx={{ fontSize: "1.25rem" }} />+ <Icon name="ellipsis-vertical" size={"1.25rem"} /></ActionIcon></Menu.Target><Menu.Dropdown>{showPrint && (<Menu.Item- leftSection={<PrintIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="printer" size={"1.1rem"} />}disabled={exportDisabled}onClick={onPrint}>@@ -57,13 +54,7 @@ export default function WorkbenchBarMobileActions({)}{showFileActions && (<Menu.Item- leftSection={- <LocalIcon- icon={downloadIconName}- width="1.1rem"- height="1.1rem"- />- }+ leftSection={<Icon name={downloadIconName} size="1.1rem" />}disabled={exportDisabled}onClick={() => void onExport()}>@@ -72,9 +63,7 @@ export default function WorkbenchBarMobileActions({)}{showFileActions && saveAsIconName && (<Menu.Item- leftSection={- <LocalIcon icon={saveAsIconName} width="1.1rem" height="1.1rem" />- }+ leftSection={<Icon name={saveAsIconName} size="1.1rem" />}disabled={exportDisabled}onClick={() => void onExport(true)}>@@ -85,7 +74,7 @@ export default function WorkbenchBarMobileActions({<><Menu.Divider /><Menu.Item- leftSection={<CloseIcon sx={{ fontSize: "1.1rem" }} />}+ leftSection={<Icon name="x" size={"1.1rem"} />}disabled={actionsDisabled}onClick={() => void onClose()}>diff --git a/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarToolbarHandle.tsx b/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarToolbarHandle.tsxindex 0b971bc991..118cb49082 100644--- a/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarToolbarHandle.tsx+++ b/frontend/editor/src/core/components/shared/workbenchBar/WorkbenchBarToolbarHandle.tsx@@ -1,6 +1,5 @@import { useTranslation } from "react-i18next";-import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";-import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";+import { Icon } from "@app/ui/Icon";import { Button } from "@app/ui/Button";interface WorkbenchBarToolbarHandleProps {@@ -41,9 +40,9 @@ export default function WorkbenchBarToolbarHandle({}leftSection={expanded ? (- <KeyboardArrowUpIcon sx={{ fontSize: "1.25rem" }} />+ <Icon name="chevron-up" size={"1.25rem"} />) : (- <KeyboardArrowDownIcon sx={{ fontSize: "1.25rem" }} />+ <Icon name="chevron-down" size={"1.25rem"} />)}/>@@ -61,7 +60,7 @@ export default function WorkbenchBarToolbarHandle({aria-expandedaria-label={t("workbenchBar.hideToolbar", "Hide toolbar")}title={t("workbenchBar.hideToolbar", "Hide toolbar")}- leftSection={<KeyboardArrowUpIcon sx={{ fontSize: "1rem" }} />}+ leftSection={<Icon name="chevron-up" size={"1rem"} />}/>);}diff --git a/frontend/editor/src/core/components/shared/workbenchBar/types.ts b/frontend/editor/src/core/components/shared/workbenchBar/types.tsindex 9348ce25ff..17c219e35f 100644--- a/frontend/editor/src/core/components/shared/workbenchBar/types.ts+++ b/frontend/editor/src/core/components/shared/workbenchBar/types.ts@@ -1,3 +1,4 @@+import type { IconName } from "@app/ui/Icon";import { WorkbenchType } from "@app/types/workbench";/** Shared shape for the workbench bar's file-level global actions (print,@@ -14,8 +15,8 @@ export interface WorkbenchBarActionsProps {policyEnforcing: boolean;/** Context-aware label for the download/export action. */downloadLabel: string;- downloadIconName: string;- saveAsIconName?: string;+ downloadIconName: IconName;+ saveAsIconName?: IconName;onPrint: () => void;onExport: (forceNewFile?: boolean) => void;onClose: () => void;diff --git a/frontend/editor/src/core/components/shared/workbenchBar/workbenchBarTooltip.tsx b/frontend/editor/src/core/components/shared/workbenchBar/workbenchBarTooltip.tsxindex e7a0b482ee..55580f34b4 100644--- a/frontend/editor/src/core/components/shared/workbenchBar/workbenchBarTooltip.tsx+++ b/frontend/editor/src/core/components/shared/workbenchBar/workbenchBarTooltip.tsx@@ -1,7 +1,7 @@import React from "react";import { Group, Loader, Progress, Stack, Text } from "@mantine/core";import { useTranslation } from "react-i18next";-import ShieldOutlinedIcon from "@mui/icons-material/ShieldOutlined";+import { Icon } from "@app/ui/Icon";import { Tooltip } from "@app/components/shared/Tooltip";/** Wrap a bar control in the bar's standard tooltip, or pass it through when@@ -40,7 +40,7 @@ export function PolicyEnforcingTooltip({return (<Stack gap={6} py={2} w={200}><Group gap={6} wrap="nowrap">- <ShieldOutlinedIcon style={{ fontSize: 13 }} />+ <Icon name="shield" size={13} /><Text size="xs" fw={600}>{t("policy.blockingAction",diff --git a/frontend/editor/src/core/components/tools/shared/FileStatusIndicator.tsx b/frontend/editor/src/core/components/tools/shared/FileStatusIndicator.tsxindex 08a0d0ed91..cb7b8021d5 100644--- a/frontend/editor/src/core/components/tools/shared/FileStatusIndicator.tsx+++ b/frontend/editor/src/core/components/tools/shared/FileStatusIndicator.tsx@@ -1,8 +1,7 @@import { useState, useEffect } from "react";import { Text, Anchor } from "@mantine/core";import { useTranslation } from "react-i18next";-import FolderIcon from "@mui/icons-material/Folder";-import UploadIcon from "@mui/icons-material/Upload";+import { Icon } from "@app/ui/Icon";import { useFilesModalContext } from "@app/contexts/FilesModalContext";import { useAllFiles } from "@app/contexts/FileContext";import { useFileManager } from "@app/hooks/useFileManager";@@ -85,7 +84,7 @@ const FileStatusIndicator = ({gap: "0.25rem",}}>- <UploadIcon style={{ fontSize: "0.875rem" }} />+ <Icon name="upload" size={"0.875rem"} />{t("files.upload", "Upload")}</Anchor></Text>@@ -104,7 +103,7 @@ const FileStatusIndicator = ({gap: "0.25rem",}}>- <FolderIcon style={{ fontSize: "0.875rem" }} />+ <Icon name="folder" size={"0.875rem"} />{t("files.addFiles", "Add files")}</Anchor></Text>@@ -129,7 +128,7 @@ const FileStatusIndicator = ({gap: "0.25rem",}}>- <UploadIcon style={{ fontSize: "0.875rem" }} />+ <Icon name="upload" size={"0.875rem"} />{t("files.uploadFiles", "Upload Files")}</Anchor></Text>@@ -149,7 +148,7 @@ const FileStatusIndicator = ({gap: "0.25rem",}}>- <FolderIcon style={{ fontSize: "0.875rem" }} />+ <Icon name="folder" size={"0.875rem"} />{t("files.addFiles", "Add files")}</Anchor></Text>diff --git a/frontend/editor/src/core/components/tools/shared/ReviewToolStep.tsx b/frontend/editor/src/core/components/tools/shared/ReviewToolStep.tsxindex 8f86faff17..19dd6a1a52 100644--- a/frontend/editor/src/core/components/tools/shared/ReviewToolStep.tsx+++ b/frontend/editor/src/core/components/tools/shared/ReviewToolStep.tsx@@ -2,7 +2,7 @@ import React, { useEffect, useRef } from "react";import { Stack } from "@mantine/core";import { useTranslation } from "react-i18next";import { Button } from "@app/ui/Button";-import UndoIcon from "@mui/icons-material/Undo";+import { Icon } from "@app/ui/Icon";import ErrorNotification from "@app/components/tools/shared/ErrorNotification";import ResultsPreview from "@app/components/tools/shared/ResultsPreview";import { SuggestedToolsSection } from "@app/components/tools/shared/SuggestedToolsSection";@@ -55,7 +55,6 @@ function ReviewStepContent<TParams = unknown>({const { t } = useTranslation();const terminology = useFileActionTerminology();const icons = useFileActionIcons();- const DownloadIcon = icons.download;const stepRef = useRef<HTMLDivElement>(null);const { actions: fileActions } = useFileActions();const selectors = useFileSelectors();@@ -157,7 +156,7 @@ function ReviewStepContent<TParams = unknown>({)}><Button- leftSection={<UndoIcon />}+ leftSection={<Icon name="undo-2" />}variant="secondary"accent="neutral"onClick={handleUndo}@@ -170,7 +169,7 @@ function ReviewStepContent<TParams = unknown>({{operation.downloadUrl && (<Buttondata-testid="download-result-button"- leftSection={<DownloadIcon />}+ leftSection={<Icon name={icons.download} />}fullWidthstyle={{ marginBottom: "1rem" }}onClick={handleDownload}diff --git a/frontend/editor/src/core/hooks/useFileActionIcons.ts b/frontend/editor/src/core/hooks/useFileActionIcons.tsindex f48cb79b47..bab4d252dd 100644--- a/frontend/editor/src/core/hooks/useFileActionIcons.ts+++ b/frontend/editor/src/core/hooks/useFileActionIcons.ts@@ -1,19 +1,17 @@-import UploadIcon from "@mui/icons-material/Upload";-import DownloadOutlinedIcon from "@mui/icons-material/DownloadOutlined";+import type { IconName } from "@app/ui/Icon";-/**- * File action icons for web builds.- * Desktop builds override this file via TypeScript path aliases to provide- * different icons (e.g. Save icon instead of Download, and a Save As icon).- */-export function useFileActionIcons() {+/** File action icons for web builds. Desktop overrides this file to swap in+ * Save/Save As instead of Download. */+export function useFileActionIcons(): {+ upload: IconName;+ download: IconName;+ saveAs: IconName | undefined;+} {return {- upload: UploadIcon,- download: DownloadOutlinedIcon,- uploadIconName: "upload" as const,- downloadIconName: "download" as const,- // Web builds do not expose a Save As icon — the button is hidden when this is undefined.- // Desktop builds override this file and return a real icon name.- saveAsIconName: undefined as string | undefined,+ upload: "upload",+ download: "download",+ // Web builds do not expose a Save As action - the button is hidden when+ // this is undefined. Desktop builds override this file.+ saveAs: undefined,};}diff --git a/frontend/editor/src/desktop/hooks/useFileActionIcons.ts b/frontend/editor/src/desktop/hooks/useFileActionIcons.tsindex 771aee757f..3899a397b4 100644--- a/frontend/editor/src/desktop/hooks/useFileActionIcons.ts+++ b/frontend/editor/src/desktop/hooks/useFileActionIcons.ts@@ -1,19 +1,20 @@-import FolderOpenOutlinedIcon from "@mui/icons-material/FolderOpenOutlined";-import SaveOutlinedIcon from "@mui/icons-material/SaveOutlined";+import type { IconName } from "@app/ui/Icon";/*** File action icons for desktop builds.- * Overrides the core implementation with desktop-appropriate icons.- * The presence of `saveAsIconName` signals the WorkbenchBar to show the Save As button.+ * Opens a local folder rather than uploading, and saves rather than+ * downloading. A defined \`saveAs\` makes WorkbenchBar show the Save As button.*/-export function useFileActionIcons() {+export function useFileActionIcons(): {+ upload: IconName;+ download: IconName;+ saveAs: IconName | undefined;+} {return {- upload: FolderOpenOutlinedIcon,- download: SaveOutlinedIcon,- uploadIconName: "folder-rounded" as const,- downloadIconName: "save-rounded" as const,- // Returning this icon name causes WorkbenchBar to render the Save As button.- // On desktop, downloadFile() without a localPath shows a native save dialog.- saveAsIconName: "save-as-rounded" as string | undefined,+ upload: "folder-open",+ download: "save",+ // Returning this causes WorkbenchBar to render the Save As button. On+ // desktop, downloadFile() without a localPath shows a native save dialog.+ saveAs: "save-all",};}diff --git a/frontend/editor/src/portal/components/processor-flow/FlowPolicies.tsx b/frontend/editor/src/portal/components/processor-flow/FlowPolicies.tsxindex 50b439368f..6c75ebb9ef 100644--- a/frontend/editor/src/portal/components/processor-flow/FlowPolicies.tsx+++ b/frontend/editor/src/portal/components/processor-flow/FlowPolicies.tsx@@ -45,7 +45,7 @@ export function FlowPolicies({}}><span className="portal-pf__policy-icon" aria-hidden>- {policyCategoryIcon(policy.key, { fontSize: "1.125rem" })}+ {policyCategoryIcon(policy.key, "1.125rem")}</span><span className="portal-pf__policy-label">{t(policy.labelKey)}diff --git a/frontend/editor/src/proprietary/components/policies/ClassificationCategoryManager.stories.tsx b/frontend/editor/src/proprietary/components/policies/ClassificationCategoryManager.stories.tsxindex 43f8cd5ee2..64e904f118 100644--- a/frontend/editor/src/proprietary/components/policies/ClassificationCategoryManager.stories.tsx+++ b/frontend/editor/src/proprietary/components/policies/ClassificationCategoryManager.stories.tsx@@ -4,10 +4,10 @@ import { ClassificationCategoryManager } from "@app/components/policies/Classifiimport type { SidebarCategory } from "@app/services/fileSidebarCategories";const CATEGORIES: SidebarCategory[] = [- { id: "finance", name: "Financial", icon: "payments", labelKeys: [] },+ { id: "finance", name: "Financial", icon: "banknote", labelKeys: [] },{ id: "legal", name: "Legal", icon: "gavel", labelKeys: [] },{ id: "hr", name: "HR", icon: "badge", labelKeys: [] },- { id: "reports", name: "Reports", icon: "monitoring", labelKeys: [] },+ { id: "reports", name: "Reports", icon: "activity", labelKeys: [] },];const COUNTS = new Map<string, number>([diff --git a/frontend/editor/src/proprietary/components/policies/ClassificationCategoryManager.tsx b/frontend/editor/src/proprietary/components/policies/ClassificationCategoryManager.tsxindex bc29f74bae..5a7b86f7f5 100644--- a/frontend/editor/src/proprietary/components/policies/ClassificationCategoryManager.tsx+++ b/frontend/editor/src/proprietary/components/policies/ClassificationCategoryManager.tsx@@ -4,10 +4,8 @@// forms no group, so its files fall to "Other".import { useTranslation } from "react-i18next";-import VisibilityIcon from "@mui/icons-material/Visibility";-import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";+import { Icon } from "@app/ui/Icon";import { ActionIcon } from "@app/ui/ActionIcon";-import { LocalIcon } from "@app/components/shared/LocalIcon";import type { SidebarCategory } from "@app/services/fileSidebarCategories";import "@app/components/policies/ClassificationCategoryManager.css";@@ -38,7 +36,7 @@ export function ClassificationCategoryManager({}><span className="category-visibility-icon">- <LocalIcon icon={category.icon} width="1.1rem" />+ <Icon name={category.icon} size="1.1rem" /></span><span className="category-visibility-name">{t(`classification.families.${category.id}`, category.name)}@@ -57,9 +55,9 @@ export function ClassificationCategoryManager({onClick={() => onToggleHidden(category.id, !category.hidden)}>{category.hidden ? (- <VisibilityOffIcon sx={{ fontSize: "1.1rem" }} />+ <Icon name="eye-off" size={"1.1rem"} />) : (- <VisibilityIcon sx={{ fontSize: "1.1rem" }} />+ <Icon name="eye" size={"1.1rem"} />)}</ActionIcon></li>diff --git a/frontend/editor/src/proprietary/components/policies/DownloadsProcessingWizard.tsx b/frontend/editor/src/proprietary/components/policies/DownloadsProcessingWizard.tsxindex 0964a19179..da36064d26 100644--- a/frontend/editor/src/proprietary/components/policies/DownloadsProcessingWizard.tsx+++ b/frontend/editor/src/proprietary/components/policies/DownloadsProcessingWizard.tsx@@ -1,8 +1,7 @@import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { Loader } from "@mantine/core";-import CheckCircleIcon from "@mui/icons-material/CheckCircle";-import FolderSpecialIcon from "@mui/icons-material/FolderSpecial";+import { Icon } from "@app/ui/Icon";import { Button } from "@app/ui/Button";import { Modal } from "@app/ui/Modal";import {@@ -251,7 +250,7 @@ export function DownloadsProcessingWizard({variant="secondary"size="sm"onClick={() => setOpen(true)}- leftSection={<FolderSpecialIcon fontSize="small" />}+ leftSection={<Icon name="folder-bookmark" size={20} />}>{t("processingFolders.downloads.trigger", {count: suggestion.pdfCount,@@ -272,7 +271,7 @@ export function DownloadsProcessingWizard({width={phase === "asking" ? "sm" : "lg"}title={<span className="downloads-wizard__title">- <FolderSpecialIcon fontSize="small" />+ <Icon name="folder-bookmark" size={20} />{t("processingFolders.downloads.title", "Organise your Downloads?")}</span>}@@ -380,9 +379,10 @@ export function DownloadsProcessingWizard({{phase === "done" && (<div className="downloads-wizard__body"><p className="downloads-wizard__counts">- <CheckCircleIcon+ <Icon+ name="circle-check"className="downloads-wizard__tick"- fontSize="inherit"+ size="1em"/>{" "}{processed + failed === 0? (summary?.failed ?? 0) > 0diff --git a/frontend/editor/src/proprietary/components/policies/PipelineTemplateCard.tsx b/frontend/editor/src/proprietary/components/policies/PipelineTemplateCard.tsxindex 087b1ee182..194026b5cc 100644--- a/frontend/editor/src/proprietary/components/policies/PipelineTemplateCard.tsx+++ b/frontend/editor/src/proprietary/components/policies/PipelineTemplateCard.tsx@@ -1,6 +1,5 @@import { useTranslation } from "react-i18next";-import ArrowForwardRoundedIcon from "@mui/icons-material/ArrowForwardRounded";-import LockOutlinedIcon from "@mui/icons-material/LockOutlined";+import { Icon } from "@app/ui/Icon";import { OptionCard } from "@app/ui";import type { CatalogueEntry } from "@app/policies/catalog";import { policyCategoryIcon } from "@app/components/policies/policyCategoryIcon";@@ -40,12 +39,12 @@ export function PipelineTemplateCard({cta={<>{t("portal.pipelines.templates.setUp")}- <ArrowForwardRoundedIcon style={{ fontSize: "1rem" }} />+ <Icon name="arrow-right" size={"1rem"} /></>}note={<>- <LockOutlinedIcon style={{ fontSize: "0.95rem" }} />+ <Icon name="lock" size={"0.95rem"} />{comingSoon? t("portal.policies.card.comingSoon"): (lockedLabel ?? t("portal.policies.card.requiresAiEngine"))}diff --git a/frontend/editor/src/proprietary/components/shared/PolicyEnforcingOverlay.tsx b/frontend/editor/src/proprietary/components/shared/PolicyEnforcingOverlay.tsxindex 860247d60c..1eee536932 100644--- a/frontend/editor/src/proprietary/components/shared/PolicyEnforcingOverlay.tsx+++ b/frontend/editor/src/proprietary/components/shared/PolicyEnforcingOverlay.tsx@@ -9,8 +9,7 @@ import {Tooltip,} from "@mantine/core";import { ActionIcon } from "@app/ui/ActionIcon";-import ShieldOutlinedIcon from "@mui/icons-material/ShieldOutlined";-import CloseIcon from "@mui/icons-material/Close";+import { Icon } from "@app/ui/Icon";import { policyCategoryIcon } from "@app/components/policies/policyCategoryIcon";import { useTranslation } from "react-i18next";@@ -69,7 +68,7 @@ export function PolicyEnforcingOverlay({}}aria-label={t("policy.dismiss", "Dismiss overlay")}>- <CloseIcon style={{ fontSize: 16 }} />+ <Icon name="x" size={16} /></ActionIcon></Tooltip>)}@@ -93,9 +92,9 @@ export function PolicyEnforcingOverlay({}>{policyKey ? (- policyCategoryIcon(policyKey, { fontSize: 26 })+ policyCategoryIcon(policyKey, 26)) : (- <ShieldOutlinedIcon style={{ fontSize: 26 }} />+ <Icon name="shield" size={26} />)}</ThemeIcon><Text fw={600} size="sm">diff --git a/frontend/editor/src/proprietary/components/shared/fileSidebarGroupingLogic.ts b/frontend/editor/src/proprietary/components/shared/fileSidebarGroupingLogic.tsindex d8b06f12f4..3fb898c137 100644--- a/frontend/editor/src/proprietary/components/shared/fileSidebarGroupingLogic.ts+++ b/frontend/editor/src/proprietary/components/shared/fileSidebarGroupingLogic.ts@@ -78,7 +78,7 @@ export function buildLabelGroups({id: "recent",label: t("fileSidebar.recent", "Recent"),- icon: "history",+ icon: "rotate-ccw-clock",stubs: recent,defaultExpanded: true,},diff --git a/frontend/editor/src/proprietary/data/classificationLabels.drift.test.ts b/frontend/editor/src/proprietary/data/classificationLabels.drift.test.tsindex 9250169d37..5042a9b0c8 100644--- a/frontend/editor/src/proprietary/data/classificationLabels.drift.test.ts+++ b/frontend/editor/src/proprietary/data/classificationLabels.drift.test.ts@@ -2,6 +2,7 @@ import fs from "fs";import path from "path";import { describe, it, expect } from "vitest";import { DEFAULT_CLASSIFICATION_LABELS } from "@app/data/classificationLabels";+import { isIconName } from "@app/ui/Icon";// The classifier vocabulary is bundled in TWO places that must not drift:// - this frontend JSON (source of truth for sidebar categories + display names)@@ -51,4 +52,15 @@ describe("classification label vocabulary (frontend ↔ backend)", () => {});}});++ // The JSON is cast to IconName, not checked, so a typo here is invisible to+ // tsc and only surfaces when the label is rendered.+ it("only uses icon names the registry can render", () => {+ for (const label of frontend) {+ if (label.icon !== undefined)+ expect(isIconName(label.icon), `"${label.icon}" on "${label.id}"`).toBe(+ true,+ );+ }+ });});diff --git a/frontend/editor/src/proprietary/data/classificationLabels.json b/frontend/editor/src/proprietary/data/classificationLabels.jsonindex d22fecc155..eda0f327f3 100644--- a/frontend/editor/src/proprietary/data/classificationLabels.json+++ b/frontend/editor/src/proprietary/data/classificationLabels.json@@ -3,7 +3,7 @@{"id": "invoice","name": "Invoice",- "icon": "receipt-long"+ "icon": "receipt-text"},{"id": "receipt",@@ -13,12 +13,12 @@{"id": "credit-note","name": "Credit note",- "icon": "currency-exchange"+ "icon": "coins"},{"id": "debit-note","name": "Debit note",- "icon": "attach-money"+ "icon": "dollar-sign"},{"id": "purchase-order",@@ -33,42 +33,42 @@{"id": "quote","name": "Quote",- "icon": "request-quote"+ "icon": "file-text"},{"id": "estimate","name": "Estimate",- "icon": "price-check"+ "icon": "badge-dollar-sign"},{"id": "proforma-invoice","name": "Proforma invoice",- "icon": "paid"+ "icon": "circle-dollar-sign"},{"id": "bank-statement","name": "Bank statement",- "icon": "account-balance"+ "icon": "landmark"},{"id": "financial-statement","name": "Financial statement",- "icon": "account-balance-wallet"+ "icon": "wallet-cards"},{"id": "balance-sheet","name": "Balance sheet",- "icon": "table-chart"+ "icon": "table"},{"id": "income-statement","name": "Income statement",- "icon": "functions"+ "icon": "sigma"},{"id": "cash-flow-statement","name": "Cash flow statement",- "icon": "query-stats"+ "icon": "chart-line"},{"id": "expense-report",@@ -78,17 +78,17 @@{"id": "budget","name": "Budget",- "icon": "savings"+ "icon": "piggy-bank"},{"id": "financial-forecast","name": "Financial forecast",- "icon": "insights"+ "icon": "lightbulb"},{"id": "payslip","name": "Payslip",- "icon": "payments"+ "icon": "banknote"},{"id": "payroll-document",@@ -98,7 +98,7 @@{"id": "tax-form","name": "Tax form",- "icon": "calculate"+ "icon": "calculator"},{"id": "tax-return",@@ -108,7 +108,7 @@{"id": "tax-statement","name": "Tax statement",- "icon": "calculate"+ "icon": "calculator"},{"id": "remittance-advice",@@ -118,7 +118,7 @@{"id": "payment-reminder","name": "Payment reminder",- "icon": "schedule"+ "icon": "clock"},{"id": "statement-of-account",@@ -133,37 +133,37 @@{"id": "audit-report","name": "Audit report",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "annual-report","name": "Annual report",- "icon": "leaderboard"+ "icon": "trophy"},{"id": "quarterly-report","name": "Quarterly report",- "icon": "bar-chart"+ "icon": "chart-column"},{"id": "pricing-sheet","name": "Pricing sheet",- "icon": "sell"+ "icon": "tag"},{"id": "price-list","name": "Price list",- "icon": "format-list-bulleted"+ "icon": "list"},{"id": "loan-document","name": "Loan document",- "icon": "assured-workload"+ "icon": "shield-check"},{"id": "mortgage-document","name": "Mortgage document",- "icon": "home"+ "icon": "house"},{"id": "investment-summary",@@ -173,7 +173,7 @@{"id": "donation-receipt","name": "Donation receipt",- "icon": "volunteer-activism"+ "icon": "heart-handshake"},{"id": "contract",@@ -193,22 +193,22 @@{"id": "employment-contract","name": "Employment contract",- "icon": "work"+ "icon": "briefcase"},{"id": "lease-agreement","name": "Lease agreement",- "icon": "home-work"+ "icon": "building-2"},{"id": "rental-agreement","name": "Rental agreement",- "icon": "home-work"+ "icon": "building-2"},{"id": "license-agreement","name": "License agreement",- "icon": "verified"+ "icon": "badge-check"},{"id": "purchase-agreement",@@ -218,27 +218,27 @@{"id": "partnership-agreement","name": "Partnership agreement",- "icon": "diversity-3"+ "icon": "users"},{"id": "loan-agreement","name": "Loan agreement",- "icon": "account-balance"+ "icon": "landmark"},{"id": "settlement-agreement","name": "Settlement agreement",- "icon": "balance"+ "icon": "scale"},{"id": "vendor-agreement","name": "Vendor agreement",- "icon": "storefront"+ "icon": "store"},{"id": "franchise-agreement","name": "Franchise agreement",- "icon": "business-center"+ "icon": "briefcase-business"},{"id": "non-compete-agreement",@@ -248,12 +248,12 @@{"id": "amendment","name": "Amendment",- "icon": "edit-document"+ "icon": "file-pen"},{"id": "addendum","name": "Addendum",- "icon": "edit-document"+ "icon": "file-pen"},{"id": "terms-and-conditions",@@ -268,7 +268,7 @@{"id": "privacy-policy","name": "Privacy policy",- "icon": "privacy-tip"+ "icon": "shield-alert"},{"id": "power-of-attorney",@@ -283,7 +283,7 @@{"id": "will","name": "Will",- "icon": "history-edu"+ "icon": "book-open-text"},{"id": "trust-document",@@ -293,22 +293,22 @@{"id": "deed","name": "Deed",- "icon": "home-work"+ "icon": "building-2"},{"id": "court-filing","name": "Court filing",- "icon": "balance"+ "icon": "scale"},{"id": "legal-brief","name": "Legal brief",- "icon": "balance"+ "icon": "scale"},{"id": "legal-opinion","name": "Legal opinion",- "icon": "balance"+ "icon": "scale"},{"id": "legal-notice",@@ -328,22 +328,22 @@{"id": "compliance-document","name": "Compliance document",- "icon": "rule"+ "icon": "list-checks"},{"id": "regulatory-filing","name": "Regulatory filing",- "icon": "rule"+ "icon": "list-checks"},{"id": "consent-form","name": "Consent form",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "waiver","name": "Waiver",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "memorandum-of-understanding",@@ -353,17 +353,17 @@{"id": "letter-of-intent","name": "Letter of intent",- "icon": "draft"+ "icon": "file"},{"id": "articles-of-incorporation","name": "Articles of incorporation",- "icon": "business-center"+ "icon": "briefcase-business"},{"id": "bylaws","name": "Bylaws",- "icon": "rule"+ "icon": "list-checks"},{"id": "shareholder-agreement",@@ -373,17 +373,17 @@{"id": "board-resolution","name": "Board resolution",- "icon": "groups"+ "icon": "users"},{"id": "resume","name": "Resume",- "icon": "person"+ "icon": "user"},{"id": "cv","name": "CV",- "icon": "person"+ "icon": "user"},{"id": "cover-letter",@@ -393,17 +393,17 @@{"id": "job-description","name": "Job description",- "icon": "topic"+ "icon": "folder-open"},{"id": "job-application","name": "Job application",- "icon": "note-add"+ "icon": "file-plus"},{"id": "offer-letter","name": "Offer letter",- "icon": "work"+ "icon": "briefcase"},{"id": "onboarding-document",@@ -413,27 +413,27 @@{"id": "employee-handbook","name": "Employee handbook",- "icon": "menu-book"+ "icon": "book-open"},{"id": "hr-policy","name": "HR policy",- "icon": "policy"+ "icon": "scroll-text"},{"id": "performance-review","name": "Performance review",- "icon": "monitoring"+ "icon": "activity"},{"id": "timesheet","name": "Timesheet",- "icon": "schedule"+ "icon": "clock"},{"id": "leave-request","name": "Leave request",- "icon": "event"+ "icon": "calendar-days"},{"id": "resignation-letter",@@ -448,12 +448,12 @@{"id": "reference-letter","name": "Reference letter",- "icon": "contact-page"+ "icon": "contact"},{"id": "recommendation-letter","name": "Recommendation letter",- "icon": "how-to-reg"+ "icon": "user-check"},{"id": "training-material",@@ -463,17 +463,17 @@{"id": "organization-chart","name": "Organization chart",- "icon": "supervisor-account"+ "icon": "users-round"},{"id": "benefits-summary","name": "Benefits summary",- "icon": "health-and-safety"+ "icon": "shield-plus"},{"id": "hr-memo","name": "HR memo",- "icon": "sticky-note-2"+ "icon": "sticky-note"},{"id": "letter",@@ -483,22 +483,22 @@{"id": "email-thread","name": "Email thread",- "icon": "alternate-email"+ "icon": "at-sign"},{"id": "memo","name": "Memo",- "icon": "sticky-note-2"+ "icon": "sticky-note"},{"id": "meeting-minutes","name": "Meeting minutes",- "icon": "groups"+ "icon": "users"},{"id": "meeting-agenda","name": "Meeting agenda",- "icon": "checklist"+ "icon": "list-checks"},{"id": "newsletter",@@ -508,27 +508,27 @@{"id": "announcement","name": "Announcement",- "icon": "campaign"+ "icon": "megaphone"},{"id": "notice","name": "Notice",- "icon": "campaign"+ "icon": "megaphone"},{"id": "public-notice","name": "Public notice",- "icon": "public"+ "icon": "globe"},{"id": "press-release","name": "Press release",- "icon": "campaign"+ "icon": "megaphone"},{"id": "complaint-letter","name": "Complaint letter",- "icon": "forum"+ "icon": "messages-square"},{"id": "demand-letter",@@ -543,7 +543,7 @@{"id": "report","name": "Report",- "icon": "bar-chart"+ "icon": "chart-column"},{"id": "progress-report",@@ -553,62 +553,62 @@{"id": "status-report","name": "Status report",- "icon": "monitoring"+ "icon": "activity"},{"id": "incident-report","name": "Incident report",- "icon": "emergency"+ "icon": "siren"},{"id": "inspection-report","name": "Inspection report",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "survey-results","name": "Survey results",- "icon": "pie-chart"+ "icon": "chart-pie"},{"id": "market-research","name": "Market research",- "icon": "insights"+ "icon": "lightbulb"},{"id": "case-study","name": "Case study",- "icon": "article"+ "icon": "file-text"},{"id": "white-paper","name": "White paper",- "icon": "library-books"+ "icon": "library"},{"id": "research-paper","name": "Research paper",- "icon": "science"+ "icon": "flask-conical"},{"id": "research-abstract","name": "Research abstract",- "icon": "text-snippet"+ "icon": "file-text"},{"id": "feasibility-study","name": "Feasibility study",- "icon": "architecture"+ "icon": "drafting-compass"},{"id": "risk-assessment","name": "Risk assessment",- "icon": "security"+ "icon": "shield-check"},{"id": "analytics-report","name": "Analytics report",- "icon": "analytics"+ "icon": "chart-column"},{"id": "sales-report",@@ -618,52 +618,52 @@{"id": "expense-summary","name": "Expense summary",- "icon": "pie-chart"+ "icon": "chart-pie"},{"id": "board-report","name": "Board report",- "icon": "groups"+ "icon": "users"},{"id": "sustainability-report","name": "Sustainability report",- "icon": "eco"+ "icon": "leaf"},{"id": "standard-operating-procedure","name": "Standard operating procedure",- "icon": "rule"+ "icon": "list-checks"},{"id": "work-instruction","name": "Work instruction",- "icon": "checklist"+ "icon": "list-checks"},{"id": "manual","name": "Manual",- "icon": "menu-book"+ "icon": "book-open"},{"id": "user-guide","name": "User guide",- "icon": "auto-stories"+ "icon": "book-open"},{"id": "quick-start-guide","name": "Quick start guide",- "icon": "menu-book"+ "icon": "book-open"},{"id": "checklist","name": "Checklist",- "icon": "checklist"+ "icon": "list-checks"},{"id": "inventory-list","name": "Inventory list",- "icon": "inventory-2"+ "icon": "package"},{"id": "stock-report",@@ -678,12 +678,12 @@{"id": "delivery-note","name": "Delivery note",- "icon": "local-shipping"+ "icon": "truck"},{"id": "bill-of-lading","name": "Bill of lading",- "icon": "pallet"+ "icon": "boxes"},{"id": "waybill",@@ -693,12 +693,12 @@{"id": "customs-declaration","name": "Customs declaration",- "icon": "flight"+ "icon": "plane"},{"id": "customs-form","name": "Customs form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "freight-document",@@ -718,52 +718,52 @@{"id": "work-order","name": "Work order",- "icon": "task"+ "icon": "list-todo"},{"id": "maintenance-log","name": "Maintenance log",- "icon": "build"+ "icon": "wrench"},{"id": "service-report","name": "Service report",- "icon": "engineering"+ "icon": "hard-hat"},{"id": "quality-report","name": "Quality report",- "icon": "verified"+ "icon": "badge-check"},{"id": "safety-data-sheet","name": "Safety data sheet",- "icon": "health-and-safety"+ "icon": "shield-plus"},{"id": "safety-procedure","name": "Safety procedure",- "icon": "health-and-safety"+ "icon": "shield-plus"},{"id": "warehouse-receipt","name": "Warehouse receipt",- "icon": "inventory-2"+ "icon": "package"},{"id": "return-authorization","name": "Return authorization",- "icon": "redeem"+ "icon": "gift"},{"id": "proposal","name": "Proposal",- "icon": "slideshow"+ "icon": "presentation"},{"id": "business-proposal","name": "Business proposal",- "icon": "business-center"+ "icon": "briefcase-business"},{"id": "sales-proposal",@@ -773,12 +773,12 @@{"id": "pitch-deck","name": "Pitch deck",- "icon": "leaderboard"+ "icon": "trophy"},{"id": "presentation","name": "Presentation",- "icon": "slideshow"+ "icon": "presentation"},{"id": "brochure",@@ -793,67 +793,67 @@{"id": "catalog","name": "Catalog",- "icon": "menu-book"+ "icon": "book-open"},{"id": "product-sheet","name": "Product sheet",- "icon": "description"+ "icon": "file-text"},{"id": "marketing-plan","name": "Marketing plan",- "icon": "campaign"+ "icon": "megaphone"},{"id": "campaign-brief","name": "Campaign brief",- "icon": "campaign"+ "icon": "megaphone"},{"id": "media-kit","name": "Media kit",- "icon": "photo-camera"+ "icon": "camera"},{"id": "promotional-material","name": "Promotional material",- "icon": "celebration"+ "icon": "party-popper"},{"id": "advertisement","name": "Advertisement",- "icon": "campaign"+ "icon": "megaphone"},{"id": "request-for-proposal","name": "Request for proposal",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "request-for-quotation","name": "Request for quotation",- "icon": "request-quote"+ "icon": "file-text"},{"id": "tender-document","name": "Tender document",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "statement-of-work","name": "Statement of work",- "icon": "task"+ "icon": "list-todo"},{"id": "scope-of-work","name": "Scope of work",- "icon": "task"+ "icon": "list-todo"},{"id": "specification","name": "Specification",- "icon": "engineering"+ "icon": "hard-hat"},{"id": "technical-specification",@@ -863,22 +863,22 @@{"id": "requirements-document","name": "Requirements document",- "icon": "checklist"+ "icon": "list-checks"},{"id": "design-document","name": "Design document",- "icon": "design-services"+ "icon": "pencil-ruler"},{"id": "architecture-document","name": "Architecture document",- "icon": "architecture"+ "icon": "drafting-compass"},{"id": "datasheet","name": "Datasheet",- "icon": "table-chart"+ "icon": "table"},{"id": "schematic",@@ -893,12 +893,12 @@{"id": "technical-drawing","name": "Technical drawing",- "icon": "engineering"+ "icon": "hard-hat"},{"id": "floor-plan","name": "Floor plan",- "icon": "apartment"+ "icon": "building"},{"id": "patent",@@ -908,22 +908,22 @@{"id": "test-plan","name": "Test plan",- "icon": "checklist"+ "icon": "list-checks"},{"id": "test-report","name": "Test report",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "release-notes","name": "Release notes",- "icon": "article"+ "icon": "file-text"},{"id": "change-log","name": "Change log",- "icon": "edit-document"+ "icon": "file-pen"},{"id": "api-documentation",@@ -933,22 +933,22 @@{"id": "bill-of-materials","name": "Bill of materials",- "icon": "inventory-2"+ "icon": "package"},{"id": "business-plan","name": "Business plan",- "icon": "business-center"+ "icon": "briefcase-business"},{"id": "project-plan","name": "Project plan",- "icon": "task"+ "icon": "list-todo"},{"id": "project-charter","name": "Project charter",- "icon": "task"+ "icon": "list-todo"},{"id": "roadmap",@@ -963,17 +963,17 @@{"id": "meeting-notes","name": "Meeting notes",- "icon": "sticky-note-2"+ "icon": "sticky-note"},{"id": "action-plan","name": "Action plan",- "icon": "checklist"+ "icon": "list-checks"},{"id": "retrospective","name": "Retrospective",- "icon": "psychology"+ "icon": "brain"},{"id": "transcript",@@ -983,22 +983,22 @@{"id": "diploma","name": "Diploma",- "icon": "history-edu"+ "icon": "book-open-text"},{"id": "certificate","name": "Certificate",- "icon": "verified"+ "icon": "badge-check"},{"id": "certificate-of-completion","name": "Certificate of completion",- "icon": "verified"+ "icon": "badge-check"},{"id": "course-syllabus","name": "Course syllabus",- "icon": "menu-book"+ "icon": "book-open"},{"id": "lesson-plan",@@ -1008,12 +1008,12 @@{"id": "assignment-brief","name": "Assignment brief",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "exam-paper","name": "Exam paper",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "grade-report",@@ -1023,17 +1023,17 @@{"id": "thesis","name": "Thesis",- "icon": "science"+ "icon": "flask-conical"},{"id": "dissertation","name": "Dissertation",- "icon": "science"+ "icon": "flask-conical"},{"id": "study-guide","name": "Study guide",- "icon": "menu-book"+ "icon": "book-open"},{"id": "academic-record",@@ -1043,27 +1043,27 @@{"id": "medical-report","name": "Medical report",- "icon": "medical-services"+ "icon": "briefcase-medical"},{"id": "lab-report","name": "Lab report",- "icon": "science"+ "icon": "flask-conical"},{"id": "radiology-report","name": "Radiology report",- "icon": "monitor-heart"+ "icon": "heart-pulse"},{"id": "pathology-report","name": "Pathology report",- "icon": "medical-information"+ "icon": "clipboard-plus"},{"id": "prescription","name": "Prescription",- "icon": "medication"+ "icon": "pill"},{"id": "referral-letter",@@ -1073,17 +1073,17 @@{"id": "discharge-summary","name": "Discharge summary",- "icon": "medical-services"+ "icon": "briefcase-medical"},{"id": "immunization-record","name": "Immunization record",- "icon": "vaccines"+ "icon": "syringe"},{"id": "medical-invoice","name": "Medical invoice",- "icon": "receipt-long"+ "icon": "receipt-text"},{"id": "insurance-policy",@@ -1093,47 +1093,47 @@{"id": "insurance-claim","name": "Insurance claim",- "icon": "security"+ "icon": "shield-check"},{"id": "insurance-certificate","name": "Insurance certificate",- "icon": "approval"+ "icon": "badge-check"},{"id": "explanation-of-benefits","name": "Explanation of benefits",- "icon": "medical-information"+ "icon": "clipboard-plus"},{"id": "property-listing","name": "Property listing",- "icon": "real-estate-agent"+ "icon": "house-plus"},{"id": "appraisal-report","name": "Appraisal report",- "icon": "real-estate-agent"+ "icon": "house-plus"},{"id": "home-inspection-report","name": "Home inspection report",- "icon": "home"+ "icon": "house"},{"id": "title-document","name": "Title document",- "icon": "home-work"+ "icon": "building-2"},{"id": "closing-statement","name": "Closing statement",- "icon": "real-estate-agent"+ "icon": "house-plus"},{"id": "tenancy-agreement","name": "Tenancy agreement",- "icon": "home-work"+ "icon": "building-2"},{"id": "eviction-notice",@@ -1143,7 +1143,7 @@{"id": "hoa-document","name": "HOA document",- "icon": "home-work"+ "icon": "building-2"},{"id": "utility-bill",@@ -1153,32 +1153,32 @@{"id": "permit","name": "Permit",- "icon": "approval"+ "icon": "badge-check"},{"id": "license","name": "License",- "icon": "verified"+ "icon": "badge-check"},{"id": "registration-form","name": "Registration form",- "icon": "how-to-reg"+ "icon": "user-check"},{"id": "application-form","name": "Application form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "government-notice","name": "Government notice",- "icon": "campaign"+ "icon": "megaphone"},{"id": "grant-application","name": "Grant application",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "grant-agreement",@@ -1188,7 +1188,7 @@{"id": "visa-document","name": "Visa document",- "icon": "public"+ "icon": "globe"},{"id": "immigration-document",@@ -1198,7 +1198,7 @@{"id": "legal-filing","name": "Legal filing",- "icon": "balance"+ "icon": "scale"},{"id": "itinerary",@@ -1208,7 +1208,7 @@{"id": "travel-itinerary","name": "Travel itinerary",- "icon": "flight"+ "icon": "plane"},{"id": "booking-confirmation",@@ -1218,22 +1218,22 @@{"id": "reservation","name": "Reservation",- "icon": "restaurant"+ "icon": "utensils"},{"id": "ticket","name": "Ticket",- "icon": "confirmation-number"+ "icon": "ticket"},{"id": "event-agenda","name": "Event agenda",- "icon": "calendar-month"+ "icon": "calendar"},{"id": "event-program","name": "Event program",- "icon": "calendar-month"+ "icon": "calendar"},{"id": "invitation",@@ -1243,32 +1243,32 @@{"id": "registration-confirmation","name": "Registration confirmation",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "form","name": "Form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "questionnaire","name": "Questionnaire",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "survey-form","name": "Survey form",- "icon": "checklist"+ "icon": "list-checks"},{"id": "feedback-form","name": "Feedback form",- "icon": "forum"+ "icon": "messages-square"},{"id": "intake-form","name": "Intake form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "order-form",@@ -1278,12 +1278,12 @@{"id": "claim-form","name": "Claim form",- "icon": "assignment"+ "icon": "clipboard-list"},{"id": "warranty-document","name": "Warranty document",- "icon": "assured-workload"+ "icon": "shield-check"},{"id": "membership-document",@@ -1293,12 +1293,12 @@{"id": "subscription-confirmation","name": "Subscription confirmation",- "icon": "fact-check"+ "icon": "clipboard-check"},{"id": "gift-certificate","name": "Gift certificate",- "icon": "redeem"+ "icon": "gift"},{"id": "sponsorship-agreement",@@ -1308,44 +1308,44 @@{"id": "petition","name": "Petition",- "icon": "history-edu"+ "icon": "book-open-text"},{"id": "agenda","name": "Agenda",- "icon": "checklist"+ "icon": "list-checks"},{"id": "fact-sheet","name": "Fact sheet",- "icon": "summarize"+ "icon": "file-text"},{"id": "faq-document","name": "FAQ document",- "icon": "chat"+ "icon": "message-circle"},{"id": "glossary","name": "Glossary",- "icon": "menu-book"+ "icon": "book-open"},{"id": "index","name": "Index",- "icon": "format-list-bulleted"+ "icon": "list"},{"id": "table-of-contents","name": "Table of contents",- "icon": "topic"+ "icon": "folder-open"}],"families": [{"id": "finance","name": "Financial",- "icon": "payments",+ "icon": "banknote","labelIds": ["invoice","receipt",@@ -1481,7 +1481,7 @@{"id": "reports","name": "Reports",- "icon": "monitoring",+ "icon": "activity","labelIds": ["report","progress-report",@@ -1506,7 +1506,7 @@{"id": "operations","name": "Operations",- "icon": "local-shipping",+ "icon": "truck","labelIds": ["standard-operating-procedure","work-instruction",@@ -1538,7 +1538,7 @@{"id": "sales","name": "Marketing",- "icon": "campaign",+ "icon": "megaphone","labelIds": ["proposal","business-proposal",@@ -1564,7 +1564,7 @@{"id": "engineering","name": "Engineering",- "icon": "engineering",+ "icon": "hard-hat","labelIds": ["specification","technical-specification",@@ -1588,7 +1588,7 @@{"id": "projects","name": "Projects",- "icon": "task",+ "icon": "list-todo","labelIds": ["business-plan","project-plan",@@ -1623,7 +1623,7 @@{"id": "health","name": "Medical",- "icon": "medical-services",+ "icon": "briefcase-medical","labelIds": ["medical-report","lab-report",@@ -1643,7 +1643,7 @@{"id": "property","name": "Property",- "icon": "real-estate-agent",+ "icon": "house-plus","labelIds": ["property-listing","appraisal-report",@@ -1659,7 +1659,7 @@{"id": "government","name": "Government",- "icon": "account-balance",+ "icon": "landmark","labelIds": ["permit","license",@@ -1676,7 +1676,7 @@{"id": "travel","name": "Travel",- "icon": "flight",+ "icon": "plane","labelIds": ["itinerary","travel-itinerary",@@ -1692,7 +1692,7 @@{"id": "forms","name": "Forms",- "icon": "assignment",+ "icon": "clipboard-list","labelIds": ["form","questionnaire",diff --git a/frontend/editor/src/proprietary/data/classificationLabels.ts b/frontend/editor/src/proprietary/data/classificationLabels.tsindex 900a1b09af..cec79d83f5 100644--- a/frontend/editor/src/proprietary/data/classificationLabels.ts+++ b/frontend/editor/src/proprietary/data/classificationLabels.ts@@ -1,3 +1,4 @@+import type { IconName } from "@app/ui/Icon";// Classification labels. The SOURCE OF TRUTH is the co-located static JSON// (`classificationLabels.json`), imported here and shaped into typed objects —// edit THAT file, not this one. It's a fixed, built-in vocabulary shared by@@ -24,8 +25,8 @@ export interface ClassificationLabel {id: string;/** Human display name; the en-US default for `classification.labels.<id>`. */name: string;- /** Material Symbols icon key (see `labelIcons.ts`). */- icon?: string;+ /** Registry icon name (see `labelIcons.ts`). */+ icon?: IconName;}export interface LabelFamily {@@ -33,8 +34,8 @@ export interface LabelFamily {id: string;/** Group header text shown in the sidebar and the group picker. */name: string;- /** Material Symbols icon key (see `labelIcons.ts`). */- icon: string;+ /** Registry icon name (see `labelIcons.ts`). */+ icon: IconName;/** The built-in labels this family rolls up in the sidebar. */labels: ClassificationLabel[];}@@ -43,7 +44,7 @@ export interface LabelFamily {* presentational family grouping (which references labels by id). */interface LabelsFile {labels: ClassificationLabel[];- families: { id: string; name: string; icon: string; labelIds: string[] }[];+ families: { id: string; name: string; icon: IconName; labelIds: string[] }[];}const data = labelsData as LabelsFile;diff --git a/frontend/editor/src/proprietary/data/labelIcons.ts b/frontend/editor/src/proprietary/data/labelIcons.tsindex 66affc07cd..6c3feeda97 100644--- a/frontend/editor/src/proprietary/data/labelIcons.ts+++ b/frontend/editor/src/proprietary/data/labelIcons.ts@@ -1,143 +1,133 @@-/**- * Curated palette of icons the classification labels use, rendered in the file- * sidebar's label/category groups. Keys are Material Symbols names rendered via- * {@link LocalIcon}.- *- * IMPORTANT — this list is also the icon BUNDLING MANIFEST for classification.- * The label/family icons live in `classificationLabels.json`, but the bundler- * (`scripts/generate-icons.js`) only regex-scans `.ts/.tsx` for `icon: "…"`- * literals, not JSON — so every icon those labels use must appear here as a- * literal or it falls back to the CDN and renders blank offline. Do NOT delete- * `LABEL_ICON_OPTIONS` as "unused": nothing imports it, but it's load-bearing- * for offline icons. After editing, run `task frontend:prepare:icons`.- */+import type { IconName } from "@app/ui/Icon";+/** Curated palette the classification labels pick from, shown in the file+ * sidebar. Names are registry icons; the generator bundles what the app references. */export interface LabelIconOption {- /** Material Symbols key (no `material-symbols:` prefix). */- icon: string;+ /** Registry icon name. */+ icon: IconName;/** Short English name for the icon (documentation only). */label: string;}/** Fallback icon for a label with none set (and for the "Other" group). */-export const DEFAULT_LABEL_ICON = "sell";+export const DEFAULT_LABEL_ICON: IconName = "tag";export const LABEL_ICON_OPTIONS: LabelIconOption[] = [// Money / finance- { icon: "receipt-long", label: "Receipt" },- { icon: "request-quote", label: "Quote" },- { icon: "payments", label: "Payments" },- { icon: "account-balance", label: "Bank" },- { icon: "savings", label: "Savings" },+ { icon: "receipt-text", label: "Receipt" },+ { icon: "file-text", label: "Quote" },+ { icon: "banknote", label: "Payments" },+ { icon: "landmark", label: "Bank" },+ { icon: "piggy-bank", label: "Savings" },{ icon: "credit-card", label: "Card" },- { icon: "point-of-sale", label: "Point of sale" },- { icon: "sell", label: "Label" },+ { icon: "credit-card", label: "Point of sale" },+ { icon: "tag", label: "Label" },{ icon: "shopping-cart", label: "Cart" },- { icon: "calculate", label: "Calculate" },+ { icon: "calculator", label: "Calculate" },// Legal / compliance{ icon: "handshake", label: "Agreement" },{ icon: "gavel", label: "Legal" },- { icon: "balance", label: "Balance" },- { icon: "policy", label: "Policy" },- { icon: "verified", label: "Verified" },+ { icon: "scale", label: "Balance" },+ { icon: "scroll-text", label: "Policy" },+ { icon: "badge-check", label: "Verified" },{ icon: "shield", label: "Shield" },- { icon: "health-and-safety", label: "Safety" },+ { icon: "shield-plus", label: "Safety" },{ icon: "lock", label: "Lock" },- { icon: "fact-check", label: "Fact check" },- { icon: "rule", label: "Rule" },+ { icon: "clipboard-check", label: "Fact check" },+ { icon: "list-checks", label: "Rule" },// Documents / writing- { icon: "description", label: "Document" },- { icon: "article", label: "Article" },- { icon: "assignment", label: "Form" },- { icon: "checklist", label: "Checklist" },- { icon: "task", label: "Task" },- { icon: "summarize", label: "Summary" },- { icon: "sticky-note-2", label: "Note" },- { icon: "edit-document", label: "Edit" },- { icon: "draft", label: "Draft" },+ { icon: "file-text", label: "Document" },+ { icon: "file-text", label: "Article" },+ { icon: "clipboard-list", label: "Form" },+ { icon: "list-checks", label: "Checklist" },+ { icon: "list-todo", label: "Task" },+ { icon: "file-text", label: "Summary" },+ { icon: "sticky-note", label: "Note" },+ { icon: "file-pen", label: "Edit" },+ { icon: "file", label: "Draft" },{ icon: "folder", label: "Folder" },// People / comms{ icon: "mail", label: "Mail" },- { icon: "campaign", label: "Campaign" },- { icon: "contact-page", label: "Contact" },+ { icon: "megaphone", label: "Campaign" },+ { icon: "contact", label: "Contact" },{ icon: "badge", label: "Badge" },- { icon: "groups", label: "Group" },- { icon: "person", label: "Person" },- { icon: "work", label: "Work" },- { icon: "business-center", label: "Business" },- { icon: "event", label: "Event" },- { icon: "calendar-month", label: "Calendar" },+ { icon: "users", label: "Group" },+ { icon: "user", label: "Person" },+ { icon: "briefcase", label: "Work" },+ { icon: "briefcase-business", label: "Business" },+ { icon: "calendar-days", label: "Event" },+ { icon: "calendar", label: "Calendar" },// Charts / education / logistics / misc- { icon: "bar-chart", label: "Bar chart" },- { icon: "monitoring", label: "Monitoring" },- { icon: "pie-chart", label: "Pie chart" },+ { icon: "chart-column", label: "Bar chart" },+ { icon: "activity", label: "Monitoring" },+ { icon: "chart-pie", label: "Pie chart" },{ icon: "trending-up", label: "Trend" },- { icon: "table-chart", label: "Table" },+ { icon: "table", label: "Table" },{ icon: "school", label: "School" },- { icon: "menu-book", label: "Book" },- { icon: "science", label: "Science" },- { icon: "medical-services", label: "Medical" },- { icon: "local-shipping", label: "Shipping" },- { icon: "slideshow", label: "Presentation" },- { icon: "home-work", label: "Property" },- { icon: "real-estate-agent", label: "Real estate" },- { icon: "engineering", label: "Technical" },- { icon: "inventory-2", label: "Inventory" },+ { icon: "book-open", label: "Book" },+ { icon: "flask-conical", label: "Science" },+ { icon: "briefcase-medical", label: "Medical" },+ { icon: "truck", label: "Shipping" },+ { icon: "presentation", label: "Presentation" },+ { icon: "building-2", label: "Property" },+ { icon: "house-plus", label: "Real estate" },+ { icon: "hard-hat", label: "Technical" },+ { icon: "package", label: "Inventory" },{ icon: "image", label: "Image" },// Money / finance (extended)- { icon: "paid", label: "Paid" },- { icon: "attach-money", label: "Money" },- { icon: "currency-exchange", label: "Exchange" },- { icon: "account-balance-wallet", label: "Wallet" },- { icon: "price-check", label: "Price check" },+ { icon: "circle-dollar-sign", label: "Paid" },+ { icon: "dollar-sign", label: "Money" },+ { icon: "coins", label: "Exchange" },+ { icon: "wallet-cards", label: "Wallet" },+ { icon: "badge-dollar-sign", label: "Price check" },{ icon: "wallet", label: "Billfold" },- { icon: "redeem", label: "Redeem" },+ { icon: "gift", label: "Redeem" },{ icon: "receipt", label: "Receipt (short)" },{ icon: "percent", label: "Percent" },// Legal / security (extended)- { icon: "encrypted", label: "Encrypted" },- { icon: "privacy-tip", label: "Privacy" },- { icon: "security", label: "Security" },- { icon: "assured-workload", label: "Assured" },+ { icon: "lock-keyhole", label: "Encrypted" },+ { icon: "shield-alert", label: "Privacy" },+ { icon: "shield-check", label: "Security" },+ { icon: "shield-check", label: "Assured" },{ icon: "copyright", label: "Copyright" },- { icon: "approval", label: "Approval" },- { icon: "history-edu", label: "Quill" },+ { icon: "badge-check", label: "Approval" },+ { icon: "book-open-text", label: "Quill" },// Documents (extended)- { icon: "topic", label: "Topic" },- { icon: "note-add", label: "New note" },- { icon: "text-snippet", label: "Snippet" },- { icon: "library-books", label: "Library" },- { icon: "auto-stories", label: "Open book" },+ { icon: "folder-open", label: "Topic" },+ { icon: "file-plus", label: "New note" },+ { icon: "file-text", label: "Snippet" },+ { icon: "library", label: "Library" },+ { icon: "book-open", label: "Open book" },{ icon: "newspaper", label: "Newspaper" },{ icon: "folder-open", label: "Open folder" },- { icon: "format-list-bulleted", label: "List" },+ { icon: "list", label: "List" },// People / HR (extended)- { icon: "manage-accounts", label: "Manage accounts" },- { icon: "supervisor-account", label: "Supervisor" },- { icon: "how-to-reg", label: "Registered" },- { icon: "diversity-3", label: "Team" },- { icon: "psychology", label: "Psychology" },- { icon: "volunteer-activism", label: "Volunteer" },+ { icon: "user-cog", label: "Manage accounts" },+ { icon: "users-round", label: "Supervisor" },+ { icon: "user-check", label: "Registered" },+ { icon: "users", label: "Team" },+ { icon: "brain", label: "Psychology" },+ { icon: "heart-handshake", label: "Volunteer" },// Health (extended)- { icon: "medical-information", label: "Medical info" },- { icon: "medication", label: "Medication" },- { icon: "vaccines", label: "Vaccine" },- { icon: "monitor-heart", label: "Heart monitor" },- { icon: "emergency", label: "Emergency" },+ { icon: "clipboard-plus", label: "Medical info" },+ { icon: "pill", label: "Medication" },+ { icon: "syringe", label: "Vaccine" },+ { icon: "heart-pulse", label: "Heart monitor" },+ { icon: "siren", label: "Emergency" },{ icon: "stethoscope", label: "Stethoscope" },// Property / places (extended)- { icon: "home", label: "Home" },- { icon: "apartment", label: "Apartment" },- { icon: "storefront", label: "Storefront" },- { icon: "location-on", label: "Location" },+ { icon: "house", label: "Home" },+ { icon: "building", label: "Apartment" },+ { icon: "store", label: "Storefront" },+ { icon: "map-pin", label: "Location" },{ icon: "map", label: "Map" },- { icon: "public", label: "Globe" },+ { icon: "globe", label: "Globe" },// Logistics (extended){ icon: "package-2", label: "Package" },{ icon: "warehouse", label: "Warehouse" },{ icon: "forklift", label: "Forklift" },- { icon: "pallet", label: "Pallet" },- { icon: "flight", label: "Flight" },+ { icon: "boxes", label: "Pallet" },+ { icon: "plane", label: "Flight" },{ icon: "luggage", label: "Luggage" },// Technology / engineering (extended){ icon: "code", label: "Code" },@@ -145,45 +135,45 @@ export const LABEL_ICON_OPTIONS: LabelIconOption[] = [{ icon: "database", label: "Database" },{ icon: "cloud", label: "Cloud" },{ icon: "api", label: "API" },- { icon: "bug-report", label: "Bug" },- { icon: "build", label: "Wrench" },- { icon: "architecture", label: "Compass" },- { icon: "design-services", label: "Design" },- { icon: "precision-manufacturing", label: "Robotics" },+ { icon: "bug", label: "Bug" },+ { icon: "wrench", label: "Wrench" },+ { icon: "drafting-compass", label: "Compass" },+ { icon: "pencil-ruler", label: "Design" },+ { icon: "cog", label: "Robotics" },{ icon: "factory", label: "Factory" },{ icon: "bolt", label: "Bolt" },{ icon: "construction", label: "Construction" },// Charts / time (extended)- { icon: "analytics", label: "Analytics" },- { icon: "insights", label: "Insights" },- { icon: "query-stats", label: "Stats" },- { icon: "leaderboard", label: "Leaderboard" },- { icon: "functions", label: "Functions" },- { icon: "schedule", label: "Clock" },- { icon: "pending-actions", label: "Pending" },+ { icon: "chart-column", label: "Analytics" },+ { icon: "lightbulb", label: "Insights" },+ { icon: "chart-line", label: "Stats" },+ { icon: "trophy", label: "Leaderboard" },+ { icon: "sigma", label: "Functions" },+ { icon: "clock", label: "Clock" },+ { icon: "clipboard-clock", label: "Pending" },{ icon: "timeline", label: "Timeline" },// Communication (extended)- { icon: "chat", label: "Chat" },- { icon: "forum", label: "Forum" },- { icon: "call", label: "Call" },+ { icon: "message-circle", label: "Chat" },+ { icon: "messages-square", label: "Forum" },+ { icon: "phone", label: "Call" },{ icon: "send", label: "Send" },{ icon: "inbox", label: "Inbox" },- { icon: "alternate-email", label: "At sign" },+ { icon: "at-sign", label: "At sign" },// Events / travel (extended)- { icon: "airplane-ticket", label: "Plane ticket" },- { icon: "confirmation-number", label: "Ticket stub" },+ { icon: "ticket", label: "Plane ticket" },+ { icon: "ticket", label: "Ticket stub" },{ icon: "hotel", label: "Hotel" },- { icon: "restaurant", label: "Restaurant" },- { icon: "celebration", label: "Celebration" },+ { icon: "utensils", label: "Restaurant" },+ { icon: "party-popper", label: "Celebration" },// Media / creative (extended)- { icon: "photo-camera", label: "Camera" },- { icon: "videocam", label: "Video" },- { icon: "music-note", label: "Music" },+ { icon: "camera", label: "Camera" },+ { icon: "video", label: "Video" },+ { icon: "music", label: "Music" },{ icon: "palette", label: "Palette" },{ icon: "brush", label: "Brush" },- { icon: "movie", label: "Movie" },+ { icon: "film", label: "Movie" },// Nature / misc (extended)- { icon: "eco", label: "Eco" },- { icon: "recycling", label: "Recycling" },- { icon: "agriculture", label: "Agriculture" },+ { icon: "leaf", label: "Eco" },+ { icon: "recycle", label: "Recycling" },+ { icon: "tractor", label: "Agriculture" },];diff --git a/frontend/editor/src/proprietary/data/policyDefinitions.tsx b/frontend/editor/src/proprietary/data/policyDefinitions.tsxindex cd36fc6493..3b0b80d587 100644--- a/frontend/editor/src/proprietary/data/policyDefinitions.tsx+++ b/frontend/editor/src/proprietary/data/policyDefinitions.tsx@@ -7,14 +7,14 @@import { policyCategoryIcon } from "@app/components/policies/policyCategoryIcon";import type { PolicyCategory } from "@app/types/policies";-const ICON_SX = { fontSize: "1rem" } as const;+const ICON_SIZE = "1rem";/** The 5 policy categories, in display order. */export const POLICY_CATEGORIES: PolicyCategory[] = [{id: "ingestion",label: "Ingestion",- icon: policyCategoryIcon("ingestion", ICON_SX),+ icon: policyCategoryIcon("ingestion", ICON_SIZE),desc: "Classify documents, extract structured data, enforce naming conventions, and normalize pages.",// The classifier the wizard's "Set up Classification" action routes to.providesClassification: true,@@ -24,33 +24,33 @@ export const POLICY_CATEGORIES: PolicyCategory[] = [{id: "security",label: "Security",- icon: policyCategoryIcon("security", ICON_SX),+ icon: policyCategoryIcon("security", ICON_SIZE),desc: "Detect PII, encrypt, verify authenticity, control access, and certify documents.",},{id: "classification",label: "Classification",- icon: policyCategoryIcon("classification", ICON_SX),+ icon: policyCategoryIcon("classification", ICON_SIZE),desc: "Identify each document's type on upload and tag its metadata for filing and search.",},{id: "compliance",label: "Compliance",- icon: policyCategoryIcon("compliance", ICON_SX),+ icon: policyCategoryIcon("compliance", ICON_SIZE),desc: "Enforce HIPAA, GDPR, SOC 2, or FedRAMP requirements on every document.",comingSoon: true,},{id: "routing",label: "Routing",- icon: policyCategoryIcon("routing", ICON_SX),+ icon: policyCategoryIcon("routing", ICON_SIZE),desc: "Auto-route documents to the right team, folder, or system.",comingSoon: true,},{id: "retention",label: "Retention",- icon: policyCategoryIcon("retention", ICON_SX),+ icon: policyCategoryIcon("retention", ICON_SIZE),desc: "Set how long documents are kept, when to archive, and when to delete.",comingSoon: true,},diff --git a/frontend/editor/src/proprietary/services/fileSidebarCategories.ts b/frontend/editor/src/proprietary/services/fileSidebarCategories.tsindex b1b74a5a2f..f360b18bf4 100644--- a/frontend/editor/src/proprietary/services/fileSidebarCategories.ts+++ b/frontend/editor/src/proprietary/services/fileSidebarCategories.ts@@ -1,3 +1,4 @@+import type { IconName } from "@app/ui/Icon";// The Files-sidebar categories are a fixed, built-in set shared by everyone (derived from// LABEL_FAMILIES) — the team can't create, rename, or re-group them. The only per-user choice is// which categories to SHOW or HIDE in the sidebar, kept device-local in localStorage. A hidden@@ -10,7 +11,7 @@ export interface SidebarCategory {/** Stable id (the label family's id). */id: string;name: string;- icon: string;+ icon: IconName;/** Label ids in this category (matches a file's stored classification ids). */labelKeys: string[];/** Hidden from the sidebar (device-local, personal). */