Merge pull request #35773 from sokumon/workspace-sidebar

This commit is contained in:
Soham Kulkarni 2026-01-08 22:05:22 +05:30 committed by GitHub
commit 3d0cb00c43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 47 additions and 14 deletions

View file

@ -11,7 +11,8 @@
"app",
"for_user",
"items",
"module"
"module",
"standard"
],
"fields": [
{
@ -49,12 +50,18 @@
"fieldtype": "Text",
"hidden": 1,
"label": "Module"
},
{
"default": "0",
"fieldname": "standard",
"fieldtype": "Check",
"label": "Standard"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-12-10 20:20:26.518699",
"modified": "2026-01-08 14:06:28.659782",
"modified_by": "Administrator",
"module": "Desk",
"name": "Workspace Sidebar",

View file

@ -29,6 +29,7 @@ class WorkspaceSidebar(Document):
for_user: DF.Link | None
items: DF.Table[WorkspaceSidebarItem]
module: DF.Text | None
standard: DF.Check
title: DF.Data | None
# end: auto-generated types

View file

@ -446,7 +446,8 @@
bottom: 4%;
right: 4%;
z-index: 100;
opacity: 0.5;
opacity: 6%;
border-radius: 10px;
}
.desktop-edit:hover{

View file

@ -253,3 +253,4 @@ frappe.patches.v16_0.add_private_workspaces_to_sidebar
frappe.core.doctype.communication_link.patches.copy_communication_date_to_link
frappe.core.doctype.communication.patches.drop_ref_dt_dn_index
frappe.patches.v16_0.change_link_type_to_workspace_sidebar
frappe.patches.v16_0.add_standard_field_in_workspace_sidebar

View file

@ -0,0 +1,12 @@
import frappe
from frappe.model.sync import check_if_record_exists
def execute():
for sidebar in frappe.get_all("Workspace Sidebar", pluck="name"):
sidebar_doc = frappe.get_doc("Workspace Sidebar", sidebar)
if sidebar_doc.app and check_if_record_exists(
"app", frappe.get_app_path(sidebar_doc.app), "Workspace Sidebar", sidebar_doc.name
):
sidebar_doc.standard = 1
sidebar_doc.save()

View file

@ -67,10 +67,11 @@
"type": "Link"
}
],
"modified": "2025-11-25 10:46:09.343679",
"modified": "2026-01-08 14:16:38.557529",
"modified_by": "Administrator",
"module": "Automation",
"name": "Automation",
"owner": "Administrator",
"standard": 1,
"title": "Automation"
}

View file

@ -157,10 +157,11 @@
"type": "Link"
}
],
"modified": "2025-11-25 10:46:09.743753",
"modified": "2026-01-08 14:16:38.951231",
"modified_by": "Administrator",
"module": "Core",
"name": "Build",
"owner": "Administrator",
"standard": 1,
"title": "Build"
}

View file

@ -67,10 +67,11 @@
"type": "Link"
}
],
"modified": "2025-11-25 10:46:09.376260",
"modified": "2026-01-08 14:16:38.613338",
"modified_by": "Administrator",
"module": "Core",
"name": "Data",
"owner": "Administrator",
"standard": 1,
"title": "Data"
}

View file

@ -79,10 +79,11 @@
"type": "Link"
}
],
"modified": "2025-11-25 10:46:09.687081",
"modified": "2026-01-08 14:16:38.914482",
"modified_by": "Administrator",
"module": "Email",
"name": "Email",
"owner": "Administrator",
"standard": 1,
"title": "Email"
}

View file

@ -149,10 +149,11 @@
"type": "Link"
}
],
"modified": "2025-12-29 23:46:47.024937",
"modified": "2026-01-08 14:16:38.339024",
"modified_by": "Administrator",
"module": "Integrations",
"name": "Integrations",
"owner": "Administrator",
"standard": 1,
"title": "Integrations"
}

View file

@ -6,9 +6,10 @@
"header_icon": "user-round",
"idx": 0,
"items": [],
"modified": "2025-11-25 10:46:09.369233",
"modified": "2026-01-08 14:16:38.600691",
"modified_by": "Administrator",
"name": "My Workspaces",
"owner": "Administrator",
"standard": 1,
"title": "My Workspaces"
}

View file

@ -55,10 +55,11 @@
"type": "Link"
}
],
"modified": "2025-11-25 10:46:09.371604",
"modified": "2026-01-08 14:16:38.605839",
"modified_by": "Administrator",
"module": "Printing",
"name": "Printing",
"owner": "Administrator",
"standard": 1,
"title": "Printing"
}

View file

@ -55,10 +55,11 @@
"type": "Link"
}
],
"modified": "2025-11-25 16:54:34.049137",
"modified": "2026-01-08 14:16:38.622012",
"modified_by": "Administrator",
"module": "Desk",
"name": "Productivity",
"owner": "Administrator",
"standard": 1,
"title": "Productivity"
}

View file

@ -226,10 +226,11 @@
"type": "Link"
}
],
"modified": "2025-11-25 10:46:09.401204",
"modified": "2026-01-08 14:16:38.658526",
"modified_by": "Administrator",
"module": "Core",
"name": "System",
"owner": "Administrator",
"standard": 1,
"title": "System"
}

View file

@ -135,10 +135,11 @@
"type": "Link"
}
],
"modified": "2025-11-25 10:46:09.392824",
"modified": "2026-01-08 14:16:38.644051",
"modified_by": "Administrator",
"module": "Core",
"name": "Users",
"owner": "Administrator",
"standard": 1,
"title": "Users"
}

View file

@ -101,10 +101,11 @@
"type": "Link"
}
],
"modified": "2025-11-25 10:46:09.386543",
"modified": "2026-01-08 14:16:38.631875",
"modified_by": "Administrator",
"module": "Website",
"name": "Website",
"owner": "Administrator",
"standard": 1,
"title": "Website"
}