fix: update broken AI documentation link (#20401)
## Summary Updated the broken AI documentation link in `AiChatApiKeyNotConfiguredMessage.tsx`. ## Changes * Replaced outdated self-hosting AI docs URL * Updated link to a valid self-hosting documentation page Fixes #20071 --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
+11
-4
@@ -1,13 +1,20 @@
|
||||
import { AiChatBanner } from '@/ai/components/AiChatBanner';
|
||||
import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
|
||||
import { getDocumentationUrl } from '@/support/utils/getDocumentationUrl';
|
||||
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
|
||||
import { t } from '@lingui/core/macro';
|
||||
import { DOCUMENTATION_PATHS } from 'twenty-shared/constants';
|
||||
import { IconExternalLink } from 'twenty-ui/display';
|
||||
|
||||
const DOCS_URL =
|
||||
'https://twenty.com/developers/section/self-hosting/self-hosting-var#ai-features';
|
||||
|
||||
export const AiChatApiKeyNotConfiguredMessage = () => {
|
||||
const currentWorkspaceMember = useAtomStateValue(currentWorkspaceMemberState);
|
||||
|
||||
const handleDocsClick = () => {
|
||||
window.open(DOCS_URL, '_blank', 'noopener,noreferrer');
|
||||
const docsUrl = getDocumentationUrl({
|
||||
locale: currentWorkspaceMember?.locale,
|
||||
path: DOCUMENTATION_PATHS.DEVELOPERS_SELF_HOST_CAPABILITIES_SETUP,
|
||||
});
|
||||
window.open(docsUrl, '_blank', 'noopener,noreferrer');
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user