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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user