You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
Add UI-functionality for replacing a deleted event with another, existing event.
Functionality should reside in the delete dialog that pops up:
At the bottom, separated by a horizontal line, add an unchecked checkbox and text:
"Tämä tapahtuma on kaksoiskappale ☐"
"This event is a duplicate ☐"
If user checks the box, search for fuzzy matches based on event name. If matches are found, display the match name(s) and date(s), a link to the event and a checkbox. While searching, display the text: "Etsitään korvaavaa tapahtumaa."
[Name], [start date – end date]. [link to new tab]Lisätietoa »[/link] ☐
Ask the user to choose a corresponding event:
"Valitse tapahtuma, joka korvaa poistettavan tapahtuman. Sen jälkeen voit poistaa tapahtuman."
Disactivate the delete button whilst the first checkbox is selected but a second one isn't.
If no fuzzy match is found, tell user:
"Saman nimistä tapahtumaa ei löytynyt. Voit syöttää korvaavan tapahtuman tunnuksen kenttään (esim. "helsinki:afr4vq4oxm") : |_____________|"
Reactivate delete button when id is inputted. Validate that event exists and is in the future before deleting. If id is incorrect, prompt user to provide a new id or retract from duplicate claim:
"Tunnuksella ei löytynyt tulevaa tapahtumaa. Tarkista tunnus ja yritä uudelleen, poista tapahtuma ilman korvaavaa tapahtumaa tai jätä tapahtuma poistamatta."
Add UI-functionality for replacing a deleted event with another, existing event.
Functionality should reside in the delete dialog that pops up:
At the bottom, separated by a horizontal line, add an unchecked checkbox and text:
"Tämä tapahtuma on kaksoiskappale ☐"
"This event is a duplicate ☐"
If user checks the box, search for fuzzy matches based on event name. If matches are found, display the match name(s) and date(s), a link to the event and a checkbox. While searching, display the text: "Etsitään korvaavaa tapahtumaa."
[Name], [start date – end date]. [link to new tab]Lisätietoa »[/link] ☐
Ask the user to choose a corresponding event:
"Valitse tapahtuma, joka korvaa poistettavan tapahtuman. Sen jälkeen voit poistaa tapahtuman."
Disactivate the delete button whilst the first checkbox is selected but a second one isn't.
If no fuzzy match is found, tell user:
"Saman nimistä tapahtumaa ei löytynyt. Voit syöttää korvaavan tapahtuman tunnuksen kenttään (esim. "helsinki:afr4vq4oxm") : |_____________|"
Reactivate delete button when id is inputted. Validate that event exists and is in the future before deleting. If id is incorrect, prompt user to provide a new id or retract from duplicate claim:
"Tunnuksella ei löytynyt tulevaa tapahtumaa. Tarkista tunnus ja yritä uudelleen, poista tapahtuma ilman korvaavaa tapahtumaa tai jätä tapahtuma poistamatta."
Issue requires backend issue City-of-Helsinki/linkedevents#294
The text was updated successfully, but these errors were encountered: