HEL-665: implement approved Refract Studio across real desktop workbench

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-12 00:43:14 +08:00
co-authored by multica-agent
parent 2b3bbf9d03
commit aaddd3dcaf
29 changed files with 4197 additions and 2543 deletions
File diff suppressed because it is too large Load Diff
+60 -9
View File
@@ -10,7 +10,9 @@ export type NavId =
| 'connections'
| 'models'
| 'library'
| 'settings';
| 'settings'
| 'canvas'
| 'workflows';
export interface NavItem {
id: NavId;
@@ -24,18 +26,55 @@ export interface NavItem {
// and settings entries at the foot of the 60px rail.
export const NAV_MAIN: NavItem[] = [
{ id: 'projects', labelKey: 'shell.navProjects', icon: 'home', href: '/' },
{ id: 'workbench', labelKey: 'shell.navWorkbench', icon: 'story', href: '/workbench' },
{
id: 'workbench',
labelKey: 'shell.navWorkbench',
icon: 'story',
href: '/workbench',
},
{ id: 'image', labelKey: 'shell.navImage', icon: 'image', href: '/image' },
{ id: 'video', labelKey: 'shell.navVideo', icon: 'film', href: '/video' },
{ id: 'tasks', labelKey: 'shell.navTasks', icon: 'queue', href: '/tasks' },
{ id: 'agents', labelKey: 'shell.navAgents', icon: 'sparkle', href: '/agents' },
{ id: 'canvas', labelKey: 'nav.canvas', icon: 'story', href: '/canvas' },
{
id: 'agents',
labelKey: 'shell.navAgents',
icon: 'sparkle',
href: '/agents',
},
];
export const NAV_FOOT: NavItem[] = [
{ id: 'connections', labelKey: 'shell.navConnections', icon: 'link', href: '/connections' },
{ id: 'models', labelKey: 'shell.navModels', icon: 'assets', href: '/models' },
{ id: 'library', labelKey: 'shell.navLibrary', icon: 'folder', href: '/library' },
{ id: 'settings', labelKey: 'shell.navSettings', icon: 'settings', href: '/settings' },
{
id: 'connections',
labelKey: 'shell.navConnections',
icon: 'link',
href: '/connections',
},
{
id: 'models',
labelKey: 'shell.navModels',
icon: 'assets',
href: '/models',
},
{
id: 'workflows',
labelKey: 'connections.wfTitle',
icon: 'playground',
href: '/workflows',
},
{
id: 'library',
labelKey: 'shell.navLibrary',
icon: 'folder',
href: '/library',
},
{
id: 'settings',
labelKey: 'shell.navSettings',
icon: 'settings',
href: '/settings',
},
];
export const NAV: NavItem[] = [...NAV_MAIN, ...NAV_FOOT];
@@ -51,8 +90,20 @@ export interface TabItem {
/** ≤760px bottom tab bar (§二): 项目 / 创作 / 生成 / 更多. */
export const TABS: TabItem[] = [
{ id: 'projects', labelKey: 'shell.tabProjects', icon: 'home', href: '/', covers: ['projects'] },
{ id: 'workbench', labelKey: 'shell.tabCreate', icon: 'story', href: '/workbench', covers: ['workbench'] },
{
id: 'projects',
labelKey: 'shell.tabProjects',
icon: 'home',
href: '/',
covers: ['projects'],
},
{
id: 'workbench',
labelKey: 'shell.tabCreate',
icon: 'story',
href: '/workbench',
covers: ['workbench'],
},
{
id: 'generate',
labelKey: 'shell.tabGenerate',