Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ProductSwitcher): updating Hello redirect config #1320

Merged
merged 5 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const Default: Story = {
},

{
product: 'Hello',
product: 'Hello', // TODO: change to 'TeamChat' when the product is renamed
},
{
product: 'OpenWidget',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export const ProductSwitcherProducts: ProductOption[] = [
url: '',
},
{
id: 'hello',
name: 'Hello',
id: 'hello', // TODO: change to 'teamchat' when the product is renamed
name: 'TeamChat',
icon: HelloMono,
backgroundColors: {
main: 'var(--products-hello)',
Expand Down Expand Up @@ -121,7 +121,11 @@ export const labsRedirectData: ProductData[] = [
redirectUri: 'https://app.staging.knowledgebase.ai',
product: 'KnowledgeBase',
},
{ clientId: '', redirectUri: '', product: 'Hello' }, // TODO: add Hello configuration when available
{
clientId: '6193fd6d9771645e2dc6a4614c677314',
redirectUri: 'https://hello.labs.text.com/app',
product: 'Hello', // TODO: change to 'TeamChat' when the product is renamed
},
{
clientId: '0ab5cf9b99447db22109ff70003d4507',
redirectUri: 'https://accounts.labs.livechat.com/panel',
Expand Down Expand Up @@ -155,7 +159,11 @@ export const stagingRedirectData: ProductData[] = [
redirectUri: 'https://app.knowledgebase.ai',
product: 'KnowledgeBase',
},
{ clientId: '', redirectUri: '', product: 'Hello' }, // TODO: add Hello configuration when available
{
clientId: '6c493637185258c1a937e68886906831',
redirectUri: 'https://teamchat.text.com',
product: 'Hello', // TODO: change to 'TeamChat' when the product is renamed
},
{
clientId: '2fd9f1923f2233763b8637f7d10a6fe6',
redirectUri: 'https://accounts.staging.livechat.com/panel',
Expand Down Expand Up @@ -189,7 +197,11 @@ export const prodRedirectData: ProductData[] = [
redirectUri: 'https://app.knowledgebase.ai',
product: 'KnowledgeBase',
},
{ clientId: '', redirectUri: '', product: 'Hello' }, // TODO: add Hello configuration when available
{
clientId: '6c493637185258c1a937e68886906831',
redirectUri: 'https//hello.text.com/app',
product: 'Hello', // TODO: change to 'TeamChat' when the product is renamed
},
{
clientId: '2fd9f1923f2233763b8637f7d10a6fe6',
redirectUri: 'https://accounts.livechat.com/panel',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ProductId =
| 'chatbot'
| 'openwidget'
| 'knowledgebase'
| 'hello'
| 'hello' // TODO: change to 'teamchat' when the product is renamed
| 'accounts';

export type ProductName =
Expand All @@ -17,7 +17,7 @@ export type ProductName =
| 'ChatBot'
| 'OpenWidget'
| 'KnowledgeBase'
| 'Hello'
| 'Hello' // TODO: change to 'TeamChat' when the product is renamed
| 'Accounts';

export type Env = 'labs' | 'staging' | 'prod';
Expand All @@ -40,7 +40,7 @@ export const SSOProductIdMap: Record<ProductId, ProductName> = {
knowledgebase: 'KnowledgeBase',
chatbot: 'ChatBot',
openwidget: 'OpenWidget',
hello: 'Hello',
hello: 'Hello', // TODO: change to teamchat: 'TeamChat' when the product is renamed
};

export type ProductSubscription = Partial<
Expand Down
Loading