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

SearchKit - Update crmSearchAdminFields.html to use X icon instead of ban icon for removing fields #29549

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

kapn1966
Copy link
Contributor

Confusing icon choice. Should be trash rather than ban.

Overview

A brief description of the pull request. Keep technical jargon to a minimum. Hyperlink relevant discussions.

Before

What is the old user-interface or technical-contract (as appropriate)?
For optimal clarity, include a concrete example such as a screenshot, GIF (LICEcap, SilentCast), or code-snippet.

After

What changed? What is new old user-interface or technical-contract?
For optimal clarity, include a concrete example such as a screenshot, GIF (LICEcap, SilentCast), or code-snippet.

Technical Details

If the PR involves technical details/changes/considerations which would not be manifest to a casual developer skimming the above sections, please describe the details here.

Comments

Anything else you would like the reviewer to note

poor icon choice. Should be trash rather than ban.
Copy link

civibot bot commented Feb 29, 2024

🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷

Introduction for new contributors...
  • If this is your first PR, an admin will greenlight automated testing with the command ok to test or add to whitelist.
  • A series of tests will automatically run. You can see the results at the bottom of this page (if there are any problems, it will include a link to see what went wrong).
  • A demo site will be built where anyone can try out a version of CiviCRM that includes your changes.
  • If this process needs to be repeated, an admin will issue the command test this please to rerun tests and build a new demo site.
  • Before this PR can be merged, it needs to be reviewed. Please keep in mind that reviewers are volunteers, and their response time can vary from a few hours to a few weeks depending on their availability and their knowledge of this particular part of CiviCRM.
  • A great way to speed up this process is to "trade reviews" with someone - find an open PR that you feel able to review, and leave a comment like "I'm reviewing this now, could you please review mine?" (include a link to yours). You don't have to wait for a response to get started (and you don't have to stop at one!) the more you review, the faster this process goes for everyone 😄
  • To ensure that you are credited properly in the final release notes, please add yourself to contributor-key.yml
  • For more information about contributing, see CONTRIBUTING.md.
Quick links for reviewers...

➡️ Online demo of this PR 🔗

@civicrm-builder
Copy link

Can one of the admins verify this patch?

1 similar comment
@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot civibot bot added the master label Feb 29, 2024
@seamuslee001
Copy link
Contributor

Jenkins add to whitelist

@mmyriam
Copy link
Contributor

mmyriam commented Mar 1, 2024

Reviewing this PR at CiviCamp Montreal and several of us here think that the icon used to remove the field in the Select Fields tab should be the same icon used to remove the column in the preview at the bottom of the screen. Currently the X is used. Using the trash bin would cause clutter. Also the tooltips should be consistent.

Necessary changes:

  • X for icon in top list
  • "Remove" for tooltip in bottom table

image

image

@kapn1966
Copy link
Contributor Author

kapn1966 commented Mar 4, 2024

I think mmyriam's proposal makes even more sense. It would be visually quieter and improve clarity and consistency.
I guess that would need to be a new PR to replace this one?

@mmyriam
Copy link
Contributor

mmyriam commented Mar 4, 2024

Glad you agree. Actually you can just modify this PR if you are comfortable doing that.

@mmyriam mmyriam added the needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state label Mar 4, 2024
@mmyriam
Copy link
Contributor

mmyriam commented Mar 4, 2024

P.S. Thanks!

@kapn1966
Copy link
Contributor Author

kapn1966 commented Mar 4, 2024

I'm fine with the idea, but not really sure about how to do it. I guess I just try to make further code changes in this automatically created branch?

@mmyriam
Copy link
Contributor

mmyriam commented Mar 4, 2024

Correct. Ideally you just need to make sure none of the files you are changing have been updated since the branch was created. I want to help but I'm not an expert so if it's too complicated you can open a new PR, link to this one and close this one. Or we can ask @colemanw to teach us the best practice.

…on an 'x'

Following up on mmyriam's suggestion that the remove icon in this context should be 'x' (fa_times) rather than trash.
@kapn1966 kapn1966 changed the title SearchKit - Update crmSearchAdminFields.html to use trash icon instead of ban icon for removing fields SearchKit - Update crmSearchAdminFields.html to use X icon instead of ban icon for removing fields Mar 4, 2024
@kapn1966
Copy link
Contributor Author

kapn1966 commented Mar 4, 2024

I have managed to changed the icon choice for this PR to an X, but I can't figure our how to add files to make the change from "clear" to remove as you suggest in the lower section. What happens now to this change? Do you approve? Or someone else?

@mmyriam mmyriam removed the needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state label Mar 4, 2024
@mmyriam
Copy link
Contributor

mmyriam commented Mar 4, 2024

I will review this PR. You can make the tooltip change in a different PR.

@mmyriam
Copy link
Contributor

mmyriam commented Mar 4, 2024

Confirming that icon is changed in Select Fields tab of SearchKit configuration.

Still to do:

  • Change tooltip to Remove in preview
  • Change icon to X (fa-times) in displays

@mmyriam mmyriam added the merge ready PR will be merged after a few days if there are no objections label Mar 4, 2024
@kapn1966
Copy link
Contributor Author

kapn1966 commented Mar 5, 2024

I'll try to track down those other file locations and make the changes you suggest. I'm thinking Thursday afternoon ET.

@mattwire
Copy link
Contributor

mattwire commented Mar 6, 2024

@kapn1966 Please follow up with the other changes in a new PR

@mattwire mattwire merged commit bad6c15 into civicrm:master Mar 6, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants