diff --git a/clients/web/src/components/molecules/ElicitationFormPanel/ElicitationFormPanel.tsx b/clients/web/src/components/molecules/ElicitationFormPanel/ElicitationFormPanel.tsx index 6b6a0fb7..6507ec5f 100644 --- a/clients/web/src/components/molecules/ElicitationFormPanel/ElicitationFormPanel.tsx +++ b/clients/web/src/components/molecules/ElicitationFormPanel/ElicitationFormPanel.tsx @@ -12,6 +12,19 @@ export interface ElicitationFormPanelProps { onCancel: () => void; } +const QuotedMessage = Text.withProps({ + size: "md", + fs: "italic", +}); + +function formatQuoted(text: string): string { + return `\u201C${text}\u201D`; +} + +function formatWarning(serverName: string): string { + return `Only provide information you trust this server with. The server \u201C${serverName}\u201D is requesting this data.`; +} + export function ElicitationFormPanel({ message, schema, @@ -23,14 +36,11 @@ export function ElicitationFormPanel({ }: ElicitationFormPanelProps) { return ( - - “{message}” - + {formatQuoted(message)} - Only provide information you trust this server with. The server “ - {serverName}” is requesting this data. + {formatWarning(serverName)} + - + )) )} @@ -128,9 +151,7 @@ export function ExperimentalFeaturesPanel({ Advanced JSON-RPC Tester - - Send raw JSON-RPC requests to test ANY method - + Send raw JSON-RPC requests to test ANY method {customHeaders.map((header, index) => ( @@ -148,20 +169,14 @@ export function ExperimentalFeaturesPanel({ onHeaderChange(index, header.key, e.currentTarget.value) } /> - onRemoveHeader(index)} - > + onRemoveHeader(index)}> ✕ - + ))} - + + Add Header