Skip to content

feat: Dashboard view for DocTypes - #10000

Merged
prssanna merged 33 commits into
frappe:developfrom
prssanna:doctype-dashboard-view
Apr 29, 2020
Merged

feat: Dashboard view for DocTypes#10000
prssanna merged 33 commits into
frappe:developfrom
prssanna:doctype-dashboard-view

Conversation

@prssanna

@prssanna prssanna commented Apr 19, 2020

Copy link
Copy Markdown
Contributor

Changes:

Added a customizable Dashboard View for all DocTypes:

  • Fetches all Dashboard Charts and Number Cards based on the DocType.

  • Customizations can be saved, discarded or reset.

  • Customizations are saved per user in User Settings.

energypoints local_8000_desk (19)

  • Empty state:

Screenshot 2020-04-19 at 5 21 14 PM

Added a Number Card widget and DocType

  • Calculates a number based on the function(Count, Sum, Avg, Min, Max) and filters provided.

  • Calculates percentage difference according to configured time interval (default is Daily).

  • Colour of number is customizable.

  • Routes to List View with filters set on click.

Screenshot 2020-04-19 at 5 07 57 PM

Added Number Cards to Dashboard

  • Added Number Cards as a child table in Dashboard
    energypoints local_8000_desk (18)

Other Changes

  • Enabled mandatory_depends_on for Dialog.

To Do:

  • Add Number Cards to Dashboards

  • Allow edit for Number Card widgets

  • Make page printable

@prssanna
prssanna requested a review from sahil28297 as a code owner April 19, 2020 11:57
@prssanna
prssanna requested a review from a team April 19, 2020 11:57
@ghost
ghost removed their request for review April 19, 2020 11:57
@prssanna
prssanna force-pushed the doctype-dashboard-view branch from a56e922 to 5068de6 Compare April 19, 2020 12:02
@prssanna
prssanna force-pushed the doctype-dashboard-view branch from 0f895d8 to 6782b25 Compare April 26, 2020 07:08
@prssanna
prssanna force-pushed the doctype-dashboard-view branch from 2e0d56d to d2a9f1b Compare April 26, 2020 10:42
Comment thread frappe/desk/doctype/number_card/number_card.py Outdated
Comment thread frappe/desk/doctype/number_card/number_card.py
Comment thread frappe/desk/doctype/number_card/number_card.py Outdated
Comment thread frappe/desk/doctype/number_card/number_card.py Outdated
Comment thread frappe/public/js/frappe/widgets/chart_widget.js Outdated
Comment thread frappe/public/js/frappe/widgets/new_widget.js Outdated
@prssanna
prssanna requested a review from scmmishra April 29, 2020 08:34
@prssanna
prssanna force-pushed the doctype-dashboard-view branch from ba704d6 to a572469 Compare April 29, 2020 09:08
@prssanna
prssanna force-pushed the doctype-dashboard-view branch from 33b0deb to e4731d0 Compare April 29, 2020 12:40
@prssanna
prssanna merged commit 7fee379 into frappe:develop Apr 29, 2020
@iMoshi

iMoshi commented May 14, 2020

Copy link
Copy Markdown
Contributor

Just tried the feature. Awesome!

However, I have a custom DocType with bunch of currency fields, and this Dashboard view only seems to call "float" fields, but no currency fields from a custom DocType.

Hope you guys make it call currency fields in the new future :)

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants