Skip to content

Commit ea43453

Browse files
committed
refactor: remove workshop view and related components — streamlined navigation and visibility in the application
1 parent d737aea commit ea43453

File tree

6 files changed

+8
-51
lines changed

6 files changed

+8
-51
lines changed

app/page.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ const VIEW_ICONS: Record<string, { icon: string; label: string }> = {
8888
preview: { icon: 'lucide:eye', label: 'Preview' },
8989
diff: { icon: 'lucide:git-compare', label: 'Diff' },
9090
git: { icon: 'lucide:git-branch', label: 'Git' },
91-
workshop: { icon: 'lucide:bot', label: 'Workshop' },
9291
skills: { icon: 'lucide:sparkles', label: 'Skills' },
9392
settings: { icon: 'lucide:settings', label: 'Settings' },
9493
terminal: { icon: 'lucide:terminal', label: 'Terminal' },
@@ -134,7 +133,7 @@ export default function EditorLayout() {
134133
const terminalStartupCommand = useCenteredTerminal ? 'openclaw tui' : undefined
135134
const mobileViewTabs = useMemo(() => {
136135
// On mobile, curate tabs to useful views + always include settings
137-
const mobile = visibleViews.filter((v) => !['preview', 'diff', 'workshop'].includes(v))
136+
const mobile = visibleViews.filter((v) => !['preview', 'diff'].includes(v))
138137
if (!mobile.includes('terminal')) mobile.push('terminal')
139138
return mobile.slice(0, 5)
140139
}, [visibleViews])
@@ -148,8 +147,7 @@ export default function EditorLayout() {
148147
)
149148
const showMobileBottomTabs = isMobile && !modeSpec.terminalCenter && keyboardOffset === 0
150149
const showMobileSidebarButton = isMobile && mode !== 'tui'
151-
const showWorkflowEditorTabs =
152-
!isMobile && !modeSpec.terminalCenter && activeView === 'workshop' && files.length > 0
150+
const showWorkflowEditorTabs = false
153151
const mobileTerminalOffset = showMobileBottomTabs
154152
? 'calc(env(safe-area-inset-bottom) + 5.75rem)'
155153
: 'calc(env(safe-area-inset-bottom) + 0.5rem)'
@@ -1035,9 +1033,6 @@ export default function EditorLayout() {
10351033
case 'view-settings':
10361034
setView('settings')
10371035
break
1038-
case 'view-workshop':
1039-
setView('workshop')
1040-
break
10411036
case 'view-skills':
10421037
setView('skills')
10431038
break

components/command-palette.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ type CommandId =
2828
| 'view-editor'
2929
| 'view-preview'
3030
| 'view-git'
31-
| 'view-workshop'
3231
| 'view-skills'
3332
| 'view-settings'
3433
| 'open-onboarding'
@@ -221,14 +220,6 @@ const COMMANDS: CommandItem[] = [
221220
icon: 'lucide:git-branch',
222221
group: 'navigate',
223222
},
224-
{
225-
id: 'view-workshop',
226-
label: 'Go to Workshop',
227-
hint: 'Open the unified agent workshop',
228-
keywords: ['workshop', 'agents', 'skills', 'automation', 'playground'],
229-
icon: 'lucide:bot',
230-
group: 'navigate',
231-
},
232223
{
233224
id: 'view-skills',
234225
label: 'Go to Skills',
@@ -356,8 +347,7 @@ const VIEW_CONTEXT_COMMANDS: Partial<Record<ViewId, CommandId[]>> = {
356347
'toggle-terminal',
357348
],
358349
git: ['git-commit', 'toggle-git-panel', 'git-push', 'git-pull', 'git-stash', 'toggle-terminal'],
359-
workshop: ['view-workshop', 'open-new-window', 'view-editor', 'view-git'],
360-
skills: ['view-skills', 'view-workshop', 'open-new-window', 'view-editor'],
350+
skills: ['view-skills', 'open-new-window', 'view-editor'],
361351

362352
preview: ['preview-refresh', 'view-editor'],
363353
}

components/view-router.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ const EditorView = dynamic(
1212
const GitView = dynamic(() => import('@/components/views/git-view').then((m) => m.GitView), {
1313
ssr: false,
1414
})
15-
const WorkshopView = dynamic(
16-
() => import('@/components/views/workshop-view').then((m) => m.WorkshopView),
17-
{ ssr: false },
18-
)
1915
const SkillsView = dynamic(
2016
() => import('@/components/views/skills-view').then((m) => m.SkillsView),
2117
{ ssr: false },
@@ -41,7 +37,6 @@ const VIEW_ICONS: Record<string, { label: string }> = {
4137
editor: { label: 'Editor' },
4238
preview: { label: 'Preview' },
4339
git: { label: 'Git' },
44-
workshop: { label: 'Workshop' },
4540
skills: { label: 'Skills' },
4641
settings: { label: 'Settings' },
4742
terminal: { label: 'Terminal' },
@@ -84,7 +79,6 @@ export function ViewRouter() {
8479
{activeView === 'editor' && <EditorView />}
8580
{activeView === 'preview' && <PreviewPanel />}
8681
{activeView === 'git' && <GitView />}
87-
{activeView === 'workshop' && <WorkshopView />}
8882
{activeView === 'skills' && <SkillsView />}
8983
{activeView === 'settings' && (
9084
<div className="flex-1 flex items-center justify-center">

components/workspace-sidebar.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,6 @@ export function WorkspaceSidebar({ collapsed, onToggle, repoName }: Props) {
232232

233233
{/* Nav items */}
234234
<div className="mt-3 space-y-0.5">
235-
<button
236-
onClick={() => setView('workshop')}
237-
className="codex-sidebar-nav-item flex items-center gap-2.5 px-3.5 py-2 rounded-lg text-[13px] text-[var(--text-secondary)] hover:bg-[color-mix(in_srgb,var(--text-primary)_5%,transparent)] hover:text-[var(--text-primary)] transition-all cursor-pointer w-full"
238-
>
239-
<Icon
240-
icon="lucide:bot"
241-
width={15}
242-
height={15}
243-
className="text-[var(--text-tertiary)]"
244-
/>
245-
Workshop
246-
</button>
247235
<button
248236
onClick={() => setView('skills')}
249237
className="codex-sidebar-nav-item flex items-center gap-2.5 px-3.5 py-2 rounded-lg text-[13px] text-[var(--text-secondary)] hover:bg-[color-mix(in_srgb,var(--text-primary)_5%,transparent)] hover:text-[var(--text-primary)] transition-all cursor-pointer w-full"
@@ -257,7 +245,7 @@ export function WorkspaceSidebar({ collapsed, onToggle, repoName }: Props) {
257245
Automations
258246
</button>
259247
<button
260-
onClick={() => setView('workshop')}
248+
onClick={() => setView('skills')}
261249
className="codex-sidebar-nav-item flex items-center gap-2.5 px-3.5 py-2 rounded-lg text-[13px] text-[var(--text-secondary)] hover:bg-[color-mix(in_srgb,var(--text-primary)_5%,transparent)] hover:text-[var(--text-primary)] transition-all cursor-pointer w-full"
262250
>
263251
<Icon

context/view-context.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,11 @@ export type ViewId =
1717
| 'preview'
1818
| 'diff'
1919
| 'git'
20-
| 'workshop'
2120
| 'skills'
2221
| 'settings'
2322
| 'terminal'
2423

25-
const VIEW_ORDER: ViewId[] = [
26-
'chat',
27-
'editor',
28-
'preview',
29-
'git',
30-
'workshop',
31-
'skills',
32-
'settings',
33-
'terminal',
34-
]
24+
const VIEW_ORDER: ViewId[] = ['chat', 'editor', 'preview', 'git', 'skills', 'settings', 'terminal']
3525

3626
interface ViewState {
3727
activeView: ViewId

lib/mode-registry.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const MODE_REGISTRY: Record<AppMode, ModeSpec> = {
2525
id: 'classic',
2626
label: 'Classic',
2727
description: 'Traditional editor — no chat, files open',
28-
visibleViews: ['editor', 'preview', 'git', 'workshop', 'skills'],
28+
visibleViews: ['editor', 'preview', 'git', 'skills'],
2929
defaultView: 'editor',
3030
autoExpandEditor: true,
3131
accent: '#d2a34f',
@@ -43,7 +43,7 @@ export const MODE_REGISTRY: Record<AppMode, ModeSpec> = {
4343
id: 'chat',
4444
label: 'Chat',
4545
description: 'Chat-first mode with optional editor and git views',
46-
visibleViews: ['chat', 'editor', 'git', 'workshop', 'skills'],
46+
visibleViews: ['chat', 'editor', 'git', 'skills'],
4747
defaultView: 'chat',
4848
hideTabs: true,
4949
accent: '#86b5ff',
@@ -61,7 +61,7 @@ export const MODE_REGISTRY: Record<AppMode, ModeSpec> = {
6161
id: 'tui',
6262
label: 'TUI',
6363
description: 'Terminal-first — editor available on demand',
64-
visibleViews: ['editor', 'git', 'workshop', 'skills'],
64+
visibleViews: ['editor', 'git', 'skills'],
6565
defaultView: 'editor',
6666
terminalCenter: true,
6767
hideTabs: true,

0 commit comments

Comments
 (0)