Skip to content

Commit

Permalink
Merge pull request #264 from pangeachat/analytics-notes
Browse files Browse the repository at this point in the history
Analytics-notes
  • Loading branch information
ggurdin authored May 29, 2024
2 parents 13b5711 + 7e6a252 commit 19350f5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
29 changes: 22 additions & 7 deletions lib/pangea/models/constructs_analytics_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,33 @@ class ConstructUses {
}

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,

/// used without assistance
wa,
/// produced in chat by user and igc was not run
unk,

/// selected correctly in IT flow
corIt,

/// encountered as it distractor and selected it
incIt,

/// encountered as IT distractor and correctly ignored it
ignIt,

/// encountered as it distractor and selected it
incIt,

/// encountered in igc match and ignored match
ignIGC,

/// encountered in igc match and ignored match
/// selected correctly in IGC flow
corIGC,

/// encountered as distractor in IGC flow and selected it
incIGC,
}

extension on ConstructUseType {
Expand All @@ -107,6 +114,10 @@ extension on ConstructUseType {
return 'ignIGC';
case ConstructUseType.corIGC:
return 'corIGC';
case ConstructUseType.incIGC:
return 'incIGC';
case ConstructUseType.unk:
return 'unk';
}
}

Expand All @@ -126,6 +137,10 @@ extension on ConstructUseType {
return Icons.close;
case ConstructUseType.corIGC:
return Icons.check;
case ConstructUseType.incIGC:
return Icons.close;
case ConstructUseType.unk:
return Icons.help;
}
}
}
Expand Down
7 changes: 6 additions & 1 deletion lib/pangea/models/headwords.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'dart:convert';
import 'dart:developer';

import 'package:fluffychat/pangea/models/constructs_analytics_model.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'package:fluffychat/pangea/models/constructs_analytics_model.dart';
import '../enum/vocab_proficiency_enum.dart';

class VocabHeadwords {
Expand Down Expand Up @@ -176,6 +176,11 @@ class VocabTotals {
case ConstructUseType.corIGC:
corIt++;
break;
case ConstructUseType.incIGC:
incIt++;
break;
case ConstructUseType.unk:
break;
}
}
}
Expand Down

0 comments on commit 19350f5

Please sign in to comment.