Skip to content

tweak(persons): let the filters be closed from the navbar on mobile - #5409

Open
ux-git wants to merge 2 commits into
sws2apps:mainfrom
ux-git:tweak/filters-back-mobile
Open

tweak(persons): let the filters be closed from the navbar on mobile#5409
ux-git wants to merge 2 commits into
sws2apps:mainfrom
ux-git:tweak/filters-back-mobile

Conversation

@ux-git

@ux-git ux-git commented Sep 4, 2026

Copy link
Copy Markdown
Member

On a phone the filters replace the person list, and the button that closes them goes with it — leaving Search as the only way out.

While the filters are open, the page header now reads "Filters" with "All persons" under it, and its back arrow returns to the list. The filters drop their own heading there to avoid repeating the title; on wider screens, where they sit beside the list, nothing changes.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Devin Review

Opening the filters on a phone replaced the list, and the button that
closes them went with it. The page header now reads Filters with All
persons under it while they are open, and its back arrow brings the list
back. The filters keep their own heading on wider screens, where they sit
next to the list.
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
staging-organized-app Ready Ready Preview Sep 4, 2026 9:47pm UTC
test-organized-app Ready Ready Preview Sep 4, 2026 9:47pm UTC

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

Comment thread src/pages/persons/all_persons/index.tsx Outdated
import AssignmentGroup from '../assignment_group';
import Tabs from '@components/tabs';
import TabLabel from '@components/tab_label_with_badge';
import { PersonsFilterProps } from './index.types';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 New type bypasses path aliases

The PersonsFilterProps import uses a relative path. Repository rules require TypeScript path aliases for imports.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: d6af13fc-d365-401d-adc3-d8dda4d8c30b

📥 Commits

Reviewing files that changed from the base of the PR and between 3c273f1 and ee08421.

📒 Files selected for processing (3)
  • src/features/persons/filter/index.tsx
  • src/features/persons/filter/index.types.ts
  • src/pages/persons/all_persons/index.tsx

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


Important

Approval pending

CodeRabbit has no unresolved comments, but it could not review the latest commit because the review limit was reached. Follow the review guidance in this comment to continue.

Walkthrough

PersonsFilter now supports optional title suppression. On mobile and tablet, the open filter panel behaves as a subpage with a back button, alternate title, hidden page actions, and updated panel padding.

Changes

Persons filter subpage

Layer / File(s) Summary
Filter title contract
src/features/persons/filter/index.types.ts, src/features/persons/filter/index.tsx
PersonsFilter accepts an optional hideTitle prop and omits the tr_filters heading when enabled.
Responsive filter subpage
src/pages/persons/all_persons/index.tsx
The page shows a filter subpage title and back handler below desktop width, hides page actions, and renders the filter in a padded panel without a duplicate title. Search row behavior remains unchanged.
Estimated code review effort: 2 (Simple) ~10 minutes

Merge Risk: ⚪ Minimal · up to ee084

Mobile and tablet filter views now present as a Filters subpage with a back action to return to the persons list, while wider layouts retain their existing behavior. No current merge-readiness risk is identified.

Sequence Diagram(s)

sequenceDiagram
  participant PersonsAll
  participant PageTitle
  participant PersonsFilter
  PersonsAll->>PersonsAll: set isFilterSubpage when filter opens below desktop
  PersonsAll->>PageTitle: render tr_filters with tr_personsAll and back handler
  PersonsAll->>PersonsFilter: render inside padded mobile panel with hideTitle
  PageTitle-->>PersonsAll: invoke handleCloseFilter on back
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description accurately explains the mobile filter navigation change, the updated page header, and the unchanged wider-screen behavior.
Title check ✅ Passed The title clearly summarizes the main change: users can close the persons filters from the navbar on mobile.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Sep 4, 2026
@mergify

mergify Bot commented Sep 4, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

The filters can be scrolled well past where the list starts, so closing them from the navbar left the page in the middle of the list.
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant