-
Notifications
You must be signed in to change notification settings - Fork 11
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
Line Diagram | Collapsible branches #345
Conversation
Really small presentational changes. Can we:
|
@@ -17,6 +17,7 @@ | |||
"jquery": "> 3.0.0", | |||
"leaflet": "^1.4.0", | |||
"leaflet-rotatedmarker": "^0.2.0", | |||
"lodash": "^4.17.11", |
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.
This change doesn't seem to have propagated to package-lock.json
(I think something should have flipped to dev: false
?)
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.
I'm not exactly sure how package-lock is supposed to reflect this change, but I've run the update and committed what it gave me.
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.
I had thought since we moved a package from devDependencies
to dependencies
that this would be reflected in the lockfile by that dependency flipping from "dev": true
to "dev": false
. But since nothing changed (aside from the usual optional fights), I'm thinking we already had a package in our production dependencies
that was pulling in Lodash as a dependency of its own, hence it was already marked as "dev": false
.
tl;dr: we don't have to commit this change to the package-lock 😅
apps/site/assets/ts/schedule/components/line-diagram/ExpandableBranch.tsx
Show resolved
Hide resolved
apps/site/assets/ts/schedule/components/line-diagram/LineDiagram.tsx
Outdated
Show resolved
Hide resolved
@ingridpierre @digitalcora Made some updates that should address the comments here. |
Codecov Report
@@ Coverage Diff @@
## master #345 +/- ##
=====================================
Coverage 94% 94%
=====================================
Files 356 356
Lines 5918 5918
=====================================
Hits 5563 5563
Misses 355 355 |
Looks so good, one teeny adjustment -- can we reduce the padding on .m-schedule-diagram__stop from 1rem all the way around to: 1rem .5rem? Decreasing the horizontal padding wins just a tiny bit more line length, which I'd like to take where I can get it :) |
@ingridpierre done! I've also updated the logic to expand short branches by default. So now Line Diagram | Don't collapse short branches is covered. |
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.
Looking good @thecristen, I'm glad we have your CSS and React wizardry on this task 🙇♀
993825b
to
8518b1d
Compare
@thecristen Looks like some things you extracted to separate commits are also still present in the commit message for the "main" commit. |
- Splits the larger LineDiagram component into smaller ones - Reuses the existing <ExpandableBlock /> component to handle collapsing/expanding sections of the line diagram - Adds styles for collapsed and expanded branches - Bugfix - removes the "View schedule" link from the terminus stops
8518b1d
to
f6f8d52
Compare
Summary of changes
Asana Ticket: Line Diagram | Collapsible branches
<ExpandableBlock />
component to handle collapsing/expanding sections of the line diagramdevDependencies
.Screenshots!
IE11 preview
Video: https://app.crossbrowsertesting.com/public/i31732a965037ca8/livetests/35727589/videos/z9d8a4cb074e2a020941?test_hash=e0aed05e
Firefox preview
Safari preview
Chrome preview