Skip to content

Redesign: shared SVG icon set replaces emoji and glyph icons #1363

Description

@smart-ssh-planner

Goal

One flat, angular SVG icon set (24 × 24 grid, square caps, mitred joins, currentColor) replaces every emoji and Unicode glyph that the UI uses as an icon (📁, 🖥️, 📄, ⚠️, 🔑, 🔓, ✕, ▸/▾, ✓/✗ …). Icons render the same on every platform and font, follow the theme colours and scale with the layout.

Context

  • Design reference: docs/design/angular/screens/Icons.png (54 icons in three groups and examples "in use"), source paths in docs/design/angular/icons/<kebab-name>.svg (for example icons/folder.svg, icons/folder-open.svg, icons/server.svg, icons/local.svg, icons/chev-r.svg). Grid 24 × 24, stroke 2 (1.5 at 16 px), square caps, miter joins, colour currentColor.
  • Emoji used as icons today (file:line under apps/smart-ssh-community/frontend/src/components/):
    • group folder 📁: Sidebar.tsx:247, Sidebar.tsx:434, ServerList.tsx:592, ServerList.tsx:758, MoveToDialog.tsx:77, SshConfigImportDialog.tsx:240, TreeDragGhost.tsx:11; directory 📁: fileBrowser/FileTable.tsx:159, fileBrowser/NarrowEntryList.tsx:59
    • server 🖥️: Sidebar.tsx:276, TreeDragGhost.tsx:11
    • file 📄 / broken link ⚠️: fileBrowser/FileTable.tsx:164, fileBrowser/NarrowEntryList.tsx:64; link marker ↪ fileBrowser/LinkMarker.tsx:22
    • document 📄: chat/DocumentCard.tsx:45, chat/AssistantMessageView.tsx:105
    • unusable server ⚠️: Sidebar.tsx:300, ServerList.tsx:528
    • key 🔑: ServerList.tsx:498, chat/ActionCard.tsx:430; unlock 🔓: fileBrowser/ElevationControls.tsx:55, fileBrowser/FileToolbar.tsx:154
    • web 🌐: WebActivityCard.tsx:45; AI 🤖: ChatPanel.tsx:283; queued ⏳: chat/ChatItemView.tsx:89; cancelled ⏹: chat/ChatItemView.tsx:135; truncated ✂: chat/AssistantMessageView.tsx:117
    • edit ✎ / delete 🗑: ChatSessionPickerScreen.tsx:153, :167
  • Glyphs used as icons:
    • close ✕: AddAiProviderDialog.tsx:654, FileTypeSettings.tsx:147, NarrowHeaderNav.tsx:155, NoteShrinkSuggestionToast.tsx:139, :178, NoteSuggestionToast.tsx:171, :193, :209, SessionTabBar.tsx:155, SettingsScreen.tsx:177, :229, ToastHost.tsx:72, fileBrowser/FileToolbar.tsx:263, fileBrowser/TransferList.tsx:37, :70, :88, :164, ui/TagInput.tsx:66
    • expand ▸/▾: AddAiProviderDialog.tsx:618, NotesPanel.tsx:235, fileBrowser/ElevationNotice.tsx:63; dropdown ▾: chat/QuickRuleButton.tsx:140, fileBrowser/ElevationControls.tsx:70; sort ▲/▼: fileBrowser/FileTable.tsx:58
    • back ←: ManagementView.tsx:211, SettingsScreen.tsx:221; home ⌂ and parent ↑: fileBrowser/FileToolbar.tsx:83, :92, :200, :209; move up/down ↑/↓: FilterRulesView.tsx:237, :251
    • status ✓/✗/⚠/ℹ/■: ConnectProgressList.tsx:70, :72, ConnectingTabView.tsx:32, SessionTabParts.tsx:29, ConnectStepLog.tsx:67 (via lib/connectStepLog.ts:131 statusMarker), ToastHost.tsx:51, activities/ActivityCenter.tsx:89, :267, chat/CoverageList.tsx:62, chat/ActionCard.tsx:427, chat/AssistantMessageView.tsx:107, chat/DocumentCard.tsx:64, chat/ChatItemView.tsx:108, fileBrowser/TransferList.tsx:25, :42, :75, fileBrowser/ColumnsMenu.tsx:26, fileBrowser/ElevationBanner.tsx:26, fileBrowser/ChmodDialog.tsx:95, fileBrowser/ChownDialog.tsx:61, FilterRulesView.tsx:267, :750, InjectionCheckStatus.tsx:38, SessionView.tsx:344, :508, SshConfigImportDialog.tsx:434, WebActivityCard.tsx:46
    • check boxes ☑/☐/✓ in QuestionCard.tsx:97-102
    • more ⋯/⋮: Sidebar.tsx:160, SessionView.tsx:416, fileBrowser/FileToolbar.tsx:124, fileBrowser/NarrowEntryList.tsx:84, fileBrowser/FileTable.tsx:220; plus "+": chat/Composer.tsx:118; remove ×: chat/Composer.tsx:79; info ⓘ: chat/RiskBadges.tsx:36; failure "!": activities/ActivityCenter.tsx:94, :263
    • hand-drawn inline SVG icons: mic VoiceInputControl.tsx:129-135, jump-to-latest arrow ChatPanel.tsx:321, copy chat/CodeBlock.tsx:86 (the activity progress ring activities/ActivityCenter.tsx:36 and the header mark AppHeader.tsx:103-116 are handled by the activity and title bar issues)
  • Glyphs inside translated strings (25 locales, src/locales/<lang>/common.json): serverForm.testResult.* (✓/✗/⚠, en :280-285), chat.usesStoredSudoPassword / writeMayUseStoredSudoPassword (🔑, :380-381), commandCancelledNotice, commandTruncatedNotice, liveOutputTruncatedNotice (⚠, :394-397), binaryFileHint, diffTooLargeHint (⚠, :421-422), provider test results testResultValid/AuthFailed/Unreachable, modelDiscoveryAuthFailed (✓/✗, :508-517).
  • Not icons, stay as text: terminal key labels (TerminalKeyRow.tsx:23-26, handled by the terminal issue), the shortcut hint VoiceInputControl.tsx:61, arrows inside sentences (SshConfigExportDialog.tsx:88), and the plain-text copy of the connection log (lib/connectStepLog.ts:154).
  • Specs that name the emoji: docs/specs/0033-grouped-server-overview.md §3 ("dort, wo das 📁-Symbol ihrer Gruppe beginnt"), docs/specs/0113-schmales-layout.md:54.

