From ea4c17fa96faf052f88855d01f001ec897f59a29 Mon Sep 17 00:00:00 2001 From: cyph3rasi Date: Mon, 13 Jul 2026 06:32:44 -0700 Subject: [PATCH] Remove the nonfunctional audio-settings and profile controls from the listening header, clean up their styling, and add regression coverage. Hop-State: A_06FNQBGTH3EZP9YTHQFSN70 Hop-Proposal: R_06FNQBG6HFCYVTT9N9GZVV8 Hop-Task: T_06FNQAVP16933S9299CM51G Hop-Attempt: AT_06FNQAVP171XNBCKRTEEES0 --- src/App.test.tsx | 7 +++++++ src/App.tsx | 2 -- src/styles.css | 4 ---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/App.test.tsx b/src/App.test.tsx index d7154f3..64bf949 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -91,6 +91,13 @@ describe("App bootstrap", () => { expect(await screen.findByText("Let it find you again.")).not.toBeNull(); }); + it("keeps unfinished audio settings and profile controls out of the listening shell", async () => { + await renderDemoApp(); + + expect(screen.queryByRole("button", { name: "Audio settings" })).toBeNull(); + expect(screen.queryByRole("button", { name: "Profile" })).toBeNull(); + }); + it("defaults Albums and Songs to A–Z and remembers reordered views", async () => { await renderDemoApp(); diff --git a/src/App.tsx b/src/App.tsx index 9eb407b..a5af68e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -28,7 +28,6 @@ import { Shuffle, SkipBack, SkipForward, - SlidersHorizontal, Volume2, X, } from "lucide-react"; @@ -607,7 +606,6 @@ export default function App() {
setMobileNav(true)}> -
{view === "settings" ? ( diff --git a/src/styles.css b/src/styles.css index 0708c55..79dc1eb 100644 --- a/src/styles.css +++ b/src/styles.css @@ -70,8 +70,6 @@ main { min-width: 0; height: calc(100vh - var(--player-height)); overflow-y: aut .search-field input { width: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 0.82rem; } .search-field input::placeholder { color: var(--faint); } .search-field button { display: grid; padding: 2px; border: 0; background: transparent; color: var(--muted); } -.topbar-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; } -.avatar { display: grid; width: 31px; height: 31px; margin-left: 4px; place-items: center; border: 0; border-radius: 50%; color: oklch(0.2 0.012 275); background: oklch(0.78 0.018 275); font-size: 0.73rem; font-weight: 700; } .menu-button { display: none !important; } .icon-button { display: inline-grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; transition: color 150ms ease, background 150ms ease, transform 150ms ease; } @@ -317,8 +315,6 @@ input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visib @media (max-width: 560px) { .topbar { gap: 8px; height: 61px; padding: 0 12px; } .search-field { width: 100%; } - .topbar-actions .icon-button { display: none; } - .avatar { width: 29px; height: 29px; } .library-view { padding: 14px 14px 50px; } .hero { display: block; min-height: 330px; padding: 31px 25px; } .hero h1 { max-width: 330px; font-size: 2.55rem; }