-
Notifications
You must be signed in to change notification settings - Fork 111
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
use dropdown for checkin history period #6702
Conversation
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
✔️ Deploy Preview for chef-automate ready! 🔨 Explore the source changes: e8e7964 🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-automate/deploys/621378490945230007e8a2c6 😎 Browse the preview: https://deploy-preview-6702--chef-automate.netlify.app |
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
e871b73
to
8baaa6f
Compare
<chef-dropdown class='download' [visible]="downloadDropdownVisible"> | ||
<div class="checkin-select"> | ||
<chef-button secondary (click)="toggleCheckInPeriodDropdown()" class='download-dropdown-toggle'> | ||
<span>Last {{ (checkInNumDays === twoWeekNumDays ? 2 : 4) }} Weeks</span> |
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.
we can shift this to the component.
(checkInNumDays === twoWeekNumDays ? 2 : 4)
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.
Yeah I thought so too at first when I looked at the code, but conditionally rendering the text here seems better than calling a function that wraps the same logic. So I let it be untouched.
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.
OK
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed!
|
Signed-off-by: rishichawda rishichawda@users.noreply.github.com
🔩 Description: What code changed, and why?
The Check-in history in node details on
/desktop
dashboard has a toggle for switching between the periods which looks like a dropdown. Updated it to be a dropdown as intended. Along with that, there are a couple of minor changes to the same container to be semantically make more sense (main wrapper (the "heading component" is now a flex box, dropdown isn't fixed width, both drop downs are wrapped in their own space rather than just thrown in into the main container)⛓️ Related Resources
resolve #6207
👍 Definition of Done
👟 How to Build and Test the Change
✅ Checklist
All PRs must tick these:
With occasional exceptions, all PRs from Progress employees must tick these:
make spell
in any component directory)All PRs from Progress employees should tick these if appropriate:
Please add a note next to any checkbox above if you are NOT ticking it.
📷 Screenshots, if applicable
The updated UI component