Compare commits

...
Author SHA1 Message Date
Shivam MishraandGitHub 236d9bd99f Merge branch 'develop' into feat/captain-toggle-updates 2025-01-27 14:26:01 +05:30
Shivam MishraandGitHub 2e7a891ed7 fix: import 2025-01-27 11:13:55 +05:30
Shivam MishraandGitHub 7cecb80812 Merge branch 'develop' into feat/captain-toggle-updates 2025-01-27 11:07:27 +05:30
Shivam Mishra 03ad9e7b7f feat: remove captain billing fallback 2025-01-24 19:44:02 +05:30
Shivam Mishra c3bd623f77 feat: show captain based on feature flags 2025-01-24 19:42:02 +05:30
Shivam Mishra 3c6d2fe356 feat: hide captain on self-hosted
We will revert this later, for now it's only a stop-gap solution, until we figure out how to toggle this correctly
2025-01-24 09:55:51 +05:30
Shivam Mishra fa5e5bac18 feat: use controls slot 2025-01-24 09:53:18 +05:30
Shivam Mishra 770b3870a8 fix: slot naming 2025-01-24 09:51:52 +05:30
Shivam Mishra 12d70ebff9 fix: condition 2025-01-23 18:14:26 +05:30
Shivam Mishra eff39fbbf5 feat: add showOnlyOnCloud flag 2025-01-23 18:08:41 +05:30
Shivam Mishra 2f4bf9d009 feat: update paywall
Align it with SLA
2025-01-23 17:57:55 +05:30
Shivam Mishra fb0ab150a5 fix: banner compute 2025-01-23 17:28:14 +05:30
Shivam Mishra ad8c74c157 feat: add permission checks to assistant empty states 2025-01-23 10:04:19 +05:30
Shivam Mishra ed44fc77e1 fix: perms for inbox card 2025-01-23 10:00:04 +05:30
Shivam Mishra a898266ae5 feat: add policy for page layout action 2025-01-23 09:54:40 +05:30
Shivam Mishra 586418ba6b feat: update assistant and response card 2025-01-23 09:52:48 +05:30
Shivam Mishra b7946fc65a fix: limit banner check 2025-01-23 09:45:24 +05:30
Shivam Mishra 2272f2af83 feat: use default layout 2025-01-23 09:37:42 +05:30
PranavandGitHub a4b58899c1 Merge branch 'develop' into feat/captain-limits-frontend 2025-01-22 18:14:43 -08:00
Sojan ffd60ea29e chore: spec fix 2025-01-23 02:06:31 +05:30
Sojan JoseandGitHub 429f9841d8 Merge branch 'develop' into feat/captain-limits-frontend 2025-01-23 01:25:06 +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
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
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
Shivam MishraandGitHub bd160b64b6 Merge branch 'develop' into feat/captain-limits 2025-01-22 09:11:39 +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
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
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
Shivam Mishra 53ef8522f2 feat: don't allow more documents than permitted 2025-01-20 15:54:39 +05:30
Shivam Mishra ab955d34e5 feat: log increments 2025-01-20 15:48:17 +05:30
Shivam Mishra eae8159936 feat: increment usage for notes and faqs 2025-01-20 15:44:04 +05:30
Shivam Mishra f1cdfc660e feat: don't allow notes and faq service is captain limits have exceeded 2025-01-20 15:39:25 +05:30
Shivam Mishra 493f9a75e7 fix: check 2025-01-20 15:30:58 +05:30
Shivam Mishra ec6c106a28 feat: remove bot check from response job 2025-01-20 15:30:12 +05:30
Shivam Mishra 901a93915d feat: handle limit check in hook execution service 2025-01-20 15:28:53 +05:30
Shivam Mishra 9c4bb5b0dd feat: update stripe tests 2025-01-20 15:22:54 +05:30
Shivam Mishra 2024d50390 feat: add spec for chat_service 2025-01-20 15:13:27 +05:30
Shivam Mishra 4025517f09 feat: add specs for response builder 2025-01-20 14:33:58 +05:30
Shivam Mishra 8e1581ab83 fix: default return value 2025-01-20 14:07:06 +05:30
Shivam MishraandGitHub 5820ef8f87 Merge branch 'develop' into feat/captain-limits 2025-01-17 16:53:57 +05:30
Shivam Mishra f9a323d136 feat: reset captain usage on stripe webhook 2025-01-17 16:45:57 +05:30
Shivam Mishra 3bac319feb feat: hand off if captain limits are reached 2025-01-17 16:44:22 +05:30
Shivam Mishra 5e094a866d fix: copy 2025-01-17 16:32:37 +05:30
Shivam Mishra 807383ff7d feat: ensure captain limits 2025-01-17 16:29:15 +05:30
Shivam Mishra bc7294e88e feat: add captain_active? fn 2025-01-17 16:28:58 +05:30
Shivam Mishra 9dff2ed76c feat: naive increment response creation 2025-01-17 16:20:59 +05:30
Shivam Mishra e8ba3ee37e feat: add sepcs for captain usage 2025-01-17 16:10:14 +05:30
Shivam Mishra 09ed4ae3c1 refactor: don't use magic strings 2025-01-17 15:35:59 +05:30
Shivam Mishra 05ed407c4a feat: handle documents and increment fn 2025-01-17 15:30:45 +05:30
Shivam Mishra ed551c485a feat: move captain limits to internal config 2025-01-17 15:00:50 +05:30
Shivam Mishra b12151a491 feat: setup captain limits for account 2025-01-17 13:29:57 +05:30
Shivam Mishra cb8dbbfbd8 feat: add CAPTAIN_CLOUD_PLAN_LIMITS config 2025-01-17 13:24:10 +05:30
2 changed files with 5 additions and 13 deletions
@@ -1,4 +1,4 @@
// import { FEATURE_FLAGS } from 'dashboard/featureFlags';
import { FEATURE_FLAGS } from 'dashboard/featureFlags';
import { frontendURL } from '../../../helper/URLHelper';
import AssistantIndex from './assistants/Index.vue';
import AssistantInboxesIndex from './assistants/inboxes/Index.vue';
@@ -12,6 +12,7 @@ export const routes = [
name: 'captain_assistants_index',
meta: {
permissions: ['administrator', 'agent'],
featureFlag: FEATURE_FLAGS.CAPTAIN,
},
},
{
@@ -22,6 +23,7 @@ export const routes = [
name: 'captain_assistants_inboxes_index',
meta: {
permissions: ['administrator', 'agent'],
featureFlag: FEATURE_FLAGS.CAPTAIN,
},
},
{
@@ -30,6 +32,7 @@ export const routes = [
name: 'captain_documents_index',
meta: {
permissions: ['administrator', 'agent'],
featureFlag: FEATURE_FLAGS.CAPTAIN,
},
},
{
@@ -38,6 +41,7 @@ export const routes = [
name: 'captain_responses_index',
meta: {
permissions: ['administrator', 'agent'],
featureFlag: FEATURE_FLAGS.CAPTAIN,
},
},
];
@@ -148,18 +148,6 @@ onMounted(fetchAccountDetails);
/>
</div>
</BillingCard>
<BillingCard
v-else
:title="$t('BILLING_SETTINGS.CAPTAIN.TITLE')"
:description="$t('BILLING_SETTINGS.CAPTAIN.UPGRADE')"
>
<template #action>
<ButtonV4 sm solid slate @click="onClickBillingPortal">
{{ $t('CAPTAIN.PAYWALL.UPGRADE_NOW') }}
</ButtonV4>
</template>
</BillingCard>
<BillingHeader
class="px-1 mt-5"
:title="$t('BILLING_SETTINGS.CHAT_WITH_US.TITLE')"