Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Add replace functionality to delete dialog #350

Open
aleksisalonen opened this issue Oct 3, 2018 · 0 comments
Open

Add replace functionality to delete dialog #350

aleksisalonen opened this issue Oct 3, 2018 · 0 comments

Comments

@aleksisalonen
Copy link
Contributor

aleksisalonen commented Oct 3, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant