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

fix: Right click Snooze is not working #9498

Merged
merged 12 commits into from
May 22, 2024
Merged

fix: Right click Snooze is not working #9498

merged 12 commits into from
May 22, 2024

Conversation

iamsivin
Copy link
Member

@iamsivin iamsivin commented May 18, 2024

Pull Request Template

Description

This PR will fix the snooze action that is not working on the right click

Fixes https://linear.app/chatwoot/issue/CW-3313/right-click-snooze-is-not-working

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Loom video
https://www.loom.com/share/db9c62931a5d4836b37354bdae1a61db?sid=4ddf1467-2132-4e1c-a88b-d0cea0234c67

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 18, 2024

@iamsivin iamsivin marked this pull request as ready for review May 20, 2024 09:23
@@ -143,12 +128,10 @@ export default {
},
},
mounted() {
bus.$on(CMD_SNOOZE_CONVERSATION, this.onCmdSnoozeConversation);
Copy link
Member Author

Choose a reason for hiding this comment

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

I moved the CMD_SNOOZE_CONVERSATION bus event from the ResolveAction.vue to the ChatList.vue so that the same event could be used from the chat list and chat view.

@@ -15,6 +15,7 @@ const state = {
currentInbox: null,
selectedChatId: null,
appliedFilters: [],
contextMenuChatId: null,
Copy link
Member Author

Choose a reason for hiding this comment

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

I use Vuex to show the snooze option dynamically on the CMD bar. Only show the snooze option in the CMD bar when we click the snooze button from the context menu (NB: home route)

@@ -67,7 +67,7 @@
"markdown-it": "^13.0.2",
"markdown-it-link-attributes": "^4.0.1",
"md5": "^2.3.0",
"ninja-keys": "^1.2.2",
Copy link
Member

Choose a reason for hiding this comment

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

Any particular reason to use a fork of ninja-keys?

Copy link
Member Author

Choose a reason for hiding this comment

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

@scmmishra Yes, the ninja-keys don't support the close event. So @muhsin-k has created a PR in the official repo, which is not merged as I guess it is not maintained. The changes in the PR are updated in our forked repo and deployed in npm by Muhsin.

@iamsivin iamsivin requested a review from scmmishra May 20, 2024 15:31
@muhsin-k muhsin-k self-requested a review May 21, 2024 06:12
@iamsivin iamsivin temporarily deployed to chatwoot-pr-9498 May 22, 2024 04:51 Inactive
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.

Tested locally, working as expected.

@muhsin-k muhsin-k merged commit 0d13c11 into develop May 22, 2024
15 of 16 checks passed
@muhsin-k muhsin-k deleted the fix/CW-3313 branch May 22, 2024 07:33
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