You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Sangeeta Ravindran <sa...@gmail.com> on 2016/02/01 21:47:24 UTC

Re: Review Request 43000: Longer cluster names extend beyond the frame in the Ambari Admin view.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43000/
-----------------------------------------------------------

(Updated Feb. 1, 2016, 8:47 p.m.)


Review request for Ambari and Alexandr Antonenko.


Changes
-------

Added screenshots taken with updated patch. In this case, after 13 characters, the cluster name will be displayed with "..." and the tooltip displays the full cluster name as is done in the cluster dashboard.


Bugs: ambari-14525
    https://issues.apache.org/jira/browse/ambari-14525


Repository: ambari


Description
-------

If the cluster name is long (25+ characters), it extends beyond the frame in the Ambari Admin view and spills into the adjacent frame.

There also seem similar issues in the alerts and confirmation modal dialog displayed.


Diffs
-----

  ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/NavbarCtrl.js 319a8f2 
  ambari-admin/src/main/resources/ui/admin-web/app/styles/main.css f54d87c 
  ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html 17f8f0b 

Diff: https://reviews.apache.org/r/43000/diff/


Testing
-------

Fix involves appending "..." once the length of the cluster name exceeds 20 characters and adding a tooltip so that the entire name can be viewed if desired.

There are also some css changes to prevent longer names to be displayed beyond the width of modal dialogs and Ambari alerts by using word-wrap:break-word;

Did manual testing.


File Attachments (updated)
----------------

ConfimClusterDlg
  https://reviews.apache.org/media/uploaded/files/2016/01/30/f9d40846-cfe6-41e5-b0e4-7f7a0e667bbe__ConfirmClusterRenameModalDialog.jpg
ClusterNameAlert
  https://reviews.apache.org/media/uploaded/files/2016/01/30/404eccc0-6f8c-4d04-ae60-b5e2a58433f0__ClusterRenameAlert_withfix.jpg
LongerClusterNameAdminView
  https://reviews.apache.org/media/uploaded/files/2016/01/30/eb78f56b-0bc9-47d8-b1a6-b2168627961f__LongClusterNameAdminView_withfix.jpg
LongName_withfix13characters1.jpg
  https://reviews.apache.org/media/uploaded/files/2016/02/01/06aa6466-31bd-4e8d-a92f-da1aafbfc68f__LongName_withfix13characters1.jpg
LongName_withfix13characters2.jpg
  https://reviews.apache.org/media/uploaded/files/2016/02/01/f3edb0b5-1034-43ec-9769-7cfc3b14be0d__LongName_withfix13characters2.jpg


Thanks,

Sangeeta Ravindran


Re: Review Request 43000: Longer cluster names extend beyond the frame in the Ambari Admin view.

Posted by Sangeeta Ravindran <sa...@gmail.com>.

> On Feb. 2, 2016, 5:38 p.m., Alexandr Antonenko wrote:
> >

Thanks Alexander. Can you please help push the fix?


- Sangeeta


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43000/#review117427
-----------------------------------------------------------


On Feb. 2, 2016, 5:36 p.m., Sangeeta Ravindran wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43000/
> -----------------------------------------------------------
> 
> (Updated Feb. 2, 2016, 5:36 p.m.)
> 
> 
> Review request for Ambari and Alexandr Antonenko.
> 
> 
> Bugs: ambari-14525
>     https://issues.apache.org/jira/browse/ambari-14525
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> If the cluster name is long (25+ characters), it extends beyond the frame in the Ambari Admin view and spills into the adjacent frame.
> 
> There also seem similar issues in the alerts and confirmation modal dialog displayed.
> 
> 
> Diffs
> -----
> 
>   ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/NavbarCtrl.js 319a8f2 
>   ambari-admin/src/main/resources/ui/admin-web/app/styles/main.css f54d87c 
>   ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html 17f8f0b 
> 
> Diff: https://reviews.apache.org/r/43000/diff/
> 
> 
> Testing
> -------
> 
> Fix involves appending "..." once the length of the cluster name exceeds 20 characters and adding a tooltip so that the entire name can be viewed if desired.
> 
> There are also some css changes to prevent longer names to be displayed beyond the width of modal dialogs and Ambari alerts by using word-wrap:break-word;
> 
> Did manual testing.
> 
> 
> File Attachments
> ----------------
> 
> ConfimClusterDlg
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/f9d40846-cfe6-41e5-b0e4-7f7a0e667bbe__ConfirmClusterRenameModalDialog.jpg
> ClusterNameAlert
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/404eccc0-6f8c-4d04-ae60-b5e2a58433f0__ClusterRenameAlert_withfix.jpg
> LongerClusterNameAdminView
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/eb78f56b-0bc9-47d8-b1a6-b2168627961f__LongClusterNameAdminView_withfix.jpg
> LongName_withfix13characters1.jpg
>   https://reviews.apache.org/media/uploaded/files/2016/02/01/4a361af0-c45f-4842-af7a-8338a7fff99f__LongName_withfix13characters1.jpg
> LongName_withfix13characters2.jpg
>   https://reviews.apache.org/media/uploaded/files/2016/02/01/f83f5014-8231-4f05-b794-1cc3fe711af7__LongName_withfix13characters2.jpg
> AMBARI-14525_0201.patch
>   https://reviews.apache.org/media/uploaded/files/2016/02/02/3c528b8c-43b7-4e02-8015-0b202b0f5dbd__AMBARI-14525_0201.patch
> 
> 
> Thanks,
> 
> Sangeeta Ravindran
> 
>


