Skip to content

Commit

Permalink
feat(web): Add namespace for 'samgongustofa' web chat config (#17123)
Browse files Browse the repository at this point in the history
* Add namespace for 'samgongustofa'

* Update namespace key

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
RunarVestmann and kodiakhq[bot] authored Dec 4, 2024
1 parent f79ff76 commit 7c45c97
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
6 changes: 5 additions & 1 deletion apps/web/components/ChatPanel/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ export interface WatsonChatPanelProps {
carbonTheme?: string

// What key in the 'ChatPanels' UI Configuration in Contentful stores the language pack for this chat bot
namespaceKey?: 'default' | 'ukrainian-citizens' | 'skatturinn'
namespaceKey?:
| 'default'
| 'ukrainian-citizens'
| 'skatturinn'
| 'samgongustofa'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
onLoad?: (instance: any) => void
Expand Down
4 changes: 2 additions & 2 deletions apps/web/components/Organization/Wrapper/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
},
},
is: {
Expand All @@ -127,7 +127,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
},

// Skatturinn - Organization
Expand Down
4 changes: 2 additions & 2 deletions apps/web/components/ServiceWeb/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
},
},
en: {
Expand Down Expand Up @@ -147,7 +147,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
},
},
}
Expand Down
12 changes: 6 additions & 6 deletions apps/web/screens/Article/components/ArticleChatPanel/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
onLoad(instance) {
setupOneScreenWatsonChatBot(
instance,
Expand Down Expand Up @@ -287,7 +287,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
},
},
is: {
Expand All @@ -298,7 +298,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
},

// Uppfletting í ökutækjaskrá
Expand All @@ -309,7 +309,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
onLoad(instance) {
setupOneScreenWatsonChatBot(
instance,
Expand All @@ -327,7 +327,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
onLoad(instance) {
setupOneScreenWatsonChatBot(
instance,
Expand All @@ -345,7 +345,7 @@ export const watsonConfig: Record<
serviceInstanceID: 'bc3d8312-d862-4750-b8bf-529db282050a',
showLauncher: false,
carbonTheme: 'g10',
namespaceKey: 'default',
namespaceKey: 'samgongustofa',
onLoad(instance) {
setupOneScreenWatsonChatBot(
instance,
Expand Down

0 comments on commit 7c45c97

Please sign in to comment.