[feat] negodata: 견적 목록 작성자 컬럼·내 견적 필터 + 검색바 클리어(X) 버튼

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.8 committed 2026-06-30 10:07:46 +09:00
1 parent 33ce82997a
commit 7b7a37ee98
15 files changed
+104 -14

No files matched your search

+1
View File
@@ -104,6 +104,7 @@ export default function CardsPage() {
value={list.search}
onChange={(e) => list.setSearch(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && list.submitSearch()}
onClear={list.clearSearch}
placeholder="전체 카드이름, 카드번호, 코드 검색..."
/>
+1
View File
@@ -65,6 +65,7 @@ export default function MembersPage() {
value={list.search}
onChange={(e) => list.setSearch(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && list.submitSearch()}
onClear={list.clearSearch}
placeholder="로그인 ID, 이름 또는 이메일로 검색..."
/>
</PageToolbar>
+1
View File
@@ -88,6 +88,7 @@ export default function PartnersPage() {
value={list.search}
onChange={(e) => list.setSearch(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && list.submitSearch()}
onClear={list.clearSearch}
placeholder="협력사명, 코드 또는 담당자명으로 추적 검색..."
/>
+1
View File
@@ -113,6 +113,7 @@ export default function ProductsPage() {
value={list.search}
onChange={(e) => list.setSearch(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && list.submitSearch()}
onClear={list.clearSearch}
placeholder="상품명 또는 상품 코드로 통합 검색..."
/>
+18 -3
View File
@@ -17,15 +17,17 @@ import type { ListQuotationsParams } from '@/api/generated/model/listQuotationsP
export default function QuotationPage() {
// 검색/상태·유형 필터/페이지 상태 → 서버 쿼리 파라미터로 변환.
const list = useServerList({ pageSize: 10, initialFilters: { status: 'ALL', type: 'ALL' } });
const list = useServerList({ pageSize: 10, initialFilters: { status: 'ALL', type: 'ALL', mine: 'ALL' } });
const statusFilter = list.filters.status;
const typeFilter = list.filters.type;
const mineFilter = list.filters.mine;
const statusOptions = QUOTATION_STATUS_OPTIONS;
const typeOptions = QUOTATION_TYPE_OPTIONS;
const params: ListQuotationsParams = {
search: list.debouncedSearch || undefined,
status: statusFilter !== 'ALL' ? statusFilter : undefined,
type: typeFilter !== 'ALL' ? typeFilter : undefined,
mine: mineFilter === 'MINE' ? true : undefined,
page: list.page,
size: list.pageSize,
};
@@ -94,12 +96,25 @@ export default function QuotationPage() {
value={list.search}
onChange={(e) => list.setSearch(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && list.submitSearch()}
onClear={list.clearSearch}
placeholder="견적명 또는 견적 번호로 검색..."
/>
<div className="grid grid-cols-2 gap-2">
<div className="grid grid-cols-3 gap-2">
<Select value={mineFilter} onValueChange={(v) => list.setFilter('mine', v as string)}>
<SelectTrigger id="quotation-mine-filter">
<SelectValue>
{(value) => (value === 'MINE' ? '내 견적' : '전체 작성자 견적')}
</SelectValue>
</SelectTrigger>
<SelectContent>
<SelectItem value="ALL">전체 작성자 견적</SelectItem>
<SelectItem value="MINE">내 견적</SelectItem>
</SelectContent>
</Select>
<Select value={statusFilter} onValueChange={(v) => list.setFilter('status', v as string)}>
<SelectTrigger id="quotation-status-filter" className="font-bold">
<SelectTrigger id="quotation-status-filter">
<SelectValue>
{(value) =>
value === 'ALL'