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

Issue 8103046: Create a view for the browser charm details.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by rharding
Modified:
11 years, 1 month ago
Reviewers:
mp+156054, j.c.sackett, jeff.pihach
Visibility:
Public.

Description

Create a view for the browser charm details. - Drive by fixes for some missing deps - Drive by for the api url in the prod config - Refactory out the logic of the charm details from Fullscreen to it's own view so it can be reused hopefully in the Sidebar View as well. - Add the icon to the BrowserCharm model since it's new. - Add the `file` Charmworld API endpoint used for loading the readme contents if available. - Fix broken HTML heh - Add events with place holder functions for clicking 'add' and 'open changelog'. - Add basic tests for the BrowserCharmView - If you want to QA, go to /bws/sidebar and select one of the charm links displayed. It will load details for that charm. Note: there's an upstream Charmworld API issue if the charm *does* have a README file. It'll throw an error currently and a fix to Charmworld is submitted but not in staging yet. https://code.launchpad.net/~rharding/juju-gui/clean_charmview/+merge/156054 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 8

Patch Set 2 : Create a view for the browser charm details. #

Total comments: 6

Patch Set 3 : Create a view for the browser charm details. #

Patch Set 4 : Create a view for the browser charm details. #

Patch Set 5 : Create a view for the browser charm details. #

Patch Set 6 : Create a view for the browser charm details. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -26 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M app/config-prod.js View 1 chunk +1 line, -1 line 0 comments Download
M app/models/charm.js View 1 chunk +1 line, -0 lines 0 comments Download
M app/modules-debug.js View 1 chunk +5 lines, -1 line 0 comments Download
M app/store/charm.js View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
M app/subapps/browser/templates/browser_charm.handlebars View 1 3 chunks +12 lines, -11 lines 0 comments Download
A app/subapps/browser/views/charm.js View 1 2 1 chunk +199 lines, -0 lines 0 comments Download
M app/subapps/browser/views/fullscreen.js View 2 chunks +15 lines, -13 lines 0 comments Download
M app/subapps/browser/views/sidebar.js View 1 chunk +1 line, -0 lines 0 comments Download
M test/index.html View 1 chunk +1 line, -0 lines 0 comments Download
A test/test_browser_charm_details.js View 1 2 3 4 1 chunk +140 lines, -0 lines 0 comments Download

Messages

Total messages: 8
rharding
Please take a look.
11 years, 1 month ago (2013-03-28 23:34:41 UTC) #1
jeff.pihach
Thanks for this, it is looking good! I am starting to get a little concerned ...
11 years, 1 month ago (2013-03-29 03:26:31 UTC) #2
rharding
Thanks for the feedback. Comments below. Updated code coming soon. https://codereview.appspot.com/8103046/diff/1/app/store/charm.js File app/store/charm.js (right): https://codereview.appspot.com/8103046/diff/1/app/store/charm.js#newcode210 ...
11 years, 1 month ago (2013-03-29 11:15:35 UTC) #3
rharding
Please take a look.
11 years, 1 month ago (2013-03-29 12:35:45 UTC) #4
j.c.sackett
Looks good, Rick; a few questions below. https://codereview.appspot.com/8103046/diff/8001/app/subapps/browser/views/charm.js File app/subapps/browser/views/charm.js (right): https://codereview.appspot.com/8103046/diff/8001/app/subapps/browser/views/charm.js#newcode46 app/subapps/browser/views/charm.js:46: }, This ...
11 years, 1 month ago (2013-03-29 13:28:47 UTC) #5
j.c.sackett
LGTM. Rick, thanks for answering my questions in our hangout.
11 years, 1 month ago (2013-03-29 13:39:49 UTC) #6
jeff.pihach
LGTM - Thanks for those fixes!
11 years, 1 month ago (2013-03-29 15:22:16 UTC) #7
rharding
11 years, 1 month ago (2013-03-29 15:41:03 UTC) #8
*** Submitted:

Create a view for the browser charm details.

- Drive by fixes for some missing deps
- Drive by for the api url in the prod config
- Refactory out the logic of the charm details from Fullscreen to it's own
view so it can be reused hopefully in the Sidebar View as well.
- Add the icon to the BrowserCharm model since it's new.
- Add the `file` Charmworld API endpoint used for loading the readme contents
if available.
- Fix broken HTML heh
- Add events with place holder functions for clicking 'add' and 'open
changelog'.
- Add basic tests for the BrowserCharmView
- If you want to QA, go to /bws/sidebar and select one of the charm links
displayed. It will load details for that charm. Note: there's an upstream
Charmworld API issue if the charm *does* have a README file. It'll throw an
error currently and a fix to Charmworld is submitted but not in staging yet.

R=jeff.pihach, j.c.sackett
CC=
https://codereview.appspot.com/8103046

https://codereview.appspot.com/8103046/diff/8001/app/subapps/browser/views/ch...
File app/subapps/browser/views/charm.js (right):

https://codereview.appspot.com/8103046/diff/8001/app/subapps/browser/views/ch...
app/subapps/browser/views/charm.js:46: },
On 2013/03/29 13:28:47, j.c.sackett wrote:
> This may be premature, but there's a CHARM_ADD_EVT in charm-small for its add
> button; perhaps this should fire that same event, and something higher up
handle
> it in either event?

Yea, it'll have to be coordinated at some point. I think when we add something
in the view to catch it we'll sync up. Maybe move the definition somewhere
shared.
Sign in to reply to this message.

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