jfversluis / been-pwned

App that leverages the haveibeenpwned.com API by Troy Hunt. This app is available in the App Stores and is used in several of my talks as well as my book Xamarin.Forms Essentials.
MIT License
16 stars 3 forks source link

Mark new breaches somehow #14

Open jfversluis opened 7 years ago

jfversluis commented 7 years ago

In the current version a push notification is sent whenever there are new breaches. Also, in the current version there is no way of telling which breaches are actually new.

It would be nice to make that available somehow. I.e.; show a list of the new breaches when opened through the notification, or just mark them with a dot like the iOS Mail app.

Any other brilliant ideas welcome!

Depechie commented 7 years ago

General rule of usage is add an IsRead / IsSeen boolean field that get's marked as true when a detail page has been opened or with an action on the list view. Put each item to false when 'merged' in from the web if it has not yet been available in Akavache. BUT Akavache tracking could be incorrect. Mail apps also sync with server to have multi device 'read / seen' indication follow through.

Depechie commented 7 years ago

Maybe a nice feature to implement with Project Rome ;) https://developer.microsoft.com/en-us/windows/project-rome

jfversluis commented 7 years ago

To KISS for now.. I've implemented some logic which just checks if the breach was added today. If yes, it's marked as NEW like this:

Breach marked as new

When it becomes tomorrow, the breach isn't marked anymore. So, it will be marked as new for the day that it was added.

We could implement a small screen which lists just the new ones if someone opens the app through a push notification at a later stage.

Thoughts?

jfversluis commented 6 years ago

Started with this on #52.

I'd still want to have some kind of screen of filter possibility to show only the new entries. Therefore I'll leave this open for a bit.