Skip to content

Commit

Permalink
Merge pull request #683 from hpi-studyu/fix/app-debug-screen
Browse files Browse the repository at this point in the history
fix: App Debug Screen & Result history
  • Loading branch information
johannesvedder authored Sep 5, 2024
2 parents 0c8423c + 65cf8a4 commit 927e1b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions app/lib/screens/study/dashboard/dashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ class _DashboardScreenState extends State<DashboardScreen>
);
launchUrl(emailLaunchUri);
},
// text color is white, so we need to set the background color to black
style: ElevatedButton.styleFrom(
backgroundColor:
Theme.of(context).primaryColor,
),
child: const Text('Send via email'),
),
FutureBuilder<bool>(
Expand All @@ -203,9 +208,6 @@ class _DashboardScreenState extends State<DashboardScreen>
if (snapshot.hasData) {
final String data =
"ignoreBatteryOptimizations: ${snapshot.data}";
StudyNotifications
.scheduledNotificationsDebug =
"${StudyNotifications.scheduledNotificationsDebug}\n\n$data\n";
return Text(data);
} else {
return const CircularProgressIndicator();
Expand All @@ -214,7 +216,8 @@ class _DashboardScreenState extends State<DashboardScreen>
),
SelectableText(
StudyNotifications
.scheduledNotificationsDebug!,
.scheduledNotificationsDebug ??
'No data',
),
],
),
Expand Down
3 changes: 2 additions & 1 deletion core/lib/src/models/tables/study_subject.dart
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ class StudySubject extends SupabaseObjectFunctions<StudySubject> {
return SupabaseQuery.extractSupabaseList<StudySubject>(
await env.client
.from(tableName)
.select('*,study!study_subject_studyId_fkey(*),subject_progress(*)'),
.select('*,study!study_subject_studyId_fkey(*),subject_progress(*)')
.eq('user_id', userId),
);
}

Expand Down

0 comments on commit 927e1b3

Please sign in to comment.