fix[soup]: allow multiple inbox fiters to be applied#2180
Conversation
WalkthroughThe Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
js/app/packages/app/component/next-soup/filters/configs.ts (1)
417-425:⚠️ Potential issue | 🟡 MinorUpdate the JSDoc comment to reflect the new behavior.
The comment on line 420 states
'entity-type': Mutually exclusive by default, but withallowMultiple: true, this group is no longer mutually exclusive. The comment should be updated to avoid misleading future developers.📝 Proposed fix
/** * Default filter group configurations for soup filters. * - 'focus': Mutually exclusive (signal/noise/explicit-noise) - * - 'entity-type': Mutually exclusive by default + * - 'entity-type': Allows multiple selections */ export const SOUP_FILTER_GROUPS: FilterGroupConfig[] = [ { id: 'focus', allowMultiple: false }, { id: 'entity-type', allowMultiple: true }, ];🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@js/app/packages/app/component/next-soup/filters/configs.ts` around lines 417 - 425, Update the JSDoc above SOUP_FILTER_GROUPS to reflect the current behavior: change the line that says "'entity-type': Mutually exclusive by default" to indicate that 'entity-type' allows multiple selections (e.g., "allows multiple selections" or "not mutually exclusive") because the SOUP_FILTER_GROUPS entry for 'entity-type' sets allowMultiple: true; keep the note for 'focus' as mutually exclusive to match its allowMultiple: false.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@js/app/packages/app/component/next-soup/filters/configs.ts`:
- Around line 417-425: Update the JSDoc above SOUP_FILTER_GROUPS to reflect the
current behavior: change the line that says "'entity-type': Mutually exclusive
by default" to indicate that 'entity-type' allows multiple selections (e.g.,
"allows multiple selections" or "not mutually exclusive") because the
SOUP_FILTER_GROUPS entry for 'entity-type' sets allowMultiple: true; keep the
note for 'focus' as mutually exclusive to match its allowMultiple: false.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 38bdaade-7b12-4f4f-8306-47bf06610f70
📒 Files selected for processing (1)
js/app/packages/app/component/next-soup/filters/configs.ts
No description provided.