[DEAD-1] Entire UI component stack unused (~490 lines): core_components, Layouts.app/flash_group/theme_toggle — zero LiveViews exist #40

Closed
opened 2026-11-14 18:29:01 +01:00 by amiryahaya · 1 comment
Owner

Finding

Only login.html.heex and the raw-HTML dev_doc page are rendered; no module uses Phoenix.LiveView. CoreComponents (~475 lines), Layouts.app, flash_group, theme_toggle have no callers. The inline theme <script> in root.html.heex serves only the dead toggle and violates the project's own AGENTS.md; vendored daisyUI in app.css also violates it.

Evidence

  • lib/mdid_ws_web/components/core_components.ex; lib/mdid_ws_web/components/layouts.ex:36-153; root.html.heex:10-27; assets/css/app.css:16-59 (grep: 0 template call sites)

Impact

~490 dead lines, two AGENTS.md violations, confused maintenance.

Fix

  • Delete the unused components/theme plumbing and the daisyUI vendor plugin, or wire them to real pages if a UI is coming

Line numbers refer to the initial import commit 282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).

## Finding Only login.html.heex and the raw-HTML dev_doc page are rendered; no module uses `Phoenix.LiveView`. CoreComponents (~475 lines), `Layouts.app`, `flash_group`, `theme_toggle` have no callers. The inline theme `<script>` in root.html.heex serves only the dead toggle and violates the project's own AGENTS.md; vendored daisyUI in app.css also violates it. ## Evidence - `lib/mdid_ws_web/components/core_components.ex`; `lib/mdid_ws_web/components/layouts.ex:36-153`; `root.html.heex:10-27`; `assets/css/app.css:16-59` (grep: 0 template call sites) ## Impact ~490 dead lines, two AGENTS.md violations, confused maintenance. ## Fix - [ ] Delete the unused components/theme plumbing and the daisyUI vendor plugin, or wire them to real pages if a UI is coming _Line numbers refer to the initial import commit `282cb11`. Source: comprehensive audit, 2026-11-12 (first review of this codebase)._
Author
Owner

Verified fixed on main (1b6216b): components and theme plumbing removed (B5); daisyUI/heroicons plugins removed (B7, PR #60).

Verified fixed on main (1b6216b): components and theme plumbing removed (B5); daisyUI/heroicons plugins removed (B7, PR #60).
Sign in to join this conversation.
No description provided.