Implemented structured State → City → LGA location selection with ext…#14
Open
PleasantRon wants to merge 1 commit intoIwuchukwuDivine:masterfrom
Open
Implemented structured State → City → LGA location selection with ext…#14PleasantRon wants to merge 1 commit intoIwuchukwuDivine:masterfrom
PleasantRon wants to merge 1 commit intoIwuchukwuDivine:masterfrom
Conversation
…ernal data fetching - Added a reusable LocationSelector component to handle State → City/LGA → Street input flow with searchable custom dropdowns. - Implemented full validation for state, city, LGA, and street address, enforcing required structured location input. - Enabled two-way form binding by emitting v-model updates from the selector component. - Applied consistent dark UI styling to dropdowns using layered z-indexing, slate backgrounds, amber borders, and shadow effects. - Introduced a useLocation composable to centralize location data fetching logic. - Integrated Nigerian state fetching via the CountriesNow API with client-side caching for performance. - Implemented city and LGA fetching per selected state, including fallback resolution from multiple public GitHub JSON sources. - Added final LGA resolution logic to ensure consistent downstream usage. - Defined strongly typed location models to improve type safety and maintainability. - Refactored the complaint form to replace free-text location input with the structured LocationSelector component. - Constructed display-ready location strings from structured values prior to API submission. - Integrated selector-level validation via an exposed validateLocation() method. - Added fallback handling for incomplete or missing LGA data with graceful null checks. - Introduced browser debug logs to trace state counts and fallback usage during fetching.
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.
…ernal data fetching
Added a reusable LocationSelector component to handle State → City/LGA → Street input flow with searchable custom dropdowns.
Implemented full validation for state, city, LGA, and street address, enforcing required structured location input.
Enabled two-way form binding by emitting v-model updates from the selector component.
Applied consistent dark UI styling to dropdowns using layered z-indexing, slate backgrounds, amber borders, and shadow effects.
Introduced a useLocation composable to centralize location data fetching logic.
Integrated Nigerian state fetching via the CountriesNow API with client-side caching for performance.
Implemented city and LGA fetching per selected state, including fallback resolution from multiple public GitHub JSON sources.
Added final LGA resolution logic to ensure consistent downstream usage.
Defined strongly typed location models to improve type safety and maintainability.
Refactored the complaint form to replace free-text location input with the structured LocationSelector component.
Constructed display-ready location strings from structured values prior to API submission.
Integrated selector-level validation via an exposed validateLocation() method.
Added fallback handling for incomplete or missing LGA data with graceful null checks.
Introduced browser debug logs to trace state counts and fallback usage during fetching.
Description
Related Issue
Closes #
Type of Change
How to Test
Screenshots
Checklist
npm run test).