Re: Review Request 43000: Longer cluster names extend beyond the frame in the Ambari Admin view.

Posted by Sangeeta Ravindran <sa...@gmail.com>.

> On Feb. 2, 2016, 5:38 p.m., Alexandr Antonenko wrote:
> >
> 
> Sangeeta Ravindran wrote:
>     Thanks Alexander. Can you please help push the fix?

Hi Alexander, I just realised that modifying the padding causes another issue and hence I'm reverting just that change as it is not required.

I have removed that change and attached the patch again. I will need help commiting the fix.


- Sangeeta


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43000/#review117427
-----------------------------------------------------------


On Feb. 2, 2016, 5:36 p.m., Sangeeta Ravindran wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43000/
> -----------------------------------------------------------
> 
> (Updated Feb. 2, 2016, 5:36 p.m.)
> 
> 
> Review request for Ambari and Alexandr Antonenko.
> 
> 
> Bugs: ambari-14525
>     https://issues.apache.org/jira/browse/ambari-14525
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> If the cluster name is long (25+ characters), it extends beyond the frame in the Ambari Admin view and spills into the adjacent frame.
> 
> There also seem similar issues in the alerts and confirmation modal dialog displayed.
> 
> 
> Diffs
> -----
> 
>   ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/NavbarCtrl.js 319a8f2 
>   ambari-admin/src/main/resources/ui/admin-web/app/styles/main.css f54d87c 
>   ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html 17f8f0b 
> 
> Diff: https://reviews.apache.org/r/43000/diff/
> 
> 
> Testing
> -------
> 
> Fix involves appending "..." once the length of the cluster name exceeds 20 characters and adding a tooltip so that the entire name can be viewed if desired.
> 
> There are also some css changes to prevent longer names to be displayed beyond the width of modal dialogs and Ambari alerts by using word-wrap:break-word;
> 
> Did manual testing.
> 
> 
> File Attachments
> ----------------
> 
> ConfimClusterDlg
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/f9d40846-cfe6-41e5-b0e4-7f7a0e667bbe__ConfirmClusterRenameModalDialog.jpg
> ClusterNameAlert
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/404eccc0-6f8c-4d04-ae60-b5e2a58433f0__ClusterRenameAlert_withfix.jpg
> LongerClusterNameAdminView
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/eb78f56b-0bc9-47d8-b1a6-b2168627961f__LongClusterNameAdminView_withfix.jpg
> LongName_withfix13characters1.jpg
>   https://reviews.apache.org/media/uploaded/files/2016/02/01/4a361af0-c45f-4842-af7a-8338a7fff99f__LongName_withfix13characters1.jpg
> LongName_withfix13characters2.jpg
>   https://reviews.apache.org/media/uploaded/files/2016/02/01/f83f5014-8231-4f05-b794-1cc3fe711af7__LongName_withfix13characters2.jpg
> AMBARI-14525_0201.patch
>   https://reviews.apache.org/media/uploaded/files/2016/02/02/3c528b8c-43b7-4e02-8015-0b202b0f5dbd__AMBARI-14525_0201.patch
> 
> 
> Thanks,
> 
> Sangeeta Ravindran
> 
>


Re: Review Request 43000: Longer cluster names extend beyond the frame in the Ambari Admin view.

Posted by Alexandr Antonenko <hi...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43000/#review117427
-----------------------------------------------------------


Ship it!




- Alexandr Antonenko