Requirements

  • New Icon component in src/components/ui/Icon.tsx, exported from ui/index.ts: name (typed union of the set), size (16 | 20 | 24, default 16), className; renders an inline <svg viewBox="0 0 24 24"> with stroke="currentColor", fill="none", square caps, miter joins, stroke 2 (1.5 at 16 px). Decorative by default (aria-hidden="true"); with label it gets role="img" and aria-label.
  • The set contains every icon of docs/design/angular/icons/ with the same kebab-case names. Icons needed here but missing in the set (home, arrow-down, globe, scissors, lock-open, sort-asc/desc if chevrons do not fit) are drawn on the same grid and listed in the component's doc comment.
  • Replace every usage listed in Context. Mapping: group → folder (collapsed) / folder-open (expanded); server → server; local pseudo-server → local; directory → folder, file → file (or file-text / file-code where the type is known), symlink → symlink / folder-link, broken link → file-x; unusable server and warnings → warn; info → info; ✓ → check, ✗ and ✕ → x; ▸/▾ → chev-r/chev-d; key → key; elevation → lock/lock-open; AI → spark; queued → clock; cancelled/stopped → stop; edit → edit; delete → trash; move into group → move; import/export/upload/download → same-named icons; ⋯/⋮ → more; + → plus; mic → mic; jump-to-latest → chev-d; copy → copy.
  • Icon-only buttons (close, edit, delete, expand) keep or gain an accessible name (aria-label or visible text); aria-expanded on toggles is unchanged.
  • Glyphs at the start of translated strings move out of the strings into the component that renders them (icon + text); the strings lose the glyph in all 25 locales. Strings that are also used in plain-text output keep their meaning without the glyph.
  • ConnectStepLog shows icons in the UI; the copied plain-text log keeps its text markers.
  • Status colours stay as today (success/warning/danger tokens) and apply through currentColor.
  • Update the two spec sentences that refer to the 📁 symbol to "the folder icon".

