Skip to content

Commit a7c4541

Browse files
committed
add tooltip hover
1 parent b6b67ee commit a7c4541

File tree

1 file changed

+22
-30
lines changed

1 file changed

+22
-30
lines changed

force-app/main/default/lwc/lightningFlowScanner/lightningFlowScanner.html

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<div class="page">
33
<a class="hidden-csv-link" style="display:none"></a>
4-
54
<!-- SINGLE-FLOW MODE -->
65
<template if:false={isAllMode}>
76
<div class="single-flow-wrapper">
@@ -28,12 +27,10 @@
2827
</div>
2928
</div>
3029
</template>
31-
3230
<!-- Error -->
3331
<template if:true={error}>
3432
<p class="error">Error scanning Flow: {error}</p>
3533
</template>
36-
3734
<!-- Table -->
3835
<template if:true={hasScanResults}>
3936
<div class="custom-datatable">
@@ -55,16 +52,16 @@
5552
<tbody>
5653
<template for:each={filteredViolations} for:item="v">
5754
<tr key={v.id}>
58-
<td>{v.ruleName}</td>
59-
<td>{v.severity}</td>
60-
<td>{v.name}</td>
61-
<td>{v.type}</td>
62-
<td>{v.metaType}</td>
63-
<td>{v.dataType}</td>
64-
<td>{v.locationX}</td>
65-
<td>{v.locationY}</td>
66-
<td>{v.connectsTo}</td>
67-
<td class="expression-cell">{v.expression}</td>
55+
<td title={v.ruleName}>{v.ruleName}</td>
56+
<td title={v.severity}>{v.severity}</td>
57+
<td title={v.name}>{v.name}</td>
58+
<td title={v.type}>{v.type}</td>
59+
<td title={v.metaType}>{v.metaType}</td>
60+
<td title={v.dataType}>{v.dataType}</td>
61+
<td title={v.locationX}>{v.locationX}</td>
62+
<td title={v.locationY}>{v.locationY}</td>
63+
<td title={v.connectsTo}>{v.connectsTo}</td>
64+
<td class="expression-cell" title={v.expression}>{v.expression}</td>
6865
</tr>
6966
</template>
7067
</tbody>
@@ -73,7 +70,6 @@
7370
</template>
7471
</div>
7572
</template>
76-
7773
<!-- ALL-FLOWS MODE -->
7874
<template if:true={isAllMode}>
7975
<div class="all-mode-container">
@@ -105,7 +101,6 @@ <h2 class="slds-text-heading_small slds-truncate">All Results</h2>
105101
variant="brand" class="slds-button slds-button_brand"></lightning-button>
106102
</div>
107103
</div>
108-
109104
<!-- Table Card -->
110105
<lightning-card>
111106
<template if:true={hasFlattenedViolations}>
@@ -129,24 +124,23 @@ <h2 class="slds-text-heading_small slds-truncate">All Results</h2>
129124
<tbody>
130125
<template for:each={filteredViolations} for:item="v">
131126
<tr key={v.id}>
132-
<td>{v.flowName}</td>
133-
<td>{v.ruleName}</td>
134-
<td>{v.severity}</td>
135-
<td>{v.name}</td>
136-
<td>{v.type}</td>
137-
<td>{v.metaType}</td>
138-
<td>{v.dataType}</td>
139-
<td>{v.locationX}</td>
140-
<td>{v.locationY}</td>
141-
<td>{v.connectsTo}</td>
142-
<td class="expression-cell">{v.expression}</td>
127+
<td title={v.flowName}>{v.flowName}</td>
128+
<td title={v.ruleName}>{v.ruleName}</td>
129+
<td title={v.severity}>{v.severity}</td>
130+
<td title={v.name}>{v.name}</td>
131+
<td title={v.type}>{v.type}</td>
132+
<td title={v.metaType}>{v.metaType}</td>
133+
<td title={v.dataType}>{v.dataType}</td>
134+
<td title={v.locationX}>{v.locationX}</td>
135+
<td title={v.locationY}>{v.locationY}</td>
136+
<td title={v.connectsTo}>{v.connectsTo}</td>
137+
<td class="expression-cell" title={v.expression}>{v.expression}</td>
143138
</tr>
144139
</template>
145140
</tbody>
146141
</table>
147142
</div>
148143
</template>
149-
150144
<!-- No violations -->
151145
<template if:false={hasFlattenedViolations}>
152146
<template if:true={totalViolationsCount}>
@@ -164,7 +158,6 @@ <h2 class="slds-text-heading_small slds-truncate">All Results</h2>
164158
</template>
165159
</div>
166160
</template>
167-
168161
<!-- Footer -->
169162
<div class="footer">
170163
<div class="github-info">
@@ -175,7 +168,6 @@ <h2 class="slds-text-heading_small slds-truncate">All Results</h2>
175168
<a href="https://github.com/Flow-Scanner/lightning-flow-scanner-core?tab=contributing-ov-file"
176169
target="_blank">Contributing Guidelines</a>.
177170
</div>
178-
179171
<template if:false={isAllMode}>
180172
<div class="navigation-buttons">
181173
<lightning-button label="Previous Flow" variant="brand" disabled={isFirstFlow}
@@ -186,4 +178,4 @@ <h2 class="slds-text-heading_small slds-truncate">All Results</h2>
186178
</template>
187179
</div>
188180
</div>
189-
</template>
181+
</template>

0 commit comments

Comments
 (0)