Skip to content

[remediate-2026-08-18] UX-L1 The sidebar's mobile hover-to-expand logic is unreachable dead code #463

Description

@juan294

Evidence type: [evidence]
Time horizon: After launch
Files: frontend/src/components/layout/ModernSidebar.tsx:30,121-136,214-220, frontend/src/components/layout/MainLayout.tsx:64

What's happening: ModernSidebar carries extensive isHovered state and ~20 conditional class branches commented as mobile behavior, but MainLayout mounts the sidebar inside hidden md:flex, so it never renders below md and the hover state is always irrelevant.

Why it matters: A large share of the component's complexity serves a code path that cannot execute, obscuring real behavior.

Recommendation: Remove isHovered, the mouse handlers, and every isExpanded && branch.

Expected impact: ~60 lines and the most confusing conditional styling removed.

Effort estimate: S

Finding ID: UX-L1

Source: docs/agents/pre-launch-report.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    lowLow-severity remediationuxUX and design systemwave-2-after-launchPost-launch remediation scope

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions