chore: exclude local resource artifacts from main sync

This commit is contained in:
2026-05-15 10:16:45 +09:00
parent 442879313f
commit d38d022872
504 changed files with 17074 additions and 3642 deletions

59
src/app/main/routes.tsx Executable file → Normal file
View File

@@ -21,6 +21,22 @@ export type PlanSectionKey =
export type ChatSectionKey = 'live' | 'changes' | 'resources' | 'errors' | 'manage' | 'manage-defaults';
export type PlaySectionKey = 'layout' | 'test' | 'cbt';
export type PlaySidebarKey = PlaySectionKey | `layout-record:${string}`;
export const CHAT_SECTION_GROUP_LABELS: Record<ChatSectionKey, string> = {
live: 'Codex Live',
changes: 'Codex Live',
resources: '리소스 관리',
errors: '앱로그',
manage: '채팅 관리',
'manage-defaults': '채팅 관리',
};
export const CHAT_SECTION_LABELS: Record<ChatSectionKey, string> = {
live: 'Codex Live',
changes: '변경 이력',
resources: '리소스 관리',
errors: '에러 로그',
manage: '유형 권한 관리',
'manage-defaults': '공통 문맥 관리',
};
export const DOCS_DEFAULT_FOLDER = 'project';
export const PLAY_LAYOUT_RECORD_PREFIX = 'layout-record:' as const;
@@ -237,7 +253,7 @@ function renderChatUnreadLabel(label: string, unreadCount: number) {
);
}
export function buildChatMenuItems(hasAccess = true, unreadCount = 0): MenuProps['items'] {
export function buildChatMenuItems(_hasAccess = true, unreadCount = 0): MenuProps['items'] {
return [
{
key: 'codex-live-group',
@@ -255,19 +271,15 @@ export function buildChatMenuItems(hasAccess = true, unreadCount = 0): MenuProps
label: '앱로그',
children: [{ key: 'errors', label: '에러 로그' }],
},
...(hasAccess
? [
{
key: 'chat-manage-group',
icon: <MessageOutlined />,
label: '채팅 관리',
children: [
{ key: 'manage', label: '유형 권한 관리' },
{ key: 'manage-defaults', label: '기본 유형 관리' },
],
},
]
: []),
{
key: 'chat-manage-group',
icon: <MessageOutlined />,
label: '채팅 관리',
children: [
{ key: 'manage', label: '유형 권한 관리' },
{ key: 'manage-defaults', label: '공통 문맥 관리' },
],
},
];
}
@@ -379,18 +391,7 @@ export function resolveCurrentPageDescriptor(params: {
}
if (topMenu === 'chat') {
const title =
chatMenu === 'errors'
? '앱로그 / 에러 로그'
: chatMenu === 'changes'
? 'Codex Live / 변경 이력'
: chatMenu === 'resources'
? 'Codex Live / 리소스 관리'
: chatMenu === 'manage'
? '채팅 관리 / 유형 권한 관리'
: chatMenu === 'manage-defaults'
? '채팅 관리 / 기본 유형 관리'
: 'Codex Live / Codex Live';
const title = `${CHAT_SECTION_GROUP_LABELS[chatMenu]} / ${CHAT_SECTION_LABELS[chatMenu]}`;
return {
id: `app-log:${chatMenu}`,
@@ -413,11 +414,15 @@ export function resolveTopMenuPath(menu: HeaderTopMenuKey, currentDocsFolder: st
return buildDocsPath(currentDocsFolder);
}
if (menu === 'plans') {
return buildPlansPath('all');
}
if (menu === 'play') {
return buildPlayPath('layout');
}
return buildChatPath('live');
return buildPlansPath('all');
}
export function createPageWindowId(topMenu: TopMenuKey, section: string) {