refactor: simplify KnowledgeFilterPanel by removing unused props and layout context import

This commit is contained in:
Deon Sanchez 2025-10-06 14:46:39 -06:00
parent 2b9bbd7d09
commit 4d21d6afbb
2 changed files with 1 additions and 14 deletions

View file

@ -25,7 +25,6 @@ import {
FilterIconPopover, FilterIconPopover,
IconKey, IconKey,
} from "@/components/filter-icon-popover"; } from "@/components/filter-icon-popover";
import { useLayout } from "@/contexts/layout-context";
interface FacetBucket { interface FacetBucket {
key: string; key: string;
@ -49,15 +48,7 @@ export const filterAccentClasses: Record<FilterColor, string> = {
red: "bg-accent-red text-accent-red-foreground", red: "bg-accent-red text-accent-red-foreground",
}; };
interface KnowledgeFilterPanelProps { export function KnowledgeFilterPanel() {
totalTopOffset: number;
headerHeight: number;
}
export function KnowledgeFilterPanel({
totalTopOffset,
headerHeight,
}: KnowledgeFilterPanelProps) {
const { const {
queryOverride, queryOverride,
selectedFilter, selectedFilter,

View file

@ -63,10 +63,6 @@ export function LayoutWrapper({ children }: { children: React.ReactNode }) {
const smallWidthPaths = ["/settings", "/settings/connector/new"]; const smallWidthPaths = ["/settings", "/settings/connector/new"];
const isSmallWidthPath = smallWidthPaths.includes(pathname); const isSmallWidthPath = smallWidthPaths.includes(pathname);
// List of paths that should not show navigation
const authPaths = ["/login", "/auth/callback", "/onboarding"];
const isAuthPage = authPaths.includes(pathname);
// Calculate active tasks for the bell icon // Calculate active tasks for the bell icon
const activeTasks = tasks.filter( const activeTasks = tasks.filter(
task => task =>