Bug 1031596 - [RFE] Make "General" sub tab look & feel more consistent
Summary: [RFE] Make "General" sub tab look & feel more consistent
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-webadmin
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: bugs@ovirt.org
URL:
Whiteboard: ux
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-18 11:13 UTC by Vojtech Szocs
Modified: 2015-04-02 18:33 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-22 15:46:33 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
screen-cast: tooltips (1.31 MB, video/ogg)
2014-02-05 22:56 UTC, Einav Cohen
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1061379 0 unspecified CLOSED No tool-tips for truncated labels in general host info sub-tab 2021-02-22 00:41:40 UTC
oVirt gerrit 20964 0 None None None Never

Internal Links: 1061379

Description Vojtech Szocs 2013-11-18 11:13:01 UTC
Most (if not all) "General" sub tabs in WebAdmin and UserPortal mix two different kinds of widgets used for rendering values:

a, TextBoxLabel -> border-less <input type="text" readonly> element with added functionality [*]
b, ValueLabel -> span or div element (depending on usage) with no extra functionality
c, classes derived from ValueLabel, i.e. VersionLabel extends ValueLabel<RpmVersion>

[*] Right-clicking the input element causes the element to gain focus and select all text, so that the user can simply choose "Copy" within the context menu.

To make "General" sub tab look & feel more consistent, every (direct or indirect) usage of ValueLabel should be replaced with usage of appropriate TextBoxLabel.

Patch [http://gerrit.ovirt.org/#/c/21289/] introduces support for generic TextBoxLabel widget. All "General" sub tab views (i.e. SubTab{ENTITY}GeneralView) should be reviewed with regard to following changes.

Example 1 - direct usage of ValueLabel:

  operatingSystem = new ValueLabel<Integer>(new AbstractRenderer<Integer>() { ... });

  ... should become ...

  operatingSystem = new TextBoxLabelBase<Integer>(new AbstractRenderer<Integer>() { ... });


Example 2 - indirect usage of ValueLabel:

  VersionLabel libvirtVersion = new VersionLabel();

  public class VersionLabel extends ValueLabel<RpmVersion> {
    public VersionLabel() {
      super(new VersionRenderer());
    }
  }

  ... should become ...

  TextBoxLabelBase<RpmVersion> libvirtVersion = new TextBoxLabelBase<RpmVersion>(new VersionRenderer());

  // VersionLabel is now redundant and can be removed

Comment 1 anmol babu 2013-12-10 11:12:23 UTC
The attached patch solves the issue in hosts->general sub tab

Comment 2 Einav Cohen 2014-02-05 22:56:07 UTC
Created attachment 859905 [details]
screen-cast: tooltips

see attached screen-cast: you can see that everything is working properly in the General sub-tab within the VMs main tab, however in the General sub-tab in the Hosts main-tab, tooltips are properly displayed, except for the values in the far-right end of the sub-tab, for which tooltips are not displayed.

Comment 3 Einav Cohen 2014-02-05 22:56:46 UTC
(In reply to Einav Cohen from comment #2)
> Created attachment 859905 [details]
> screen-cast: tooltips
> 
> see attached screen-cast: you can see that everything is working properly in
> the General sub-tab within the VMs main tab, however in the General sub-tab
> in the Hosts main-tab, tooltips are properly displayed, except for the
> values in the far-right end of the sub-tab, for which tooltips are not
> displayed.

ignore - this was meant for (related) bug 1061379.

Comment 4 Itamar Heim 2015-03-22 15:46:33 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.


Note You need to log in before you can comment on or make changes to this bug.