add [properties-fe] - filter and sort to unified list filter#633
Conversation
5d76027 to
e07593a
Compare
sedson
left a comment
There was a problem hiding this comment.
Changes talked about in MacroChat:
- fix menus closing on select for operators
- cleanup multiple files of incorrect click outside pattern
- remove all cursor-pointer classes
…PropertyEntitySelector
- Add registerClearHandler prop to PropertyFilterControl - Remove effect watching props.propertyFilters and isSyncing flag - Parent explicitly calls clearFilters via registered handler on CLEAR
…r-and-sort-to-unified-list-filter
- Restore saved property filters from viewDataStore on mount - Initialize FilterPropertyPill state from savedData and initialProperty - Show loading state while fetching property definitions for saved filters - Fix Save Changes button not disappearing after save (await mutateAsync) - Fix isViewConfigChanged reactivity for propertyFilters - Refactor click outside handlers to avoid closure recreation
…r-and-sort-to-unified-list-filter
5255a3b to
1a17a77
Compare
Code ReviewI've reviewed this PR and found 4 CLAUDE.md violations that need to be addressed: 1. Direct service client calls (3 instances)The following files make direct calls to service clients outside the queries package, violating CLAUDE.md line 27-28:
a) FilterValueSelect.tsx (lines 36-38) - Direct call to propertiesServiceClient.getPropertyOptions() b) FilterValueSelectMulti.tsx (lines 39-41) - Direct call to propertiesServiceClient.getPropertyOptions() c) typeGuards.ts (lines 120-123) - Direct call to propertiesServiceClient.listProperties() Fix: Create query hooks in the queries/properties package and use those instead of direct service client calls. 2. Use of any type (7 instances)FilterPropertyPill.tsx uses 'as any' type assertions in 7 places (lines 352, 360, 367, 375, 382, 391, 398), violating CLAUDE.md line 13:
Fix: Properly type the filterAction parameter for each data type case to eliminate the need for 'as any' casts. Summary: Please refactor to use the queries package for all network calls and fix the type safety issues before merging. |
Code ReviewI've reviewed this PR for bugs and CLAUDE.md compliance. Found the following issues: Issue 1: Use of
|
add [properties-fe] - filter and sort to unified list filter