DescriptionConflict 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 #
MessagesTotal messages: 13
|