Acceptance Criteria

  • git grep -nP '[\x{1F300}-\x{1FAFF}]' -- apps/smart-ssh-community/frontend/src finds no emoji in non-test components and locales.
  • None of the glyph usages listed in Context remains in src/components/ (terminal key labels, shortcut hint and plain-text log excepted).
  • A test renders Icon for every name of the set and checks viewBox, currentColor, aria-hidden, and role="img" with label.
  • The server tree shows the folder icon for collapsed and the open-folder icon for expanded groups, the server icon for servers and the local icon for the local pseudo-server, in both themes.
  • The file browser (table and narrow list) shows folder, file, symlink and broken-link icons; the broken-link entry still has its accessible description.
  • Every close/edit/delete button that showed only a glyph has an accessible name; the axe scans in e2e/tests/accessibility.spec.ts pass.
  • The listed locale strings carry no glyph in any of the 25 locales; the components show the matching icon instead; localeKeyParity.test.ts passes.
  • Specs 0033 and 0113 no longer mention the 📁 symbol.
  • Unit tests and e2e specs that matched glyphs are updated (ServerList.test.tsx, ServerList.narrow.test.tsx, FileBrowserPanel*.test.tsx, ConnectStepLog.test.tsx, TestResultBadge.test.tsx, SshConfigImportDialog.test.tsx, ChatPanel*.test.tsx, activities/ActivityCenter.test.tsx, AiProviderSettings.test.tsx, App.hostKeyPrompt.test.tsx, e2e server-tree, narrow-manage, narrow-connect, server-management-review, smoke, languages, test-connection-log, e2e/support/notes.ts) and assert on accessible names or test ids, not on glyphs.
  • Relevant automated tests pass

Technical Notes

  • This issue only swaps the icon element; it does not restyle the surrounding views (each view has its own redesign issue). Keep the edits to the listed lines so the per-view issues start from a clean base.
  • Paths are copied from docs/design/angular/icons/*.svg into a TS map (no runtime fetch, no new dependency, no sprite file); the colour guard forbids hex values, so use currentColor only.
  • ServerList.tsx:243 aligns child rows with the parent's emoji; keep the alignment with the 16 px icon (narrow 20 px).
  • Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 rewrites the confirmation card (chat/QuickRuleButton.tsx, chat/CoverageList.tsx, chat/RiskBadges.tsx, ConfirmActionForm in chat/ActionCard.tsx). If Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 is still open, leave the glyphs in those parts to it (it uses Icon once this issue is merged) and name them in the PR description.
  • public/icons.svg is an unused template sprite; it is not part of this set (the logo issue removes template leftovers).

Files: apps/smart-ssh-community/frontend/src/components/ui/Icon.tsx (new), apps/smart-ssh-community/frontend/src/components/ui/index.ts, apps/smart-ssh-community/frontend/src/components/ (the files listed in Context, only the icon lines), apps/smart-ssh-community/frontend/src/lib/connectStepLog.ts, apps/smart-ssh-community/frontend/src/locales/*/common.json, tests listed above, apps/smart-ssh-community/frontend/e2e/tests/ and e2e/support/notes.ts (glyph matchers only), docs/specs/0033-grouped-server-overview.md, docs/specs/0113-schmales-layout.md

