Skip to content

Commit 1270e0e

Browse files
tooltip
1 parent 9083c6e commit 1270e0e

File tree

2 files changed

+85
-40
lines changed

2 files changed

+85
-40
lines changed

dqops/src/main/frontend/src/components/ColumnList/ColumnListItem.tsx

+41-20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Tooltip } from '@material-tailwind/react';
12
import React from 'react';
23
import { useDispatch } from 'react-redux';
34
import { useHistory } from 'react-router-dom';
@@ -185,26 +186,46 @@ export default function SchemaTableItem({
185186
/>
186187
<td>
187188
<div className="flex gap-x-2 items-center justify-center mx-3">
188-
<SvgIcon
189-
name="data_sources"
190-
className="w-5 h-5"
191-
onClick={() => goToColumn(item, CheckTypes.SOURCES)}
192-
/>
193-
<SvgIcon
194-
name="profiling"
195-
className="w-5 h-5"
196-
onClick={() => goToColumn(item, CheckTypes.PROFILING)}
197-
/>
198-
<SvgIcon
199-
name="monitoring_checks"
200-
className="w-5 h-5"
201-
onClick={() => goToColumn(item, CheckTypes.MONITORING)}
202-
/>
203-
<SvgIcon
204-
name="partitioned_checks"
205-
className="w-5 h-5"
206-
onClick={() => goToColumn(item, CheckTypes.PARTITIONED)}
207-
/>
189+
<Tooltip
190+
content={'Add a new connection and manage its settings'}
191+
className="max-w-80 py-4 px-4 bg-gray-800 delay-700"
192+
>
193+
<SvgIcon
194+
name="data_sources"
195+
className="w-5 h-5 cursor-pointer"
196+
onClick={() => goToTable(item, CheckTypes.SOURCES)}
197+
/>
198+
</Tooltip>
199+
<Tooltip
200+
content={'Profiling'}
201+
className="max-w-80 py-4 px-4 bg-gray-800 delay-700"
202+
>
203+
<SvgIcon
204+
name="profiling"
205+
className="w-5 h-5 cursor-pointer"
206+
onClick={() => goToTable(item, CheckTypes.PROFILING)}
207+
/>
208+
</Tooltip>
209+
<Tooltip
210+
content={'Monitoring Checks'}
211+
className="max-w-80 py-4 px-4 bg-gray-800 delay-700"
212+
>
213+
<SvgIcon
214+
name="monitoring_checks"
215+
className="w-5 h-5 cursor-pointer"
216+
onClick={() => goToTable(item, CheckTypes.MONITORING)}
217+
/>
218+
</Tooltip>
219+
<Tooltip
220+
content={'Partitioned Checks'}
221+
className="max-w-80 py-4 px-4 bg-gray-800 delay-700"
222+
>
223+
<SvgIcon
224+
name="partitioned_checks"
225+
className="w-5 h-5 cursor-pointer"
226+
onClick={() => goToTable(item, CheckTypes.PARTITIONED)}
227+
/>
228+
</Tooltip>
208229
</div>
209230
</td>
210231
</>

dqops/src/main/frontend/src/pages/Schema/SchemaTableItem.tsx

+44-20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Tooltip } from '@material-tailwind/react';
12
import React from 'react';
23
import { useDispatch } from 'react-redux';
34
import { useHistory } from 'react-router-dom';
@@ -152,26 +153,49 @@ export default function SchemaTableItem({
152153
/>
153154
<td>
154155
<div className="flex gap-x-2 items-center justify-center mx-3">
155-
<SvgIcon
156-
name="data_sources"
157-
className="w-5 h-5"
158-
onClick={() => goToTable(item, CheckTypes.SOURCES)}
159-
/>
160-
<SvgIcon
161-
name="profiling"
162-
className="w-5 h-5"
163-
onClick={() => goToTable(item, CheckTypes.PROFILING)}
164-
/>
165-
<SvgIcon
166-
name="monitoring_checks"
167-
className="w-5 h-5"
168-
onClick={() => goToTable(item, CheckTypes.MONITORING)}
169-
/>
170-
<SvgIcon
171-
name="partitioned_checks"
172-
className="w-5 h-5"
173-
onClick={() => goToTable(item, CheckTypes.PARTITIONED)}
174-
/>
156+
<Tooltip
157+
content={'Add a new connection and manage its settings'}
158+
className="max-w-120 z-50"
159+
placement="right-start"
160+
>
161+
<>
162+
<SvgIcon
163+
name="data_sources"
164+
className="w-5 h-5 cursor-pointer"
165+
onClick={() => goToTable(item, CheckTypes.SOURCES)}
166+
/>
167+
</>
168+
</Tooltip>
169+
<Tooltip
170+
content={'Profiling'}
171+
className="max-w-80 py-4 px-4 bg-gray-800 delay-700"
172+
>
173+
<SvgIcon
174+
name="profiling"
175+
className="w-5 h-5 cursor-pointer"
176+
onClick={() => goToTable(item, CheckTypes.PROFILING)}
177+
/>
178+
</Tooltip>
179+
<Tooltip
180+
content={'Monitoring Checks'}
181+
className="max-w-80 py-4 px-4 bg-gray-800 delay-700"
182+
>
183+
<SvgIcon
184+
name="monitoring_checks"
185+
className="w-5 h-5 cursor-pointer"
186+
onClick={() => goToTable(item, CheckTypes.MONITORING)}
187+
/>
188+
</Tooltip>
189+
<Tooltip
190+
content={'Partitioned Checks'}
191+
className="max-w-80 py-4 px-4 bg-gray-800 delay-700"
192+
>
193+
<SvgIcon
194+
name="partitioned_checks"
195+
className="w-5 h-5 cursor-pointer"
196+
onClick={() => goToTable(item, CheckTypes.PARTITIONED)}
197+
/>
198+
</Tooltip>
175199
</div>
176200
</td>
177201
</>

0 commit comments

Comments
 (0)