Skip to content

Replace inline SVG icons with Lucide - #49

Merged
polius merged 2 commits into
mainfrom
improve/icons-lucide
Sep 11, 2026
Merged

polius merged 2 commits into
mainfrom
improve/icons-lucide

Conversation

@polius

@polius polius commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Summary

Replaces the inline SVG icons with Lucide icons rendered via lucide.createIcons:

  • Static <i data-lucide="..."> placeholders are rendered on DOMContentLoaded
  • renderIcons(root) is exposed in js/icons.js for icons injected dynamically (ag-grid cells, innerHTML) — call it right after inserting markup
  • Logout icon sized at 22px to match the other header icons

Testing

Built locally with Docker and verified in the browser: dashboard, transactions, and settings pages render the new icons correctly.

polius and others added 2 commits September 8, 2026 17:26
Swap Wally's hand-embedded inline <svg> icons (58 total: 47 static in HTML + 11 dynamic in JS) for Lucide, self-hosting the pinned v1.43.0 UMD bundle in web/js/vendors/ to match the repo's local-vendor convention (no CDN).

Add a 6-line web/js/icons.js helper exposing renderIcons(root) that calls lucide.createIcons, with a DOMContentLoaded auto-render for static placeholders. Load both scripts deferred in index.html, transactions.html, and settings.html (login.html has no app icons and is untouched).

Dynamic icons in ag-grid cellRenderers and innerHTML injections (transactions grid actions/recurring badge, settings currency list + empty state, API keys list + empty state, recurring grid actions/badge) now insert <i data-lucide> placeholders and call renderIcons(el) after injection, so icons survive ag-grid re-renders and list refreshes.

Consolidate near-duplicate glyphs (two trash variants, two plus styles) into single Lucide names. Existing CSS that sizes/colors icons via descendant svg selectors (.cashflow-icon svg, .grid-action-btn svg, .search-icon, etc.) keeps working since Lucide emits <svg class="lucide">; standalone icons carry their original width/height and colors flow via currentColor.

Bootstrap component glyphs (navbar-toggler-icon, btn-close, spinner-border) are left untouched as they are integrated into Bootstrap components.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@polius polius added the enhancement New feature or request label Sep 11, 2026
@polius polius self-assigned this Sep 11, 2026
@polius
polius merged commit e656b3e into main Sep 11, 2026
3 checks passed
@polius
polius deleted the improve/icons-lucide branch September 11, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant