getSeenTooltips method
Read the set of tooltip keys the user has already dismissed. Returns an empty set if the column is unset or empty.
Implementation
Future<Set<String>> getSeenTooltips() async {
final userId = _client.auth.currentUser?.id;
if (userId == null) return <String>{};
final row = await _client
.from('profiles')
.select('seen_tooltips')
.eq('id', userId)
.maybeSingle();
if (row == null) return <String>{};
final raw = row['seen_tooltips'] as Map<String, dynamic>? ?? {};
return raw.keys.toSet();
}