Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/4060 gantt working hours #5403

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

robo1200
Copy link

📑 Summary

First contribution to the community but a long time user and want to start providing some added benefit. Only a hobbyist developer so apologies in advance if some of this is not right first time.
Updated the Gantt chart to allow workday start and end times to be entered and for the gantt chart to then uses them for calculated task end dates assuming durations in hours and or minutes are provided.

Resolves #4060

📏 Design Decisions

Added options to the parser for a Working day start time and working day end time

Ammended the GetEndDate function to be able to calculate task end dates and times using working hours if provided by the user alongside a task duration. Ensured through testing that other elements of the gantt chart functionality such as inclusive / exclusive weekends can still be used in conjuction

Added applicable tests for both the parser and the ganttDB file.

📋 Tasks

Make sure you

  • [ Y] 📖 have read the contribution guidelines
  • [Y ] 💻 have added necessary unit/e2e tests.
  • [Y ] 📓 have added documentation. Make sure MERMAID_RELEASE_VERSION is used for all new features.
  • [Y ] 🔖 targeted develop branch

@github-actions github-actions bot added the Type: Enhancement New feature or request label Mar 22, 2024
Copy link

netlify bot commented Mar 22, 2024

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit 89f919f
🔍 Latest deploy log https://app.netlify.com/sites/mermaid-js/deploys/663b0ebfc77f410008df4ed3
😎 Deploy Preview https://deploy-preview-5403--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@robo1200
Copy link
Author

robo1200 commented Apr 3, 2024

@sidharthv96
My apologies but I have quite a lot of conflicts with my branch. It this something relating to my request or something that should occur? Happy to make changes if this on me to fix. If so can someone point me in the right direction. thanks :)

Copy link

codecov bot commented Apr 16, 2024

Codecov Report

Attention: Patch coverage is 84.21053% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 5.86%. Comparing base (9eb64cd) to head (89f919f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #5403      +/-   ##
==========================================
+ Coverage     5.73%   5.86%   +0.13%     
==========================================
  Files          277     278       +1     
  Lines        42001   42084      +83     
  Branches       515     499      -16     
==========================================
+ Hits          2407    2468      +61     
- Misses       39594   39616      +22     
Flag Coverage Δ
unit 5.86% <84.21%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/mermaid/src/diagrams/gantt/ganttDb.js 78.06% <84.21%> (+0.58%) ⬆️

... and 1 file with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure Gantt diagram to use specific day hours
2 participants