Repository navigation
Conversation
* feat(admin): add Update Village screen New Configuration > Update Village page. Select a user to see their User ID, employee details and active work location mappings (user mapping ID, role, block, mapped villages), choose the village to replace, then pick the new one by State > District > Block > Village. The save call targets villageMapping/updateVillage, which is not yet implemented in Admin-API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(admin): harden the Update Village screen Hide deactivated and Stop TB mappings, only auto-select a mapping that has villages, ignore responses for a user or location that is no longer selected, pre-fill the location once states load, warn when the new village is outside the mapping's facility, fall back to a generic error message, and show the beneficiary address counts returned by villageMapping/updateVillage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(admin): add optional facility filter to Update Village - load facilities for the selected block; picking one narrows the village list to that facility's villages, "All villages in block" keeps the old list - preselect the mapping's facility when opening an existing mapping - ignore stale block/facility responses and fall back to block villages when the facility lookup fails - show a hint when a facility has no mapped villages - confirmation and result text now say how beneficiary addresses move (all addresses for single-village users, only the old village otherwise) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(admin): make Update Village screen responsive - Replace Bootstrap 3 col-xs-* classes with Bootstrap 5 col-12 - Scroll the mappings table horizontally on narrow screens - Let village hints wrap instead of overflowing the field - Full-width Update button and smaller headings on phones - Pad the page bottom so the fixed footer no longer hides the Update button Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Sneha <sneha@ADMINs-MacBook-Pro.local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 |
|
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.



New Configuration > Update Village page. Select a user to see their User ID, employee details and active work location mappings (user mapping ID, role, block, mapped villages), choose the village to replace, then pick the new one by State > District > Block > Village.
The save call targets villageMapping/updateVillage, which is not yet implemented in Admin-API.
Hide deactivated and Stop TB mappings, only auto-select a mapping that has villages, ignore responses for a user or location that is no longer selected, pre-fill the location once states load, warn when the new village is outside the mapping's facility, fall back to a generic error message, and show the beneficiary address counts returned by villageMapping/updateVillage.
📋 Description
JIRA ID:
Please provide a summary of the change and the motivation behind it. Include relevant context and details.
✅ Type of Change
ℹ️ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.