feat(mobile): filter inbox reports by priority (port #2176)#2497
Merged
Conversation
Ports the desktop "filter inbox signal reports by priority" feature to the mobile app. - Add `priorityFilter` (P0–P4) state to the inbox filter store, with `togglePriority` / `setPriorityFilter` actions; persisted and cleared on reset, mirroring the existing status/source/reviewer filters. - Add a `buildPriorityFilterParam` helper that returns a deduped comma-separated string, or `undefined` when empty. - Pass the selected priorities to the signal reports query as a `priority` param via `useInboxReports` and the API client. - Add a Priority section (P0–P4 toggle rows with colored dots) to the filter sheet. - Unit tests for the store actions and the param builder. Generated-By: PostHog Code Task-Id: bf3907c8-72ee-420f-97e7-8f3e176f6eaa
Contributor
|
Include `priorityFilter` in `buildInboxViewedProperties` so the `has_active_filters` analytics flag is true when a priority filter is the only active filter; previously priority-only filtering was reported as no active filters. Thread `priorityFilter` through the inbox screen's INBOX_VIEWED call site and add coverage for the priority-only case. Also fold the `buildPriorityFilterParam` cases into `it.each`, matching the sibling table-driven tests in the file. Generated-By: PostHog Code Task-Id: bf3907c8-72ee-420f-97e7-8f3e176f6eaa
charlesvien
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the desktop filter inbox signal reports by priority feature (#2176) to the PostHog Code mobile app.
What changed
inboxFilterStore.ts): addedpriorityFilter: SignalReportPriority[](empty = no filter), withtogglePriorityandsetPriorityFilteractions. Persisted and cleared inresetFilters, matching the existingstatusFilter/sourceProductFilter/suggestedReviewerFilterpatterns.utils.ts): addedbuildPriorityFilterParam, returning a deduped comma-separated string orundefinedwhen empty (equivalent to desktop's helper, sibling tobuildSuggestedReviewerFilterParam).useInboxReports.ts+api.ts+types.ts): the selected priorities flow into the reports query as apriorityrequest param.FilterSheet.tsx): added a Priority section with P0–P4 toggle rows and colored dots (P0 red, P1/P2 amber-orange, P3/P4 gray), reusing the existingOptionRow/SectionHeaderprimitives and theme colors.Tests
inboxFilterStore.test.ts: toggle on/off, accumulation, dedupe onsetPriorityFilter, and clear-on-reset.utils.test.ts:buildPriorityFilterParamfor empty (undefined), join, and dedupe.Mobile inbox tests, biome lint, and typecheck all pass.
No desktop (
apps/code) code was modified.