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.
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.