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

Issue 14153043: WIP - Bundle details view

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

Description

WIP - Bundle details view This is a WIP fist pass for the bundle details view. Because there is no way to access this from the application you can access it by using the following URL: http://localhost:8888/bundle/~bac/wiki/3/wiki/:flags:/charmworldv3/ https://code.launchpad.net/~hatch/juju-gui/bundle-detail-view/+merge/188456 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : WIP - Bundle details view #

Total comments: 27
Unified diffs Side-by-side diffs Delta from patch set Stats (+857 lines, -797 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/modules-debug.js View 1 chunk +1 line, -1 line 0 comments Download
D app/store/charm.js View 1 chunk +0 lines, -769 lines 0 comments Download
A app/store/charmworld.js View 1 1 chunk +798 lines, -0 lines 13 comments Download
M app/subapps/browser/browser.js View 1 chunk +1 line, -2 lines 2 comments Download
M app/subapps/browser/views/charm.js View 3 chunks +53 lines, -19 lines 10 comments Download
M app/templates/bundle.handlebars View 2 chunks +2 lines, -2 lines 2 comments Download
M undocumented View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 4
jeff.pihach
Please take a look.
11 years, 9 months ago (2013-09-30 21:06:39 UTC) #1
jeff.pihach
Please take a look.
11 years, 9 months ago (2013-09-30 21:13:13 UTC) #2
rharding
I think this is exactly on the right path. I'd tweak a few things. I ...
11 years, 9 months ago (2013-10-01 01:06:36 UTC) #3
jeff.pihach
11 years, 9 months ago (2013-10-01 02:14:58 UTC) #4
Thanks for the review. Replies are below - lets chat in the morning and then I
will start a few real branches to tackle these changes.

https://codereview.appspot.com/14153043/diff/4001/app/store/charmworld.js
File app/store/charmworld.js (right):

https://codereview.appspot.com/14153043/diff/4001/app/store/charmworld.js#new...
app/store/charmworld.js:34: juju.charmworld = ns;
Not sure, this was from the old code.

https://codereview.appspot.com/14153043/diff/4001/app/store/charmworld.js#new...
app/store/charmworld.js:242: bundle: function(bundleID, callbacks, bindScope) {
Right, I wasn't sure how the cache was implemented so I left it out at this
point to get a functional example asap.

https://codereview.appspot.com/14153043/diff/4001/app/store/charmworld.js#new...
app/store/charmworld.js:273: promiseCharm: function(charmId, cache,
defaultSeries) {
I agree, as I was reading through this stuff it would be great if we only used
the promises for charms and bundles.

https://codereview.appspot.com/14153043/diff/4001/app/store/charmworld.js#new...
app/store/charmworld.js:383: iconpath: function(charmID) {
It does not so I removed it from the template - atm it looks like we only have
default icons, but will confirm in the am.

https://codereview.appspot.com/14153043/diff/4001/app/store/charmworld.js#new...
app/store/charmworld.js:509: related: function(charmID, callbacks, bindScope) {
Hmm good call - that can be a follow-up

https://codereview.appspot.com/14153043/diff/4001/app/subapps/browser/browser.js
File app/subapps/browser/browser.js (right):

https://codereview.appspot.com/14153043/diff/4001/app/subapps/browser/browser...
app/subapps/browser/browser.js:924: if (idBits.length > 1) {
You bet - I haven't manually checked the validity of all the paths yet but all
of the tests pass and qa was ok.

https://codereview.appspot.com/14153043/diff/4001/app/subapps/browser/views/c...
File app/subapps/browser/views/charm.js (right):

https://codereview.appspot.com/14153043/diff/4001/app/subapps/browser/views/c...
app/subapps/browser/views/charm.js:36: ns.BrowserCharmView =
Y.Base.create('browser-view-charmview', Y.View, [
We were trying to come up with a good name :)

https://codereview.appspot.com/14153043/diff/4001/app/subapps/browser/views/c...
app/subapps/browser/views/charm.js:762: _renderBundleView: function(bundle) {
It's definitely missing a lot of logic :) It's still a WIP - but we also don't
have UX for this view yet so any effort spent here might be wasted - we can talk
in the am.

https://codereview.appspot.com/14153043/diff/4001/app/subapps/browser/views/c...
app/subapps/browser/views/charm.js:781: charmID = this.get('charmID'),
Yeah I had intended on renaming this assuming the impl made sense.

https://codereview.appspot.com/14153043/diff/4001/app/subapps/browser/views/c...
app/subapps/browser/views/charm.js:786: if (this.get('charm')) {
I was also thinking of something similar but I didn't want to modify that deep
for this prototype

https://codereview.appspot.com/14153043/diff/4001/app/subapps/browser/views/c...
app/subapps/browser/views/charm.js:793: if (charmID.indexOf('bundle') === -1) {
I think that this only belongs in the store if we move to a get('token') as
mentioned above because we will still need to handle different success paths.

https://codereview.appspot.com/14153043/diff/4001/app/templates/bundle.handle...
File app/templates/bundle.handlebars (right):

https://codereview.appspot.com/14153043/diff/4001/app/templates/bundle.handle...
app/templates/bundle.handlebars:7: <img src="{{storeId}}" alt="{{ name }} icon"
class="icon">
Ahh ok. The API call didn't have a key for icon so I assumed that they only used
the default.
Sign in to reply to this message.

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