Merge lp://staging/~gary/juju-gui/syncMenu into lp://staging/juju-gui/experimental

Proposed by Gary Poster
Status: Merged
Merged at revision: 1053
Proposed branch: lp://staging/~gary/juju-gui/syncMenu
Merge into: lp://staging/juju-gui/experimental
Diff against target: 185 lines (+28/-48)
5 files modified
app/index.html (+4/-6)
app/views/environment.js (+5/-0)
app/views/topology/service.js (+13/-25)
test/test_environment_view.js (+5/-5)
test/test_service_module.js (+1/-12)
To merge this branch: bzr merge lp://staging/~gary/juju-gui/syncMenu
Reviewer Review Type Date Requested Status
Juju GUI Hackers Pending
Review via email: mp+186107@code.staging.launchpad.net

Description of the change

Sync relation menu with inspector open and close

While the relation menu is going away soonish, if the plans are to be believed, meanwhile it is what we have. This branch makes it so that when the inspector is first opened--after a ghost or when you click on a service--the relation menu appears. Similarly, when you close the inspector, relation menus close.

It is still possible to hide the relation menu while the inspector is open. If you begin to create a relation, the option will disappear; and if you click the canvas it will disappear. These seem like pretty good interactions for me, given the fundamental oddity (to me) of having the relation menu and the inspector separate entities, at least given the current design.

https://codereview.appspot.com/13583044/

To post a comment you must log in.
Revision history for this message
Gary Poster (gary) wrote :
Download full text (9.1 KiB)

Reviewers: mp+186107_code.launchpad.net,

Message:
Please take a look.

Description:
Sync relation menu with inspector open and close

While the relation menu is going away soonish, if the plans are to be
believed, meanwhile it is what we have. This branch makes it so that
when the inspector is first opened--after a ghost or when you click on a
service--the relation menu appears. Similarly, when you close the
inspector, relation menus close.

It is still possible to hide the relation menu while the inspector is
open. If you begin to create a relation, the option will disappear; and
if you click the canvas it will disappear. These seem like pretty good
interactions for me, given the fundamental oddity (to me) of having the
relation menu and the inspector separate entities, at least given the
current design.

https://code.launchpad.net/~gary/juju-gui/syncMenu/+merge/186107

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/13583044/

Affected files (+30, -48 lines):
   A [revision details]
   M app/index.html
   M app/views/environment.js
   M app/views/topology/service.js
   M test/test_environment_view.js
   M test/test_service_module.js

Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>

Index: app/index.html
=== modified file 'app/index.html'
--- app/index.html 2013-09-12 18:15:47 +0000
+++ app/index.html 2013-09-17 15:44:32 +0000
@@ -39,9 +39,8 @@
      <meta name="author" content="Juju team">
      <link
href='https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700|
Ubuntu:300,400,500,300italic,400italic,500italic' rel='stylesheet'
type='text/css'>
      <link rel="shortcut icon" href="/favicon.ico">
- <!-- Remove the query strings below after release 0.9.0. -->
- <link rel="stylesheet"
href="/juju-ui/assets/combined-css/all-static.css?reload=temporary">
- <link rel="stylesheet"
href="/juju-ui/assets/juju-gui.css?reload=temporary">
+ <link rel="stylesheet"
href="/juju-ui/assets/combined-css/all-static.css">
+ <link rel="stylesheet" href="/juju-ui/assets/juju-gui.css">
      <link rel="stylesheet" href="/juju-ui/assets/sprites.css">
      <!-- Make sure the config is loaded before other JS for use in the page
           below.
@@ -363,9 +362,8 @@
        because we want the browser warning to execute before spending the
time
        to download an app the user might not be able to use anyway.
      -->
- <!-- Remove the query strings below after release 0.9.0. -->
- <script src="/juju-ui/assets/all-yui.js?reload=temporary"></script>
- <script src="/juju-ui/assets/modules.js?reload=temporary"></script>
+ <script src="/juju-ui/assets/all-yui.js"></script>
+ <script src="/juju-ui/assets/modules.js"></script>
      <script>
        // Now that all of the above JS is loaded we can define the real
start
        // function which will be picked up by the setTimeout, and the ...

Read more...

Revision history for this message
Gary Poster (gary) wrote :

Comments

https://codereview.appspot.com/13583044/diff/1/app/index.html
File app/index.html (left):

https://codereview.appspot.com/13583044/diff/1/app/index.html#oldcode44
app/index.html:44: <link rel="stylesheet"
href="/juju-ui/assets/juju-gui.css?reload=temporary">
Flyby. We shouldn't need these any more, now that we've had the new
charm deployed for such a long time.

https://codereview.appspot.com/13583044/diff/1/app/views/topology/service.js
File app/views/topology/service.js (left):

https://codereview.appspot.com/13583044/diff/1/app/views/topology/service.js#oldcode114
app/views/topology/service.js:114: d.model.set('placeFromGhostPosition',
false);
Moved below.

https://codereview.appspot.com/13583044/diff/1/app/views/topology/service.js#oldcode1338
app/views/topology/service.js:1338: toggleServiceMenu: function(box) {
We don't use this any more.

https://codereview.appspot.com/13583044/diff/1/app/views/topology/service.js
File app/views/topology/service.js (right):

https://codereview.appspot.com/13583044/diff/1/app/views/topology/service.js#newcode463
app/views/topology/service.js:463: this.set('currentServiceClickAction',
'showServiceMenu');
Every time you click on a service, you will get the inspector and the
service menu.

https://codereview.appspot.com/13583044/

Revision history for this message
Madison Scott-Clary (makyo) wrote :
Revision history for this message
Gary Poster (gary) wrote :

*** Submitted:

Sync relation menu with inspector open and close

While the relation menu is going away soonish, if the plans are to be
believed, meanwhile it is what we have. This branch makes it so that
when the inspector is first opened--after a ghost or when you click on a
service--the relation menu appears. Similarly, when you close the
inspector, relation menus close.

It is still possible to hide the relation menu while the inspector is
open. If you begin to create a relation, the option will disappear; and
if you click the canvas it will disappear. These seem like pretty good
interactions for me, given the fundamental oddity (to me) of having the
relation menu and the inspector separate entities, at least given the
current design.

R=matthew.scott
CC=
https://codereview.appspot.com/13583044

https://codereview.appspot.com/13583044/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches