Skip to content

fix(gui): resolve TypeScript errors in core shell components#318

Merged
echobt merged 1 commit intomasterfrom
fix/core-shell-typescript-errors
Jan 27, 2026
Merged

fix(gui): resolve TypeScript errors in core shell components#318
echobt merged 1 commit intomasterfrom
fix/core-shell-typescript-errors

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 27, 2026

Summary

This PR fixes TypeScript errors in the core application shell components as identified in AGENT1.md.

Changes

AppCore.tsx

  • Removed unused ErrorBoundary import (was causing TS6133)

Layout.tsx

  • Fixed unused imports (Box, VStack, MenuBarVisibility, useExtensions, AgentSkeleton)
  • Added missing useEventListeners import (was causing TS2552)
  • Replaced tokens.motion.duration.X with tokens.transitions.X (motion doesn't exist in tokens)
  • Prefixed unused variables/functions with underscore to silence warnings:
    • shouldHideSidebar, shouldCenterLayout, zenMaxWidth (zen mode features)
    • RightSidebar, ActivityBarItem (reserved for future features)
    • agentPanelCollapsed, AGENT_PANEL_COLLAPSED_WIDTH (collapsible agent panel)
    • customPresets (user-defined layout presets)
    • handleRightSidebarResize, handleAgentPanelResize (resize handlers)

LayoutContext.tsx

  • Removed unused batch import from solid-js
  • Prefixed unused STORAGE_KEY_AUXILIARY_BAR constant

Panel.tsx

  • Removed unused onCleanup and layoutState imports
  • Fixed tokens.sizes.icon.sm → hardcoded 16px (icon size doesn't exist in tokens)
  • Fixed tokens.typography.letterSpacing.wide → hardcoded 0.05em
  • Fixed tokens.motion.transition.fasttokens.transitions.fast

SplitView.tsx

  • Removed unused ParentProps and resolveChildren imports

LayoutStore.ts

  • Removed unused SetStoreFunction import from solid-js/store

Testing

  • ✅ TypeScript type check passes for all modified core files
  • ✅ No regressions introduced to existing functionality

Related

Addresses checklist items from cortex-gui/orchestration/AGENT1.md for core and app shell components.

This commit fixes TypeScript errors in the core application shell components:

- AppCore.tsx: Remove unused ErrorBoundary import
- Layout.tsx: Fix unused imports, add proper useEventListeners import,
  replace non-existent tokens.motion with tokens.transitions,
  prefix unused variables/functions with underscore
- LayoutContext.tsx: Remove unused batch import and prefix unused storage key
- Panel.tsx: Remove unused onCleanup and layoutState imports, fix tokens.motion
  and non-existent token properties
- SplitView.tsx: Remove unused ParentProps and resolveChildren imports
- LayoutStore.ts: Remove unused SetStoreFunction import

These fixes address the AGENT1.md checklist items for core and app shell components.
@echobt echobt merged commit d0b8274 into master Jan 27, 2026
1 of 3 checks passed
@echobt echobt deleted the fix/core-shell-typescript-errors branch January 27, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants