diff --git a/src/components/plugins/PluginResults.tsx b/src/components/plugins/PluginResults.tsx index 7ca41e2..1420c77 100644 --- a/src/components/plugins/PluginResults.tsx +++ b/src/components/plugins/PluginResults.tsx @@ -4,7 +4,6 @@ import { Blocks } from "lucide-react"; import { useIntl } from "react-intl"; import { EmptyStatePlaceholder } from "@/components/dashboard/EmptyStatePlaceholder"; -import { StatusDot } from "@/components/dashboard/StatusDot"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { CardTag } from "@/components/ui/card-tag"; @@ -18,8 +17,6 @@ import { import type { PluginSummary } from "@/generated/types"; import { useDebouncedValue } from "@/hooks/useDebouncedValue"; -const ENABLED_STATUS = "enabled"; - enum PluginIconColor { Red = "bg-red-500", Orange = "bg-orange-500", @@ -50,10 +47,6 @@ function hashString(str: string): number { return Math.abs(hash); } -function isEnabled(plugin: PluginSummary): boolean { - return plugin.status === ENABLED_STATUS; -} - const PluginIcon = memo(function PluginIcon({ name }: { name: string }) { const colorClass = useMemo(() => { const hash = hashString(name); @@ -87,14 +80,6 @@ function PluginCard({
- - {isEnabled(plugin) - ? intl.formatMessage({ id: "plugins.catalog.enabled" }) - : intl.formatMessage({ id: "plugins.catalog.disabled" })} -

@@ -183,11 +168,6 @@ export function PluginDetailsDialog({ {plugin.priority} - - {isEnabled(plugin) - ? intl.formatMessage({ id: "plugins.catalog.enabled" }) - : intl.formatMessage({ id: "plugins.catalog.disabled" })} - {plugin.hooks && plugin.hooks.length > 0 && ( diff --git a/src/components/plugins/PluginToolbar.tsx b/src/components/plugins/PluginToolbar.tsx index 2e0a968..679c436 100644 --- a/src/components/plugins/PluginToolbar.tsx +++ b/src/components/plugins/PluginToolbar.tsx @@ -18,15 +18,13 @@ import { const ALL_FILTER_VALUE = "__all__"; -export type PluginSingleFilterKey = "mode" | "hook"; +export type PluginSingleFilterKey = "hook"; interface PluginToolbarProps { search: string; enabledOnly: boolean; - mode: string; hook: string; selectedTags: string[]; - modes: string[]; hooks: string[]; availableTags: string[]; activeFilterCount: number; @@ -75,10 +73,8 @@ function PluginViewToggle({ } function PluginFiltersPopover({ - mode, hook, selectedTags, - modes, hooks, availableTags, activeFilterCount, @@ -89,7 +85,6 @@ function PluginFiltersPopover({ const intl = useIntl(); const id = useId(); const filtersTitleId = `${id}-title`; - const modeTriggerId = `${id}-mode`; const hookTriggerId = `${id}-hook`; return ( @@ -126,32 +121,6 @@ function PluginFiltersPopover({ )} -
- - -
-