diff --git a/src/apps/settings-modal/AppChatSettingsAI.tsx b/src/apps/settings-modal/AppChatSettingsAI.tsx index 2d147adee..131970209 100644 --- a/src/apps/settings-modal/AppChatSettingsAI.tsx +++ b/src/apps/settings-modal/AppChatSettingsAI.tsx @@ -1,9 +1,11 @@ import * as React from 'react'; import { FormControl, Switch } from '@mui/joy'; +import WarningRoundedIcon from '@mui/icons-material/WarningRounded'; +import { ExternalLink } from '~/common/components/ExternalLink'; import { FormLabelStart } from '~/common/components/forms/FormLabelStart'; -import { Link } from '~/common/components/Link'; +import { GoodTooltip } from '~/common/components/GoodTooltip'; import { useChatAutoAI } from '../chat/store-app-chat'; @@ -33,40 +35,40 @@ export function AppChatSettingsAI() { + description={autoSuggestDiagrams ? 'Add Diagrams' : 'No'} /> - Auto UI - DANGER : 'Auto UI (alpha)'} - description={autoSuggestHTMLUI ? 'Alpha, LLM HTML' : 'Disabled (great!)'} - tooltip={autoSuggestHTMLUI ? <> - SECUIRTY WARNING - THIS WILL TURN ON JS/HTML CODE EXECUTION ON CHAT MESSAGES!
- Only here for testing purposes. Use with caution and at your own risk. - : undefined} /> + + Auto UI ยท ALPHA + + SECUIRTY WARNING: THIS TURNS ON JS/HTML CODE EXECUTION WITHIN CHAT MESSAGES +
+ Alpha quality, for testing only. Does not include state synchronization. Use at your own risk. + {' - '}#227 + {', '}#228 + }> + +
+ } + description={autoSuggestHTMLUI ? 'Add UI (see warning)' : 'No'} />
- - Vote #228} /> - - - - - Vote #227} /> - - + {/**/} + {/* Vote #228} />*/} + {/* */} + {/**/} ; } diff --git a/src/common/components/GoodTooltip.tsx b/src/common/components/GoodTooltip.tsx index 2f5a18cc7..97cecfab9 100644 --- a/src/common/components/GoodTooltip.tsx +++ b/src/common/components/GoodTooltip.tsx @@ -11,6 +11,7 @@ export const GoodTooltip = (props: { title: React.ReactNode, placement?: 'top' | 'bottom' | 'top-start', isError?: boolean, isWarning?: boolean, + enableInteractive?: boolean, arrow?: boolean, usePlain?: boolean, children: React.JSX.Element, @@ -19,7 +20,7 @@ export const GoodTooltip = (props: {