[feat] negodata: 소유권 게이팅 + 견적 낙찰 + 작성자명 표시 + 전화입력 + 카드 엑셀

- 소유권 게이팅(common/authz): 변경 액션 본인∪OWNER, 협력사 삭제 OWNER 전용
- 견적 수동 낙찰(award) + 작성자명(creatorName) 표시 + 전화번호 입력 컴포넌트 + 카드 엑셀 업로드
- supplier_type 은 이번 커밋 미변경(다음 커밋에서 코드부터 정리 예정)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.8 committed 2026-07-07 16:18:33 +09:00
1 parent c32ee300e6
commit c62b66e35b
56 files changed
+1900 -188

No files matched your search

@@ -3,9 +3,11 @@ import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';
import { Trash2 } from 'lucide-react';
import { showToast } from '@/lib/notify';
import { normalizePhone } from '@/lib/phone';
import { Typography } from '@/components/ui/typography';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { PhoneInput } from '@/components/ui/phone-input';
import { Sheet } from '@/components/ui/sheet';
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
import {
@@ -47,7 +49,7 @@ function buildDefaults(mode: 'create' | 'edit', member: Member | null): FormValu
passwordConfirm: '',
name: member.name ?? '',
email: member.email ?? '',
contactNumber: member.contact_number ?? '',
contactNumber: normalizePhone(member.contact_number ?? ''),
status: member.status,
};
}
@@ -216,12 +218,19 @@ export function MemberFormSheet({
{/* 연락처 */}
<div className="space-y-1">
<Typography as="label" variant="label">연락처</Typography>
<Input
id="form-member-phone"
type="text"
{...register('contactNumber')}
className={inputClass}
placeholder="010-XXXX-XXXX"
<Controller
control={control}
name="contactNumber"
render={({ field }) => (
<PhoneInput
id="form-member-phone"
value={field.value}
onChange={field.onChange}
onBlur={field.onBlur}
className={inputClass}
placeholder="010-XXXX-XXXX"
/>
)}
/>
</div>
@@ -2,6 +2,7 @@ import { Badge } from '@/components/ui/badge';
import { DataTable } from '@/components/ui/data-table';
import { TablePagination } from '@/components/ui/table-pagination';
import { USER_ROLE_LABEL } from '@/lib/enumLabels';
import { formatPhoneKR } from '@/lib/phone';
import { UserStatus, USER_STATUS_LABEL, type Member } from '../types';
type MemberTableProps = {
@@ -66,7 +67,7 @@ export function MemberTable({
cell: (m) => (
<div className="space-y-0.5 font-mono text-xs">
<div className="text-foreground">{m.email || '-'}</div>
<div className="text-[10px] text-muted-foreground">{m.contact_number || '-'}</div>
<div className="text-[10px] text-muted-foreground">{m.contact_number ? formatPhoneKR(m.contact_number) : '-'}</div>
</div>
),
},