The Emergency title will consist of a dynamic prefix, user-editable title. The system will auto-generate the prefix based on the Event, Disaster Type, Country, while the user can edit the title field.
For existing Emergencies, the title field will remain empty, and the summary will retain its current value.
In the API, the summary field will store the full composed title (Prefix + Title).
Technical Changes
Set the summary field to read-only.
Implement custom logic for dynamic translations of the summary field.
Introduce a new field for the user-provided title.
Automatically translate and compose the summary field using the title, event, disaster type, and country information.
Create a migration to add the new title field and adjust the summary field behavior.
The Emergency title will consist of a dynamic prefix, user-editable title. The system will auto-generate the prefix based on the Event, Disaster Type, Country, while the user can edit the title field.
For existing Emergencies, the title field will remain empty, and the summary will retain its current value.
In the API, the
summary
field will store the full composed title (Prefix + Title).Technical Changes
summary
field to read-only.summary
field.summary
field using the title, event, disaster type, and country information.