kuiq icon indicating copy to clipboard operation
kuiq copied to clipboard

Provide tooltip with exact time

Open mperham opened this issue 1 year ago • 1 comments

The first column of each data table is a timestamp with an approximate label, "3h". Is there a way to provide a hover tooltip with the exact time, 2023-11-29 14:23:23Z so the user can find this precise timestamp if needed?

mperham avatar Nov 30 '23 00:11 mperham

This is possible with Glimmer DSL for SWT.

glimmer-dsl-swt-table-tooltips

(you might need to zoom your browser/screen to see the screenshot animation clearly).

But, LibUI being Alpha does not support tooltips yet. It is a feature that has been requested and should be supported in the future.

That said, this requirement could be addressed a different way with LibUI. There is support for selecting a table row, so what we could do is implement the Master/Details Interface Pattern, allowing a user to select any row from the table (Master view) to see more details about that row below, above, or to the side of the table in a label or form (Detail view).

I have an example of this in the Contact Manager app (you might need to zoom your browser/screen to see the screenshot animation clearly): contact manager master detail

Notice later on in the gif animation video how when a table row is selected, the form above is populated.

In the case of Kuiq, we don't need a full form for the "Detail" part of the Master/Detail pattern. A simple one line label is probably all what is needed.

I implemented a quick prototype of it here [the 1-line label is below the table] (you might need to zoom your browser/screen to see the screenshot animation clearly):

kuiq-retry-table-summary

There are other approaches too, like if the user clicks on a row, a message box is popped up with the job summary (or even a full-fledged window if there is a need to show more details than just a summary).

Screenshot 2023-11-29 at 10 23 13 PM

If you like the first solution (master-table/detail-label approach) or the second solution (message box popup/window), let me know which one you prefer and what you'd like the job summary to say (or if what I have is good enough to start), and I could implement it for all tables.

AndyObtiva avatar Nov 30 '23 03:11 AndyObtiva