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

Widget HTML Online / Offline BUG #2003

Closed
PeopleInside opened this issue Oct 6, 2023 · 8 comments
Closed

Widget HTML Online / Offline BUG #2003

PeopleInside opened this issue Oct 6, 2023 · 8 comments

Comments

@PeopleInside
Copy link
Collaborator

PeopleInside commented Oct 6, 2023

This BUG has been tested on the demo of live helper chat.
I discovered this bug on my website and on my LHC install then tested in the demo and confirmed the issue.

BUG description:
Set an online and and offline HTML text (Online text for the online HTML and OFFLINE text for the Offline) will be bugged if the widget status is offline then the widget is updated in the page without user refresh. When the widget is clicked it will show the online form to start a chat but the offline message instead of the online message.

Screenshot:
immagine

How to reproduce:

  • In the widget themes edit the default theme under the custom content tab find the field for "Custom html above status/profile body in online mode " and input a text ONLINE
  • In the widget themes edit the default theme under the custom content tab find the field for "Custom html above status/profile body in offline mode " and input a text OFFLINE

Screenshot:
immagine

  • Save the theme

  • Now load the user page with the live chat widget, in the case of live helper chat: https://livehelperchat.com
    Chat should be online and you should see correctly ONLINE HTML text. In the live helper chat you need open the pop up then open the widget to see that text because the pro active invitation override the text.

livescreen

  • Now you need put the department and the operator to be offline and wait the widget is converted to the offline status or you can simply refresh the page.

  • Now put again the operator and department to online mode and wait the widget is refreshed without the page refresh.

Expected results:

  • The status widget when switch from offline to online, when is clicked should show the start chat with the online HTML on top.

Actual results:

  • The status widget when is refreshed without page refresh from offline to online still show the Offline text and never show the ONLINE Text so issues with HTML showed.

livescreen2

Other screen to show better the issue:

livescreen3

So the widget is not correctly refreshed.

@PeopleInside
Copy link
Collaborator Author

Just adding some details.
On my personal LHC install I set some HTML code to be showed before the chat.
This has been setup in theme widget, Text above start chat form fields.

immagine

The good result when the chat is online is:

Screenshot 2023-10-19 121056

The HTML show online time and online status.

When the widget switch to offline a offline HTML message is correctly showed.

Screenshot 2023-10-19 121354

When the widget switch from offline to online the BUG happen: the offline HTML is not hidden and is added to the online HTML correctly showed.

Screenshot 2023-10-19 121731

Note: For the online widget, for add the online chat text I use the field Text above start chat form fields in the theme widget.
I tried to remove the HTML from there and put this on the field online HTML but this is showed above the chat logo I have so its a bad visual. I hope with the fix to see just the offline HTML hidden and the Text above start chat form fields still showed when the widget is online :)

@PeopleInside
Copy link
Collaborator Author

I hope next coming version of LHC can fix this issue 🎉

@PeopleInside
Copy link
Collaborator Author

I hope this issue can be fixed :)

@remdex remdex closed this as completed in c35af61 May 9, 2024
@PeopleInside
Copy link
Collaborator Author

Hi, I updated LHC and cleared cache then I used an incognito mode to test this.
When the widget is switched from offline to online the issue still be present the offline text is still showed.
https://app.screencast.com/1T9R9wCoHAfhy

@PeopleInside PeopleInside reopened this May 9, 2024
@remdex
Copy link
Contributor

remdex commented May 9, 2024

Does not happen here :P

@remdex remdex closed this as completed May 9, 2024
@PeopleInside
Copy link
Collaborator Author

Do you checked when widget is turned on from offline without refresh the page?
For me also even updating by master and cleaning cache the issue still be present.

@remdex
Copy link
Contributor

remdex commented May 9, 2024

Contact via skype and proved that all works :D

@PeopleInside
Copy link
Collaborator Author

Thanks, resolved.
The issue was present because the online text was setup in the Text above start chat form fields in the main theme widget edit page. Resolved by moving the online text to the custom content tab, online field in the theme edit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants