Imagine a fusion of ‘Eskom se Push’ and ‘X’. The Republic allows users to raise concerns and spread awareness about government services through incident reports, with cool data visualizations providing a dynamic overview of public sentiment on service delivery.
This PR updates the ResolutionModal component to replace the free-text input for political association with a dropdown menu. This change improves data consistency and user experience by providing a predefined list of political associations to choose from.
Changes
Replace the Input component for political association with a Dropdown component
Add politicalAssociationOptions to constants file
Set "None" as the default selection for political association
Ensure the dropdown is only shown when appropriate (not for self-resolution or unknown resolution source)
Adjust styling to ensure the dropdown spans the full width of its container
Description
This PR updates the ResolutionModal component to replace the free-text input for political association with a dropdown menu. This change improves data consistency and user experience by providing a predefined list of political associations to choose from.
Changes
Files Changed
src/components/ResolutionModal.tsx
src/lib/constants.ts