app-tutor-ai-consumer 1.28.1 → 1.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,6 +124,21 @@ jobs:
124
124
  description: 'Deploy: ${{env.APP_NAME}} v${{env.VERSION}} - ${{ github.ref_name }}'
125
125
 
126
126
  - name: Sends chat notification
127
+ uses: Hotmart-Org/actions/notification@master
128
+ with:
129
+ webhook-chat: >-
130
+ https://chat.googleapis.com/v1/spaces/AAAA1sn1iiE/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=JVaCKxIPX2oHcZi_KJoCgwFpGg54FxVUNDaB8ll3AQ4
131
+ author: false
132
+ type: Original
133
+ title: Release *@hotmart/${{ env.APP_NAME }}*
134
+ from: |-
135
+ \nAuthor: *${{ github.actor }}*
136
+ Version: *${{ github.ref }}*
137
+ Environment: *Production*
138
+ content: "Message *@hotmart/${{ env.APP_NAME }}* was deployed successfully 🚀 \\n\\n *Sentry Dashboard:* https://hotmart.sentry.io/insights/projects/app-tutor-ai-consumer/?project=4509837136887808&statsPeriod=24h \\n *Repository Release:* https://github.com/Hotmart-Org/${{ env.APP_NAME }}/releases \\n *Projects Map:* https://hotmart.atlassian.net/wiki/spaces/Consumer/pages/423133274/Monitoramento+Club \\n *New Relic Dashboard:* https://one.newrelic.com/dashboards/detail/Mjc1MDN8VklafERBU0hCT0FSRHxkYTo2MTIyNTA5"
139
+
140
+
141
+ - name: Notify Google Chat
127
142
  uses: Hotmart-Org/actions/notification@master
128
143
  with:
129
144
  type: 'Original'
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [1.29.1](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.29.0...v1.29.1) (2025-09-02)
2
+
3
+ ### Bug Fixes
4
+
5
+ - add missing context fields for send message ([3a120cb](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/3a120cbaee275731deaba215b30ce2860cd1c574))
6
+
7
+ # [1.29.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.28.1...v1.29.0) (2025-08-29)
8
+
9
+ ### Features
10
+
11
+ - adding club deployment chanel message ([2de3e20](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/2de3e207bc44df5098c205cc086fc7858eb78b1e))
12
+
1
13
  ## [1.28.1](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.28.0...v1.28.1) (2025-08-21)
2
14
 
3
15
  # [1.28.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.27.6...v1.28.0) (2025-08-19)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-tutor-ai-consumer",
3
- "version": "1.28.1",
3
+ "version": "1.29.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "dev": "rspack serve --env=development --config config/rspack/rspack.config.js",
@@ -4,3 +4,8 @@ export const RELEASE_FULL_NAME = `${process.env.RELEASE_FULL_NAME}_${process.env
4
4
  export const DEFAULT_STALE_TIME = 1000 * 60 * 3 // 3 minutes
5
5
  export const APP_VERSION = process.env.PROJECT_VERSION ?? ''
6
6
  export const APP_SYSTEM = 'Web'
7
+ export const PLATFORM = {
8
+ WEB: 'WEB',
9
+ ANDROID: 'ANDROID',
10
+ IOS: 'IOS'
11
+ }
@@ -1,6 +1,7 @@
1
1
  import { UAParser } from 'ua-parser-js'
2
2
 
3
3
  import { act, chance, renderHook, waitFor } from '@/src/config/tests'
4
+ import { APP_VERSION, PLATFORM } from '@/src/lib/utils'
4
5
  import { DirectMessagesService as MessagesService } from '@/src/modules/messages'
5
6
  import { useGetProfile } from '@/src/modules/profile'
6
7
  import * as Store from '@/src/modules/widget'
@@ -86,7 +87,11 @@ describe('useSendTextMessage', () => {
86
87
  router: text,
87
88
  osVersion: UAParserMock.browser.version,
88
89
  platformDetail: UAParserMock.browser.name,
89
- ucode: defaultSettings.user?.ucode
90
+ ucode: defaultSettings.user?.ucode,
91
+ appVersion: APP_VERSION,
92
+ membershipId: defaultSettings.membershipId,
93
+ membershipSlug: defaultSettings.membershipSlug,
94
+ platform: PLATFORM.WEB
90
95
  },
91
96
  externalId: expect.any(String),
92
97
  namespace: defaultSettings.namespace,
@@ -3,6 +3,7 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'
3
3
  import { UAParser } from 'ua-parser-js'
4
4
  import { v4 } from 'uuid'
5
5
 
6
+ import { APP_VERSION, PLATFORM } from '@/src/lib/utils'
6
7
  import { DirectMessagesService as MessagesService } from '@/src/modules/messages'
7
8
  import { useGetProfile } from '@/src/modules/profile'
8
9
  import { useWidgetLoadingAtom, useWidgetSettingsAtomValue } from '@/src/modules/widget'
@@ -70,13 +71,17 @@ function useSendTextMessage() {
70
71
  question: questionParam,
71
72
  router: questionParam ? 'summary' : undefined,
72
73
  osVersion: browserInfo.version,
74
+ appVersion: APP_VERSION,
75
+ platform: PLATFORM.WEB,
73
76
  platformDetail: browserInfo.name,
74
77
  ucode: settings.user?.ucode,
75
78
  agentProductId: settings.config?.metadata?.agentProductId,
76
79
  agentName: settings.config?.metadata?.agentName,
77
80
  courseName: settings.config?.metadata?.courseName,
78
81
  source: settings.config?.metadata?.source,
79
- prompt: settings.config?.metadata?.promptId
82
+ prompt: settings.config?.metadata?.promptId,
83
+ membershipSlug: settings.membershipSlug,
84
+ membershipId: settings.membershipId
80
85
  },
81
86
  externalId: v4(),
82
87
  namespace: settings.namespace,