3.8 KiB
phase, plan, type, wave, depends_on, files_modified, autonomous, requirements, must_haves
| phase | plan | type | wave | depends_on | files_modified | autonomous | requirements | must_haves | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| quick | 260411-022 | execute | 1 |
|
true |
|
|
Purpose: The current layout wastes ~22 Tailwind spacing units of vertical space before any content appears, and the back link text is outdated. Output: A compact, scannable header for the global items catalog page.
<execution_context> @$HOME/.claude/get-shit-done/workflows/execute-plan.md @$HOME/.claude/get-shit-done/templates/summary.md </execution_context>
@.planning/STATE.md @src/client/routes/global-items/index.tsx Task 1: Consolidate global items header into compact layout src/client/routes/global-items/index.tsx Refactor the three separate header sections (back link, title+subtitle, search) into a single compact header:-
Replace the back link with an ArrowLeft icon from lucide-react paired with "Discover" text (since
/is now the discovery/landing page per Phase 27 restructure). Use aLink to="/"withflex items-center gap-1.5styling,text-sm text-gray-500 hover:text-gray-700 transition-colorsto make it more visible than the current tiny gray text. -
Consolidate into a two-row compact header:
- Row 1: Back link (left-aligned), stands alone but with minimal margin (
mb-3) - Row 2: Title and search on the same line using
flex items-center justify-between gap-4 mb-4:- Left side:
h1withtext-lg font-semibold text-gray-900(smaller than current text-2xl). Drop the subtitle paragraph entirely — "Global Gear Catalog" is self-explanatory. - Right side: The search input (keep existing search logic, clear button, debounce). Set
max-w-xson wider screens. On mobile, let it wrap below the title usingflex-wrap.
- Left side:
- Row 1: Back link (left-aligned), stands alone but with minimal margin (
-
Reduce outer padding: Change
py-6topy-4on the container div. -
Remove the separate
mb-6,mb-8,mb-8sections — they are replaced by the consolidated header rows above. -
Keep all existing search state logic (searchInput, debouncedQuery, useEffect debounce) and results rendering unchanged.
Import ArrowLeft from lucide-react for the back icon.
cd /home/jean-luc-makiola/Development/projects/GearBox && bun run lint
- Header occupies minimal vertical space — back link + title/search in ~2 compact rows
- Back link says "Discover" with ArrowLeft icon and links to /
- Search bar is inline with title on desktop, wraps on mobile
- No subtitle paragraph
- All search functionality unchanged
<success_criteria> The global items catalog page header is compact: back navigation is visible with correct "Discover" label, title and search share a row on desktop, and total vertical space before content is dramatically reduced. </success_criteria>
After completion, create `.planning/quick/260411-022-fix-global-items-search-bar-layout-too-t/260411-022-SUMMARY.md`