-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement : Geographic Details Auto-fill in Facility Creation Form #10019
base: develop
Are you sure you want to change the base?
Enhancement : Geographic Details Auto-fill in Facility Creation Form #10019
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Edit : It happened due to incorrect parameter mapping in queryFn. Sry 😅 |
@Nihal , @rithviknishad I think this feature may not be needed because:
Correct me if i am wrong, i will take your input and will do suggested changes |
Proposed Changes
Fixes Enhancement To Geographic Details Auto-fill in Facility Creation Form #10013
Implement auto-fill functionality for the geographic details dropdowns (State, District, Local Body) in the "Create Facility" form based on the user's current organization page. For instance, if the user is on the "Aluva Municipality" organization page, the dropdowns should automatically populate with "Kerala" (State), "Ernakulam" (District), and "Aluva" (Local Body) when the form is opened.
Ensure proper handling of pincode autofill behavior. When a user inputs a pincode that corresponds to a region outside the autofilled district (e.g., a non-Ernakulam district pincode while on the Aluva organization page), display a prompt confirming the change. The prompt should ask the user if they want to proceed with updating the State and District fields to reflect the new pincode (e.g., new State: Kerala, new District: Ernakulam).
For the "Update Facility" page, ensure that dropdown values are fetched based solely on the facility's existing data. Do not consider the current organization page for auto-filling in this case.
@ohcnetwork/care-fe-code-reviewers
Merge Checklist