Small issues/improvements to the Backups views in the Web Console
- There might be a small bug when computing the Elapsed time of a backup, involving timezone conversion. See screenshot and source data from the REST API:
{
"timing": {
"stored": "2024-01-19T13:52:42.205Z",
"start": "2024-01-19T13:52:02Z",
"end": "2024-01-19T13:52:41Z"
}
}
- The font used for most of the columns (and this may also apply elsewhere) should be a mono font, to make it easier to align and compare values visually. For example, the timestamp field is important to always have the same width and it isn't now. Also the timestamp field should always be visible in full, we may reduce the width for the Managed Lifecycle and/or Size .... that take much space (it's surely the title's fault, can we make the title spread two lines if needed?).
-
It would be great to know if a backup is a "base backup" or a "snapshot".
-
The reported size for snapshots is not accurate. It should be relabeled as "Restore size" or if it fits "Restore Volume Size" or even "Minimum Restore Volume Size" (I guess that'd be hard). How to do this? I guess we cannot change the title depending on the type of the backup. Ideas, welcomed.
-
At least on my browser (Firefox 121.0.1 (64-bit), Ubuntu 20.04) with certain zoom level (140%) and resolution (horizontal half of a 3840x1600 screen), I see some rendering bugs in the Backups view:
-
Shouldn't the button "Add Backup" be renamed to "Create Backup"?
-
I'd love to see for each backup two additional buttons (bigger than the icons we have now, like the "Add Backup" button I'm thinking): "Restore" and "PITR". Both should take you to the cluster creation dialogue with everything filled in except for the PITR timestamp in the case of PITR button, and with a default name that may be edited. Every other field should be populated... from the existing backup (as it references the SGCluster where it was taken from). If the SGCluster no longer exists (it may happen) then the action should just populate the backup name.
-
We may improve the "managed lifecyle" and the edit icon at the right part. Edit only allows to edit the lifecycle. Why don't we remove this icon and allow to do this directly from the managed lifecycle column? Basically the checkmark that we have now could be directly editable, and problem solved (but other ideas may be done here). This will save a bit of horizontal space.
-
The icon to "open the backup" on a new tab, wouldn't it be better to make the backup name clickable? This will save a bit of horizontal space.
Suggesting to review this for target_version1.8.0 if possible.
Acceptance criteria:
-
Fix all the issues mentioned