biodiversitydata-se / biocollect

Biocollect front end application for Bioatlas
https://biocollect.biodiversitydata.se/
Other
0 stars 0 forks source link

Allow users to unbook routes (IWC) and send an email to the admins when they do #234

Closed mathieuLU closed 1 year ago

mathieuLU commented 1 year ago

from @fredrikhaas Det hade varit bra om inventerarna själva kunde avboka sina kustrutor och sjöfågelområden (iwc). När inventeraren avbokar hade det varit bra om det skickades ett meddelande till oss om att så skett.

Design to be determined

Change title of "uppdatera min profil" (add infos about site bookings handling and previous surveys) Show the 3rd tab for all users with Lokalbokning. Only "visa bokade lokaler"

mathieuLU commented 1 year ago

Hej Fredrik.

Here is what we could do :

Right now on the homepage every user can see the link "Uppdatera min profil". This page allows a user to edit his profile information and his surveys. We could add there a tab "Lokaler"

so first, from my point of view the item menu should be renamed. ""Uppdatera min profil, se mina undersökningar och bokningar". Well something like that :) Your choice.

When you click that link, you can now see 3 tabs (admin could already see the "Lokalbokning" tag. Now every user could see it : Screenshot from 2023-05-11 13-22-42

An admin can see 3 blocks there. A regular user would see only the middle one (or maybe the last one as well ?) Screenshot from 2023-05-11 13-27-34

Right now, clicking on "avboka" displays this : Screenshot from 2023-05-11 13-28-09 Screenshot from 2023-05-11 13-30-55

so we have to translate this. Let me know what should stand there ;-)

ANd in addition, of course, an email has to be sent to the admin, saying that the site has been unbooked. PLease tell me as well what we should write there :)

Let me know if it looks fine to you. And if yes, please send me the swedish text for all these steps :) 1- item menu on the home page ("uppdatera min profil...") 2- pop-up when clicking on avboka 3- popup when unbooking processed 4- email to the admin 5- should we allow the users to see the 3rd block ? ("visa andra" with the list of sites)

mathieuLU commented 1 year ago

Ok so we have 2 alternatives :

1- all the bookables sites can be unbooked, using the process described in the previous message

Missing in the previous list : when the user is about the unbook, a text field should be mandatory to specify the reason of the unbooking. This textfield will be pasted in the email sent to the admin (no need to save it in he database)

2- the same way that we have a flag "siteBooking" for the project with sites allowed to be booked, we could have a flag siteUnbooking to allow thhe unbooking only for these projects.

mathieuLU commented 1 year ago

Hej @fredrikhaas

here is how it looks now (TEST version)

homepage menu: Screenshot from 2023-07-12 17-03-28

if admin, menu as usual : Screenshot from 2023-07-12 17-02-43

I kept the list the way it was, since it quite messy to change the order of the sites displayed. BUt I added the scheme column to help understanding

for normal users, only the unbookable sites have the unbook button : Screenshot from 2023-07-12 17-02-32

when clicking on unbook : Screenshot from 2023-07-12 17-02-55

the unbook information message Screenshot from 2023-07-12 17-09-06

Now I'm working on the email for the admin.

Email: Subject - "Avbokning av IWC-lokal", Content: "Site/internal site ID har avbokats av Fredrik Haas, 650802-1", dvs "L016 har avbokats av Fredrik Haas, 650802-1"

mathieuLU commented 1 year ago

email is ready as well. Can be deployed to production when you want!

mathieuLU commented 1 year ago

deployed in production.

works as well for Kustfågelrutor

email changed + email address fixed with https://github.com/biodiversitydata-se/biocollect/commit/cddc2daa868fab06270ca6e1141cc246cbe70e45 and https://github.com/biodiversitydata-se/biocollect/commit/fe837dec73dffdfdb794a2544899d1cc47bc49c0

allow to sort the table for a user like : Screenshot from 2023-08-09 16-32-30 with https://github.com/biodiversitydata-se/biocollect/commit/eaddd36b9d64cc181bb088356cb4305fff6f4304

I think it's all ok and can be closed now !

fredrikhaas commented 1 year ago

Looks good, fine with me to close the case.

Fredrik

From: mathieuLU @. Sent: den 9 augusti 2023 16:34 To: biodiversitydata-se/biocollect @.> Cc: Fredrik Haas @.>; Mention @.> Subject: Re: [biodiversitydata-se/biocollect] Allow users to unbook routes (IWC) and send an email to the admins when they do (Issue #234)

deployed in production.

works as well for Kustfågelrutor

email changed + email address fixed with cddc2dahttps://github.com/biodiversitydata-se/biocollect/commit/cddc2daa868fab06270ca6e1141cc246cbe70e45 and fe837dehttps://github.com/biodiversitydata-se/biocollect/commit/fe837dec73dffdfdb794a2544899d1cc47bc49c0

allow to sort the table for a user like : [Screenshot from 2023-08-09 16-32-30]https://user-images.githubusercontent.com/50901365/259444569-2c0a0bef-3692-43fc-ab9b-92500fc7a602.png with eaddd36https://github.com/biodiversitydata-se/biocollect/commit/eaddd36b9d64cc181bb088356cb4305fff6f4304

I think it's all ok and can be closed now !

— Reply to this email directly, view it on GitHubhttps://github.com/biodiversitydata-se/biocollect/issues/234#issuecomment-1671505837, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW46YAG4K2S6RCPGM3Q543DXUONTZANCNFSM6AAAAAAUVIU2II. You are receiving this because you were mentioned.Message ID: @.**@.>>