-
Committer:
Rick Harding
-
Author(s):
Richard Harding
-
Date:
2013-06-21 11:04:35 UTC
-
mfrom:
(738.1.14 related-charm)
-
Revision ID:
rick.harding@canonical.com-20130621110435-khq78hehks4dtdzc
Add support for related charm loading and display
- Adds a new store endpoint for the related charm api call
- Adds the idea of relatedCharms for model ATTRS
- Adds two helpers to take the api response data into something we can use in
the app
- Renders out the related charms in the template in fullscreen as an ajax
request
- Updates the charm details to handle click events on charm tokens
- Adds tests for the model helpers and the details view
- Updates a bunch of tests. There were left over testing Nodes that caused
stray tests to fail. I fixed those and also went back and cleaned up the stray
test mess.
- Updates the css to work out so that the tokens can fit. There's a
redesign-a-coming so the work was to fit in currently and the redesign will
move the layout at a later date.
Notes:
- This does not currently add the related charm display to the interfaces tab.
It's a slightly different UX and this branch was taking too long as is.
- I'm not happy with the relatedCharms ATTR. It's not really an ATTR but I
wanted this cached into the model because we'll use that when we add related
charms to the interfaces tab. We don't want to re-request the data. However,
in sidebar move it will not have been requested yet. My plan is to re-evaluate
and possibly refactor when doing the interfaces tab display.
R=
CC=
https://codereview.appspot.com/10416044