GlobaLeaks icon indicating copy to clipboard operation
GlobaLeaks copied to clipboard

Make the Whistleblower aware that Tip will expire

Open fpietrosanti opened this issue 10 years ago • 4 comments

It has been noted by UX consultant that the Whistleblower is not informed about the fact that the Tip will expire and will self-delete.

This ticket is to inform the Whistleblower that the Tip will self-destroy after a defined amount of day.

The current expiration indicator on Tip page should report the amount of days missing till the expiry of the Tip, likely with some graphical element support.

fpietrosanti avatar Dec 01 '14 17:12 fpietrosanti

I was interested in working on this - I got a basic timer visible on the whistleblower tip page (see commit), but ran into three issues I'm not sure how you'd solve:

  • how to display the remaining time on the page (currently have it as red text under the expiration date)
  • adding "minutes", "hours", "days" to translatable strings
  • the message should be on the submission receipt page, too, but not sure how to access current_context.tip_timetolive on that page

mapmeld avatar Jan 03 '15 20:01 mapmeld

well done @mapmeld also this patch is great!

i was wondering to to use the library angular-relative-date integrating it with angular-translate, and i've seen that you have performed exactly that! (https://github.com/wildlyinaccurate/angular-relative-date/issues/3)

the only problem that remain is related to the different grammar in different languages (look at the ticket)

i will now integrate your code in a new branch related to your feature, an i will push an additional commit guiding you on the things you are asking so that in the future you will know how to achieve them.

evilaliv3 avatar Jan 04 '15 18:01 evilaliv3

@evilaliv3 I worked with the developer of angular-relative-date to close that issue! If you add translations to that library or this one, I believe that it will work

mapmeld avatar Jan 25 '15 00:01 mapmeld

oh! this sounds as a great work. tomorrow (today) i will work on this integration!

evilaliv3 avatar Jan 25 '15 01:01 evilaliv3