-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match Announcer Page, UI Touchups & Permission Patch (#184)
* Bug fix for match controller (can load match even when it's complete) * dashboard ui update (badges & groupings) * Cleaned up permission system & added match announcer page
- Loading branch information
Showing
67 changed files
with
783 additions
and
415 deletions.
There are no files selected for viewing
This file contains 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
File renamed without changes
File renamed without changes
This file contains 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
This file contains 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
Binary file modified
BIN
+14 Bytes
(100%)
tms_client/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+71 Bytes
(110%)
tms_client/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-333 Bytes
(83%)
tms_client/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-171 Bytes
(92%)
tms_client/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+138 Bytes
(100%)
tms_client/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+40 Bytes
(100%)
tms_client/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+58 Bytes
(110%)
tms_client/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+18 Bytes
(100%)
tms_client/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+234 Bytes
(120%)
tms_client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-33 Bytes
(98%)
tms_client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions
8
tms_client/assets/logos/T_LOGO.svg → tms_client/assets/logos/T_LOGO_PADDED.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.43 KB
(140%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9 Bytes
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-17 Bytes
(96%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+16 Bytes
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+32 Bytes
(110%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+46 Bytes
(110%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-17 Bytes
(96%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+18 Bytes
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+45 Bytes
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+10 Bytes
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-32 Bytes
(97%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+14 Bytes
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-37 Bytes
(96%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+45 Bytes
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-21 Bytes
(97%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-46 Bytes
(96%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-35 Bytes
(95%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-34 Bytes
(97%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+9 Bytes
(100%)
tms_client/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
126 changes: 126 additions & 0 deletions
126
tms_client/lib/views/dashboard/integrity_overview/integrity_message_tile.dart
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:tms/generated/infra/database_schemas/tournament_integrity_message.dart'; | ||
import 'package:tms/widgets/expandable/expandable_tile.dart'; | ||
import 'package:tms/widgets/integrity_checks/icon_tooltip_integrity_check.dart'; | ||
|
||
class IntegrityMessageTile extends StatelessWidget { | ||
final List<TournamentIntegrityMessage> messages; | ||
final ExpansionController _expansionController = ExpansionController(isExpanded: false); | ||
|
||
IntegrityMessageTile({ | ||
Key? key, | ||
required this.messages, | ||
}) : super(key: key); | ||
|
||
Widget _tile(BuildContext context, TournamentIntegrityMessage m) { | ||
return ListTile( | ||
leading: IconTooltipIntegrityCheck(messages: [m]), | ||
title: Text( | ||
m.integrityCode.getMessage(), | ||
overflow: TextOverflow.ellipsis, | ||
), | ||
subtitle: Row( | ||
children: [ | ||
// code | ||
Text( | ||
m.integrityCode.getStringifiedCode(), | ||
style: TextStyle( | ||
fontWeight: FontWeight.bold, | ||
color: m.integrityCode.when( | ||
error: (_) => Colors.red, | ||
warning: (_) => Colors.orange, | ||
), | ||
), | ||
), | ||
// team (if applicable) | ||
if (m.teamNumber != null) ...[ | ||
const SizedBox(width: 10), | ||
Text( | ||
"Team ${m.teamNumber}", | ||
style: const TextStyle( | ||
fontStyle: FontStyle.italic, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
], | ||
// match (if applicable) | ||
if (m.matchNumber != null) ...[ | ||
const SizedBox(width: 10), | ||
Text( | ||
"Match ${m.matchNumber}", | ||
style: const TextStyle( | ||
fontStyle: FontStyle.italic, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
], | ||
// session (if applicable) | ||
if (m.sessionNumber != null) ...[ | ||
const SizedBox(width: 10), | ||
Text( | ||
"Session ${m.sessionNumber}", | ||
style: const TextStyle( | ||
fontStyle: FontStyle.italic, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
], | ||
], | ||
), | ||
); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
if (messages.length > 1) { | ||
return Badge.count( | ||
count: messages.length, | ||
backgroundColor: Colors.red, | ||
child: ExpandableTile( | ||
controller: _expansionController, | ||
header: Padding( | ||
padding: const EdgeInsets.all(15), | ||
child: Row( | ||
children: [ | ||
IconTooltipIntegrityCheck(messages: messages), | ||
const SizedBox(width: 10), | ||
// code | ||
Text( | ||
messages.first.integrityCode.getStringifiedCode(), | ||
style: TextStyle( | ||
fontWeight: FontWeight.bold, | ||
color: messages.first.integrityCode.when( | ||
error: (_) => Colors.red, | ||
warning: (_) => Colors.orange, | ||
), | ||
), | ||
), | ||
const SizedBox(width: 10), | ||
Text( | ||
messages.first.integrityCode.getMessage(), | ||
style: const TextStyle(fontSize: 16), | ||
), | ||
const Spacer(), | ||
ValueListenableBuilder( | ||
valueListenable: _expansionController, | ||
builder: (context, isExpanded, _) { | ||
return Icon( | ||
isExpanded ? Icons.keyboard_arrow_up : Icons.keyboard_arrow_down, | ||
); | ||
}, | ||
), | ||
], | ||
), | ||
), | ||
body: Column( | ||
children: messages.map((m) => _tile(context, m)).toList(), | ||
), | ||
), | ||
); | ||
} else if (messages.isNotEmpty) { | ||
return _tile(context, messages.first); | ||
} else { | ||
return const SizedBox(); | ||
} | ||
} | ||
} |
Oops, something went wrong.