* Push Notification Setup and attempt

* Office Ordering
* Allow editing of Task and Ticket Details after creation
This commit is contained in:
2026-02-24 21:06:46 +08:00
parent cc6fda0e79
commit 5979a04254
25 changed files with 1130 additions and 91 deletions
+12 -4
View File
@@ -163,9 +163,13 @@ class _TeamsScreenState extends ConsumerState<TeamsScreen> {
TasQColumn<Team>(
header: 'Offices',
cellBuilder: (context, team) {
final officeNames = team.officeIds
final officeNamesList = team.officeIds
.map((id) => officeById[id]?.name ?? id)
.join(', ');
.toList();
officeNamesList.sort(
(a, b) => a.toLowerCase().compareTo(b.toLowerCase()),
);
final officeNames = officeNamesList.join(', ');
return Text(officeNames);
},
),
@@ -182,9 +186,13 @@ class _TeamsScreenState extends ConsumerState<TeamsScreen> {
],
mobileTileBuilder: (context, team, actions) {
final leader = profileById[team.leaderId];
final officeNames = team.officeIds
final officeNamesList = team.officeIds
.map((id) => officeById[id]?.name ?? id)
.join(', ');
.toList();
officeNamesList.sort(
(a, b) => a.toLowerCase().compareTo(b.toLowerCase()),
);
final officeNames = officeNamesList.join(', ');
final members = team.members(teamMembers);
final memberNames = members
.map((id) => profileById[id]?.fullName ?? id)