Skip to content

Commit b8d8f02

Browse files
authored
fix: align portal icons with supported Material Symbols names (Stirling-Tools#6884)
1 parent cd56367 commit b8d8f02

3 files changed

Lines changed: 40 additions & 40 deletions

File tree

frontend/editor/src/portal/api/policies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export const POLICY_CATEGORIES: PolicyCategory[] = [
207207
{
208208
id: "retention",
209209
label: "portal.policies.categories.retention.label",
210-
icon: "clock",
210+
icon: "schedule",
211211
tone: "neutral",
212212
desc: "portal.policies.categories.retention.desc",
213213
comingSoon: true,

frontend/editor/src/portal/data/ops.ts

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ export const PIPELINE_OPS: Record<OpKind, PipelineOp[]> = {
9696
{
9797
id: "ocr",
9898
label: "OCR",
99-
icon: "eye",
99+
icon: "visibility",
100100
kind: "ingest",
101101
desc: "Text-recognize scanned or image-based pages",
102102
},
103103
{
104104
id: "parse",
105105
label: "Parse",
106-
icon: "layout",
106+
icon: "dashboard",
107107
kind: "ingest",
108108
desc: "Reconstruct reading order and layout structure",
109109
},
@@ -117,14 +117,14 @@ export const PIPELINE_OPS: Record<OpKind, PipelineOp[]> = {
117117
{
118118
id: "bundle-split",
119119
label: "Bundle split",
120-
icon: "grid",
120+
icon: "grid-view",
121121
kind: "ingest",
122122
desc: "Split a multi-document upload into component documents",
123123
},
124124
{
125125
id: "extract",
126126
label: "Extract",
127-
icon: "sparkles",
127+
icon: "auto-awesome",
128128
kind: "ingest",
129129
desc: "Pull structured fields from the document into a typed schema",
130130
},
@@ -168,7 +168,7 @@ export const PIPELINE_OPS: Record<OpKind, PipelineOp[]> = {
168168
{
169169
id: "confidence-check",
170170
label: "Confidence bounds",
171-
icon: "activity",
171+
icon: "analytics",
172172
kind: "validate",
173173
desc: "Gate downstream ops on extraction-confidence thresholds",
174174
},
@@ -184,7 +184,7 @@ export const PIPELINE_OPS: Record<OpKind, PipelineOp[]> = {
184184
{
185185
id: "split",
186186
label: "Split",
187-
icon: "grid",
187+
icon: "grid-view",
188188
kind: "modify",
189189
desc: "Split a PDF into pages, sections, or by document boundary",
190190
},
@@ -212,7 +212,7 @@ export const PIPELINE_OPS: Record<OpKind, PipelineOp[]> = {
212212
{
213213
id: "crop",
214214
label: "Crop",
215-
icon: "layout",
215+
icon: "dashboard",
216216
kind: "modify",
217217
desc: "Crop pages to a region or trim margins",
218218
},
@@ -221,7 +221,7 @@ export const PIPELINE_OPS: Record<OpKind, PipelineOp[]> = {
221221
{
222222
id: "redact",
223223
label: "Redact PII",
224-
icon: "eye",
224+
icon: "visibility",
225225
kind: "secure",
226226
defaultOn: true,
227227
desc: "Remove or mask PII before the document is stored or released downstream",
@@ -250,7 +250,7 @@ export const PIPELINE_OPS: Record<OpKind, PipelineOp[]> = {
250250
{
251251
id: "flatten",
252252
label: "Flatten + lock",
253-
icon: "layout",
253+
icon: "dashboard",
254254
kind: "secure",
255255
desc: "Flatten forms and annotations to harden the document against tampering",
256256
},
@@ -350,7 +350,7 @@ export const PIPELINE_OPS: Record<OpKind, PipelineOp[]> = {
350350
{
351351
id: "notify",
352352
label: "Notify",
353-
icon: "bell",
353+
icon: "notifications",
354354
kind: "alert",
355355
desc: "Fire a webhook or email when the pipeline finishes or trips a rule",
356356
},
@@ -524,7 +524,7 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
524524
{
525525
id: "confidence-check",
526526
label: "Confidence bounds",
527-
icon: "activity",
527+
icon: "analytics",
528528
kind: "validate",
529529
category: "Validation",
530530
desc: "Gate downstream ops on extraction-confidence thresholds",
@@ -622,55 +622,55 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
622622
{
623623
id: "split",
624624
label: "Split",
625-
icon: "grid",
625+
icon: "grid-view",
626626
kind: "modify",
627627
category: "Removal",
628628
desc: "Split a PDF into pages, sections, or by document boundary",
629629
},
630630
{
631631
id: "split-chapters",
632632
label: "Split by chapters",
633-
icon: "grid",
633+
icon: "grid-view",
634634
kind: "modify",
635635
category: "Removal",
636636
desc: "Split a PDF along bookmark or chapter boundaries",
637637
},
638638
{
639639
id: "split-size",
640640
label: "Split by size",
641-
icon: "grid",
641+
icon: "grid-view",
642642
kind: "modify",
643643
category: "Removal",
644644
desc: "Split a PDF when it exceeds a size or page-count threshold",
645645
},
646646
{
647647
id: "auto-split",
648648
label: "Auto split",
649-
icon: "grid",
649+
icon: "grid-view",
650650
kind: "modify",
651651
category: "Classification",
652652
desc: "Detect document boundaries and split automatically",
653653
},
654654
{
655655
id: "remove-pages",
656656
label: "Remove pages",
657-
icon: "grid",
657+
icon: "grid-view",
658658
kind: "modify",
659659
category: "Removal",
660660
desc: "Drop specified pages from the document",
661661
},
662662
{
663663
id: "remove-blanks",
664664
label: "Remove blank pages",
665-
icon: "grid",
665+
icon: "grid-view",
666666
kind: "modify",
667667
category: "Removal",
668668
desc: "Detect and drop blank pages",
669669
},
670670
{
671671
id: "rearrange-pages",
672672
label: "Rearrange pages",
673-
icon: "grid",
673+
icon: "grid-view",
674674
kind: "modify",
675675
category: "Page Formatting",
676676
desc: "Reorder pages by a specified sequence",
@@ -686,7 +686,7 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
686686
{
687687
id: "crop",
688688
label: "Crop",
689-
icon: "layout",
689+
icon: "dashboard",
690690
kind: "modify",
691691
category: "Page Formatting",
692692
desc: "Crop pages to a region or trim margins",
@@ -702,7 +702,7 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
702702
{
703703
id: "flatten",
704704
label: "Flatten",
705-
icon: "layout",
705+
icon: "dashboard",
706706
kind: "modify",
707707
category: "Page Formatting",
708708
desc: "Flatten forms and annotations into the page content",
@@ -718,7 +718,7 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
718718
{
719719
id: "remove-images",
720720
label: "Remove images",
721-
icon: "eye",
721+
icon: "visibility",
722722
kind: "modify",
723723
category: "Removal",
724724
desc: "Strip images to reduce file size",
@@ -782,15 +782,15 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
782782
{
783783
id: "multi-page-layout",
784784
label: "Multi-page layout",
785-
icon: "grid",
785+
icon: "grid-view",
786786
kind: "modify",
787787
category: "Advanced Formatting",
788788
desc: "Combine multiple pages into a single page (n-up)",
789789
},
790790
{
791791
id: "scale-pages",
792792
label: "Scale pages",
793-
icon: "layout",
793+
icon: "dashboard",
794794
kind: "modify",
795795
category: "Page Formatting",
796796
desc: "Resize pages to a target dimension",
@@ -934,31 +934,31 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
934934
{
935935
id: "ocr",
936936
label: "OCR",
937-
icon: "eye",
937+
icon: "visibility",
938938
kind: "modify",
939939
category: "Extraction",
940940
desc: "Optical character recognition on scanned pages",
941941
},
942942
{
943943
id: "extract-images",
944944
label: "Extract images",
945-
icon: "sparkles",
945+
icon: "auto-awesome",
946946
kind: "modify",
947947
category: "Extraction",
948948
desc: "Extract embedded images from the PDF",
949949
},
950950
{
951951
id: "extract-bookmarks",
952952
label: "Extract bookmarks",
953-
icon: "sparkles",
953+
icon: "auto-awesome",
954954
kind: "modify",
955955
category: "Extraction",
956956
desc: "Extract the bookmark / outline tree",
957957
},
958958
{
959959
id: "extract-scans",
960960
label: "Extract scans",
961-
icon: "sparkles",
961+
icon: "auto-awesome",
962962
kind: "modify",
963963
category: "Extraction",
964964
desc: "Detect and extract scanned image regions",
@@ -968,7 +968,7 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
968968
{
969969
id: "redact",
970970
label: "Redact PII",
971-
icon: "eye",
971+
icon: "visibility",
972972
kind: "secure",
973973
category: "Document Security",
974974
desc: "Remove or mask PII before the document is stored or released",
@@ -984,7 +984,7 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
984984
{
985985
id: "auto-redact",
986986
label: "Auto-redact",
987-
icon: "eye",
987+
icon: "visibility",
988988
kind: "secure",
989989
category: "Document Security",
990990
desc: "Automatically redact sensitive content based on policy",
@@ -1048,7 +1048,7 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
10481048
{
10491049
id: "flatten-secure",
10501050
label: "Flatten + lock",
1051-
icon: "layout",
1051+
icon: "dashboard",
10521052
kind: "secure",
10531053
category: "Document Security",
10541054
desc: "Flatten forms and lock the document against tampering",
@@ -1155,7 +1155,7 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
11551155
{
11561156
id: "schema-extract",
11571157
label: "Schema-aware extract",
1158-
icon: "sparkles",
1158+
icon: "auto-awesome",
11591159
kind: "modify",
11601160
category: "Classification",
11611161
desc: "Extract the typed fields the inferred schema declares — not heuristic regexes. Confidence scored per field",
@@ -1187,23 +1187,23 @@ export const LIBRARY_OPS: readonly LibraryOp[] = [
11871187
{
11881188
id: "smart-redact",
11891189
label: "Field-aware redact",
1190-
icon: "eye",
1190+
icon: "visibility",
11911191
kind: "secure",
11921192
category: "Document Security",
11931193
desc: "Schema-aware PII redaction — targets fields the schema declares as PII, not regex fishing",
11941194
},
11951195
{
11961196
id: "field-confidence",
11971197
label: "Field confidence",
1198-
icon: "activity",
1198+
icon: "analytics",
11991199
kind: "validate",
12001200
category: "Validation",
12011201
desc: "Per-field confidence scoring backed by the typed schema",
12021202
},
12031203
{
12041204
id: "schema-split",
12051205
label: "Schema-aware split",
1206-
icon: "grid",
1206+
icon: "grid-view",
12071207
kind: "modify",
12081208
category: "Classification",
12091209
desc: "Split a multi-doc bundle along schema boundaries",
@@ -1240,13 +1240,13 @@ export const SOURCE_OPTIONS: readonly SourceOption[] = [
12401240
{
12411241
id: "webhook",
12421242
label: "Inbound webhook",
1243-
icon: "plug",
1243+
icon: "webhook",
12441244
desc: "Receive documents from another system via webhook",
12451245
},
12461246
{
12471247
id: "s3",
12481248
label: "S3 bucket watch",
1249-
icon: "server",
1249+
icon: "storage",
12501250
desc: "Poll an S3 bucket for new files",
12511251
},
12521252
{
@@ -1258,7 +1258,7 @@ export const SOURCE_OPTIONS: readonly SourceOption[] = [
12581258
{
12591259
id: "scheduled",
12601260
label: "Scheduled import",
1261-
icon: "activity",
1261+
icon: "schedule",
12621262
desc: "Fetch from SFTP/URL on a schedule",
12631263
},
12641264
];
@@ -1273,7 +1273,7 @@ export const DESTINATION_OPTIONS: readonly DestinationOption[] = [
12731273
{
12741274
id: "s3",
12751275
label: "S3 bucket",
1276-
icon: "server",
1276+
icon: "storage",
12771277
desc: "Write results to an S3 bucket",
12781278
},
12791279
{

frontend/editor/src/proprietary/data/labelIcons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Material Symbols names rendered via {@link LocalIcon}.
55
*
66
* IMPORTANT: each entry is written as an `icon: "…"` literal so the icon-bundler
7-
* (`scripts/generate-icons.js`, which regex-scans for `icon: "name"`) picks every
7+
* (`scripts/generate-icons.js`, which regex-scans for icon literals) picks every
88
* one up and bundles it — otherwise a picked icon would fall back to the CDN and
99
* render blank offline. After adding/removing entries run `task frontend:prepare:icons`.
1010
*

0 commit comments

Comments
 (0)