Skip to content
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

Implement Field Report title composition #2265

Open
samshara opened this issue Sep 17, 2024 · 0 comments
Open

Implement Field Report title composition #2265

samshara opened this issue Sep 17, 2024 · 0 comments
Assignees
Labels
DFS DFS implements/leads the implementation

Comments

@samshara
Copy link
Member

samshara commented Sep 17, 2024

The Field Report title will consist of a dynamic prefix, user-editable title, and a suffix. The system will auto-generate the prefix and suffix based on the Event, Disaster Type, Country, and Start Date, while the user can edit the title field.

For existing Field Reports, the new dynamic prefix and suffix translations will only apply if the report is edited. Upon editing, the user will need to re-enter the title, and the prefix/suffix will auto-fill.

In the API, the summary field will store the full composed title (Prefix + Title + Suffix).

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.
@samshara samshara transferred this issue from IFRCGo/go-web-app Sep 17, 2024
@samshara samshara added the DFS DFS implements/leads the implementation label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DFS DFS implements/leads the implementation
Projects
None yet
Development

No branches or pull requests

2 participants