Sojan
ffd60ea29e
chore: spec fix
2025-01-23 02:06:31 +05:30
Sojan Jose and GitHub
429f9841d8
Merge branch 'develop' into feat/captain-limits-frontend
2025-01-23 01:25:06 +05:30
Shivam Mishra and GitHub
3b366f43e6
feat: setup captain limits ( #10713 )
...
This pull request introduces several changes to implement and manage
usage limits for the Captain AI service. The key changes include adding
configuration for plan limits, updating error messages, modifying
controllers and models to handle usage limits, and updating tests to
ensure the new functionality works correctly.
## Implementation Checklist
- [x] Ability to configure captain limits per check
- [x] Update response for `usage_limits` to include captain limits
- [x] Methods to increment or reset captain responses limits in the
`limits` column for the `Account` model
- [x] Check documents limit using a count query
- [x] Ensure Captain hand-off if a limit is reached
- [x] Ensure limits are enforced for Copilot Chat
- [x] Ensure limits are reset when stripe webhook comes in
- [x] Increment usage for FAQ generation and Contact notes
- [x] Ensure documents limit is enforced
These changes ensure that the Captain AI service operates within the defined usage limits for different subscription plans, providing appropriate error messages and handling when limits are exceeded.
2025-01-23 01:23:18 +05:30
David Kubeš and GitHub
52362ec1ea
fix: country selection ( #10670 )
2025-01-22 21:30:51 +05:30
Shivam Mishra
bb494c6556
feat: add limit warning banner
2025-01-22 20:23:27 +05:30
Shivam Mishra
bfdb05cdbe
feat: update banner to show usage
2025-01-22 20:22:58 +05:30
Shivam Mishra
8631d75cc7
feat: add useCaptain composable
2025-01-22 20:17:58 +05:30
Shivam Mishra
08e1ed2a0f
feat: add banner for document and responses limit
2025-01-22 20:15:03 +05:30
Shivam Mishra
f61bf40d81
feat: new banner component
2025-01-22 20:14:49 +05:30
Sivin Varghese and GitHub
38e46bbb6c
chore: Adds loader for attachment download buttons ( #10748 )
2025-01-22 18:29:57 +05:30
Shivam Mishra
d1549a1086
feat: add captain disabled for hacker plan
2025-01-22 18:29:53 +05:30
Shivam Mishra
b37bd91d91
feat: handle missing data in billing
2025-01-22 18:25:09 +05:30
Shivam Mishra
5a6ead48cd
feat: remove billing item
2025-01-22 18:25:09 +05:30
Shivam Mishra
97b2cfcd56
feat: hide action when paywall is visible
2025-01-22 18:25:09 +05:30
Shivam Mishra
b71428b682
feat: add billing router
2025-01-22 18:25:09 +05:30
Shivam Mishra
71a7bc0341
feat: enable captain paywall
2025-01-22 18:25:09 +05:30
Shivam Mishra
233c23f8d3
feat: update i18n for Captain Paywall
2025-01-22 18:25:09 +05:30
Shivam Mishra
85939a7a14
feat: add captain paywall component
2025-01-22 18:25:08 +05:30
Shivam Mishra
1bf76c8008
feat: add paywall check in page layout
2025-01-22 18:25:08 +05:30
Shivam Mishra
04b7806c06
feat: allow captain generally
2025-01-22 18:25:08 +05:30
Shivam Mishra
8a8a459f76
feat: add util for checking feature enabled
2025-01-22 18:25:08 +05:30
Shivam Mishra
7e2fb8a0a8
feat: allow captain for paid users
2025-01-22 18:25:08 +05:30
Shivam Mishra
6ab88a8167
feat: update page layout
2025-01-22 18:25:08 +05:30
Shivam Mishra
273cfd41e0
fix: empty state layout width
2025-01-22 18:25:08 +05:30
Shivam Mishra
81e93c57a7
feat: update paywall modal with new color
2025-01-22 18:25:08 +05:30
Shivam Mishra
d420c2cec7
feat: new billing page
2025-01-22 18:25:08 +05:30
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
Sivin Varghese and GitHub
137c6f8a75
fix: Context menu and its submenu boundary overflow ( #10729 )
...
# Pull Request Template
## Description
This PR adds smart positioning to prevent context menu and submenu from
overflowing screen boundaries. The context menu and its submenu now
dynamically adjust their position when there isn't enough space.
Fixes
https://linear.app/chatwoot/issue/CW-3936/assign-to-agent-ui-element-is-drawn-off-canvas
https://github.com/chatwoot/chatwoot/issues/10727
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
## How Has This Been Tested?
**Loom video**
**Before**
https://www.loom.com/share/6c267dde103c4f2281ed5b4d006a43b1?sid=047966f5-d6d3-4de6-ade8-270141e6e215
**After**
https://www.loom.com/share/5599c6061bb74c3ea527dd06960d3189?sid=ffb01149-bb7a-449e-b0ec-02cc191f472b
## 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
2025-01-22 17:56:43 +05:30
Shivam Mishra
e22e97ad06
test: update chat_service spec
2025-01-22 13:43:42 +05:30
Shivam Mishra and GitHub
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
Pranav and GitHub
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 Mishra and GitHub
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

---------
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 Mishra and GitHub
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 Varghese and GitHub
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