Skip to content

Commit a9f2fbd

Browse files
MarkShawn2020claude
andcommitted
fix(build): TS errors — export MaasRegistryView, add basic-maas routes, bump lib to ES2022, drop dead code in PanelGrid
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 73d960f commit a9f2fbd

6 files changed

Lines changed: 16 additions & 19 deletions

File tree

.changeset/fix-build.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"lovcode": patch
3+
---
4+
5+
Fix TS build errors blocking v0.25.0 release
6+
7+
- Export `MaasRegistryView` from `src/views/index.ts`
8+
- Add `basic-maas` route in `_layout.tsx` and `features.tsx` `Record<FeatureType, string>`
9+
- Bump tsconfig `target`/`lib` to ES2022 (needed for `Array.at()`)
10+
- Remove dead `isShortViewport`/`quickActions` + unused icon imports in `PanelGrid`

src/components/PanelGrid/PanelGrid.tsx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useCallback, useEffect, useRef, useState } from "react";
22
import { Allotment } from "allotment";
33
import "allotment/dist/style.css";
4-
import { ChevronLeftIcon, ChevronRightIcon, DrawingPinFilledIcon, ChevronDownIcon, FileIcon, DesktopIcon, RocketIcon, CodeIcon, GitHubLogoIcon, MixerHorizontalIcon } from "@radix-ui/react-icons";
4+
import { ChevronLeftIcon, ChevronRightIcon, DrawingPinFilledIcon, ChevronDownIcon, FileIcon, DesktopIcon, MixerHorizontalIcon } from "@radix-ui/react-icons";
55
import { CornerDownLeft, FolderOpenIcon } from "lucide-react";
66
import { invoke } from "@tauri-apps/api/core";
77
import { open as openDialog } from "@tauri-apps/plugin-dialog";
@@ -205,14 +205,6 @@ export function PanelGrid({
205205
const [slashFilter, setSlashFilter] = useState("");
206206
const [slashSelectedIndex, setSlashSelectedIndex] = useState(0);
207207

208-
// Track viewport height - hide quick actions when short
209-
const [isShortViewport, setIsShortViewport] = useState(() => window.innerHeight < 640);
210-
useEffect(() => {
211-
const handleResize = () => setIsShortViewport(window.innerHeight < 640);
212-
window.addEventListener("resize", handleResize);
213-
return () => window.removeEventListener("resize", handleResize);
214-
}, []);
215-
216208
// Fetch commands for autocomplete
217209
const { data: localCommands = [] } = useInvokeQuery<LocalCommand[]>(
218210
["commands"],
@@ -382,13 +374,6 @@ export function PanelGrid({
382374
}
383375
};
384376

385-
// Quick action cards data
386-
const quickActions = [
387-
{ icon: RocketIcon, title: "Start dev server", code: "pnpm dev" },
388-
{ icon: GitHubLogoIcon, title: "Check git status", code: "git status" },
389-
{ icon: CodeIcon, title: "Run tests", code: "pnpm test" },
390-
];
391-
392377
// Common dropdown button style
393378
const dropdownButtonClass = "inline-flex items-center justify-between gap-3 px-4 py-2.5 text-sm border border-border bg-card hover:bg-card-alt rounded-xl transition-colors";
394379

src/pages/_layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export default function RootLayout() {
130130
"chat": "/chat",
131131
"basic-env": "/settings/env",
132132
"basic-llm": "/settings/llm",
133+
"basic-maas": "/settings/maas",
133134
"basic-version": "/settings/version",
134135
"basic-context": "/settings/context",
135136
"settings": "/settings",

src/pages/features.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default function FeaturesPage() {
1010
"chat": "/chat",
1111
"basic-env": "/settings/env",
1212
"basic-llm": "/settings/llm",
13+
"basic-maas": "/settings/maas",
1314
"basic-version": "/settings/version",
1415
"basic-context": "/settings/context",
1516
"settings": "/settings",

src/views/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export { FeaturesView, FeaturesLayout } from "./Features";
1111
export { CommandsView, CommandDetailView, CommandItemCard } from "./Commands";
1212
export { MarketplaceView, MarketplaceLayout, TemplateDetailView } from "./Marketplace";
1313
export { DistillMenu, DistillView, DistillDetailView, ReferenceView, KnowledgeLayout } from "./Knowledge";
14-
export { SettingsView, EnvSettingsView, LlmProviderView, ClaudeVersionView, ContextFilesView, ClaudeCodeVersionSection } from "./Settings";
14+
export { SettingsView, EnvSettingsView, LlmProviderView, MaasRegistryView, ClaudeVersionView, ContextFilesView, ClaudeCodeVersionSection } from "./Settings";
1515
export { WorkspaceView } from "./Workspace";
1616
export { AnnualReport2025 } from "./AnnualReport";
1717
export {

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2020",
3+
"target": "ES2022",
44
"useDefineForClassFields": true,
5-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
5+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
66
"module": "ESNext",
77
"skipLibCheck": true,
88

0 commit comments

Comments
 (0)