On Feb. 2, 2016, 5:36 p.m., Sangeeta Ravindran wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43000/
> -----------------------------------------------------------
> 
> (Updated Feb. 2, 2016, 5:36 p.m.)
> 
> 
> Review request for Ambari and Alexandr Antonenko.
> 
> 
> Bugs: ambari-14525
>     https://issues.apache.org/jira/browse/ambari-14525
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> If the cluster name is long (25+ characters), it extends beyond the frame in the Ambari Admin view and spills into the adjacent frame.
> 
> There also seem similar issues in the alerts and confirmation modal dialog displayed.
> 
> 
> Diffs
> -----
> 
>   ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/NavbarCtrl.js 319a8f2 
>   ambari-admin/src/main/resources/ui/admin-web/app/styles/main.css f54d87c 
>   ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html 17f8f0b 
> 
> Diff: https://reviews.apache.org/r/43000/diff/
> 
> 
> Testing
> -------
> 
> Fix involves appending "..." once the length of the cluster name exceeds 20 characters and adding a tooltip so that the entire name can be viewed if desired.
> 
> There are also some css changes to prevent longer names to be displayed beyond the width of modal dialogs and Ambari alerts by using word-wrap:break-word;
> 
> Did manual testing.
> 
> 
> File Attachments
> ----------------
> 
> ConfimClusterDlg
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/f9d40846-cfe6-41e5-b0e4-7f7a0e667bbe__ConfirmClusterRenameModalDialog.jpg
> ClusterNameAlert
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/404eccc0-6f8c-4d04-ae60-b5e2a58433f0__ClusterRenameAlert_withfix.jpg
> LongerClusterNameAdminView
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/eb78f56b-0bc9-47d8-b1a6-b2168627961f__LongClusterNameAdminView_withfix.jpg
> LongName_withfix13characters1.jpg
>   https://reviews.apache.org/media/uploaded/files/2016/02/01/4a361af0-c45f-4842-af7a-8338a7fff99f__LongName_withfix13characters1.jpg
> LongName_withfix13characters2.jpg
>   https://reviews.apache.org/media/uploaded/files/2016/02/01/f83f5014-8231-4f05-b794-1cc3fe711af7__LongName_withfix13characters2.jpg
> AMBARI-14525_0201.patch
>   https://reviews.apache.org/media/uploaded/files/2016/02/02/3c528b8c-43b7-4e02-8015-0b202b0f5dbd__AMBARI-14525_0201.patch
> 
> 
> Thanks,
> 
> Sangeeta Ravindran
> 
>


Re: Review Request 43000: Longer cluster names extend beyond the frame in the Ambari Admin view.

Posted by Sangeeta Ravindran <sa...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43000/
-----------------------------------------------------------

(Updated Feb. 2, 2016, 5:36 p.m.)


Review request for Ambari and Alexandr Antonenko.


Bugs: ambari-14525
    https://issues.apache.org/jira/browse/ambari-14525


Repository: ambari


Description
-------

If the cluster name is long (25+ characters), it extends beyond the frame in the Ambari Admin view and spills into the adjacent frame.

There also seem similar issues in the alerts and confirmation modal dialog displayed.


Diffs
-----

  ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/NavbarCtrl.js 319a8f2 
  ambari-admin/src/main/resources/ui/admin-web/app/styles/main.css f54d87c 
  ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html 17f8f0b 

Diff: https://reviews.apache.org/r/43000/diff/


Testing
-------

Fix involves appending "..." once the length of the cluster name exceeds 20 characters and adding a tooltip so that the entire name can be viewed if desired.

There are also some css changes to prevent longer names to be displayed beyond the width of modal dialogs and Ambari alerts by using word-wrap:break-word;

Did manual testing.


File Attachments (updated)
----------------

ConfimClusterDlg
  https://reviews.apache.org/media/uploaded/files/2016/01/30/f9d40846-cfe6-41e5-b0e4-7f7a0e667bbe__ConfirmClusterRenameModalDialog.jpg
ClusterNameAlert
  https://reviews.apache.org/media/uploaded/files/2016/01/30/404eccc0-6f8c-4d04-ae60-b5e2a58433f0__ClusterRenameAlert_withfix.jpg
LongerClusterNameAdminView
  https://reviews.apache.org/media/uploaded/files/2016/01/30/eb78f56b-0bc9-47d8-b1a6-b2168627961f__LongClusterNameAdminView_withfix.jpg
LongName_withfix13characters1.jpg
  https://reviews.apache.org/media/uploaded/files/2016/02/01/4a361af0-c45f-4842-af7a-8338a7fff99f__LongName_withfix13characters1.jpg
LongName_withfix13characters2.jpg
  https://reviews.apache.org/media/uploaded/files/2016/02/01/f83f5014-8231-4f05-b794-1cc3fe711af7__LongName_withfix13characters2.jpg
AMBARI-14525_0201.patch
  https://reviews.apache.org/media/uploaded/files/2016/02/02/3c528b8c-43b7-4e02-8015-0b202b0f5dbd__AMBARI-14525_0201.patch


Thanks,

Sangeeta Ravindran


Re: Review Request 43000: Longer cluster names extend beyond the frame in the Ambari Admin view.

Posted by Alexandr Antonenko <hi...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43000/#review117424
-----------------------------------------------------------



can you please updare the patch here

- Alexandr Antonenko


