feat(notifications): day sheet notification types

Add daySheetId field to NotificationItem model (Brick-managed), extract
notificationTitle/notificationIcon to top-level testable functions, add
five day-sheet notification cases, and wire tap/banner routing for
day-sheet detail and approvals tab.
Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
2026-09-28 14:54:19 +08:00
parent 54ce528b02
commit 5af0ce62d9
8 changed files with 219 additions and 38 deletions
+6 -3
View File
@@ -1,22 +1,24 @@
// GENERATED CODE DO NOT EDIT
// This file should be version controlled
import 'package:brick_sqlite/db.dart';
part '20260927030348.migration.dart';
part '20260928065256.migration.dart';
part '20260411041808.migration.dart';
part '20260411042152.migration.dart';
part '20260926162926.migration.dart';
part '20260927030348.migration.dart';
/// All intelligently-generated migrations from all `@Migratable` classes on disk
final migrations = <Migration>{
const Migration20260927030348(),
const Migration20260928065256(),
const Migration20260411041808(),
const Migration20260411042152(),
const Migration20260926162926(),
const Migration20260927030348(),
};
/// A consumable database structure including the latest generated migration.
final schema = Schema(
20260926162926,
20260927030348,
generatorVersion: 1,
tables: <SchemaTable>{
SchemaTable(
@@ -271,6 +273,7 @@ final schema = Schema(
SchemaColumn('it_service_request_id', Column.varchar),
SchemaColumn('announcement_id', Column.varchar),
SchemaColumn('message_id', Column.integer),
SchemaColumn('day_sheet_id', Column.varchar),
SchemaColumn('type', Column.varchar),
SchemaColumn('created_at', Column.datetime),
SchemaColumn('read_at', Column.datetime),