[feat] negodata: 권한 3단계(개발자 신설)·개발자 메뉴 그룹·디자인 시스템 페이지
- UserRole 1=일반 2=최고관리자 3=개발자(내부 운영). 개발자 계정은 회원 목록·총계에서 제외해 고객사에 노출하지 않음 - 계정 생성 시 권한 선택(일반/최고관리자) 추가, 개발자는 앱에서 부여 불가(DB 시드 전용) - 사이드바 '개발자' 그룹 신설 — 회사 설정·디자인 시스템을 개발자에게만 노출 - /dev/design 디자인 시스템 페이지: 색 토큰·타이포·버튼·배지·입력·반경, 목록 화면 구조, 반응형 기준, URL 상태 규칙, 회사 커스터마이징 훅 - 공급사 재협상 요청(#15) 플로우 문서 — sessions.custom 기반(DDL 0)
This commit is contained in:
1 parent
db07a60cfa
commit
cfee6e89d0
20 files changed
+469
-43
No files matched your search
@@ -7,6 +7,7 @@ import LoginPage from '../pages/login';
|
||||
import DashboardPage from '../pages/dashboard';
|
||||
import StatisticsPage from '../pages/statistics';
|
||||
import ForbiddenPage from '../pages/forbidden';
|
||||
import DevDesignPage from '../pages/dev-design';
|
||||
import NotFoundPage from '../pages/not-found';
|
||||
import ProductsPage from '../pages/products';
|
||||
import PartnersPage from '../pages/partners';
|
||||
@@ -88,16 +89,25 @@ export const router = createBrowserRouter([
|
||||
path: 'members',
|
||||
loader: async () => {
|
||||
await initAuth();
|
||||
return hasRole('최고관리자') ? null : redirect('/forbidden');
|
||||
return hasRole('최고관리자', '개발자') ? null : redirect('/forbidden');
|
||||
},
|
||||
Component: MembersPage,
|
||||
},
|
||||
{
|
||||
// 개발자 전용. 디자인 토큰·컴포넌트 기준 화면.
|
||||
path: 'dev/design',
|
||||
loader: async () => {
|
||||
await initAuth();
|
||||
return hasRole('개발자') ? null : redirect('/forbidden');
|
||||
},
|
||||
Component: DevDesignPage,
|
||||
},
|
||||
{
|
||||
// 최고관리자 전용. 회사 브랜딩/용어/커스텀필드 설정. (자식 loader 는 부모와 병렬 → initAuth 대기 필수)
|
||||
path: 'settings',
|
||||
loader: async () => {
|
||||
await initAuth();
|
||||
return hasRole('최고관리자') ? null : redirect('/forbidden');
|
||||
return hasRole('최고관리자', '개발자') ? null : redirect('/forbidden');
|
||||
},
|
||||
Component: SettingsPage,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user