Skip to content

RCF-888: Add not uploaded server status filter#1031

Open
officialasishkumar wants to merge 2 commits into
mosip:developfrom
officialasishkumar:RCF-888-not-uploaded-filter
Open

RCF-888: Add not uploaded server status filter#1031
officialasishkumar wants to merge 2 commits into
mosip:developfrom
officialasishkumar:RCF-888-not-uploaded-filter

Conversation

@officialasishkumar
Copy link
Copy Markdown

@officialasishkumar officialasishkumar commented Apr 29, 2026

RCF-888

Fixes #925

Summary

  • Added a NOT UPLOADED option to the Manage Applications server status filter.
  • Treat empty or missing packet server status as not uploaded, matching the existing table display.
  • Reused the same filter matching logic for search and dropdown filtering.

Validation

  • git diff --check

Flutter/Dart tooling was not available in the local shell, so formatter/analyzer checks could not be run locally.

Summary by CodeRabbit

  • New Features

    • Added a "Not Uploaded" server-status filter so users can easily find packets that haven’t been uploaded.
  • Improvements

    • Filtering logic refined so the "Not Uploaded" selection reliably matches packets with no/blank server status.
  • Localization

    • Added translations for the "Not Uploaded" label (English, Arabic, French, Hindi, Kannada, Tamil).

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: f564f77d-3ea9-4544-a691-da7fb639be35

📥 Commits

Reviewing files that changed from the base of the PR and between 27c66ff and 1ee1a1a.

📒 Files selected for processing (7)
  • assets/l10n/app_ar.arb
  • assets/l10n/app_en.arb
  • assets/l10n/app_fr.arb
  • assets/l10n/app_hi.arb
  • assets/l10n/app_kn.arb
  • assets/l10n/app_ta.arb
  • lib/ui/export_packet/widgets/server_status_dropdown.dart
✅ Files skipped from review due to trivial changes (7)
  • assets/l10n/app_en.arb
  • assets/l10n/app_ta.arb
  • assets/l10n/app_fr.arb
  • assets/l10n/app_hi.arb
  • lib/ui/export_packet/widgets/server_status_dropdown.dart
  • assets/l10n/app_kn.arb
  • assets/l10n/app_ar.arb

Walkthrough

Adds a "NOT UPLOADED" server-status filter option and centralizes packet-filtering logic in the provider via a _matchesFilters helper; the server-status dropdown gains the new selectable entry and localization strings for the new label are added.

Changes

Cohort / File(s) Summary
Provider Filter Logic
lib/provider/export_packet_provider.dart
Extracts matching logic into a _matchesFilters(Registration) helper, introduces static const String notUploadedServerStatusFilter = "__not_uploaded__", and routes searchedList and filterSearchList filtering through this helper (handles sentinel to match null/blank packet.serverStatus).
Server Status Dropdown UI
lib/ui/export_packet/widgets/server_status_dropdown.dart
Adds a DropdownMenuItem for the "NOT UPLOADED" filter using ExportPacketsProvider.notUploadedServerStatusFilter; selection flows through existing onChangedchangeServerStatus()filterSearchList().
Localizations
assets/l10n/app_en.arb, assets/l10n/app_fr.arb, assets/l10n/app_ar.arb, assets/l10n/app_hi.arb, assets/l10n/app_kn.arb, assets/l10n/app_ta.arb
Adds not_uploaded translation key in multiple locale files (e.g., "NOT UPLOADED", "NON TÉLÉVERSÉ", "غير مرفوع", etc.) to surface the new dropdown label in supported languages.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 A tiny hop into the list I made,
"NOT UPLOADED" now joins the filter parade,
One helper binds the logic neat and clear,
Dropdown picks it — packets soon appear,
I nibble bugs and cheer: changes deployed! 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a 'not uploaded' server status filter option to the export/manage applications feature.
Linked Issues check ✅ Passed All coding requirements from issue #925 are met: the 'NOT UPLOADED' filter option is added to the server status filter with proper localization across multiple languages.
Out of Scope Changes check ✅ Passed All changes are directly scoped to implementing the 'NOT UPLOADED' server status filter: provider logic, dropdown UI, and localization strings. No extraneous modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

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

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@lib/ui/export_packet/widgets/server_status_dropdown.dart`:
- Around line 28-30: Replace the hardcoded "NOT UPLOADED" string in the
DropdownMenuItem used for ExportPacketsProvider.notUploadedServerStatusFilter
with the localized string from AppLocalizations; locate the DropdownMenuItem in
server_status_dropdown.dart (the item whose value is
ExportPacketsProvider.notUploadedServerStatusFilter) and change its child Text
to use AppLocalizations.of(context).<keyName> (add a new key like notUploaded in
the AppLocalizations ARB and regenerate localization files if needed) so the UI
reads the localized string instead of the literal.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: a51a45d5-39e6-483e-b731-a96d6bd3a2ec

📥 Commits

Reviewing files that changed from the base of the PR and between 0ef1091 and 27c66ff.

📒 Files selected for processing (2)
  • lib/provider/export_packet_provider.dart
  • lib/ui/export_packet/widgets/server_status_dropdown.dart

Comment thread lib/ui/export_packet/widgets/server_status_dropdown.dart Outdated
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