mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Use human readable name
This commit is contained in:
@@ -253,7 +253,7 @@ describe('analytics', function() {
|
|||||||
contributorLevel: 1,
|
contributorLevel: 1,
|
||||||
subscription: 'foo-plan',
|
subscription: 'foo-plan',
|
||||||
tutorialComplete: true,
|
tutorialComplete: true,
|
||||||
numberOfTasks: {
|
"Number Of Tasks": {
|
||||||
todos: 1,
|
todos: 1,
|
||||||
dailys: 1,
|
dailys: 1,
|
||||||
habits: 1,
|
habits: 1,
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ describe('Analytics Service', function () {
|
|||||||
contributorLevel: 1,
|
contributorLevel: 1,
|
||||||
subscription: 'unique-plan-id',
|
subscription: 'unique-plan-id',
|
||||||
tutorialComplete: true,
|
tutorialComplete: true,
|
||||||
numberOfTasks: {
|
"Number Of Tasks": {
|
||||||
todos: 1,
|
todos: 1,
|
||||||
dailys: 1,
|
dailys: 1,
|
||||||
habits: 1,
|
habits: 1,
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
properties.Mana = Math.floor(user.stats.mp);
|
properties.Mana = Math.floor(user.stats.mp);
|
||||||
}
|
}
|
||||||
properties.tutorialComplete = user.flags && user.flags.tour && user.flags.tour.intro === -2;
|
properties.tutorialComplete = user.flags && user.flags.tour && user.flags.tour.intro === -2;
|
||||||
properties.numberOfTasks = {
|
properties["Number Of Tasks"] = {
|
||||||
habits: user.habits.length,
|
habits: user.habits.length,
|
||||||
dailys: user.dailys.length,
|
dailys: user.dailys.length,
|
||||||
todos: user.todos.length,
|
todos: user.todos.length,
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ function _formatUserData(user) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
properties.tutorialComplete = user.flags && user.flags.tour && user.flags.tour.intro === -2;
|
properties.tutorialComplete = user.flags && user.flags.tour && user.flags.tour.intro === -2;
|
||||||
properties.numberOfTasks = {
|
properties["Number Of Tasks"] = {
|
||||||
habits: user.habits.length,
|
habits: user.habits.length,
|
||||||
dailys: user.dailys.length,
|
dailys: user.dailys.length,
|
||||||
todos: user.todos.length,
|
todos: user.todos.length,
|
||||||
|
|||||||
Reference in New Issue
Block a user