Merge pull request #35835 from sokumon/workspace-cleanup
This commit is contained in:
commit
a7dfcefe86
15 changed files with 294 additions and 109 deletions
|
|
@ -13,8 +13,8 @@
|
|||
"idx": 0,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"last_synced_on": "2025-10-30 21:36:33.646973",
|
||||
"modified": "2025-10-30 21:37:11.340673",
|
||||
"last_synced_on": "2026-01-12 00:01:03.263885",
|
||||
"modified": "2026-01-12 00:03:10.123061",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Background Job Activity",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"based_on": "",
|
||||
"chart_name": "Notifications By Type",
|
||||
"chart_type": "Group By",
|
||||
"creation": "2025-09-08 12:07:04.576729",
|
||||
"currency": "",
|
||||
"docstatus": 0,
|
||||
"doctype": "Dashboard Chart",
|
||||
"document_type": "Notification Log",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[]",
|
||||
"group_by_based_on": "type",
|
||||
"group_by_type": "Count",
|
||||
"idx": 0,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"last_synced_on": "2026-01-12 00:01:03.245282",
|
||||
"modified": "2026-01-12 00:02:23.444272",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Notifications By Type",
|
||||
"number_of_groups": 0,
|
||||
"owner": "Administrator",
|
||||
"parent_document_type": "",
|
||||
"roles": [],
|
||||
"show_values_over_chart": 0,
|
||||
"source": "",
|
||||
"time_interval": "Yearly",
|
||||
"timeseries": 0,
|
||||
"timespan": "Last Year",
|
||||
"type": "Pie",
|
||||
"use_report_chart": 0,
|
||||
"value_based_on": "",
|
||||
"y_axis": []
|
||||
}
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"aggregate_function_based_on": "",
|
||||
"creation": "2026-01-11 23:59:34.870238",
|
||||
"currency": "INR",
|
||||
"docstatus": 0,
|
||||
"doctype": "Number Card",
|
||||
"document_type": "RQ Worker",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[]",
|
||||
"function": "Count",
|
||||
"idx": 0,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"label": "Active RQ Worker",
|
||||
"modified": "2026-01-11 23:59:34.870238",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Active RQ Worker",
|
||||
"owner": "Administrator",
|
||||
"parent_document_type": "",
|
||||
"report_function": "Sum",
|
||||
"show_full_number": 0,
|
||||
"show_percentage_stats": 1,
|
||||
"stats_time_interval": "Daily",
|
||||
"type": "Document Type"
|
||||
}
|
||||
27
frappe/core/number_card/error_logs/error_logs.json
Normal file
27
frappe/core/number_card/error_logs/error_logs.json
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"aggregate_function_based_on": "",
|
||||
"color": "#CB2929",
|
||||
"creation": "2026-01-11 23:49:55.987084",
|
||||
"currency": "INR",
|
||||
"docstatus": 0,
|
||||
"doctype": "Number Card",
|
||||
"document_type": "Error Log",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[]",
|
||||
"function": "Count",
|
||||
"idx": 0,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"label": "Error Logs",
|
||||
"modified": "2026-01-11 23:56:36.628717",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Error Logs",
|
||||
"owner": "Administrator",
|
||||
"parent_document_type": "",
|
||||
"report_function": "Sum",
|
||||
"show_full_number": 0,
|
||||
"show_percentage_stats": 1,
|
||||
"stats_time_interval": "Daily",
|
||||
"type": "Document Type"
|
||||
}
|
||||
26
frappe/core/number_card/scheduled_jobs/scheduled_jobs.json
Normal file
26
frappe/core/number_card/scheduled_jobs/scheduled_jobs.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"aggregate_function_based_on": "",
|
||||
"creation": "2026-01-11 23:55:30.429516",
|
||||
"currency": "INR",
|
||||
"docstatus": 0,
|
||||
"doctype": "Number Card",
|
||||
"document_type": "Scheduled Job Type",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[]",
|
||||
"function": "Count",
|
||||
"idx": 0,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"label": "Scheduled Jobs",
|
||||
"modified": "2026-01-11 23:55:30.429516",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Scheduled Jobs",
|
||||
"owner": "Administrator",
|
||||
"parent_document_type": "",
|
||||
"report_function": "Sum",
|
||||
"show_full_number": 0,
|
||||
"show_percentage_stats": 1,
|
||||
"stats_time_interval": "Daily",
|
||||
"type": "Document Type"
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
"label": "Notification Summary"
|
||||
}
|
||||
],
|
||||
"content": "[{\"id\":\"-bxX6Dwxxy\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Background Job Activity\",\"col\":12}},{\"id\":\"gccD2r7Ut3\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Notification Summary\",\"col\":12}}]",
|
||||
"content": "[{\"id\":\"-bxX6Dwxxy\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Background Job Activity\",\"col\":12}},{\"id\":\"_U6-GCce9y\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Today's Error Count\",\"col\":4}},{\"id\":\"O8uXg3zzF1\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Scheduled Jobs\",\"col\":4}},{\"id\":\"i8x_VBbG5v\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Active Workers\",\"col\":4}},{\"id\":\"gccD2r7Ut3\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Notification Summary\",\"col\":12}}]",
|
||||
"creation": "2025-09-08 11:33:57.533875",
|
||||
"custom_blocks": [],
|
||||
"docstatus": 0,
|
||||
|
|
@ -24,11 +24,24 @@
|
|||
"label": "System",
|
||||
"link_type": "DocType",
|
||||
"links": [],
|
||||
"modified": "2025-10-30 18:22:58.416219",
|
||||
"modified": "2026-01-12 00:03:31.031145",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "System",
|
||||
"number_cards": [],
|
||||
"number_cards": [
|
||||
{
|
||||
"label": "Today's Error Count",
|
||||
"number_card_name": "Error Logs"
|
||||
},
|
||||
{
|
||||
"label": "Scheduled Jobs",
|
||||
"number_card_name": "Scheduled Jobs"
|
||||
},
|
||||
{
|
||||
"label": "Active Workers",
|
||||
"number_card_name": "Active RQ Worker"
|
||||
}
|
||||
],
|
||||
"owner": "Administrator",
|
||||
"parent_page": "",
|
||||
"public": 1,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
{
|
||||
"charts": [],
|
||||
"content": "[{\"id\":\"b7abeqw4NZ\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"User\",\"col\":3}},{\"id\":\"eghSJPhZRC\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Role\",\"col\":3}},{\"id\":\"uAzl_lT_C0\",\"type\":\"shortcut\",\"data\":{\"shortcut_name\":\"Permission Manager\",\"col\":3}},{\"id\":\"oFB4l28FMU\",\"type\":\"spacer\",\"data\":{\"col\":12}},{\"id\":\"NMpIkExl3i\",\"type\":\"card\",\"data\":{\"card_name\":\"Users\",\"col\":4}},{\"id\":\"VepG3durKm\",\"type\":\"card\",\"data\":{\"card_name\":\"Logs\",\"col\":4}},{\"id\":\"S9FeWt7xXE\",\"type\":\"card\",\"data\":{\"card_name\":\"Permissions\",\"col\":4}}]",
|
||||
"app": "frappe",
|
||||
"charts": [
|
||||
{
|
||||
"chart_name": "Login",
|
||||
"label": "Login Activity"
|
||||
}
|
||||
],
|
||||
"content": "[{\"id\":\"T_8h_1kB6j\",\"type\":\"chart\",\"data\":{\"chart_name\":\"Login Activity\",\"col\":12}},{\"id\":\"Y9G8gIH9lP\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"System Users\",\"col\":4}},{\"id\":\"78JTmWaYfY\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Website Users\",\"col\":4}},{\"id\":\"vAh1zw5jLk\",\"type\":\"number_card\",\"data\":{\"number_card_name\":\"Failed Login Attempts\",\"col\":4}}]",
|
||||
"creation": "2020-03-02 15:12:16.754449",
|
||||
"custom_blocks": [],
|
||||
"docstatus": 0,
|
||||
|
|
@ -12,14 +18,6 @@
|
|||
"is_hidden": 0,
|
||||
"label": "Users",
|
||||
"links": [
|
||||
{
|
||||
"hidden": 0,
|
||||
"is_query_report": 0,
|
||||
"label": "Logs",
|
||||
"link_count": 0,
|
||||
"onboard": 0,
|
||||
"type": "Card Break"
|
||||
},
|
||||
{
|
||||
"dependencies": "",
|
||||
"hidden": 0,
|
||||
|
|
@ -42,14 +40,6 @@
|
|||
"onboard": 0,
|
||||
"type": "Link"
|
||||
},
|
||||
{
|
||||
"hidden": 0,
|
||||
"is_query_report": 0,
|
||||
"label": "Permissions",
|
||||
"link_count": 0,
|
||||
"onboard": 0,
|
||||
"type": "Card Break"
|
||||
},
|
||||
{
|
||||
"dependencies": "",
|
||||
"hidden": 0,
|
||||
|
|
@ -105,65 +95,26 @@
|
|||
"onboard": 0,
|
||||
"report_ref_doctype": "DocShare",
|
||||
"type": "Link"
|
||||
},
|
||||
{
|
||||
"hidden": 0,
|
||||
"is_query_report": 0,
|
||||
"label": "Users",
|
||||
"link_count": 4,
|
||||
"link_type": "DocType",
|
||||
"onboard": 0,
|
||||
"type": "Card Break"
|
||||
},
|
||||
{
|
||||
"dependencies": "",
|
||||
"hidden": 0,
|
||||
"is_query_report": 0,
|
||||
"label": "User",
|
||||
"link_count": 0,
|
||||
"link_to": "User",
|
||||
"link_type": "DocType",
|
||||
"onboard": 0,
|
||||
"type": "Link"
|
||||
},
|
||||
{
|
||||
"dependencies": "",
|
||||
"hidden": 0,
|
||||
"is_query_report": 0,
|
||||
"label": "Role",
|
||||
"link_count": 0,
|
||||
"link_to": "Role",
|
||||
"link_type": "DocType",
|
||||
"onboard": 0,
|
||||
"type": "Link"
|
||||
},
|
||||
{
|
||||
"dependencies": "",
|
||||
"hidden": 0,
|
||||
"is_query_report": 0,
|
||||
"label": "Role Profile",
|
||||
"link_count": 0,
|
||||
"link_to": "Role Profile",
|
||||
"link_type": "DocType",
|
||||
"onboard": 0,
|
||||
"type": "Link"
|
||||
},
|
||||
{
|
||||
"hidden": 0,
|
||||
"is_query_report": 0,
|
||||
"label": "Module Profile",
|
||||
"link_count": 0,
|
||||
"link_to": "Module Profile",
|
||||
"link_type": "DocType",
|
||||
"onboard": 0,
|
||||
"type": "Link"
|
||||
}
|
||||
],
|
||||
"modified": "2024-08-19 11:48:35.908082",
|
||||
"modified": "2026-01-11 23:30:10.696298",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Users",
|
||||
"number_cards": [],
|
||||
"number_cards": [
|
||||
{
|
||||
"label": "Website Users",
|
||||
"number_card_name": "Total Website Users"
|
||||
},
|
||||
{
|
||||
"label": "System Users",
|
||||
"number_card_name": "Users"
|
||||
},
|
||||
{
|
||||
"label": "Failed Login Attempts",
|
||||
"number_card_name": "Failed Login Attempts"
|
||||
}
|
||||
],
|
||||
"owner": "Administrator",
|
||||
"parent_page": "",
|
||||
"public": 1,
|
||||
|
|
@ -171,26 +122,7 @@
|
|||
"restrict_to_domain": "",
|
||||
"roles": [],
|
||||
"sequence_id": 13.0,
|
||||
"shortcuts": [
|
||||
{
|
||||
"doc_view": "",
|
||||
"label": "User",
|
||||
"link_to": "User",
|
||||
"stats_filter": "[]",
|
||||
"type": "DocType"
|
||||
},
|
||||
{
|
||||
"doc_view": "",
|
||||
"label": "Role",
|
||||
"link_to": "Role",
|
||||
"stats_filter": "[]",
|
||||
"type": "DocType"
|
||||
},
|
||||
{
|
||||
"label": "Permission Manager",
|
||||
"link_to": "permission-manager",
|
||||
"type": "Page"
|
||||
}
|
||||
],
|
||||
"title": "Users"
|
||||
}
|
||||
"shortcuts": [],
|
||||
"title": "Users",
|
||||
"type": "Workspace"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"based_on": "communication_date",
|
||||
"chart_name": "Login Activity",
|
||||
"chart_type": "Count",
|
||||
"creation": "2025-08-28 16:48:49.946848",
|
||||
"currency": "INR",
|
||||
"docstatus": 0,
|
||||
"doctype": "Dashboard Chart",
|
||||
"document_type": "Activity Log",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[[\"Activity Log\",\"status\",\"=\",\"Success\",false]]",
|
||||
"group_by_type": "Count",
|
||||
"idx": 1,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"last_synced_on": "2026-01-11 23:34:36.361407",
|
||||
"modified": "2026-01-11 23:37:58.619758",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Desk",
|
||||
"name": "Login Activity",
|
||||
"number_of_groups": 0,
|
||||
"owner": "Administrator",
|
||||
"parent_document_type": "",
|
||||
"roles": [],
|
||||
"show_values_over_chart": 0,
|
||||
"source": "",
|
||||
"time_interval": "Daily",
|
||||
"timeseries": 1,
|
||||
"timespan": "Last Week",
|
||||
"type": "Line",
|
||||
"use_report_chart": 0,
|
||||
"value_based_on": "",
|
||||
"y_axis": []
|
||||
}
|
||||
|
|
@ -7,13 +7,13 @@
|
|||
"doctype": "Number Card",
|
||||
"document_type": "Activity Log",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[[\"Activity Log\",\"status\",\"=\",\"Failed\"]]",
|
||||
"filters_json": "[[\"Activity Log\",\"status\",\"=\",\"Failed\",false]]",
|
||||
"function": "Count",
|
||||
"idx": 0,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"label": "Failed Login Attempts",
|
||||
"modified": "2025-08-31 19:21:55.040453",
|
||||
"modified": "2026-01-11 23:37:25.824490",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Desk",
|
||||
"name": "Failed Login Attempts",
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@
|
|||
"doctype": "Number Card",
|
||||
"document_type": "Web Form",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[[\"Web Form\",\"published\",\"=\",1]]",
|
||||
"filters_json": "[[\"Web Form\",\"published\",\"=\",1,false]]",
|
||||
"function": "Count",
|
||||
"idx": 0,
|
||||
"idx": 1,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"label": "Published Web Forms",
|
||||
"modified": "2025-09-08 11:23:24.431998",
|
||||
"modified": "2026-01-11 23:36:48.565273",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Desk",
|
||||
"name": "Published Web Forms",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"aggregate_function_based_on": "",
|
||||
"creation": "2025-08-21 04:10:39.412970",
|
||||
"currency": "INR",
|
||||
"docstatus": 0,
|
||||
"doctype": "Number Card",
|
||||
"document_type": "User",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[[\"User\",\"user_type\",\"=\",\"Website User\"]]",
|
||||
"function": "Count",
|
||||
"idx": 1,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"label": "Total Website Users",
|
||||
"modified": "2026-01-11 23:37:03.758465",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Desk",
|
||||
"name": "Total Website Users",
|
||||
"owner": "Administrator",
|
||||
"parent_document_type": "",
|
||||
"report_function": "Sum",
|
||||
"show_full_number": 0,
|
||||
"show_percentage_stats": 1,
|
||||
"stats_time_interval": "Daily",
|
||||
"type": "Document Type"
|
||||
}
|
||||
27
frappe/desk/number_card/users/users.json
Normal file
27
frappe/desk/number_card/users/users.json
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"aggregate_function_based_on": "",
|
||||
"color": "#29CD42",
|
||||
"creation": "2025-08-21 01:13:53.957596",
|
||||
"currency": "INR",
|
||||
"docstatus": 0,
|
||||
"doctype": "Number Card",
|
||||
"document_type": "User",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[[\"User\",\"user_type\",\"=\",\"System User\",false]]",
|
||||
"function": "Count",
|
||||
"idx": 2,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"label": "Total System Users",
|
||||
"modified": "2026-01-11 23:37:07.673546",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Desk",
|
||||
"name": "Users",
|
||||
"owner": "Administrator",
|
||||
"parent_document_type": "",
|
||||
"report_function": "Sum",
|
||||
"show_full_number": 0,
|
||||
"show_percentage_stats": 1,
|
||||
"stats_time_interval": "Daily",
|
||||
"type": "Document Type"
|
||||
}
|
||||
|
|
@ -276,7 +276,7 @@ frappe.views.Workspace = class Workspace {
|
|||
if (!app && this._page.module) {
|
||||
app = frappe.boot.module_app[frappe.router.slug(this._page.module)];
|
||||
}
|
||||
this._page.module && this.sidebar.show_sidebar_for_module(this._page.module);
|
||||
// this._page.module && this.sidebar.show_sidebar_for_module(this._page.module);
|
||||
if (!app) app = "frappe";
|
||||
}
|
||||
|
||||
|
|
@ -778,7 +778,11 @@ frappe.views.Workspace = class Workspace {
|
|||
message: __("Saved"),
|
||||
indicator: "green",
|
||||
});
|
||||
frappe.set_route("desk", "private", page.title);
|
||||
if (page.public) {
|
||||
frappe.set_route("desk", page.title.toLowerCase());
|
||||
} else {
|
||||
frappe.set_route("desk", "private", page.title.toLowerCase());
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"based_on": "modified",
|
||||
"chart_name": "Webpage Views",
|
||||
"chart_type": "Count",
|
||||
"creation": "2025-09-04 11:09:27.279328",
|
||||
"currency": "",
|
||||
"docstatus": 0,
|
||||
"doctype": "Dashboard Chart",
|
||||
"document_type": "Web Page View",
|
||||
"dynamic_filters_json": "[]",
|
||||
"filters_json": "[]",
|
||||
"group_by_based_on": "owner",
|
||||
"group_by_type": "Sum",
|
||||
"idx": 0,
|
||||
"is_public": 0,
|
||||
"is_standard": 1,
|
||||
"last_synced_on": "2026-01-11 23:34:40.464683",
|
||||
"modified": "2026-01-11 23:39:02.985218",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Website",
|
||||
"name": "Webpage Views",
|
||||
"number_of_groups": 0,
|
||||
"owner": "Administrator",
|
||||
"parent_document_type": "",
|
||||
"roles": [],
|
||||
"show_values_over_chart": 0,
|
||||
"source": "",
|
||||
"time_interval": "Weekly",
|
||||
"timeseries": 1,
|
||||
"timespan": "Last Year",
|
||||
"type": "Line",
|
||||
"use_report_chart": 0,
|
||||
"value_based_on": "",
|
||||
"y_axis": []
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
"app": "frappe",
|
||||
"charts": [
|
||||
{
|
||||
"chart_name": "Web Page",
|
||||
"chart_name": "Webpage Views",
|
||||
"label": "Website Visits"
|
||||
}
|
||||
],
|
||||
|
|
@ -96,7 +96,7 @@
|
|||
"type": "Link"
|
||||
}
|
||||
],
|
||||
"modified": "2025-11-13 13:55:20.457550",
|
||||
"modified": "2026-01-11 23:42:31.758169",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Website",
|
||||
"name": "Website",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue