Skip to content

Commit 47bab96

Browse files
committed
feat: add tooltip for trust level in deal details
1 parent 01f6b91 commit 47bab96

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/modules/deals/deal/buildDealDetails.tsx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,28 @@ export function buildDealDetails({
9696
},
9797
}),
9898
...(deal.trust && {
99-
Trust: <p>{deal.trust}</p>,
99+
Trust: {
100+
tooltip: (
101+
<>
102+
Indicates the task replication level:
103+
<ul className="list-inside list-disc">
104+
<li>
105+
<code className="bg-primary-foreground text-primary -mx-1 rounded-sm px-1 py-px">
106+
0
107+
</code>
108+
: single execution
109+
</li>
110+
<li>
111+
<code className="bg-primary-foreground text-primary -mx-1 rounded-sm px-1 py-px">
112+
1
113+
</code>
114+
: replicated for consensus
115+
</li>
116+
</ul>
117+
</>
118+
),
119+
value: <p>{deal.trust}</p>,
120+
},
100121
}),
101122
...(deal.app && {
102123
App: (

0 commit comments

Comments
 (0)