getAllProgress method
Fetch all progress rows for the current user (across all domains).
Implementation
Future<List<UserTopicProgressModel>> getAllProgress() async {
final userId = _client.auth.currentUser?.id;
if (userId == null) return [];
final response = await _client
.from('user_topic_progress')
.select()
.eq('user_id', userId);
return (response as List<dynamic>)
.map(
(row) => UserTopicProgressModel.fromJson(row as Map<String, dynamic>),
)
.toList();
}