[feat] front: List/Chat 레이아웃 + 목록 필터 섹션 구현

- layouts: 공통 2분할 레이아웃 MainLayout(좌 사이드바/우 메인, 로고 헤더,
  헤더 아래 콘텐츠 면) + 다크 헤더 바 MainHeaderBar 분리
- pages: ListPage/ChatPage 를 MainLayout 기반으로 구성(견적 선택/협상 잔여 시간 헤더)
- features/list: 필터 섹션 추가 — ListFilter(요소)/FilterSection(컨테이너)/
  filterOptions(데이터)/useListFilterStore(상태), SidebarFooter 분리
- deps: lucide-react 추가(필터 화살표·목록 이동 아이콘)
- refactor: 모든 import 를 @ alias 로 통일
- fix: Button secondary variant hover(=accent 동일색) 및 필터 화살표 hover 색상 보정

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
민헌andClaude Opus 4.8 committed 2026-06-16 16:19:57 +09:00
1 parent 9de140abd6
commit 6da8976a20
19 files changed
+374 -15

No files matched your search

+43 -1
View File
@@ -1,5 +1,47 @@
import { useNavigate } from 'react-router'
import { List } from 'lucide-react'
import { MainLayout, MainHeaderBar } from '@/layouts'
export function ChatPage() {
return <main className="min-h-svh" />
return (
<MainLayout
sidebarWidth="chat"
scrollX
logoAction={<ListNavButton />}
sidebar={<Sidebar />}
header={
<MainHeaderBar className="px-[140px]">
<span className="text-xl font-semibold">협상 잔여 시간 : -</span>
</MainHeaderBar>
}
>
{/* TODO: MainContent (ChatSection / MenuSection) */}
</MainLayout>
)
}
function ListNavButton() {
const navigate = useNavigate()
return (
<button
type="button"
aria-label="목록으로 이동"
onClick={() => navigate('/list')}
className="cursor-pointer text-foreground"
>
<List size={24} />
</button>
)
}
function Sidebar() {
return (
<>
{/* TODO: ItemSection */}
<div className="flex-1 overflow-y-auto" />
{/* TODO: FooterSection */}
</>
)
}
export default ChatPage
+26 -1
View File
@@ -1,5 +1,30 @@
import { MainLayout, MainHeaderBar } from '@/layouts'
import { FilterSection, SidebarFooter } from '@/features/list'
export function ListPage() {
return <main className="min-h-svh" />
return (
<MainLayout
sidebarWidth="list"
sidebar={<Sidebar />}
header={
<MainHeaderBar align="center" className="px-[81px]">
<span className="text-xl font-bold whitespace-nowrap">견적 선택</span>
</MainHeaderBar>
}
>
{/* TODO: Content (ButtonSection / TableSection / PageSection) */}
</MainLayout>
)
}
function Sidebar() {
return (
<>
<FilterSection />
{/* TODO: ArchiveSection */}
<SidebarFooter />
</>
)
}
export default ListPage