Repository navigation
WEB-1341: Remove legacy Show Closed Accounts toggle - #4152
harshiniiiiiii wants to merge 1 commit into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Note
|
| Layer / File(s) | Summary |
|---|---|
Remove the client-list toggle src/app/clients/clients.component.ts, src/app/clients/clients.component.html, src/app/clients/clients.component.spec.ts, src/assets/translations/* |
The component removes the toggle and its state. Tests check that the toggle is absent, the status filter remains, and an unfiltered response displays a closed client. The corresponding translation entries are removed. |
Remove Playwright toggle support playwright/config/selectors.ts, playwright/pages/clients-list.page.ts |
The selector contract and page object remove the toggle locator and action. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: devvaansh
Merge Risk: 
Minimal · previous review 5d587
-
The removed Clients toggle does not leave a known missing translation. No issue identified here prevents merging after normal checks.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
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 1 files.
-
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Comment @coderabbitai help to get the list of available commands.
1d41fac to
5b15670
Compare
75e610f to
bc09d64
Compare
bc09d64 to
fdf15ab
Compare
What
Removes the legacy "Show Closed Accounts" toggle from the Clients list (WEB-1341). A dedicated Status dropdown is now the single status-filtering control.
Why
The toggle was redundant with the Status dropdown (Pending / Active / Closed / Rejected). Investigation showed
toggleShowClosed()only flippedshowClosedAccountsand that flag was never passed tosearchByText()nor used in any filtering, so the control was already non-functional.Changes
src/app/clients/clients.component.html— removed the toggle markup.src/app/clients/clients.component.ts— removedshowClosedAccountsstate andtoggleShowClosed().src/app/clients/clients.component.spec.ts— added tests: toggle no longer rendered, Status dropdown retained, closed clients returned by the server are still rendered.src/assets/translations/*.json(14 locales) — removed the now-unusedlabels.inputs.Show Closed Accountskey.labels.buttons.Show Closed Accountsis kept because the Loans list and the client general tab still use it.playwright/config/selectors.ts,playwright/pages/clients-list.page.ts— removed the unreferenced toggle selector and helper.The Status dropdown, its filtering, search, sorting, pagination, counts, loading and empty states are unchanged.
Testing
jest src/app/clients/clients.component.spec.ts— 29/29 passed.jest src/app/clients— 38 suites, 404 tests passed.npm run lint— passed.npm run build(production) — passed.git diff --check— passed.Screenshots
Before
After
Summary by CodeRabbit
Changes
Tests