Skip to content

Commit c69e5f6

Browse files
committed
feat: add tooltip for category details in deal and task components
1 parent 5b09174 commit c69e5f6

File tree

2 files changed

+34
-18
lines changed

2 files changed

+34
-18
lines changed

src/modules/deals/deal/buildDealDetails.tsx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,23 @@ export function buildDealDetails({
5353
}),
5454
...(deal.category.catid !== undefined &&
5555
deal.category.workClockTimeRef !== undefined && {
56-
Category: (
57-
<p>
58-
{deal.category.catid}{' '}
59-
{deal.category.description.length < 0
60-
? deal.category.description
61-
: ''}{' '}
62-
({deal.category.workClockTimeRef * 10} sec)
63-
</p>
64-
),
56+
Category: {
57+
tooltip: (
58+
<>
59+
Indicates execution parameters: includes a name, an optional
60+
description, and a reference time.
61+
</>
62+
),
63+
value: (
64+
<p>
65+
{deal.category.catid}{' '}
66+
{deal.category.description.length < 0
67+
? deal.category.description
68+
: ''}{' '}
69+
({deal.category.workClockTimeRef * 10} sec)
70+
</p>
71+
),
72+
},
6573
}),
6674
...(deal.tag && {
6775
Tag: {

src/modules/tasks/task/buildTaskDetails.tsx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,23 @@ export function buildTaskDetails({ task }: { task: TaskQuery['task'] }) {
4949
}),
5050
...(task.deal.category !== undefined &&
5151
task.deal.category.workClockTimeRef !== undefined && {
52-
Category: (
53-
<p>
54-
{task.deal.category.catid}{' '}
55-
{task.deal.category.description.length < 0
56-
? task.deal.category.description
57-
: ''}{' '}
58-
({task.deal.category.workClockTimeRef * 10} sec)
59-
</p>
60-
),
52+
Category: {
53+
tooltip: (
54+
<>
55+
Indicates execution parameters: includes a name, an optional
56+
description, and a reference time.
57+
</>
58+
),
59+
value: (
60+
<p>
61+
{task.deal.category.catid}{' '}
62+
{task.deal.category.description.length < 0
63+
? task.deal.category.description
64+
: ''}{' '}
65+
({task.deal.category.workClockTimeRef * 10} sec)
66+
</p>
67+
),
68+
},
6169
}),
6270
...(task.deal.tag && {
6371
Tag: {

0 commit comments

Comments
 (0)