wtg / Shuttle-Tracker-SwiftUI

Rensselaer campus shuttle tracker
https://shuttletracker.app
Mozilla Public License 2.0
9 stars 2 forks source link

Keep track of viewed announcements #67

Closed Gerzer closed 2 years ago

Gerzer commented 2 years ago

Currently, if there are more than zero available announcements, we display a red badge on the Announcements button whenever the secondary overlay reappears. The badge is dismissed as soon as the user opens the Announcements sheet, but it‘s re-added if the overlay ever disappears and then reappears again. We should change this behavior so that the badge instead indicates the number of unread announcements, not just the total number of available announcements. This will involve persisting a list of viewed announcements, which will presumably be identified by their UUIDs, which are included in the JSON data that we pull from the server. While we‘re at it, we should add a blue dot, similar to the one in the system Mail app, to the left of each list entry in the Announcements sheet whose associated announcement is still unread.

Gerzer commented 2 years ago

Make sure to test these changes in both the iOS/iPadOS app as well as the macOS app!