HH-530: replace user-facing Chatwoot branding with GoChat (#117)

* fix(HH-530): replace user-facing Chatwoot branding

* fix(HH-530): close branding review blockers

* test(HH-530): cover update banner binding

---------

Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
Rogee
2026-08-23 18:14:02 +08:00
committed by GitHub
co-authored by rogee
parent a635be6dc8
commit 867092fd99
107 changed files with 343 additions and 237 deletions
@@ -54,8 +54,8 @@ const state = {
export const getters = {
get: $state => $state,
isOnChatwootCloud: $state => $state.deploymentEnv === 'cloud',
isACustomBrandedInstance: $state => $state.installationName !== 'Chatwoot',
isAChatwootInstance: $state => $state.installationName === 'Chatwoot',
isACustomBrandedInstance: $state => $state.installationName !== 'GoChat',
isAChatwootInstance: $state => $state.installationName === 'GoChat',
};
export const actions = {};
@@ -0,0 +1,17 @@
import { getters } from '../globalConfig';
describe('globalConfig branding getters', () => {
it('treats GoChat as the default branded installation', () => {
const state = { installationName: 'GoChat' };
expect(getters.isACustomBrandedInstance(state)).toBe(false);
expect(getters.isAChatwootInstance(state)).toBe(true);
});
it('recognizes a custom installation name', () => {
const state = { installationName: 'Acme Support' };
expect(getters.isACustomBrandedInstance(state)).toBe(true);
expect(getters.isAChatwootInstance(state)).toBe(false);
});
});