dashboard next: caching, mobile support and new charts
This commit is contained in:
@@ -7,7 +7,7 @@ acceptance("Dashboard Next", {
|
||||
loggedIn: true
|
||||
});
|
||||
|
||||
QUnit.test("Vist dashboard next page", assert => {
|
||||
QUnit.test("Visit dashboard next page", assert => {
|
||||
visit("/admin/dashboard-next");
|
||||
|
||||
andThen(() => {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
export default {
|
||||
"/admin/reports/daily_engaged_users": {
|
||||
"report": {
|
||||
"type": "daily_engaged_users",
|
||||
"title": "Daily Engaged Users",
|
||||
"xaxis": "Day",
|
||||
"yaxis": "Engaged Users",
|
||||
"description": "Number of users that have liked or posted in the last day",
|
||||
"data": null,
|
||||
"total": null,
|
||||
"start_date": "2018-04-03",
|
||||
"end_date": "2018-05-03",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": null,
|
||||
"labels": null
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -1,139 +1,6 @@
|
||||
export default {
|
||||
"/admin/dashboard-next.json": {
|
||||
"global_reports": [{
|
||||
"type": "signups",
|
||||
"title": "New Users",
|
||||
"xaxis": "Day",
|
||||
"yaxis": "Number of new users",
|
||||
"data": [{
|
||||
"x": "2018-04-11",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-12",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-13",
|
||||
"y": 58
|
||||
}, {
|
||||
"x": "2018-04-15",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-16",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-17",
|
||||
"y": 19
|
||||
}, {
|
||||
"x": "2018-04-19",
|
||||
"y": 19
|
||||
}],
|
||||
"total": 136,
|
||||
"start_date": "2018-03-26T00:00:00.000Z",
|
||||
"end_date": "2018-04-25T23:59:59.999Z",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": 0,
|
||||
"labels": null
|
||||
}, {
|
||||
"type": "topics",
|
||||
"title": "Topics",
|
||||
"xaxis": "Day",
|
||||
"yaxis": "Number of new topics",
|
||||
"data": [{
|
||||
"x": "2018-04-11",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-12",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-13",
|
||||
"y": 60
|
||||
}, {
|
||||
"x": "2018-04-15",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-16",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-17",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-19",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-20",
|
||||
"y": 1
|
||||
}],
|
||||
"total": 121,
|
||||
"start_date": "2018-03-26T00:00:00.000Z",
|
||||
"end_date": "2018-04-25T23:59:59.999Z",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": 0,
|
||||
"labels": null
|
||||
}, {
|
||||
"type": "trending_search",
|
||||
"title": "Trending search",
|
||||
"xaxis": "translation missing: en.reports.trending_search.xaxis",
|
||||
"yaxis": "translation missing: en.reports.trending_search.yaxis",
|
||||
"data": [
|
||||
["lon", 3, 1],
|
||||
["pub", 1, 1],
|
||||
["something", 1, 1]
|
||||
],
|
||||
"total": null,
|
||||
"start_date": "2018-03-26T00:00:00.000Z",
|
||||
"end_date": "2018-04-25T23:59:59.999Z",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": null,
|
||||
"labels": ["Term", "Searches", "Unique"]
|
||||
}],
|
||||
"user_reports": [{
|
||||
"type": "users_by_trust_level",
|
||||
"title": "Users per Trust Level",
|
||||
"xaxis": "Trust Level",
|
||||
"yaxis": "Number of Users",
|
||||
"data": [{
|
||||
"x": 0,
|
||||
"y": 132
|
||||
}, {
|
||||
"x": 1,
|
||||
"y": 1
|
||||
}, {
|
||||
"x": 3,
|
||||
"y": 1
|
||||
}, {
|
||||
"x": 2,
|
||||
"y": 1
|
||||
}, {
|
||||
"x": 4,
|
||||
"y": 1
|
||||
}],
|
||||
"total": null,
|
||||
"start_date": "2018-03-26T00:00:00.000Z",
|
||||
"end_date": "2018-04-25T23:59:59.999Z",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": null,
|
||||
"labels": null
|
||||
}, {
|
||||
"type": "users_by_type",
|
||||
"title": "Users per Type",
|
||||
"xaxis": "Type",
|
||||
"yaxis": "Number of Users",
|
||||
"data": [{
|
||||
"x": "Admin",
|
||||
"y": 1
|
||||
}],
|
||||
"total": null,
|
||||
"start_date": "2018-03-26T00:00:00.000Z",
|
||||
"end_date": "2018-04-25T23:59:59.999Z",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": null,
|
||||
"labels": null
|
||||
}],
|
||||
"reports": [],
|
||||
"last_backup_taken_at": "2018-04-13T12:51:19.926Z",
|
||||
"updated_at": "2018-04-25T08:06:11.292Z",
|
||||
"disk_space": {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
export default {
|
||||
"/admin/reports/dau_by_mau": {
|
||||
"report": {
|
||||
"type": "dau_by_mau",
|
||||
"title": "DAU/MAU",
|
||||
"xaxis": "Day",
|
||||
"yaxis": "DAU/MAY",
|
||||
"description": "Percentage of daily active users on monthly active users",
|
||||
"data": null,
|
||||
"total": null,
|
||||
"start_date": "2018-01-26T00:00:00.000Z",
|
||||
"end_date": "2018-04-27T23:59:59.999Z",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": 46,
|
||||
"labels": null
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
export default {
|
||||
"/admin/reports/inactive_users": {
|
||||
"report": {
|
||||
"type": "inactive_users",
|
||||
"title": "Inactive Users",
|
||||
"xaxis": "Day",
|
||||
"yaxis": "Number of new inactive users",
|
||||
"description": "Number of users that haven’t logged on for the last 3 months",
|
||||
"data": null,
|
||||
"total": null,
|
||||
"start_date": "2018-04-26",
|
||||
"end_date": "2018-05-03",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": null,
|
||||
"labels": null
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -5,38 +5,8 @@ export default {
|
||||
"title": "Topics",
|
||||
"xaxis": "Day",
|
||||
"yaxis": "Number of new topics",
|
||||
"data": [{
|
||||
"x": "2018-04-11",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-12",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-13",
|
||||
"y": 60
|
||||
}, {
|
||||
"x": "2018-04-14",
|
||||
"y": 60
|
||||
}, {
|
||||
"x": "2018-04-15",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-16",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-17",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-19",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-18",
|
||||
"y": 10
|
||||
}, {
|
||||
"x": "2018-04-20",
|
||||
"y": 1
|
||||
}],
|
||||
"total": 121,
|
||||
"data": null,
|
||||
"total": null,
|
||||
"start_date": "2018-03-26T00:00:00.000Z",
|
||||
"end_date": "2018-04-25T23:59:59.999Z",
|
||||
"category_id": null,
|
||||
|
||||
@@ -5,11 +5,7 @@ export default {
|
||||
"title": "Trending search",
|
||||
"xaxis": "",
|
||||
"yaxis": "",
|
||||
"data": [
|
||||
["lon", 3, 1],
|
||||
["pub", 1, 1],
|
||||
["something", 1, 1]
|
||||
],
|
||||
"data": null,
|
||||
"total": null,
|
||||
"start_date": "2018-03-26T00:00:00.000Z",
|
||||
"end_date": "2018-04-25T23:59:59.999Z",
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
export default {
|
||||
"/admin/reports/users_by_trust_level": {
|
||||
"report": {
|
||||
"type": "users_by_trust_level",
|
||||
"title": "Users per Trust Level",
|
||||
"xaxis": "Trust Level",
|
||||
"yaxis": "Number of Users",
|
||||
"description": "translation missing: en.reports.users_by_trust_level.description",
|
||||
"data": null,
|
||||
"total": null,
|
||||
"start_date": "2018-03-30T00:00:00.000Z",
|
||||
"end_date": "2018-04-29T23:59:59.999Z",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": null,
|
||||
"labels": null
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
export default {
|
||||
"/admin/reports/users_by_type": {
|
||||
"report": {
|
||||
"type": "users_by_type",
|
||||
"title": "Users per Type",
|
||||
"xaxis": "Type",
|
||||
"yaxis": "Number of Users",
|
||||
"description": "translation missing: en.reports.users_by_type.description",
|
||||
"data": null,
|
||||
"total": null,
|
||||
"start_date": "2018-03-30T00:00:00.000Z",
|
||||
"end_date": "2018-04-29T23:59:59.999Z",
|
||||
"category_id": null,
|
||||
"group_id": null,
|
||||
"prev30Days": null,
|
||||
"labels": null
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user