Commit Graph
4201 Commits
Author SHA1 Message Date
Shivam Mishra 4f7d1a67cf refactor: move filter fn as separate isValidPath 2024-06-05 09:09:52 +05:30
Shivam Mishra 1336b0c750 refactor: separate sanitizePaths fn 2024-06-03 23:07:19 +05:30
Shivam Mishra 84445e0d1e test: google callbacks controller 2024-06-03 22:59:37 +05:30
Shivam Mishra d9cd8b8261 test: Google::AuthorizationsController 2024-06-03 22:54:34 +05:30
Shivam MishraandGitHub 59766ebc95 Merge branch 'develop' into feature/cw-3369 2024-06-03 22:51:24 +05:30
Shivam Mishra d1d958601d test: update cache_key 2024-06-03 22:49:02 +05:30
Shivam Mishra 46beab047d fix: route name 2024-06-03 22:45:21 +05:30
Shivam Mishra b832fdc329 test: update cache key 2024-06-03 22:43:41 +05:30
00ef9c475f fix: Replace the bus events with emitter in widget (#9584)
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2024-06-03 16:36:15 +05:30
af90f21cfd feat: Reconnect logic (#9453)
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
2024-06-03 15:54:19 +05:30
Shivam MishraandGitHub 00da2ac847 fix: locales settings on portal (#9583)
The previous changes made on Portal locales introduced a bug where users
were not able to set the default locale, this PR fixes that
2024-06-03 14:56:53 +05:30
Shivam Mishra 5c957054fe feat: enable inbox configuration 2024-06-03 12:55:03 +05:30
Shivam MishraandGitHub df26e940da Merge branch 'develop' into feature/cw-3369 2024-06-03 12:51:34 +05:30
Shivam Mishra 05c18de547 feat: hide google option 2024-06-03 12:23:39 +05:30
Shivam Mishra e54d426577 refactor: explicit token URL 2024-06-03 12:19:35 +05:30
Shivam Mishra e6185536a8 fix: not getting refresh_token in callback response 2024-06-03 12:19:18 +05:30
Shivam Mishra 9d4ce3964b feat: use correct token 2024-06-02 21:32:43 +05:30
Shivam Mishra 5792542ee2 feat: use browser validations 2024-06-02 21:28:12 +05:30
Shivam Mishra 68d20a854e feat: use composition API 2024-06-02 21:25:19 +05:30
Shivam Mishra 23e1d614bf fix: remove trim 2024-06-02 19:51:50 +05:30
Shivam Mishra a8ac78cd8e fix: class 2024-06-02 19:51:22 +05:30
Shivam Mishra 808a27c793 feat: enable controller 2024-06-02 19:50:46 +05:30
Shivam Mishra f57d0f9da9 fix: include concern 2024-06-02 19:50:38 +05:30
Shivam Mishra db13956f81 fix: concern name 2024-06-02 19:48:42 +05:30
Shivam Mishra 47074e8a82 feat: add google client 2024-06-02 19:43:35 +05:30
Shivam Mishra b8c237ca58 feat: add scope to cache key 2024-06-02 19:41:40 +05:30
Shivam Mishra b6f73221b9 feat: add authorization controller for google inbox 2024-06-02 19:37:31 +05:30
Shivam Mishra d974be86ee feat: add google concern 2024-06-02 19:35:41 +05:30
Shivam Mishra 4582794ad4 feat: bring back Microsoft Controller
I made a booboo, Microsoft concern was actually used in Microsoft::AuthorizationsController, which needed the OAuth client, let's bring it back
2024-06-02 19:34:33 +05:30
Shivam Mishra f906b9a775 feat: add imap 2024-06-02 19:27:46 +05:30
Shivam Mishra df373bec62 refactor: move update_channel 2024-06-02 19:27:26 +05:30
Shivam Mishra d7b564ea9f feat: use a generic name for inbox settings and agents page 2024-06-02 19:15:27 +05:30
f956530b36 chore: upgrade packages (#9555)
This PR upgrades the packages to the latest patch versions, no-breaking
changes. Can be merged once CI clears

Co-authored-by: Pranav <pranav@chatwoot.com>
2024-06-02 19:09:06 +05:30
Pavel KuzminandGitHub 803471e42f fix: browser info (#9569)
# Pull Request Template

## Description

fixed getting browser data

In Vue, without computed properties, the data doesn't update, and
because of this, it doesn't display information about the browser.

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality not to work as expected)
- [ ] This change requires a documentation update

## Checklist:

- [x] My code follows the style guidelines of this project
- [x] 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
2024-06-02 19:06:10 +05:30
Shivam Mishra 8bdb1a2ce0 refactor: move more functions to base controller 2024-06-02 19:03:43 +05:30
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
b0114dee42 chore(deps): bump pug from 3.0.2 to 3.0.3 (#9564)
Bumps [pug](https://github.com/pugjs/pug) from 3.0.2 to 3.0.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pugjs/pug/releases">pug's
releases</a>.</em></p>
<blockquote>
<h2>pug-code-gen@3.0.3</h2>
<h2>Bug Fixes</h2>
<ul>
<li>Validate <code>templateName</code> and <code>globals</code> are
valid JavaScript identifiers to prevent possible remote code execution
if un-trusted user input is passed to the compilation options (<a
href="https://redirect.github.com/pugjs/pug/issues/3438">#3438</a>)</li>
</ul>
<h2>pug@3.0.3</h2>
<h2>Bug Fixes</h2>
<ul>
<li>
<p>Update pug-code-gen with the following fix: (<a
href="https://redirect.github.com/pugjs/pug/issues/3438">#3438</a>)</p>
<p>Validate <code>templateName</code> and <code>globals</code> are valid
JavaScript identifiers to prevent possible remote code execution if
un-trusted user input is passed to the compilation options</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/pugjs/pug/commit/32acfe8f197dc44c54e8af32c7d7b19aa9d350fb"><code>32acfe8</code></a>
fix: ensure template names are valid identifiers (<a
href="https://redirect.github.com/pugjs/pug/issues/3438">#3438</a>)</li>
<li><a
href="https://github.com/pugjs/pug/commit/4767cafea0af3d3f935553df0f9a8a6e76d470c2"><code>4767caf</code></a>
refactor: convert pug-error to TypeScript (<a
href="https://redirect.github.com/pugjs/pug/issues/3355">#3355</a>)</li>
<li><a
href="https://github.com/pugjs/pug/commit/a724446abb128f2a09acb143ce436021be8f6e6a"><code>a724446</code></a>
chore: update character-parser (<a
href="https://redirect.github.com/pugjs/pug/issues/3354">#3354</a>)</li>
<li><a
href="https://github.com/pugjs/pug/commit/6cca8f76befe7285eead0416ba4e2dbba825ab65"><code>6cca8f7</code></a>
docs: fix GitHub format in README (<a
href="https://redirect.github.com/pugjs/pug/issues/3335">#3335</a>)</li>
<li>See full diff in <a
href="https://github.com/pugjs/pug/compare/pug@3.0.2...pug@3.0.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pug&package-manager=npm_and_yarn&previous-version=3.0.2&new-version=3.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/chatwoot/chatwoot/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-31 10:46:16 -07:00
Shivam MishraandGitHub ae35b47ae3 fix: Add the translation for Sign in with Microsoft button (#9567)
The sign in button for Microsoft inbox was not translated, this PR fixes it
2024-05-31 09:01:50 -07:00
Shivam Mishra a8e1fba1bd fix: google callbacks 2024-05-31 18:51:16 +05:30
Shivam Mishra ea86184675 fix: tests 2024-05-31 18:49:22 +05:30
Shivam Mishra 6ec5bbc2c7 feat: add provider_name 2024-05-31 18:35:02 +05:30
Fayaz AhmedandGitHub b474929f5e chore: Replace eventBus with mitt.js [CW-3275] (#9539)
# Replace the deprecated `eventBus` with mitt.js

## Description

Since eventBus and it's respective methods are deprecated and removed
from all future releases of vue, this was blocking us from migrating.
This PR replaces eventBus with
[mitt](https://github.com/developit/mitt). I have created a wrapper
mitt.js to simulate the same old event names so it's backwards
compatible, without making a lot of changes.


Fixes # (issue)

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality not to work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

1. Made sure all the places we're listening to bus events are working as
expected.
2. Respective specsf or the events from mitt.


## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream
modules
2024-05-31 15:50:36 +05:30
Shivam Mishra 32f25e3bd7 feat: kickstart google callbacks 2024-05-30 19:10:13 +05:30
Shivam Mishra d51e3ad5bf refactor: separate OauthCallbackController 2024-05-30 19:06:44 +05:30
Shivam Mishra 2dd2cfeb87 feat: enable google 2024-05-30 13:47:09 +05:30
Shivam Mishra bd7e1fba3f feat: add joinURL 2024-05-30 13:42:41 +05:30
Shivam Mishra bece33792e feat: add gmail/google as an option 2024-05-30 13:17:10 +05:30
Shivam Mishra ffb687d12f fix: channel selector layout 2024-05-30 13:16:51 +05:30
Shivam Mishra 980f4da669 feat: allow google as a provider 2024-05-30 13:09:04 +05:30
Sivin VargheseandGitHub e3eca47c31 feat: Split reconnect logic PR (store) (#9520)
# Pull Request Template

## Description

This PR includes store filter parts split from this [Reconnect
PR](https://github.com/chatwoot/chatwoot/pull/9453)
2024-05-30 12:29:55 +05:30
Shivam MishraandGitHub 6c682a6869 feat: add reauthorization banner for Facebook (#9553) 2024-05-30 09:41:04 +05:30