Skip to content

feat: Add Buzz workspace dashboard with charts and cards - #314

Merged
harshtandiya merged 1 commit into
mainfrom
backport-313-to-main
Aug 3, 2026
Merged

feat: Add Buzz workspace dashboard with charts and cards#314
harshtandiya merged 1 commit into
mainfrom
backport-313-to-main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #313 to main.

* feat(events): populate Buzz workspace with cards, chart and shortcuts
The Buzz workspace shipped empty ("content": "[]") even though hooks.py
points the apps screen at /app/buzz, so every site installing buzz landed
on a blank page.
Add two standard Number Cards (Total Events, Active Events) and a
standard "Events by Category" Group By chart under the Events module.
Being standard + module-scoped, they are picked up by sync_dashboards()
on both install_app and bench migrate, so any site that installs buzz
gets them without extra hooks or fixtures.
Wire them into the workspace along with three shortcuts: two URL
shortcuts that prefill the category on the new-event form, and a plain
New Event shortcut. Shortcuts cannot carry route options, so prefilling
has to go through the URL form.
Active Events uses dynamic_filters_json for the end_date comparison so
the cutoff is evaluated at render time rather than frozen at authoring
time.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01437BfuRXkj3k8JsQXMr3YJ
* fix(events): make the category chart readable and add Zoom shortcuts
The "Events by Category" donut rendered an unreadable legend. frappe-charts
lays legend items out at a fixed x = LEGEND_ITEM_WIDTH * count (150px slots,
BaseChart.js renderLegend) but never clips the label text to its slot, and
frappe core passes truncateLegends: 0, so longer category names ran straight
over their neighbours and the last item spilled past the card.
Switch the chart to Bar. Axis charts carry their labels on the x-axis instead
of a legend row, so the overlap cannot happen, and the bars stay readable when
one category dominates the counts — which a donut does not.
number_of_groups was 0, which the widget reads as "unset" and falls back to
max_slices: 6 for Pie/Donut, bucketing real categories into "Rest". Bar falls
back to 9, but set it explicitly so the value does not depend on the chart type.
Also add New Zoom Meeting and New Zoom Webinar quick actions. There is no
"Zoom Webinar" category — Webinars and Zoom Meeting are the two Zoom-backed
ones, paired in the free_event depends_on and behind create_webinar_on_zoom /
create_meeting_on_zoom — so the webinar shortcut targets Webinars.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
(cherry picked from commit fbc6315)
@github-actionsgithub-actionsBot added the backport This PR / Issue is a backport for a branch other than develop label Aug 3, 2026
@harshtandiya
harshtandiya merged commit 815b963 into mainAug 3, 2026
@harshtandiya
harshtandiya deleted the backport-313-to-main branch August 3, 2026 06:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backportThis PR / Issue is a backport for a branch other than develop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@harshtandiya