Skip to content

Announcements#110

Merged
bemain merged 9 commits intomainfrom
feat/announcements
Mar 13, 2026
Merged

Announcements#110
bemain merged 9 commits intomainfrom
feat/announcements

Conversation

@bemain
Copy link
Copy Markdown
Owner

@bemain bemain commented Mar 13, 2026

Introduce announcements as a way to inform users about important stuff, such as server downtime or new features. Backed by Supabase.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Announcement model + Database wrapper and an Announcements utility for fetching/read tracking.
  • Adds AnnouncementsPage UI (Markdown rendering, placeholders) and an AnnouncementsButton entry point in app bars.
  • Wires a new /announcements route and initializes the database in main().

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.

@bemain bemain merged commit 9cf5755 into main Mar 13, 2026
2 checks passed
@bemain bemain deleted the feat/announcements branch March 13, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants