Skip to content

Commit 10fadd1

Browse files
committed
feat: ai assistant
1 parent 784226e commit 10fadd1

31 files changed

Lines changed: 3158 additions & 46 deletions

apps/csk-v-next/.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ UNIFORM_PREVIEW_SECRET=hello-world
99
# defaults to localhost:3000 if not set.
1010
#When set, should resolve to the base url of the app.
1111
# This is used to generate the sitemap and robots.txt
12-
BASE_URL=
12+
BASE_URL=
13+
14+
# OpenAI API key
15+
OPENAI_API_KEY=
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# yaml-language-server: $schema=<https://uniform.app/schemas/json-schema/component-definition/v1.json>
2+
$schema: https://uniform.app/schemas/json-schema/component-definition/v1.json
3+
id: chat
4+
name: Chat
5+
icon: bot
6+
parameters: []
7+
categoryId: 096fd5ed-5e2a-4bfa-834b-fb805d1d1ce9
8+
useTeamPermissions: true
9+
slots: []
10+
canBeComposition: false
11+
created: '2025-03-18T10:04:48.204875+00:00'
12+
updated: '2025-03-18T10:04:48.204875+00:00'
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# yaml-language-server: $schema=<https://uniform.app/schemas/json-schema/component-definition/v1.json>
2+
$schema: https://uniform.app/schemas/json-schema/component-definition/v1.json
3+
id: recommendations
4+
name: Recommendations
5+
icon: bulb
6+
parameters: []
7+
categoryId: 096fd5ed-5e2a-4bfa-834b-fb805d1d1ce9
8+
useTeamPermissions: true
9+
slots:
10+
- id: recommendations
11+
name: Recommendations
12+
maxComponents: 1
13+
allowedComponents:
14+
- $personalization
15+
- $p:19ea7368-29fc-4e61-b730-b78ee47e74de
16+
allowAllComponents: false
17+
inheritAllowedComponents: false
18+
patternsInAllowedComponents: true
19+
canBeComposition: true
20+
created: '2025-03-17T21:31:55.1773+00:00'
21+
updated: '2025-03-19T11:36:39.470442+00:00'
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
composition:
2+
_name: Product Recommendation
3+
_id: 19ea7368-29fc-4e61-b730-b78ee47e74de
4+
type: link
5+
parameters:
6+
link:
7+
type: link
8+
value:
9+
path: /${locale}/products/${#jptr:/Single Product Content/entry/_slug}
10+
type: projectMapNode
11+
nodeId: 702b0e0b-3858-4b5d-99e4-bdb98097ca0f
12+
projectMapId: 537d11ff-9ebe-4420-9682-36694477e2f9
13+
dynamicInputValues:
14+
locale: ${locale}
15+
product-slug: ${#jptr:/Single Product Content/entry/_slug}
16+
displayName:
17+
type: text
18+
locales:
19+
en: ${#jptr:/Single Product Content/entry/_name}
20+
slots:
21+
linkContent:
22+
- _id: baf65f29-3f6b-460f-8206-f46f74460edd
23+
type: card
24+
_pattern: 665b55aa-f241-413e-8778-cff9a2f1f8aa
25+
_dataResources:
26+
Single Product Content:
27+
type: singleProduct
28+
variables:
29+
locale: ${locale}
30+
entryId: efc7afec-03c4-4fd4-b478-a32708f5852e
31+
isPatternParameter: true
32+
ignorePatternParameterDefault: true
33+
_overrides:
34+
baf65f29-3f6b-460f-8206-f46f74460edd:
35+
parameters:
36+
displayName:
37+
type: text
38+
locales:
39+
en: ${#jptr:/Single Product Content/entry/_name}
40+
baf65f29-3f6b-460f-8206-f46f74460edd|0952417a-061c-4634-91df-1341269e4054:
41+
parameters:
42+
image:
43+
type: asset
44+
value: ${#jptr:/Single Product Content/entry/fields/primaryImage/value}
45+
baf65f29-3f6b-460f-8206-f46f74460edd|8bad3ddd-add0-43d3-a314-5836bf0c7a93:
46+
parameters:
47+
text:
48+
type: text
49+
value: >-
50+
${#jptr:/Single Product
51+
Content/entry/fields/variants/value/0/fields/currency/value}
52+
${#jptr:/Single Product
53+
Content/entry/fields/variants/value/0/fields/price/value}
54+
baf65f29-3f6b-460f-8206-f46f74460edd|988f7805-9e0e-4b30-acaf-f97d7dd5099f:
55+
parameters:
56+
text:
57+
type: text
58+
value: >-
59+
Vintage Drip Coffee Maker${#jptr:/Single Product
60+
Content/entry/fields/variants/value/0/fields/title/value}
61+
_overridability:
62+
hideLockedParameters: true
63+
_locales:
64+
- en
65+
created: '2025-03-18T20:14:39.454454+00:00'
66+
modified: '2025-03-18T20:23:09.769177+00:00'
67+
pattern: true
68+
previewImageUrl: >-
69+
https://res.cloudinary.com/uniform-demos/image/upload/v1731065901/csk-v-next/jd-template/product-card.jpg
70+
categoryId: 096fd5ed-5e2a-4bfa-834b-fb805d1d1ce9

apps/csk-v-next/content/componentPattern/68136a90-0d34-4dbb-a34e-6e324179998a.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ composition:
7070
type: dex-segmented-control-parameter
7171
value: fill
7272
footerContent:
73+
- _id: cbdecbd1-bfb6-48dc-b25d-eb1581329c92
74+
type: chat
75+
_overridability:
76+
hideLockedParameters: true
7377
- _id: 757f8498-9331-4b59-9723-95cdd187b2f1
7478
type: flex
7579
slots:
@@ -507,7 +511,7 @@ composition:
507511
value: text-secondary
508512
_locales:
509513
- en
510-
created: '2025-02-17T15:34:18.158903+00:00'
511-
modified: '2025-02-17T15:34:18.158903+00:00'
514+
created: '2025-01-29T11:09:31.804537+00:00'
515+
modified: '2025-03-18T10:07:44.562644+00:00'
512516
pattern: true
513517
categoryId: b1163ce2-5ac7-4347-bc38-a42198180718

0 commit comments

Comments
 (0)