Skip to content

Commit 1b6194c

Browse files
committed
refactor: update SVG icons for improved design consistency; replace user-circle icon with person icon and adjust icon sizes in tooltip and commit info components
1 parent 1e4afd6 commit 1b6194c

File tree

6 files changed

+14
-18
lines changed

6 files changed

+14
-18
lines changed

src/Assets/Icon/ic-calendar.svg

Lines changed: 2 additions & 2 deletions
Loading

src/Assets/Icon/ic-person.svg

Lines changed: 2 additions & 5 deletions
Loading

src/Assets/Icon/ic-user-circle.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Shared/Components/CICDHistory/BuildAndTaskSummaryTooltipCard.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import { memo } from 'react'
22
import { Tooltip } from '@Common/Tooltip'
33
import { ReactComponent as ICCalendar } from '@Icons/ic-calendar.svg'
4-
import { ReactComponent as ICUserCircle } from '@Icons/ic-user-circle.svg'
4+
import { ReactComponent as ICPerson } from '@Icons/ic-person.svg'
55
import GitTriggerList from './GitTriggerList'
66
import { DEFAULT_CLUSTER_ID } from './constants'
77
import { getFormattedTriggerTime, sanitizeWorkflowExecutionStages } from './utils'
88
import { BuildAndTaskSummaryTooltipCardProps } from './types'
99
import WorkerStatus from './WorkerStatus'
1010

11+
const BASE_ICON_CLASS = 'icon-dim-20 dc__no-shrink'
12+
1113
const BuildAndTaskSummaryTooltipCard = memo(
1214
({
1315
workflowExecutionStages,
@@ -24,12 +26,12 @@ const BuildAndTaskSummaryTooltipCard = memo(
2426
<div className="shadow__overlay p-16 br-4 w-350 bg__primary mxh-300 dc__overflow-auto flexbox-col dc__gap-16">
2527
{/* Info section */}
2628
<div className="dc__icon-text-layout">
27-
<ICCalendar className="fcn-7 icon-dim-20 dc__no-shrink" />
29+
<ICCalendar className={`scn-7 ${BASE_ICON_CLASS}`} />
2830
<time className="cn-9 fs-12 cn-9 fw-4 lh-20">
2931
{executionInfo?.triggeredOn ? getFormattedTriggerTime(executionInfo.triggeredOn) : '--'}
3032
</time>
3133

32-
<ICUserCircle className="fcn-7 icon-dim-20 dc__no-shrink" />
34+
<ICPerson className={`fcn-7 ${BASE_ICON_CLASS}`} />
3335
<Tooltip content={triggeredByEmail}>
3436
<span className="cn-9 fs-12 fw-4 lh-20 dc__truncate">{triggeredByEmail}</span>
3537
</Tooltip>

src/Shared/Components/DatePicker/DateTimePicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const DateTimePicker = ({
8989
withFullScreenPortal={false}
9090
orientation="horizontal"
9191
readOnly={readOnly || false}
92-
customInputIcon={<CalendarIcon className="icon-dim-20" />}
92+
customInputIcon={<CalendarIcon className="icon-dim-20 scn-6" />}
9393
inputIconPosition="after"
9494
displayFormat={DATE_TIME_FORMATS.DD_MMM_YYYY}
9595
data-testid={dataTestidForDate}

src/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ const GitCommitInfoGeneric = ({
8989
) : null}
9090
{_webhookData.data.author ? (
9191
<div className="material-history__text lh-20 flex left dc__gap-8 w-100">
92-
<PersonIcon className="icon-dim-16" /> {_webhookData.data.author}
92+
<PersonIcon className="icon-dim-16 scn-7" /> {_webhookData.data.author}
9393
</div>
9494
) : null}
9595
{_date ? (
9696
<div className="material-history__text lh-20 flex left dc__gap-8 w-100">
97-
<CalendarIcon className="icon-dim-16" />
97+
<CalendarIcon className="icon-dim-16 scn-7" />
9898
<time className="cn-7 fs-12">{_date}</time>
9999
</div>
100100
) : null}
@@ -270,13 +270,13 @@ const GitCommitInfoGeneric = ({
270270
<div className="flexbox-col dc__gap-4">
271271
{lowerCaseCommitInfo.author ? (
272272
<div className="material-history__text lh-20 flex left dc__gap-8">
273-
<PersonIcon className="icon-dim-16" />
273+
<PersonIcon className="icon-dim-16 scn-7" />
274274
<span className="lh-20"> {lowerCaseCommitInfo.author}</span>
275275
</div>
276276
) : null}
277277
{lowerCaseCommitInfo.date ? (
278278
<div className="material-history__text lh-20 flex left dc__gap-8">
279-
<CalendarIcon className="icon-dim-16" />
279+
<CalendarIcon className="icon-dim-16 scn-7" />
280280
<span className="lh-20">
281281
{moment(lowerCaseCommitInfo.date).format(DATE_TIME_FORMATS.TWELVE_HOURS_FORMAT)}
282282
</span>

0 commit comments

Comments
 (0)