-
Notifications
You must be signed in to change notification settings - Fork 464
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
UI – Calendar events modal follow up #17788
UI – Calendar events modal follow up #17788
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 17230-calendar-feature #17788 +/- ##
=======================================================
Coverage 65.24% 65.24%
=======================================================
Files 1202 1202
Lines 109371 109371
Branches 2587 2587
=======================================================
Hits 71358 71358
Misses 32598 32598
Partials 5415 5415
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
teamPoliciesAPI.update(formPolicy.id, { | ||
calendar_events_enabled: formPolicy.isChecked, | ||
// update changed policies calendar events enabled | ||
const changedPolicies = formData.policies.filter((formPolicy) => { |
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
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.
👏
@@ -23,8 +23,21 @@ | |||
width: 360px; | |||
.is-disabled * { | |||
color: $ui-fleet-black-25; | |||
.label-text { | |||
font-style: normal; | |||
// increase height to allow for broader tooltip activation area |
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.
love it
@@ -157,7 +150,7 @@ const CalendarEventsModal = ({ | |||
name={name} | |||
// can't use parseTarget as value needs to be set to !currentValue | |||
onChange={() => { | |||
onInputChange({ name, value: !isChecked }); | |||
onPolicyEnabledChange({ name, value: !isChecked }); |
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.
🔥
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.
Sweet, looks super clean. Love the tooltip implementation and some of the naming updates!!
Just a few styling nits, mostly color, it should be quick fixes:
- Dropdown should be blue
@RachelElysia thanks regarding 3 – I've seen some strange behavior here. I saw that, then refreshed, and it was gone, and figured it was just a matter of loading new stylesheets. But then saw it again, and refreshed, and it went away again. I'll look into it, but I imagine if you hard refresh it should be the right colors. Regarding 4., I assumed the Figma was inaccurate here - @rachaelshaw do we want to keep the same padding as for other code blocks like this, or update it with less padding per current Figma? |
@jacobshandling Ah yeah, regarding 4. I made my padding smaller on my other workflows modal, so definitely want to hear back from @rachaelshaw so we are consistent app-wide. |
@RachelElysia @jacobshandling we should keep the padding consistent with other code blocks in the UI instead of having it different for just this page. |
Thanks @rachaelshaw, that just leaves the flash message copy decisions. Currently in this PR, the messages match those of the "Other workflows" modal, the other dropdown option. If you'd like us to update those msssages (should probably be for both of these modals) to those in the Figma, we can do that too. |
Should have a period to be consistent; updated Figma. |
## Follow-up work to #17717 **Finalize disabled options and tooltips:** <img width="697" alt="Screenshot 2024-03-21 at 5 14 40 PM" src="https://github.com/fleetdm/fleet/assets/61553566/ea5d880f-75f6-48ef-85cc-b807812c9a50"> <img width="697" alt="Screenshot 2024-03-21 at 5 15 13 PM" src="https://github.com/fleetdm/fleet/assets/61553566/bdd33118-933e-4676-9e1e-680ebcddbc7a"> **Only update policies and settings when there's a diff:** ![1(1)](https://github.com/fleetdm/fleet/assets/61553566/183d1834-3c54-4fef-a208-dfbb0354e507) **Reorganize onChange handlers, types** - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
## Follow-up work to #17717 **Finalize disabled options and tooltips:** <img width="697" alt="Screenshot 2024-03-21 at 5 14 40 PM" src="https://github.com/fleetdm/fleet/assets/61553566/ea5d880f-75f6-48ef-85cc-b807812c9a50"> <img width="697" alt="Screenshot 2024-03-21 at 5 15 13 PM" src="https://github.com/fleetdm/fleet/assets/61553566/bdd33118-933e-4676-9e1e-680ebcddbc7a"> **Only update policies and settings when there's a diff:** ![1(1)](https://github.com/fleetdm/fleet/assets/61553566/183d1834-3c54-4fef-a208-dfbb0354e507) **Reorganize onChange handlers, types** - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
Follow-up work to #17717 for #17445
Finalize disabled options and tooltips:
Only update policies and settings when there's a diff:
Reorganize onChange handlers, types