Filter grouping support to DataViewFilters
維護者通常 2 天內回覆
@katarinazaprazna 已經在處理了。
開始於 2026年11月20日。
評估
這個 Issue 還沒有評估資料。
描述
Overview
Insights Inventory binds filters from multiple backend services (Inventory, Advisor, Vulnerability) in the same toolbar. There's no way to communicate to users which filter belongs to which service when using the flat attribute dropdown. Inventory needs the Menu's titled groups of items functionality to be accessible from data-view
Currently, they're using a custom component of DataViewFilters to work around this. The goal is to get the requested changes merged so Inventory can delete their fork
Proposed API
Proposed API (purely additive - all new props are optional):
interface DataViewFilterGroup {
id: string;
label: React.ReactNode;
filterIds: string[]; // filterIds belonging to this group, in display order
}
// added to DataViewFiltersProps:
groups?: DataViewFilterGroup[];
groupLabelHeadingLevel?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; // default 'h3'
ungroupedPosition?: 'start' | 'end'; // default 'start'
Non-breaking requirement: When groups is omitted, the output must be byte-identical to today. No existing consumer can be affected. This is verifiable against PF's own existing snapshot tests - if a snapshot moves, the patch is wrong.
Reference ticket from Insights Inventory: https://redhat.atlassian.net/browse/RHINENG-34064
Acceptance criteria
- Existing consumers passing no groups see no change in behaviour or DOM
- Attribute menu shows a labelled heading per group, in groups array order
- Dividers render between groups, not before the first
- A group whose filterIds match no children is dropped entirely
- A filterId listed in two groups appears only in the first
- Filters not listed in any group render at ungroupedPosition
- groupLabelHeadingLevel controls the heading element (default h3 — h1 is wrong inside a dropdown)
- 主要語言
- TypeScript
- 星號
- 4
- 分支
- 21
- 平均合併
- 4 天 9 小時
- 30 天內合併 PR
- 15
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
patternfly/react-data-view 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
patternfly/react-data-view#692 ·
維護者通常 2 天內回覆
-
DataViewFilters: MenuToggle for filter category selector has no accessible name可能已有人在做 @aloktomarr 於 117 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
patternfly/react-data-view#680 · 1 則留言 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
patternfly/react-data-view#662 ·
維護者通常 2 天內回覆
-
難度 3/5 1-2 天 新手友好度 55/100
patternfly/react-data-view#676 · 2 則留言 ·
維護者通常 2 天內回覆
-
Consistency: Add chip toolbar buttons to all DataView filters to match TreeViewFilter可能已有人在做 @aloktomarr 於 117 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 65/100
patternfly/react-data-view#646 · 1 則留言 ·
維護者通常 2 天內回覆
查看 patternfly/react-data-view 的全部 Issue
相似的 Issue
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offers未關閉catalog provider provider-compatibility
難度 2/5 1-3 小時 新手友好度 62/100
lidge-jun/opencodex#9037 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
難度 2/5 1-3 小時 新手友好度 60/100
維護者通常 1 天內回覆
-
effort:S P3 refactor
難度 2/5 1-3 小時 新手友好度 72/100
nightscout/nocturne#3735 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
維護者通常 2 天內回覆