Bug 1031596

Summary: [RFE] Make "General" sub tab look & feel more consistent
Product: [Retired] oVirt Reporter: Vojtech Szocs <vszocs>
Component: ovirt-engine-webadminAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact: bugs <bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ecohen, iheim, mgoldboi, pstehlik, rbalakri, yeylon
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ux
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-22 15:46:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screen-cast: tooltips none

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.