-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Add custom Gantt Date Range #4563
Add custom Gantt Date Range #4563
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #4563 +/- ##
============================================
- Coverage 75.61% 58.44% -17.18%
============================================
Files 143 52 -91
Lines 16489 8732 -7757
Branches 518 18 -500
============================================
- Hits 12468 5103 -7365
+ Misses 3894 3629 -265
+ Partials 127 0 -127
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Only few minor suggestions.
imgSnapshotTest( | ||
` | ||
--- | ||
displayMode: compact | ||
--- | ||
gantt | ||
title GANTT compact | ||
dateFormat HH:mm:ss | ||
dateRange 12:30:00,13:30:00 | ||
axisFormat %Hh%M |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the imgSnapshotTest
s, for the other scenarios of dateRange?
- Actual date
- Only start
- Only end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly, but how do these work? Where are the images produced so that I can check them? I suspect that without altering the tasks, the display is going to be messed up, with the task bars invading the margins, but I don't know how to produce any diagram output from this repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To verify snapshots:
pnpm e2e
open cypress/snapshots
Can you also add this into the contribution docs if it's not present there?
Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
The current failure is from the new tests.
|
@AlexMooney It would be nice to have this released. Please let us know if you're working on it. |
I'd be keen to take this on as a first issue if you need someone to |
Hi @paldeep-singh feel free to take this over! Sorry for leaving this half-done, everyone. 🙇 |
No need for any apologies @AlexMooney, we're all doing this for free ❤️ |
Work continued in #5220 |
📑 Summary
Add
dateRange
to specify a custom range for a Gantt Chart.Resolves #1530
📏 Design Decisions
Describe the way your implementation works or what design decisions you made if applicable.
dateRange :2023-06-01, 2023-07-01
dateRange :today - 7d, today + 30d
dateRange :2023-06-01
dateRange :,2023-07-01
👈 kind of strange; proposals welcomedPossible problems
dateRange
is interpreted with thedateFormat
, so if the former comes first, it'll can screw up the date parsing📋 Tasks
Make sure you
develop
branch