Skip to content

Conversation

@andersonjeccel
Copy link
Contributor

@andersonjeccel andersonjeccel commented Aug 6, 2024

Q A
Bug fix? (use the a.b branch) 🟢
New feature/enhancement? (use the a.x branch) 🔴
Deprecations? 🔴
BC breaks? (use the c.x branch) 🔴
Automated tests included? 🔴
Related user documentation PR URL mautic/user-documentation#...
Related developer documentation PR URL mautic/developer-documentation-new#...
Issue(s) addressed Fixes #8883

Description

This PR really ensures that tooltips will work FOREVER, anywhere you place it, using MutationObserver.


📋 Steps to test this PR:

  1. Open this PR on Gitpod or pull down for testing locally (see docs on testing PRs here)
  2. Follow Number field seems to offer help but there are no tooltips showing #8883

@andersonjeccel andersonjeccel requested review from a team, Esthertests and ricfreire August 6, 2024 00:10
@andersonjeccel andersonjeccel self-assigned this Aug 6, 2024
@andersonjeccel andersonjeccel added T1 Low difficulty to fix (issue) or test (PR) bug Issues or PR's relating to bugs ready-to-test PR's that are ready to test code-review-needed PR's that require a code review before merging user-experience Anything related to related to workflows, feedback, and navigation javascript Pull requests that update Javascript code labels Aug 6, 2024
@andersonjeccel andersonjeccel added this to the 5.2 milestone Aug 6, 2024
@codecov
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.51%. Comparing base (36d6ced) to head (982de75).
Report is 47 commits behind head on 5.x.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                5.x   #14043      +/-   ##
============================================
- Coverage     62.51%   62.51%   -0.01%     
  Complexity    34345    34345              
============================================
  Files          2258     2258              
  Lines        102714   102714              
============================================
- Hits          64211    64210       -1     
- Misses        38503    38504       +1     

see 1 file with indirect coverage changes

Copy link

@Esthertests Esthertests left a comment

Choose a reason for hiding this comment

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

while testing i could see some html tags within the text, can these be removed
image

@andersonjeccel
Copy link
Contributor Author

andersonjeccel commented Aug 8, 2024

@Esthertests Yep (in another PR, it's a bug not related to this one), thanks for testing!

Copy link

@Bastian2718 Bastian2718 left a comment

Choose a reason for hiding this comment

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

Irritating Questionmark, shows nothing to me.

@andersonjeccel
Copy link
Contributor Author

Warning

All Tier 1 PRs need only 1 code review and 1 user testing before able to merge. I'll update accordingly.

@andersonjeccel andersonjeccel added user-testing-passed PRs which have been successfully tested by the required number of people. and removed ready-to-test PR's that are ready to test labels Aug 14, 2024
@andersonjeccel
Copy link
Contributor Author

Testing passed based on Esther's test

Copy link
Contributor

@LordRembo LordRembo left a comment

Choose a reason for hiding this comment

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

Added comment on the JS code about the formatting and location

});
}

// Absurdly aggressive method to ensure tooltips always work anywhere
Copy link
Contributor

Choose a reason for hiding this comment

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

A bit of a similar issue as I described in #13948 : the code looks fine, but it shouldn't be in this location.
I'm fine with tooltips code existing in core.js if there's no better place for it, but you need to follow the style and formatting of the rest of the file:

  • functions should be in the Mautic namespace (nesting starts around line 154, or you can prefix it like happens in other files)
  • variables should be prefixed with MauticVars (as you can see above that)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, got it
It’ll be fixed asap

I’ll also take notes for future implementations
Thanks for reviewing 🙏🏻

@andersonjeccel andersonjeccel added the pending-feedback PR's and issues that are awaiting feedback from the author label Aug 23, 2024
@escopecz escopecz removed this from the 5.2 milestone Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issues or PR's relating to bugs code-review-needed PR's that require a code review before merging javascript Pull requests that update Javascript code pending-feedback PR's and issues that are awaiting feedback from the author T1 Low difficulty to fix (issue) or test (PR) user-experience Anything related to related to workflows, feedback, and navigation user-testing-passed PRs which have been successfully tested by the required number of people.

Projects

Archived in project
Status: Done

Development

Successfully merging this pull request may close these issues.

Number field seems to offer help but there are no tooltips showing

5 participants