Skip to content
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

fix: button consistency in logs panel #9945 #10016

Merged
merged 7 commits into from Sep 26, 2022

Conversation

Marvin9
Copy link
Contributor

@Marvin9 Marvin9 commented Jul 17, 2022

Fixes #9945

Note on DCO:

If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).

…us event

> change the position of fa-check icon in button - when active

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
…t issue

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
@codecov
Copy link

codecov bot commented Jul 17, 2022

Codecov Report

Base: 45.76% // Head: 45.76% // No change to project coverage 👍

Coverage data is based on head (bac975a) compared to base (49487ea).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10016   +/-   ##
=======================================
  Coverage   45.76%   45.76%           
=======================================
  Files         236      236           
  Lines       28529    28529           
=======================================
  Hits        13055    13055           
  Misses      13669    13669           
  Partials     1805     1805           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@crenshaw-dev
Copy link
Collaborator

Thanks, @Marvin9!

What if, instead of darkening the "active" buttons and adding a small green checkmark, we just added a proper square checkbox to the left of each icon (inside the button) which will become checked when activated.

That would allow these boxes to remain "bright" (not confusing them with the darker "action" buttons) and very clearly mark them as either active or inactive.

@Marvin9
Copy link
Contributor Author

Marvin9 commented Jul 21, 2022

Thanks for the suggestion @crenshaw-dev. I will change the design

Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
@Marvin9 Marvin9 force-pushed the fix/button-consistency-in-logs-panel branch from 0976e74 to a9dfe32 Compare July 24, 2022 10:19
@Marvin9
Copy link
Contributor Author

Marvin9 commented Jul 24, 2022

With new changes

Screen.Recording.2022-07-24.at.3.44.01.PM.mov

@crenshaw-dev
Copy link
Collaborator

I like it! Will wait for UI folks to weigh in. :-)

@Marvin9
Copy link
Contributor Author

Marvin9 commented Jul 28, 2022

Thanks @crenshaw-dev. Can you please mention here who should review and approve?

@crenshaw-dev
Copy link
Collaborator

Added @rbreeze as a review. Remington, feel free to punt to another UI-capable person. :-)

Copy link
Member

@rbreeze rbreeze left a comment

Choose a reason for hiding this comment

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

I think the consistency improvements are great, and agree that each button should have consistent behavior and a fixed width. This feels like a big improvement already, but I see 2 different options that could make it look even better:

  1. All buttons, even the ones with checkboxes, should be the same dark color

OR

  1. We remove the checkbox paradigm from all buttons. Buttons that can be enabled / disabled would be hollow when disabled and filled in when enabled.

Option 1 is more explicit and a smaller change to the current state of this PR. Personally I think Option 2 would look cleaner, but may be more confusing. @alexec or @alexmt do you have an opinion here?

@Marvin9
Copy link
Contributor Author

Marvin9 commented Aug 4, 2022

Thanks for the suggestion @rbreeze. The reason to avoid dark colour for toggles is that it confuses with static dark buttons (eg. copy, download). As soon as both groups have same color (darker one), they seem to loose the context, unless they have checkbox. Let me know what you think on it.

@rbreeze rbreeze merged commit 6fd4c6f into argoproj:master Sep 26, 2022
@jsoref
Copy link
Member

jsoref commented Sep 28, 2022

Fwiw, I agree that option 2 is slightly better, but I'm happy with the current improvement over the previous state.

ashutosh16 pushed a commit to ashutosh16/argo-cd that referenced this pull request Oct 7, 2022
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button behavior is very inconsistent
4 participants