refactor: Rename component pages to program pages and remove tools concept

The 'tools' concept was just a filtered view of programs and added unnecessary
complexity to the frontend. This commit:

- Removes ToolCard.tsx and Tools.tsx (pages/components never used in router)
- Renames ComponentDetail.tsx → ProgramDetail.tsx (exports ProgramDetailPage)
- Renames ComponentRedirect.tsx → ProgramRedirect.tsx (exports ProgramRedirect)
- Updates imports in routes.tsx to match new file names
- Fixes stale comment in hooks.ts

Frontend naming now aligns with the unified programs model.
This commit is contained in:
2026-04-27 21:10:31 -07:00
parent 2069e30353
commit 9fd2221e05
6 changed files with 7 additions and 97 deletions

View File

@@ -18,7 +18,7 @@ import type {
NodeDetail,
} from "@/types"
// Legacy compat hook — used by ConfigEditorPage and ComponentRedirect
// Legacy compat hook — used by ConfigEditorPage and ProgramRedirect
export function useComponent(name: string) {
return useQuery({
queryKey: ["components", name],