From e6497f31048e8a4ce753702c5ff01cbb3e0a8f90 Mon Sep 17 00:00:00 2001 From: johnny1093 <46250921+jsmorabito@users.noreply.github.com> Date: Wed, 26 Aug 2026 10:11:10 -0400 Subject: [PATCH] ENG-2181 Uncheck node type filters by default, remove Only button Nodes types now start unchecked; checking one filters to it directly, so the panel no longer needs to translate an empty selection into an all-checked display or offer a separate Only shortcut. --- .../src/components/NodeTypeFilterMenu.tsx | 50 +++---------------- .../src/utils/discourseNodeTypeFilter.ts | 40 ++------------- 2 files changed, 10 insertions(+), 80 deletions(-) diff --git a/apps/obsidian/src/components/NodeTypeFilterMenu.tsx b/apps/obsidian/src/components/NodeTypeFilterMenu.tsx index e6f9e95a6..e2f7a4cc0 100644 --- a/apps/obsidian/src/components/NodeTypeFilterMenu.tsx +++ b/apps/obsidian/src/components/NodeTypeFilterMenu.tsx @@ -6,25 +6,21 @@ import { getAllDiscourseNodeColors } from "~/utils/colorUtils"; import { NODE_TYPE_FILTER_SEARCH_THRESHOLD, filterNodeTypesByQuery, - fromPanelSelectedIds, hasActiveTypeFilter, - toPanelSelectedIds, } from "~/utils/discourseNodeTypeFilter"; const NodeTypeFilterRow = ({ color, isChecked, nodeType, - onSelectOnly, onToggle, }: { color: string | undefined; isChecked: boolean; nodeType: DiscourseNode; - onSelectOnly: () => void; onToggle: () => void; }): ReactElement => ( -
+
-
); @@ -102,9 +85,7 @@ const NodeTypeFilterPanel = ({ return ( <> {/* Clearing is the only thing this control ever does, so it says so and - appears only when there is a filter to clear. A "select all" checkbox - would sit checked-and-inert whenever no filter is active, since an empty - selection and a full one are the same state. */} + appears only when there is a filter to clear. */} {isFilterActive && (