Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Conversation

@yaooluu
Copy link
Contributor

@yaooluu yaooluu commented Jul 5, 2019

This change implements a static timeline component using HTML/CSS, based on the design spec from Clarity team.

Closes #3199

Signed-off-by: Yao Lu ylu31@ncsu.edu

Same code updated at: https://stackblitz.com/edit/clarity-timeline-demo-v3. Ready for reviewers to play with the code.

Question list:

  • In demo project I'm adding the spinner icon as a custom icon. How to achieve the same for the production? i.e. component consumer should not need to add this icon by themselves?

@vmwclabot
Copy link

@yaooluu, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@netlify
Copy link

netlify bot commented Jul 5, 2019

Deploy preview for vmware-clarity ready!

Built with commit c63e062

https://deploy-preview-3594--vmware-clarity.netlify.com

@gnomeontherun
Copy link
Contributor

@colinreedmiller Here is the final implementation to review https://deploy-preview-3594--vmware-clarity.netlify.com/dev click on Timeline in sidenav. Do you approve?

@Jinnie
Copy link
Contributor

Jinnie commented Jul 11, 2019

@gnomeontherun won't we need a website documentation page? Or we'll have a separate PR/ticket for it?

@Jinnie Jinnie mentioned this pull request Jul 11, 2019
Copy link

@colinreedmiller colinreedmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visual design conforms to specification. Documentation question remains outstanding.

Copy link
Contributor

@gnomeontherun gnomeontherun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation looks good for this use case, but I have a couple of questions and asks. I think we have to figure out the limits of what content we can expect people to put into timeline, and what amount of flexibility they should expect. Any details on the original spec would help!

Thanks for this, I think its pretty solid overall with the one major question about position relative (which I am currently at a loss of an alternative).


.clr-timeline-step {
display: flex;
position: relative;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a problem, it will cause clipping on anything like a dropdown menu. Have you tried any other options that would get around this? @hippee-lee any additional insights based on popover work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some experiments and the horizontal timeline still works fine without step (relative) and step-body:before (absolute).

But if I remove those, the vertical timeline doesn't work. The "line" is not displayed at all between steps. Or with only step-body::before (absolution) it won't be able to get its parent's (timeline-step) height by using 100%, instead it get's the full height of the entire timeline..Not sure what should be the solution to get rid of it...

@colinreedmiller
Copy link

@gnomeontherun the original spec had no dark theme design. My work has been to improve the visual design such that it was clearer - the decisions about what content to support were part of the original design. We need to look at use cases since from what I understand, this component is not widely used in VMWare products and its original need has been superseded by additional datagrid functionality.

@vmwclabot
Copy link

@yaooluu, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@yaooluu
Copy link
Contributor Author

yaooluu commented Jul 31, 2019

@gnomeontherun Could you review the above changes again and let me know your thoughts?

@colinreedmiller
Copy link

I asked @lil-kim to take a look at the design spec and add the required callouts for dark theme so we have this available while its in flight.

Figma file here: https://www.figma.com/file/l7MoP6qowUUqMgNVWnxS4g/Timeline-component-Static-3199?node-id=12%3A2030

@gnomeontherun
Copy link
Contributor

I'm going to review again, wasn't sure if you were done. @colinreedmiller I think we can handle the dark theme version of this separately to help close the loop on this PR.

@yaooluu
Copy link
Contributor Author

yaooluu commented Aug 2, 2019

I'm going to review again, wasn't sure if you were done.

I addressed most comments except for the position: relative, which I could find alternative that won't mess up the layout. Would appreciate some help here.

And I thought it is for reviewer to "resolve" issue so I didn't close them.

@colinreedmiller
Copy link

@gnomeontherun - Yes. I am completely finished with Light theme and its approved - implementation is correct. I included the dark theme callouts in case it was preferable to build it at the same time but later is fine also. Closing this PR without dark theme is fine with me.

@gnomeontherun
Copy link
Contributor

@yaooluu Can you squash your commits and update gemini tests? Since you added something to the dev app some of the images that include the nav get flagged.

@gnomeontherun
Copy link
Contributor

Also make sure your commit use signed-off-by!

@gnomeontherun
Copy link
Contributor

Just following up on this @yaooluu do you have an ETA on getting the PR fixed up?

@yaooluu
Copy link
Contributor Author

yaooluu commented Aug 15, 2019

Just following up on this @yaooluu do you have an ETA on getting the PR fixed up?

Yes I want to get this done before end of week. I actually have some questions regarding squash, rebase, and the updating gemini test part as I'm not familiar with the process inClarity repo. I'll reach out to the team offline to get it resolved.

@vmwclabot
Copy link

@yaooluu, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@vmwclabot
Copy link

@yaooluu, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

This change implements a static timeline component using HTML/CSS, based on the design spec from Clarity team.

Closes vmware-archive#3199

Signed-off-by: Yao Lu <ylu31@ncsu.edu>
@yaooluu
Copy link
Contributor Author

yaooluu commented Aug 18, 2019

@gnomeontherun I've squashed my commits and updated the gemini test. The pipeline is passing now!

@gnomeontherun
Copy link
Contributor

Thanks Yao! We'll get it reviewed and merged soon!

@hippee-lee hippee-lee self-assigned this Aug 21, 2019
@hippee-lee hippee-lee merged commit cc5e7e5 into vmware-archive:master Aug 22, 2019
@Jinnie Jinnie added this to the 2.2.0 milestone Sep 5, 2019
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.

Timeline component (Static)

8 participants