DescriptionAdd 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.
https://code.launchpad.net/~rharding/juju-gui/related-charm/+merge/170313
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 17
Patch Set 2 : Add support for related charm loading and display #Patch Set 3 : Add support for related charm loading and display #Patch Set 4 : Add support for related charm loading and display #
MessagesTotal messages: 10
|