feat: 가맹점 관리에서 업종 검색 필터를 뺀다
Co-Authored-By: Claude Fable 5
@4fa5b645b39438e8247f94d74c711aee87308d2c
--- app/(protected)/(basic)/system/merchants/_components/merchant-list.tsx
+++ app/(protected)/(basic)/system/merchants/_components/merchant-list.tsx
... | ... | @@ -11,7 +11,6 @@ |
| 11 | 11 |
import { FoxSelectText } from '@fox/core/components/fox-select-text';
|
| 12 | 12 |
import { FoxStatusIndicator } from '@fox/core/components/fox-status-indicator';
|
| 13 | 13 |
import {
|
| 14 |
- MERCHANT_CATEGORY_OPTIONS, |
|
| 15 | 14 |
formatAddressSummary, |
| 16 | 15 |
formatCategoryLabel, |
| 17 | 16 |
formatOptionalValue, |
... | ... | @@ -155,21 +154,6 @@ |
| 155 | 154 |
} |
| 156 | 155 |
filter={
|
| 157 | 156 |
<div className={styles.filter}>
|
| 158 |
- <div className={styles.select}>
|
|
| 159 |
- <FoxSelect |
|
| 160 |
- size="md" |
|
| 161 |
- ariaLabel="업종" |
|
| 162 |
- options={[
|
|
| 163 |
- { value: '', label: '업종: 전체' },
|
|
| 164 |
- ...MERCHANT_CATEGORY_OPTIONS.map((option) => ({
|
|
| 165 |
- value: option.value, |
|
| 166 |
- label: option.label, |
|
| 167 |
- })), |
|
| 168 |
- ]} |
|
| 169 |
- value={query.category}
|
|
| 170 |
- onValueChange={(value) => go({ category: value })}
|
|
| 171 |
- /> |
|
| 172 |
- </div> |
|
| 173 | 157 |
<div className={styles.select}>
|
| 174 | 158 |
<FoxSelect |
| 175 | 159 |
size="md" |
--- lib/data/repositories/merchant-repository.ts
+++ lib/data/repositories/merchant-repository.ts
... | ... | @@ -105,7 +105,6 @@ |
| 105 | 105 |
...(query.visibility |
| 106 | 106 |
? { searchUseYn: query.visibility === 'visible' ? 'Y' : 'N' }
|
| 107 | 107 |
: {}),
|
| 108 |
- ...(query.category ? { searchFrcsTpbizCd: query.category } : {}),
|
|
| 109 | 108 |
pageIndex: query.page, |
| 110 | 109 |
recordCountPerPage: query.pageSize, |
| 111 | 110 |
}, |
--- lib/domain/merchant-query.ts
+++ lib/domain/merchant-query.ts
... | ... | @@ -1,5 +1,3 @@ |
| 1 |
-import { MERCHANT_CATEGORY_OPTIONS } from '@/lib/domain/merchant';
|
|
| 2 |
- |
|
| 3 | 1 |
export const MERCHANTS_PATH = '/system/merchants'; |
| 4 | 2 |
/** 엑셀 다운로드 — 파일 응답이라 라우트 핸들러가 받는다(기획 MCH_001 ②). */ |
| 5 | 3 |
export const MERCHANTS_EXCEL_PATH = `${MERCHANTS_PATH}/excel`;
|
... | ... | @@ -32,7 +30,6 @@ |
| 32 | 30 |
const MAX_KEYWORD_LENGTH = 100; |
| 33 | 31 |
|
| 34 | 32 |
export type MerchantQuery = {
|
| 35 |
- category: string; |
|
| 36 | 33 |
visibility: string; |
| 37 | 34 |
searchField: MerchantSearchField; |
| 38 | 35 |
keyword: string; |
... | ... | @@ -70,7 +67,6 @@ |
| 70 | 67 |
const pageSize = Number(readParam(searchParams, 'pageSize')); |
| 71 | 68 |
|
| 72 | 69 |
return {
|
| 73 |
- category: readOneOf(searchParams, 'category', MERCHANT_CATEGORY_OPTIONS), |
|
| 74 | 70 |
visibility: readOneOf( |
| 75 | 71 |
searchParams, |
| 76 | 72 |
'visibility', |
... | ... | @@ -92,9 +88,6 @@ |
| 92 | 88 |
const merged = { ...query, ...overrides };
|
| 93 | 89 |
const params = new URLSearchParams(); |
| 94 | 90 |
|
| 95 |
- if (merged.category) {
|
|
| 96 |
- params.set('category', merged.category);
|
|
| 97 |
- } |
|
| 98 | 91 |
if (merged.visibility) {
|
| 99 | 92 |
params.set('visibility', merged.visibility);
|
| 100 | 93 |
} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?