Merge pull request #264 from pangeachat/analytics-notes

Analytics-notes
pull/1183/head
ggurdin 1 year ago committed by GitHub
commit 19350f501d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -68,26 +68,33 @@ class ConstructUses {
} }
enum ConstructUseType { enum ConstructUseType {
/// encountered match and accepted it /// produced in chat by user, igc was run, and we've judged it to be a correct use
wa,
/// produced in chat by user, igc was run, and we've judged it to be a incorrect use
/// Note: if the IGC match is ignored, this is not counted as an incorrect use
ga, ga,
/// used without assistance /// produced in chat by user and igc was not run
wa, unk,
/// selected correctly in IT flow /// selected correctly in IT flow
corIt, corIt,
/// encountered as it distractor and selected it
incIt,
/// encountered as IT distractor and correctly ignored it /// encountered as IT distractor and correctly ignored it
ignIt, ignIt,
/// encountered as it distractor and selected it
incIt,
/// encountered in igc match and ignored match /// encountered in igc match and ignored match
ignIGC, ignIGC,
/// encountered in igc match and ignored match /// selected correctly in IGC flow
corIGC, corIGC,
/// encountered as distractor in IGC flow and selected it
incIGC,
} }
extension on ConstructUseType { extension on ConstructUseType {
@ -107,6 +114,10 @@ extension on ConstructUseType {
return 'ignIGC'; return 'ignIGC';
case ConstructUseType.corIGC: case ConstructUseType.corIGC:
return 'corIGC'; return 'corIGC';
case ConstructUseType.incIGC:
return 'incIGC';
case ConstructUseType.unk:
return 'unk';
} }
} }
@ -126,6 +137,10 @@ extension on ConstructUseType {
return Icons.close; return Icons.close;
case ConstructUseType.corIGC: case ConstructUseType.corIGC:
return Icons.check; return Icons.check;
case ConstructUseType.incIGC:
return Icons.close;
case ConstructUseType.unk:
return Icons.help;
} }
} }
} }

@ -1,10 +1,10 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:developer'; import 'dart:developer';
import 'package:fluffychat/pangea/models/constructs_analytics_model.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:fluffychat/pangea/models/constructs_analytics_model.dart';
import '../enum/vocab_proficiency_enum.dart'; import '../enum/vocab_proficiency_enum.dart';
class VocabHeadwords { class VocabHeadwords {
@ -176,6 +176,11 @@ class VocabTotals {
case ConstructUseType.corIGC: case ConstructUseType.corIGC:
corIt++; corIt++;
break; break;
case ConstructUseType.incIGC:
incIt++;
break;
case ConstructUseType.unk:
break;
} }
} }
} }

Loading…
Cancel
Save