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
[Vue] remove angularjs from the Live plugin #19418
Conversation
…ainer for more convenient embedding of vue-entry use from within other Vue components (primarily for supporting twig Template... events in Vue).
709baa5
to
5a3d1a0
Compare
…-org/matomo into vue-remove-angularjs-SitesManager
…omo into vue-remove-angularjs-Live
This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers |
This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers |
@sgiehl I see, should be fixed |
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.
works now
@diosmosis found another issue. It seems that the real time widget looses its head on the first refresh. Guess that is caused by this code: matomo/plugins/Live/vue/src/LiveWidget/LiveWidgetRefresh.ts Lines 27 to 38 in d868c5c
Guess the vue component would need to be initialized after the content was replaced... |
@sgiehl fixed |
@diosmosis this seems to work on the real time page now. but not when displayed as a widget. In the widget the header seems not to be replaced at all. |
@sgiehl interesting, I only tested in the widget on the dashboard. Tested again on both sites and it works for me. Could it be a caching issue on your end? Can you test again? |
Tried it again. But it still doesn't work in the widget. I can see that the requests are sent out. But the result seems not be placed in the widget. I have the visitor generator running in parallel to ensure the numbers in the widget would change. So I'm able to validated that they don't 🤷 |
Ok, I'll try again w/ visitor generator running in parallel |
@sgiehl ok, its definitely working for me. I looked at the network tab for getLastVisitsStart requests and checked that the response was used when completed. When the response had different HTML there was a visual change in the widget. I did notice however, it took quite a while for that response to actually be different. From previous experience w/ the visitor generator I think it might be due to time zone issues w/ visits being tracked, or visits tracked out of order, or something like that, so they don't always register as more recent than what's displayed. |
@diosmosis the list of visits is refreshing correctly. What doesn't seem to refresh is the summary above. That should be handled by the request for |
@sgiehl I see, I get it now. Apologies it took a while for me to understand. Will take a look. |
@sgiehl Ok, I checked again, and this is working for me too. I saw the following scenarios:
Can you check that:
|
…omo into vue-remove-angularjs-Live
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.
Can't see any further issues right now.
6c3fb4c
to
aee3052
Compare
* Remove use of angularjs from SitesManager plugin and add VueEntryContainer for more convenient embedding of vue-entry use from within other Vue components (primarily for supporting twig Template... events in Vue). * remove use of angularjs from Live plugin * built vue files * forgot to export * built vue files * fix ui test issues * move inline script to vue directive + fix a couple vue warnings * remove use of unneeded html_attr escape * remove use of unneeded twig html_attr escape * use html filter explicitly * use href so command+click works * get rid of two vue warnings * use anonymous function for jquery event so this can be used properly * destroy/compile vue components when refreshing live widget * built vue files * try to fix live refresh issue * improve css, so whitespaces are always hidden between images Co-authored-by: sgiehl <stefan@matomo.org> Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
* Remove use of angularjs from SitesManager plugin and add VueEntryContainer for more convenient embedding of vue-entry use from within other Vue components (primarily for supporting twig Template... events in Vue). * remove use of angularjs from Live plugin * built vue files * forgot to export * built vue files * fix ui test issues * move inline script to vue directive + fix a couple vue warnings * remove use of unneeded html_attr escape * remove use of unneeded twig html_attr escape * use html filter explicitly * use href so command+click works * get rid of two vue warnings * use anonymous function for jquery event so this can be used properly * destroy/compile vue components when refreshing live widget * built vue files * try to fix live refresh issue * improve css, so whitespaces are always hidden between images Co-authored-by: sgiehl <stefan@matomo.org> Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
* Remove use of angularjs from SitesManager plugin and add VueEntryContainer for more convenient embedding of vue-entry use from within other Vue components (primarily for supporting twig Template... events in Vue). * remove use of angularjs from Live plugin * built vue files * forgot to export * built vue files * fix ui test issues * move inline script to vue directive + fix a couple vue warnings * remove use of unneeded html_attr escape * remove use of unneeded twig html_attr escape * use html filter explicitly * use href so command+click works * get rid of two vue warnings * use anonymous function for jquery event so this can be used properly * destroy/compile vue components when refreshing live widget * built vue files * try to fix live refresh issue * improve css, so whitespaces are always hidden between images Co-authored-by: sgiehl <stefan@matomo.org> Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
Description:
This PR is based off of #19390.
Changes:
Review