[feat] negodata: 회사 커스터마이징(설정·라벨·커스텀필드·엑셀·상품공급사#20·분류카테고리#17)·일괄삭제·로그export·구분·카드 전체선택·부가정보 표시
This commit is contained in:
1 parent
1e4726f4cc
commit
88edcfed63
75 files changed
+1802
-126
No files matched your search
@@ -12,6 +12,7 @@ const PAGE_TO_PATH: Record<PageType, string> = {
|
||||
QUOTATION: '/quotation',
|
||||
CARDS: '/cards',
|
||||
MEMBERS: '/members',
|
||||
SETTINGS: '/settings',
|
||||
NOTIFICATIONS: '/notifications',
|
||||
};
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { useEffect, useState, type ReactNode, type ElementType } from 'react';
|
||||
import { PageType } from '@/types';
|
||||
import { useAuth } from '@/features/auth/useAuth';
|
||||
import { useBranding } from '@/features/settings/useCompanySettings';
|
||||
import { ProfileSheet } from '@/features/auth/components/ProfileSheet';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
@@ -58,7 +59,10 @@ const menuGroups: { label?: string; items: MenuItem[] }[] = [
|
||||
},
|
||||
{
|
||||
label: '관리',
|
||||
items: [{ type: 'MEMBERS', label: '회원관리', icon: UserCog, id: 'sidebar-members', ownerOnly: true }],
|
||||
items: [
|
||||
{ type: 'MEMBERS', label: '회원관리', icon: UserCog, id: 'sidebar-members', ownerOnly: true },
|
||||
{ type: 'SETTINGS', label: '회사 설정', icon: Building, id: 'sidebar-settings', ownerOnly: true },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -72,11 +76,13 @@ const pageLabelMap: Record<PageType, string> = {
|
||||
QUOTATION: '견적관리',
|
||||
CARDS: '협상카드관리',
|
||||
MEMBERS: '회원관리',
|
||||
SETTINGS: '회사 설정',
|
||||
NOTIFICATIONS: '알림',
|
||||
};
|
||||
|
||||
export default function Layout({ children, currentPage, setPage, onLogout }: LayoutProps) {
|
||||
const { user } = useAuth();
|
||||
const branding = useBranding(); // 회사 설정 브랜딩(서비스명/로고). 미설정 시 기본 NegoData
|
||||
// 기준일시(오늘) — 로컬 타임존 기준 YYYY-MM-DD
|
||||
const today = new Date().toLocaleDateString('sv-SE');
|
||||
|
||||
@@ -142,8 +148,16 @@ export default function Layout({ children, currentPage, setPage, onLogout }: Lay
|
||||
<div className="h-14 shrink-0 flex items-center justify-between px-4 border-b border-sidebar-border">
|
||||
{expanded && (
|
||||
<Typography as="div" variant="body" className="flex items-center gap-2 font-extrabold tracking-tight text-foreground">
|
||||
<span aria-hidden className="size-4 rounded-[5px] bg-primary" />
|
||||
NegoData
|
||||
{branding.logoUrl ? (
|
||||
<img src={branding.logoUrl} alt={branding.serviceName} className="h-4 max-w-24 object-contain" />
|
||||
) : (
|
||||
<span
|
||||
aria-hidden
|
||||
className="size-4 rounded-[5px] bg-primary"
|
||||
style={branding.primaryColor ? { backgroundColor: branding.primaryColor } : undefined}
|
||||
/>
|
||||
)}
|
||||
{branding.serviceName}
|
||||
</Typography>
|
||||
)}
|
||||
|
||||
|
||||
Reference in new issue
Block a user