Skip to content

Commit 66fc3aa

Browse files
authored
FIX: QA fixes + text colors changes (#1277)
* fix: QA fixes + text colors changes
1 parent 12feb39 commit 66fc3aa

File tree

123 files changed

+216
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+216
-214
lines changed

packages/app-builder/src/components/Analytics/Decisions.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,10 @@ export function Decisions({ data, scenarioVersions, isLoading = false }: Decisio
440440
);
441441
}}
442442
theme={{
443-
grid: { line: { stroke: '#E5E7EB', strokeWidth: 1, strokeDasharray: '4 4' } },
444-
tooltip: {
445-
container: {
446-
transform: 'translateX(16px)',
447-
},
448-
},
443+
text: { fill: 'var(--color-grey-secondary)' },
444+
axis: { ticks: { text: { fill: 'var(--color-grey-secondary)' } } },
445+
legends: { text: { fill: 'var(--color-grey-secondary)' } },
446+
grid: { line: { stroke: 'var(--color-grey-border)', strokeWidth: 1, strokeDasharray: '4 4' } },
449447
}}
450448
layout="vertical"
451449
motionConfig={{

packages/app-builder/src/components/Analytics/DecisionsScoreDistribution.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,10 @@ const DecisionsScoreDistributionGraph = ({ data }: { data: DecisionsScoreDistrib
177177
enablePoints={false}
178178
useMesh={true}
179179
theme={{
180-
grid: { line: { stroke: '#E5E7EB', strokeWidth: 1, strokeDasharray: '4 4' } },
181-
axis: {
182-
legend: {
183-
text: {
184-
fontSize: '14px',
185-
},
186-
},
187-
},
180+
text: { fill: 'var(--color-grey-secondary)' },
181+
axis: { ticks: { text: { fill: 'var(--color-grey-secondary)' } } },
182+
legends: { text: { fill: 'var(--color-grey-secondary)' } },
183+
grid: { line: { stroke: 'var(--color-grey-border)', strokeWidth: 1, strokeDasharray: '4 4' } },
188184
}}
189185
axisLeft={{
190186
format: (value: number) => `${value} %`,

packages/app-builder/src/components/Analytics/OutcomeFilter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ const FilterItem = ({
8181
{highlight && !hasHighlightedRef.current ? (
8282
<Icon
8383
icon={checked ? 'eye' : 'eye-slash'}
84-
className={cn('absolute size-4 animate-ping-once', checked ? 'text-blue-58' : 'text-grey-placeholder')}
84+
className={cn('absolute size-4 animate-ping-once', checked ? 'text-blue-58' : 'text-grey-secondary')}
8585
/>
8686
) : null}
8787
{highlight || !checked ? (
8888
<Icon
8989
icon={checked ? 'eye' : 'eye-slash'}
90-
className={cn('relative size-4', checked ? 'text-blue-58' : 'text-grey-placeholder')}
90+
className={cn('relative size-4', checked ? 'text-blue-58' : 'text-grey-secondary')}
9191
/>
9292
) : null}
9393
</div>

packages/app-builder/src/components/Analytics/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function AnalyticsTooltip({ className, content }: { className: string; co
99
<Icon
1010
icon="tip"
1111
className={cn(
12-
'text-grey-60 text-purple-primary hover:text-grey-placeholder cursor-pointer ml-v2-sm',
12+
'text-grey-60 text-purple-primary hover:text-grey-secondary cursor-pointer ml-v2-sm',
1313
className,
1414
)}
1515
/>

packages/app-builder/src/components/Annotations/ClientDocumentsPopover.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function ClientDocumentsPopover({
8686
<button type="button" className="flex items-center justify-between gap-9 text-left" {...getRootProps()}>
8787
<div className="flex flex-col">
8888
<div className="text-r flex items-center gap-2">{t('cases:annotations.documents.add_file')}</div>
89-
<span className="text-grey-placeholder">
89+
<span className="text-grey-secondary">
9090
{t('cases:annotations.documents.upload_file')}: jpg, png, pdf, zip, doc, docx, xls, xlsx
9191
</span>
9292
</div>
@@ -103,7 +103,7 @@ export function ClientDocumentsPopover({
103103
<span className="truncate text-xs font-medium">{file.name}</span>
104104
<Icon
105105
icon="cross"
106-
className="text-grey-placeholder hover:text-grey-primary size-5 shrink-0 cursor-pointer"
106+
className="text-grey-secondary hover:text-grey-primary size-5 shrink-0 cursor-pointer"
107107
onClick={(e) => {
108108
e.preventDefault();
109109
field.handleChange((prev) => toggle(prev, file));
@@ -141,7 +141,7 @@ export function ClientDocumentsPopover({
141141
<div className="has-[button[data-delete]:hover]:bg-red-background relative z-0 flex flex-col rounded-sm">
142142
{files.map((file, idx) => (
143143
<div key={file.id} className="z-10 grid grid-cols-[auto_1fr_auto_20px] gap-2 p-2">
144-
<Icon icon="attachment" className="text-grey-placeholder size-5" />
144+
<Icon icon="attachment" className="text-grey-secondary size-5" />
145145
<span className="truncate">{file.filename}</span>
146146
<AnnotationFileDownload annotationId={document.id} fileId={file.id} />
147147
{idx === 0 ? (

packages/app-builder/src/components/AstBuilder/OperandInfos.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function OperandDescription({ node }: OperandDescriptionProps) {
129129

130130
function Description({ description }: { description: string }) {
131131
return description ? (
132-
<p className="text-grey-placeholder max-w-[300px] text-xs font-normal first-letter:capitalize">{description}</p>
132+
<p className="text-grey-secondary max-w-[300px] text-xs font-normal first-letter:capitalize">{description}</p>
133133
) : null;
134134
}
135135

@@ -225,7 +225,7 @@ function DataAccessorDescription({ node, dataModel, triggerObjectTable }: DataAc
225225
<>
226226
<Description description={field.description} />
227227
{field.isEnum && field.values && field.values.length > 0 ? (
228-
<div className="text-grey-placeholder flex max-w-[300px] flex-col gap-1">
228+
<div className="text-grey-secondary flex max-w-[300px] flex-col gap-1">
229229
<p className="text-s">{t('scenarios:enum_options')}</p>
230230
<ul className="flex flex-col">
231231
{field.values

packages/app-builder/src/components/AstBuilder/edition/EditModal/modals/Aggregation/Aggregation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function EditAggregation(props: Omit<OperandEditModalProps, 'node'>) {
5656
{t('scenarios:edit_aggregation.title')}
5757
<div className="flex flex-row items-center justify-center gap-1">
5858
<Logo logo="logo" className="size-4" />
59-
<span className="text-grey-placeholder text-xs font-light">{t('scenarios:edit_aggregation.subtitle')}</span>
59+
<span className="text-grey-secondary text-xs font-light">{t('scenarios:edit_aggregation.subtitle')}</span>
6060
</div>
6161
</div>
6262
}

packages/app-builder/src/components/AstBuilder/edition/EditModal/modals/Aggregation/EditDataModelField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const EditDataModelFieldTableMenu = ({ tableName, fields, onChange }: Edi
104104
<MenuCommand.List>
105105
<MenuCommand.Group
106106
heading={
107-
<div className="text-grey-placeholder mb-2 items-center px-2 pb-2 text-xs">
107+
<div className="text-grey-secondary mb-2 items-center px-2 pb-2 text-xs">
108108
<Trans t={t} i18nKey="scenarios:edit_aggregation.available_fields" values={{ tableName }} />
109109
</div>
110110
}

packages/app-builder/src/components/AstBuilder/edition/EditModal/modals/Aggregation/EditFilters.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function EditFilters({ aggregatedField, dataModel }: EditFiltersProps) {
102102
<Fragment key={filterIndex}>
103103
<div className="border-grey-border flex flex-col gap-4 rounded-md border-[0.5px] p-4">
104104
<div className="flex items-center justify-between">
105-
<div className="text-grey-placeholder flex items-center gap-2 pl-2 text-xs">
105+
<div className="text-grey-secondary flex items-center gap-2 pl-2 text-xs">
106106
<span>{t('scenarios:edit_aggregation.filter_field_label')}</span>
107107
<FieldSelect
108108
tableName={tableName}
@@ -243,7 +243,7 @@ export function EditFilters({ aggregatedField, dataModel }: EditFiltersProps) {
243243
<EditionEvaluationErrors id={filter.id} />
244244
</div>
245245
{!isLastFilter ? (
246-
<div className="text-grey-placeholder text-xs">{t('scenarios:logical_operator.and')}</div>
246+
<div className="text-grey-secondary text-xs">{t('scenarios:logical_operator.and')}</div>
247247
) : null}
248248
</Fragment>
249249
);

packages/app-builder/src/components/AstBuilder/edition/EditModal/modals/FuzzyMatchComparator/EditAlgorithm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function EditAlgorithm({ fuzzyMatchConfig, algorithm, onChange }: EditAlg
5252
fuzzyMatchAlgorithm={fuzzyMatchAlgorithm}
5353
/>
5454
</Select.ItemText>
55-
<p className="text-s text-grey-placeholder">
55+
<p className="text-s text-grey-secondary">
5656
{t(`scenarios:edit_fuzzy_match.algorithm.description.${fuzzyMatchAlgorithm}`)}
5757
</p>
5858
</Select.Item>

0 commit comments

Comments
 (0)