Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4735)

Issue 12323043: Conflict UX

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by bcsaller
Modified:
10 years, 9 months ago
Reviewers:
rharding, jeff.pihach, mp+178208
Visibility:
Public.

Description

Conflict UX This branch creates the general flow of operations for the new conflict UX. This version doesn't extract the code in a reusable fashion but includes it directly inline to the viewlet. In the meantime more detailed styling can take place. I find the outlined UX odd in practice and would rather skip the 'indication' phase and directly offer the choices to resolve the conflict. It would almost never be a good idea to proceed without seeing the real server value. - I extracted the assets images/field-*.png used in the UI myself from the PDF, better version might exist. - The option popup is inline and doesn't float over existing content. - The padding and asset sizes are only approximations. - Checkboxes are not currently supported. Other than that the impl seems to work ok. To Test: Deploy glance in the sandbox Make a change in the db-user field by typing Verify you see a change indicator Simulate a conflict from the console: s = app.db.services.item(0); c = s.get('config');c['db-user']='concon';s.set('config', c) Verify you see a conflict indicator Click the field See both options Click and option See that it selects the value and clears the indicators https://code.launchpad.net/~bcsaller/juju-gui/conflict-ux/+merge/178208 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Conflict UX #

Total comments: 11

Patch Set 3 : Conflict UX #

Total comments: 4

Patch Set 4 : Conflict UX #

Total comments: 6

Patch Set 5 : Conflict UX #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -174 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A app/assets/images/field-changed.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A app/assets/images/field-conflict.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A app/assets/images/field-resolved.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A app/assets/images/field-saved.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A app/templates/conflict-ux.partial View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M app/templates/service-configuration.partial View 1 2 3 2 chunks +3 lines, -10 lines 0 comments Download
M app/templates/service-constraints-viewlet.handlebars View 1 2 3 4 1 chunk +2 lines, -5 lines 0 comments Download
M app/templates/service-constraints-viewlet.partial View 1 2 3 1 chunk +4 lines, -12 lines 0 comments Download
M app/views/databinding.js View 1 2 3 9 chunks +31 lines, -24 lines 0 comments Download
M app/views/environment.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M app/views/inspector.js View 1 2 3 4 6 chunks +81 lines, -62 lines 0 comments Download
M app/views/service.js View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M lib/views/juju-inspector.less View 1 2 3 3 chunks +38 lines, -23 lines 0 comments Download
M test/index.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A test/test_conflict_ux.js View 1 2 3 1 chunk +148 lines, -0 lines 0 comments Download
M test/test_inspector_constraints.js View 1 2 3 1 chunk +0 lines, -39 lines 0 comments Download

Messages

Total messages: 13
bcsaller
Please take a look.
10 years, 9 months ago (2013-08-02 06:35:26 UTC) #1
bcsaller
Please take a look.
10 years, 9 months ago (2013-08-02 06:44:02 UTC) #2
jeff.pihach
Thanks for getting this branch out! In attempting to QA I came across a bug ...
10 years, 9 months ago (2013-08-02 16:15:43 UTC) #3
bcsaller
Please take a look.
10 years, 9 months ago (2013-08-02 17:25:33 UTC) #4
jeff.pihach
LGTM QA OK! This is looking great, the dropdown and indicators could use some styling ...
10 years, 9 months ago (2013-08-02 17:38:34 UTC) #5
rharding
Couple of comments below that are mostly small. Are there tests for this? I'm hesitant ...
10 years, 9 months ago (2013-08-02 17:50:02 UTC) #6
benjamin.saller
On 2013/08/02 17:50:02, rharding wrote: > Couple of comments below that are mostly small. > ...
10 years, 9 months ago (2013-08-02 18:15:21 UTC) #7
benjamin.saller
Thanks https://codereview.appspot.com/12323043/diff/3001/app/templates/viewlet-manager.handlebars File app/templates/viewlet-manager.handlebars (left): https://codereview.appspot.com/12323043/diff/3001/app/templates/viewlet-manager.handlebars#oldcode14 app/templates/viewlet-manager.handlebars:14: <!-- Expose control --> On 2013/08/02 16:15:43, jeff.pihach ...
10 years, 9 months ago (2013-08-02 18:18:54 UTC) #8
rharding
I can't get the animation to work which is what the timeout is for. I ...
10 years, 9 months ago (2013-08-02 18:32:56 UTC) #9
bcsaller
Please take a look.
10 years, 9 months ago (2013-08-06 15:42:16 UTC) #10
rharding
LGTM with the comments below, though I'm really uncomfortable with adding code that doesn't support ...
10 years, 9 months ago (2013-08-07 15:03:43 UTC) #11
benjamin.saller
Thanks for the reviews. Made a note on the bug and in the MP about ...
10 years, 9 months ago (2013-08-07 15:15:47 UTC) #12
bcsaller
10 years, 9 months ago (2013-08-07 15:21:16 UTC) #13
*** Submitted:

Conflict UX

This branch creates the general flow of operations for the new conflict UX.
This version doesn't extract the code in a reusable fashion but includes it
directly inline to the viewlet. In the meantime more detailed 
styling can take place.

I find the outlined UX odd in practice and would rather skip the 'indication'
phase and directly offer the choices to resolve the conflict. It would almost
never be a good idea to proceed without seeing the real server value.

- I extracted the assets images/field-*.png used in the UI myself from the
PDF, better version might exist.

- The option popup is inline and doesn't float over existing content.

- The padding and asset sizes are only approximations.

- Checkboxes are not currently supported.

Other than that the impl seems to work ok.


To Test:
Deploy glance in the sandbox
Make a change in the db-user field by typing
	Verify you see a change indicator
Simulate a conflict from the console:
		s = app.db.services.item(0); c =
s.get('config');c['db-user']='concon';s.set('config', c)
	Verify you see a conflict indicator
	Click the field 
	See both options
	Click and option
		See that it selects the value and clears the indicators

R=jeff.pihach, rharding, benjamin.saller
CC=
https://codereview.appspot.com/12323043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b