Improve AI chat UX (#17974)

## Summary
- update AI chat message typography and list line-height for readability
- apply richer markdown-section styling for headings, spacing,
separators, and inline code
- keep links non-underlined by default with underline on hover, using
accent11 for link color
- preserve previous AI chat table design while keeping other markdown
improvements

## Validation
- yarn eslint
packages/twenty-front/src/modules/ai/components/LazyMarkdownRenderer.tsx
packages/twenty-front/src/modules/ai/components/AIChatMessage.tsx

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
Thomas des Francs
2026-02-17 11:24:33 +01:00
committed by GitHub
parent aac032e517
commit 9477bb3677
29 changed files with 1636 additions and 165 deletions
@@ -9,20 +9,13 @@ import { useGetWorkflowNodeExecutionUsage } from '@/billing/hooks/useGetWorkflow
import { useNumberFormat } from '@/localization/hooks/useNumberFormat';
import { useSubscriptionStatus } from '@/workspace/hooks/useSubscriptionStatus';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { t } from '@lingui/core/macro';
import { formatToShortNumber } from 'twenty-shared/utils';
import { H2Title } from 'twenty-ui/display';
import { H2Title, HorizontalSeparator } from 'twenty-ui/display';
import { ProgressBar } from 'twenty-ui/feedback';
import { Section } from 'twenty-ui/layout';
import { SubscriptionStatus } from '~/generated-metadata/graphql';
const StyledLineSeparator = styled.div`
width: 100%;
height: 1px;
background-color: ${({ theme }) => theme.background.tertiary};
`;
export const SettingsBillingCreditsSection = ({
currentBillingSubscription,
}: {
@@ -91,7 +84,7 @@ export const SettingsBillingCreditsSection = ({
{!isTrialing && (
<>
<StyledLineSeparator />
<HorizontalSeparator noMargin color={theme.background.tertiary} />
<SettingsBillingLabelValueItem
label={t`Base Credits`}
value={formatNumber(grantedCredits, {
@@ -117,7 +110,7 @@ export const SettingsBillingCreditsSection = ({
})}
/>
)}
<StyledLineSeparator />
<HorizontalSeparator noMargin color={theme.background.tertiary} />
<SettingsBillingLabelValueItem
label={t`Extra Credits Used`}
value={`${formatToShortNumber(extraCreditsUsed)}`}