Commit Graph
4712 Commits
Author SHA1 Message Date
Shivam Mishra 8d3cecc997 feat: add padding for noRecordsMessage 2025-01-22 18:25:08 +05:30
Shivam Mishra f21e10ca47 feat: add pricing link 2025-01-22 18:25:08 +05:30
Shivam Mishra cc23320dad feat: use setup syntax 2025-01-22 18:25:08 +05:30
Shivam Mishra e22e97ad06 test: update chat_service spec 2025-01-22 13:43:42 +05:30
Shivam MishraandGitHub 4f838e499e Merge branch 'develop' into feat/captain-limits 2025-01-22 10:08:00 +05:30
Shivam Mishra 0db7c3aebf feat: use custom error 2025-01-22 10:07:29 +05:30
Shivam Mishra e7d044d9dd feat: handle error gracefully 2025-01-22 10:04:40 +05:30
Shivam Mishra c18bc6fd3b fix: chat service spec 2025-01-22 10:03:07 +05:30
PranavandGitHub 3a950dbdbb fix: Use documentable instead of document (#10743)
Fixes
https://linear.app/chatwoot/issue/CW-3950/nomethoderror-undefined-method-document-for-an-instance-of
2025-01-21 19:43:20 -08:00
Shivam MishraandGitHub bd160b64b6 Merge branch 'develop' into feat/captain-limits 2025-01-22 09:11:39 +05:30
451c28a7a1 feat: add prompt suggestions and June events (#10726)
This PR adds the following two features

1. Prompt suggestions to get started with Copilot Chat
2. June events for each action

![CleanShot 2025-01-20 at 21 00
52@2x](https://github.com/user-attachments/assets/d73e7982-0f78-4d85-873e-da2c16762688)

---------

Co-authored-by: Pranav <pranavrajs@gmail.com>
2025-01-21 22:52:42 +05:30
Shivam Mishra 1fa5e94f70 fix: rubocop 2025-01-21 18:24:40 +05:30
Shivam MishraandGitHub c53cb4a63d Merge branch 'develop' into feat/captain-limits 2025-01-21 18:21:33 +05:30
Shivam Mishra e1ff351062 feat: enforce limit in document parsing 2025-01-21 18:21:13 +05:30
Shivam Mishra 1620a322cd feat: handle base plan usage 2025-01-21 18:19:56 +05:30
Shivam Mishra d5ab198c6f feat: handle document limit in the model 2025-01-21 18:07:55 +05:30
Sivin VargheseandGitHub 0021a7d8e5 chore: Design improvements (#10732) 2025-01-21 17:03:15 +05:30
Shivam Mishra d2e10bdc19 feat: allow setting limits from SuperAdmin 2025-01-21 14:59:28 +05:30
Shivam Mishra 4c1b76a70c fix: typo 2025-01-21 14:51:28 +05:30
Shivam Mishra d0293d397d feat: handle parsing errors 2025-01-21 14:51:12 +05:30
Shivam Mishra 9c0e7b1897 feat: swap limits and custom attributes
We will store the usage in custom attributes and the max allowed in limits, this is much more aligned semantically in comparison to the previous implementation.
2025-01-21 14:49:44 +05:30
Shivam Mishra 64596722c0 refactor: use 'responses' instead of 'generated_responses' 2025-01-21 14:30:48 +05:30
Shivam Mishra ec0bfcfcb0 test: specs for overriding captain limits 2025-01-21 14:29:50 +05:30
Shivam Mishra c084e83081 refactor: move default_captain_limit to private 2025-01-21 14:26:29 +05:30
Shivam Mishra d2ca5f4390 feat: allow limits from custom attributes 2025-01-21 14:24:50 +05:30
Shivam Mishra 492fcf8ced feat: add specs for missing configuration 2025-01-21 14:12:10 +05:30
Shivam Mishra 322607f256 test: reorganize specs 2025-01-21 14:10:18 +05:30
Shivam Mishra 42cdce5795 test: update specs for document usage and reorginze them 2025-01-21 14:08:25 +05:30
Shivam Mishra e6ca17d134 feat: setup document usage 2025-01-21 13:59:07 +05:30
615a0c69fe chore: Help center improvements (#10712)
# Pull Request Template

## Description

Fixes https://linear.app/chatwoot/issue/CW-3913/issues-with-help-center

**Fixes included**
1. > The default locale that is selected should the portal default
locale.

Now, we update the last active locale in UI settings after changing the
selected locale from the article page header. This ensures that we see
the last active locale-based categories on the category page and
remember it when we return. Initially, it’s the default locale.
     
2. > I cannot switch to a different locale if there are no articles in
the portal

Now, the `v-if` condition that checked for the presence of articles in
portal has been removed. Additionally, the locale length checks for the
showing dropdown have been removed, allows locale switching even if
article is not preset.
     
3. > Create or updating the article is quite painful, see the video 

Removed the `quickSave` and `saveAndSyncDebounced` usage for a newly
creating article.

4. > I cannot see the articles if I delete the English locale
(irrespective of what I choose as default locale)

Now, the last active locale in UI settings will automatically update to
the default locale when the last active locale is deleted.

5. > Set a new default locale other than `en` and delete the `en` locale
preset in the portal. Then, adding a new locale will automatically set
`en` as the default locale, even if the `en` locale not preset in the
portal.

    Now, we pass default locale when we add a new locale.

6. Adds search for all dropdown menus
7. Update article count in realtime.


## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

**Check this linear issues**
https://linear.app/chatwoot/issue/CW-3913/issues-with-help-center


## 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
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] 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
- [ ] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Pranav <pranav@chatwoot.com>
2025-01-21 13:50:01 +05:30
PranavandGitHub 1528473dd0 fix(ce): Check the edition before running the data migration (#10728)
Fixes #10721

This PR addresses an issue where the data migration in the CE edition
was failing due to missing models. The change ensures that the migration
process runs only when the deployment is using the EE image.
2025-01-21 10:00:37 +05:30
Shivam Mishra 637fc2c9ac test: update spec for usage_limits 2025-01-20 17:55:41 +05:30
Shivam Mishra cd72aa7bbf fix: listener 2025-01-20 17:48:06 +05:30
Shivam Mishra fffb093df0 feat: perform hand-off mid conversation if required 2025-01-20 17:44:18 +05:30
Shivam Mishra 906171462f fix: return response correctly 2025-01-20 17:07:23 +05:30
Shivam Mishra 6a3d23c11a fix: use to_i 2025-01-20 17:06:17 +05:30
Shivam Mishra b1ddcb946e feat: only check for captain_active 2025-01-20 16:55:42 +05:30
Shivam Mishra 0a4af3592e chore: disable response usage increment 2025-01-20 16:55:11 +05:30
Shivam Mishra 732b0d0ec0 refactor: account sepc 2025-01-20 16:54:22 +05:30
Shivam Mishra 4f6190886f style: fix rubocop issues 2025-01-20 16:45:41 +05:30
Shivam Mishra 02d90d9432 fix: rubocop issues 2025-01-20 16:41:49 +05:30
Shivam Mishra dd9a746603 fix: assistant log 2025-01-20 16:41:22 +05:30
Shivam Mishra 43a70ba0e4 feat: use instance_double 2025-01-20 16:39:40 +05:30
Shivam Mishra 4db7505550 style: don't use let! 2025-01-20 16:39:00 +05:30
Shivam MishraandGitHub 520009c7c8 Merge branch 'develop' into feat/captain-limits 2025-01-20 16:36:00 +05:30
Shivam Mishra 018313b033 style: remove unused assignments 2025-01-20 16:27:03 +05:30
Shivam Mishra 3ef939d6a3 style: update fn name 2025-01-20 16:26:30 +05:30
Shivam Mishra 0445bec38a style: use clamp 2025-01-20 16:25:40 +05:30
Shivam Mishra 491d653cbe feat: setup limits on document creation 2025-01-20 16:17:39 +05:30
Shivam Mishra c0cc97c308 fix: access 2025-01-20 16:17:22 +05:30