On Feb. 1, 2016, 9:30 p.m., Sangeeta Ravindran wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/43000/
> -----------------------------------------------------------
> 
> (Updated Feb. 1, 2016, 9:30 p.m.)
> 
> 
> Review request for Ambari and Alexandr Antonenko.
> 
> 
> Bugs: ambari-14525
>     https://issues.apache.org/jira/browse/ambari-14525
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> If the cluster name is long (25+ characters), it extends beyond the frame in the Ambari Admin view and spills into the adjacent frame.
> 
> There also seem similar issues in the alerts and confirmation modal dialog displayed.
> 
> 
> Diffs
> -----
> 
>   ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/NavbarCtrl.js 319a8f2 
>   ambari-admin/src/main/resources/ui/admin-web/app/styles/main.css f54d87c 
>   ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html 17f8f0b 
> 
> Diff: https://reviews.apache.org/r/43000/diff/
> 
> 
> Testing
> -------
> 
> Fix involves appending "..." once the length of the cluster name exceeds 20 characters and adding a tooltip so that the entire name can be viewed if desired.
> 
> There are also some css changes to prevent longer names to be displayed beyond the width of modal dialogs and Ambari alerts by using word-wrap:break-word;
> 
> Did manual testing.
> 
> 
> File Attachments
> ----------------
> 
> ConfimClusterDlg
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/f9d40846-cfe6-41e5-b0e4-7f7a0e667bbe__ConfirmClusterRenameModalDialog.jpg
> ClusterNameAlert
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/404eccc0-6f8c-4d04-ae60-b5e2a58433f0__ClusterRenameAlert_withfix.jpg
> LongerClusterNameAdminView
>   https://reviews.apache.org/media/uploaded/files/2016/01/30/eb78f56b-0bc9-47d8-b1a6-b2168627961f__LongClusterNameAdminView_withfix.jpg
> LongName_withfix13characters1.jpg
>   https://reviews.apache.org/media/uploaded/files/2016/02/01/4a361af0-c45f-4842-af7a-8338a7fff99f__LongName_withfix13characters1.jpg
> LongName_withfix13characters2.jpg
>   https://reviews.apache.org/media/uploaded/files/2016/02/01/f83f5014-8231-4f05-b794-1cc3fe711af7__LongName_withfix13characters2.jpg
> 
> 
> Thanks,
> 
> Sangeeta Ravindran
> 
>


Re: Review Request 43000: Longer cluster names extend beyond the frame in the Ambari Admin view.

Posted by Sangeeta Ravindran <sa...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/43000/
-----------------------------------------------------------

(Updated Feb. 1, 2016, 9:30 p.m.)


Review request for Ambari and Alexandr Antonenko.


Changes
-------

Reduced the padding on both sides by 10 px.


Bugs: ambari-14525
    https://issues.apache.org/jira/browse/ambari-14525


Repository: ambari


Description
-------

If the cluster name is long (25+ characters), it extends beyond the frame in the Ambari Admin view and spills into the adjacent frame.

There also seem similar issues in the alerts and confirmation modal dialog displayed.


Diffs
-----

  ambari-admin/src/main/resources/ui/admin-web/app/scripts/controllers/NavbarCtrl.js 319a8f2 
  ambari-admin/src/main/resources/ui/admin-web/app/styles/main.css f54d87c 
  ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html 17f8f0b 

Diff: https://reviews.apache.org/r/43000/diff/


Testing
-------

Fix involves appending "..." once the length of the cluster name exceeds 20 characters and adding a tooltip so that the entire name can be viewed if desired.

There are also some css changes to prevent longer names to be displayed beyond the width of modal dialogs and Ambari alerts by using word-wrap:break-word;

Did manual testing.


File Attachments (updated)
----------------

ConfimClusterDlg
  https://reviews.apache.org/media/uploaded/files/2016/01/30/f9d40846-cfe6-41e5-b0e4-7f7a0e667bbe__ConfirmClusterRenameModalDialog.jpg
ClusterNameAlert
  https://reviews.apache.org/media/uploaded/files/2016/01/30/404eccc0-6f8c-4d04-ae60-b5e2a58433f0__ClusterRenameAlert_withfix.jpg
LongerClusterNameAdminView
  https://reviews.apache.org/media/uploaded/files/2016/01/30/eb78f56b-0bc9-47d8-b1a6-b2168627961f__LongClusterNameAdminView_withfix.jpg
LongName_withfix13characters1.jpg
  https://reviews.apache.org/media/uploaded/files/2016/02/01/4a361af0-c45f-4842-af7a-8338a7fff99f__LongName_withfix13characters1.jpg
LongName_withfix13characters2.jpg
  https://reviews.apache.org/media/uploaded/files/2016/02/01/f83f5014-8231-4f05-b794-1cc3fe711af7__LongName_withfix13characters2.jpg


Thanks,

Sangeeta Ravindran