Merged
Conversation
While reducing repetitiveness it was too compicated to use and reengineered a lot of what supabase already provided
For handling announcements
There was a problem hiding this comment.
Pull request overview
Adds an in-app “Announcements” feature backed by Supabase, exposing a new page and an AppBar button/badge so users can see (and mark read) important updates like downtime notices or new features.
Changes:
- Introduces Supabase-backed
Announcementmodel +Databasewrapper and anAnnouncementsutility for fetching/read tracking. - Adds
AnnouncementsPageUI (Markdown rendering, placeholders) and anAnnouncementsButtonentry point in app bars. - Wires a new
/announcementsroute and initializes the database inmain().
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 19 comments.
Show a summary per file
| File | Description |
|---|---|
| pubspec.yaml | Adds Supabase + JSON serialization + markdown dependencies. |
| pubspec.lock | Locks new direct/transitive dependencies introduced by announcements/Supabase. |
| lib/main.dart | Initializes the database during app startup. |
| lib/navigation.dart | Adds /announcements route for the new page. |
| lib/widgets/default_app_bar.dart | Adds AnnouncementsButton to the default app bar actions. |
| lib/songs/library_page/library_page.dart | Adds AnnouncementsButton to the library page app bar actions. |
| lib/widgets/announcements_page.dart | New announcements UI page + app bar button/badge + tooltip behavior. |
| lib/utils/announcements.dart | New helper for read tracking and Supabase queries (all/latest/unread). |
| lib/database/database.dart | New Supabase initialization and table accessor. |
| lib/database/model.dart | New base model with id/createdAt and JSON contract. |
| lib/database/announcement.dart | New Announcement model with json_serializable integration. |
| lib/database/announcement.g.dart | Generated JSON (de)serialization for Announcement. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce announcements as a way to inform users about important stuff, such as server downtime or new features. Backed by Supabase.