DescriptionSupport autocomplete of charms in search.
- Adds support to the charm-search widget to autocomplete as a user types
- Adds a new api endpoint to the store 'autocomplete'
- Adds the yui3-skin-sam to enable proper styling of the AC widget. This
caused some CSS changes to undo the damage in other locations.
- Update the view to only deal with the search widget when a store is present.
In tests it's not, and there's no point getting errors around it.
- Make sure we don't display metadata in the tiny charm-token sized used for
the AC results display.
- Update tests to deal with the new search widget updates.
- Add test to the new handlebars unless_eq helper.
Testing Notes:
I know the tests around the AC widget in the search tests are a bit weak. It's
difficult to test since there's not a good way to wait for the html render to
complete with suggestions without doing timeout related code. I've tried to
test that the custom parts of the code we init are touched and working. So we
verify that our results include a charm-token html result vs a plain 'name' of
a charm. Most of the work in there is using code that's already under test,
like firing viewNavigate and such. If we find bugs I'm more than happy to
break into more complicated testing to make sure they don't reoccur, but it's
much of this is tying together code that's already under test.
https://code.launchpad.net/~rharding/juju-gui/autocomplete-widget/+merge/174016
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Support autocomplete of charms in search. #
Total comments: 6
Patch Set 3 : Support autocomplete of charms in search. #Patch Set 4 : Support autocomplete of charms in search. #
Total comments: 18
Patch Set 5 : Support autocomplete of charms in search. #Patch Set 6 : Support autocomplete of charms in search. #Patch Set 7 : Support autocomplete of charms in search. #Patch Set 8 : Support autocomplete of charms in search. #
MessagesTotal messages: 12
|