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

feat: Reconnect logic #9453

Merged
merged 57 commits into from
Jun 3, 2024
Merged

feat: Reconnect logic #9453

merged 57 commits into from
Jun 3, 2024

Conversation

iamsivin
Copy link
Member

@iamsivin iamsivin commented May 10, 2024

Pull Request Template

Description

Fixes https://linear.app/chatwoot/issue/CW-1957/web-app-disconnects-and-doesnt-notify-about-incoming-messages-anymore

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Loom Video
https://www.loom.com/share/076018aa84e248ae806fe3bd865165a1?sid=4e25a798-8796-4b1f-8f02-3c0013862d2f

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

linear bot commented May 10, 2024

@iamsivin iamsivin temporarily deployed to chatwoot-pr-9453 May 10, 2024 17:03 Inactive
@iamsivin iamsivin marked this pull request as ready for review May 14, 2024 07:53
@iamsivin iamsivin changed the title feat: Updates reconnect logic feat: Reconnect logic May 14, 2024
@muhsin-k muhsin-k self-requested a review May 30, 2024 10:32
Copy link
Member

@muhsin-k muhsin-k left a comment

Choose a reason for hiding this comment

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

@iamsivin Please see the inline comments.

@iamsivin iamsivin requested a review from muhsin-k May 30, 2024 12:20
@muhsin-k
Copy link
Member

@iamsivin Message are updating after the disconnect. But the loader is not closing for some reason.

chat-message-loading.mov

@iamsivin iamsivin requested a review from muhsin-k June 3, 2024 07:12
@iamsivin
Copy link
Member Author

iamsivin commented Jun 3, 2024

@iamsivin Message are updating after the disconnect. But the loader is not closing for some reason.

chat-message-loading.mov

@muhsin-k Nice catch! Updated the PR with a fix.

Copy link
Member

@scmmishra scmmishra left a comment

Choose a reason for hiding this comment

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

@iamsivin overall the code looks good to go, just had one suggestion, feel free to take that up separately

…BeforeUnmount` hook (#9581)

This PR makes the following changes

1. Add `@vueuse/core` package, it supports Vue 2.7, we should start
using this across the board
2. Add `useEmitter` composable, this adds a listener on the emitter on
`onMounted` and automatically removes it on `onBeforeUnmount`
3. Use `useEmitter` & `useEventListener` from in
`NetworkNotification.vue`
@iamsivin iamsivin requested a review from scmmishra June 3, 2024 08:32
@muhsin-k muhsin-k merged commit af90f21 into develop Jun 3, 2024
14 of 15 checks passed
@muhsin-k muhsin-k deleted the feat/CW-1957 branch June 3, 2024 10:24
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.

None yet

4 participants