The issue involves a complex sidebar rendering bug that appears to be related to record counts and requires deep understanding of the framework.
The sidebar becomes blank after reloading on some pages, particularly affecting Doctypes with higher record counts. The issue seems to be rooted in the framework's deep architecture, making it challenging to pinpoint and fix without extensive knowledge of the codebase.
This bug was observed after I created an app, added 5 Doctypes, created a Workspace Sidebar, and added 5 sidebar items, each pointing to one Doctype.
I found that 3 of them have this issue, while the other 2 work correctly.
After detailed testing, I found the following record counts:
Doctypes 1, 2, and 4 exhibit the issue, while Doctypes 3 and 5 do not.
It appears that the top 3 Doctypes with the most records are affected.
I also noticed that Frappe’s default sidebars have the same issue.
Therefore, in the reproduction steps below, I use the Frappe framework itself as the example.
Output of bench version
bench --version
5.29.0
Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!