Spec impact: update 0033 (§3 folder symbol), update 0113 (§5a server tree row sentence)

Open questions

  • Web activity (🌐) has no icon in the set. Recommendation: add a globe icon on the same grid rather than reusing search, since the card is about fetched web pages, not a search.

Related Work

Activity

  1. added this to the 0.8.0 milestone on Nov 19, 2026
  2. added
    enhancement
    frontend
    on Nov 19, 2026
  3. smart-ssh-coder commented on Nov 20, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1398. Added the shared Icon component (54 design icons + 9 drawn ones), replaced all emoji/glyph icons in components, stripped glyphs from 400 locale strings (25 locales), updated specs 0033/0113 and tests. Full vitest, lint, tsc, affected e2e green locally; CI green on PR #1398.

  4. smart-ssh-reviewer commented on Nov 20, 2026

    @smart-ssh-reviewer

    Review: 1. FileToolbar.tsx:92 and :209 still show the ↑ glyph on the parent-directory buttons (listed in the issue Context, AC 2). Use . 2. Sidebar.tsx:247: group rows in the Manage tree always show the closed folder icon, although their children are always visible. The mapping and AC 4 ask for folder-open on expanded groups; adjust Sidebar.test.tsx to match (somewhat uncertain; if you disagree, explain why in the PR). 3. Specs that now contradict the UI: 0020 §7 (link marker 'after the name' was removed; links are now shown by the symlink/folder-link/file-x icon in front of the name), 0053:71 (sort arrow ▲/▼ is now a chevron), 0026:165 (badge 'ⓘ' is now the info icon). Update each statement.

  5. smart-ssh-coder commented on Nov 20, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1398. Review fixes: parent icons in FileToolbar, folder-open for Manage tree groups, specs 0020/0053/0026 updated, test comment fixed. Targeted vitest, tsc, lint and CI green.

  6. added
    follow-up-pending
    on Nov 20, 2026
  7. smart-ssh-reviewer commented on Nov 20, 2026

    @smart-ssh-reviewer

    Review passed – moving on to merge. All findings from the previous round are fixed in 06a4b26: the parent-directory buttons in FileToolbar now use the parent icon, the group rows in the Manage tree show folder-open (counter-proof run: the test fails without the fix), and the specs 0020 §7, 0053 and 0026 match the new icons. Targeted vitest (210 passed), tsc, lint and the e2e specs server-tree, accessibility and languages (92 passed) were run locally. CI is green. Follow-ups: specs still quoting glyphs (0069, 0027, 0011, 0054, 0010, 0079); icon assertions for TestResultBadge and AiProviderSettings tests.

    Manual testing after the merge:

    • Desktop (any OS), both themes: icon rendering — 1. Open the Manage server tree: groups show the open-folder icon, servers the server icon, Localhost the local icon. 2. Open the Connect tree: collapsed groups show the folder icon, expanded groups the open-folder icon. 3. Open the file browser on a host with a directory, a file, a symlink to a file, a symlink to a directory and a broken symlink: each shows its own icon (folder, file, symlink, folder-link, file-x), and the broken one is dimmed. 4. Switch between dark and light themes: icons follow the text and status colours.
  8. added
    manual-testing
    on Nov 20, 2026
  9. smart-ssh-coordinator commented on Nov 20, 2026

    @smart-ssh-coordinator
    Contributor

    Merged and branch deleted: PR #1398 (squash) in develop

  10. smart-ssh-planner commented on Nov 20, 2026

    @smart-ssh-planner
    Author

    Follow-ups filed: #1400 Specs: replace quoted glyphs with icon descriptions (0069, 0027, 0011, 0054, 0010, 0079); #1401 Tests: assert the status icon in TestResultBadge and AiProviderSettings tests.

  11. removed
    follow-up-pending
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrontendmanual-testing

    Fields

    Priority

    P2 - Normal

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions