From 1c58dc2fe5a9d30431f132295a072335e59d61e7 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 7 Feb 2026 11:17:38 +0000 Subject: [PATCH] Remove clutter --- frontend/src/components/AreaPane.tsx | 2 +- frontend/src/components/FeatureIcons.tsx | 5 +-- frontend/src/components/Filters.tsx | 9 ++--- frontend/src/components/InfoPopup.tsx | 2 +- frontend/src/components/POIPane.tsx | 6 +--- frontend/src/components/PropertiesPane.tsx | 13 +------ frontend/src/components/ui/PaneHeader.tsx | 35 ------------------- .../src/components/ui/SelectionButtons.tsx | 24 ------------- 8 files changed, 7 insertions(+), 89 deletions(-) delete mode 100644 frontend/src/components/ui/PaneHeader.tsx delete mode 100644 frontend/src/components/ui/SelectionButtons.tsx diff --git a/frontend/src/components/AreaPane.tsx b/frontend/src/components/AreaPane.tsx index 22f96b6..2ea9729 100644 --- a/frontend/src/components/AreaPane.tsx +++ b/frontend/src/components/AreaPane.tsx @@ -9,7 +9,7 @@ import EnumBarChart from './EnumBarChart'; import StackedBarChart from './StackedBarChart'; import PriceHistoryChart from './PriceHistoryChart'; import ExternalSearchLinks from './ExternalSearchLinks'; -import { InfoIcon, CloseIcon } from './ui/Icons'; +import { InfoIcon, CloseIcon } from './ui/icons'; import { IconButton } from './ui/IconButton'; import { FeatureInfoPopup } from './FeatureInfoPopup'; import { EmptyState } from './ui/EmptyState'; diff --git a/frontend/src/components/FeatureIcons.tsx b/frontend/src/components/FeatureIcons.tsx index 28ede75..71f99a9 100644 --- a/frontend/src/components/FeatureIcons.tsx +++ b/frontend/src/components/FeatureIcons.tsx @@ -1,10 +1,7 @@ import type { FeatureMeta } from '../types'; -import { EyeIcon, InfoIcon, PlusIcon, CloseIcon } from './ui/Icons'; +import { EyeIcon, InfoIcon, PlusIcon, CloseIcon } from './ui/icons'; import { IconButton } from './ui/IconButton'; -// Re-export icons for backwards compatibility -export { EyeIcon, InfoIcon, CloseIcon as RemoveIcon } from './ui/Icons'; - interface FeatureActionsProps { feature: FeatureMeta; isPinned: boolean; diff --git a/frontend/src/components/Filters.tsx b/frontend/src/components/Filters.tsx index 3fb6df8..8bedd33 100644 --- a/frontend/src/components/Filters.tsx +++ b/frontend/src/components/Filters.tsx @@ -2,8 +2,7 @@ import { memo, useState, useRef, useCallback, useMemo, useEffect } from 'react'; import { Slider } from './ui/Slider'; import { Label } from './ui/Label'; import { SearchInput } from './ui/SearchInput'; -import { SelectionButtons } from './ui/SelectionButtons'; -import { FilterIcon, LightbulbIcon } from './ui/Icons'; +import { FilterIcon, LightbulbIcon } from './ui/icons'; import { EmptyState } from './ui/EmptyState'; import type { FeatureMeta, FeatureFilters } from '../types'; import { formatFilterValue } from '../lib/format'; @@ -242,11 +241,7 @@ export default memo(function Filters({ onRemove={onRemoveFilter} /> - onFilterChange(feature.name, [...allValues])} - onSelectNone={() => onFilterChange(feature.name, [])} - className="mb-1" - /> +
{allValues.map((val) => (