brotherton-erpnext/erpnext/hr
Rucha Mahabal 39efc62b94
feat: Organizational Chart (#26893)
* feat: Organizational Chart

* feat: org chart mobile interactions

* feat(mobile): sibling node group expansion and rendering

* fix: expanded node group interactions and visibility

* feat: connectors for mobile node cards

* fix: don't refresh connections for same node

- remove all connectors while expanding a group node

* chore: create separate files for Desktop and Mobile view and bundle assets

* refactor: add options to chart

- method to return the node data

- wrapper for showing the hierarchy

* feat: setup node edit action

* fix: revert changes in employee descendants query

* refactor: use arcs instead of bezier curves for cleaner connectors

* feat: add arc to connectors in mobile view

* fix: edit node button overflowing

* fix: sider

* fix: removing orphaned connectors

* fix: unnecessary variables

* feat: handle multiple root / orphan nodes

* perf: Optimise Rendering

- optimise get_children function

- use promises instead of callbacks

- optimise selectors

- use const wherever possible

- use pure js instead of jquery for connectors for faster rendering

* fix: do not sort by number of connections

* feat: use icon for connections on mobile view

* fix: exclude active node while fetching sibling group

* fix: sibling group expansion not working for root nodes

* fix(mobile): collapsed nodes not expanding

* fix: sider

* test: UI tests for org chart desktop

* test: UI tests for org chart mobile

fix(mobile): detach node before emptying hierarchy

fix(mobile): sibling group not rendering for first level

* fix: sider

* ci(cypress): use env variable for key

documentation ref: https://docs.cypress.io/guides/guides/command-line\#cypress-run

* fix(tests): clear filter before typing

* fix(tests): apply filters correctly

* fix: tests

* fix: tests

* fix: tests

* fix(test): increase timeout for record creation

* fix: sider

* fix: sider

* feat: Expand All nodes option in Desktop view

* feat: add html2canvas for easily exporting html to images using canvas

* feat: Export chart option in desktop view

* fix(style): longer titles overflowing

* fix: remove unnecessary imports

* fix: test

* fix: make bundled assets for hierarchy chart

* fix(style): apply svg container margin only in desktop view

* fix: Nest `.level` class style under `.hierarchy` class (#26905)

fix: Nest `.level` class style under `.hierarchy` class

* fix: add z-index to filter to avoid svg wrapper overlapping

* fix: expand all nodes not working when there are only 2 levels

- added dom freeze while expanding all nodes and exporting

* fix: test

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-08-16 20:42:23 +05:30
..
dashboard_chart fix: minor payroll_dashboard fixes (#22832) 2020-08-03 08:57:49 +05:30
doctype feat: Training Event Status Update and Validations (#26698) 2021-08-16 17:22:51 +05:30
hr_dashboard/human_resource Fix: HR and Payroll Dashboard (#22771) 2020-07-23 12:10:48 +05:30
module_onboarding/human_resource fix: grammatical fixes in module onboarding (#22580) 2020-07-08 14:25:51 +05:30
notification fix: Training event (#26164) 2021-06-23 12:59:43 +05:30
number_card Fix: HR and Payroll Dashboard (#22771) 2020-07-23 12:10:48 +05:30
onboarding_step fix: Correct filters (#22022) 2020-05-29 10:19:33 +05:30
page fix: expand all nodes not working when there are only 2 levels 2021-08-16 10:19:48 +05:30
print_format feat: New Payroll module (#21990) 2020-06-19 19:17:57 +05:30
report fix: update leave allocation after submit (#26191) 2021-06-24 18:11:33 +05:30
web_form refactor(Job Application): New fields in Job Applicant and webform (#23326) 2021-01-15 13:56:03 +05:30
workspace/hr fix: updated erpnext wspace json files (#26380) 2021-08-13 12:19:16 +05:30
__init__.py
employee_property_update.js Fix updation of new values 2018-05-15 15:19:24 +05:30
README.md
utils.py fix: employee status server-side validation (#26442) 2021-07-30 10:21:42 +05:30

Key features:

  • Leave and Attendance
  • Payroll
  • Appraisal
  • Expense Claim