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

Issue 22200045: Improve browser description formatting

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by gary.poster
Modified:
10 years, 6 months ago
Reviewers:
rharding, mp+194048
Visibility:
Public.

Description

Improve browser description formatting I saw antdillon's branch to improve the formatting and really liked the idea (https://code.launchpad.net/~ya-bo-ng/juju-gui/linkify-charm-descriptions/+merge/192852). However, I wanted to improve the testing and the XSS behavior. Trying to accomplish the second of those involved quite a bit of changes from his original design, but there's still a regex in there or two. To QA, look at the mediawiki summary tab. Note that the change log and description now are better formmatted, and have links, and break only for long stuff. mongodb's description shows the pre-line formatting off, and liferay's description shows why truncating at 300 characters was problematic--a url might be cut in half. I thought of some approaches to try and make that work, but I thought that removing the 300 character limit looked better anyway. cassandra's change log is another one to look at: the pre-line works well, I think, and there are a few links to look at in the "earlier changes" section when you expand the change log. https://code.launchpad.net/~gary/juju-gui/linkify-charm-descriptions/+merge/194048 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Improve browser description formatting #

Total comments: 2

Patch Set 3 : Improve browser description formatting #

Patch Set 4 : Improve browser description formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -20 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M app/config-debug.js View 1 chunk +1 line, -1 line 0 comments Download
M app/subapps/browser/templates/browser_charm.handlebars View 3 chunks +9 lines, -9 lines 0 comments Download
M app/templates/bundle.handlebars View 3 chunks +9 lines, -9 lines 0 comments Download
M app/views/utils.js View 1 2 3 2 chunks +106 lines, -0 lines 0 comments Download
M lib/views/browser/charm-full.less View 1 chunk +1 line, -0 lines 0 comments Download
M lib/views/browser/main.less View 1 chunk +4 lines, -1 line 0 comments Download
M test/test_utils.js View 1 2 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 9
gary.poster
Please take a look.
10 years, 6 months ago (2013-11-06 02:20:23 UTC) #1
huwshimi
This looks like a really nice change, thanks Gary! A minor issue is that occasionally ...
10 years, 6 months ago (2013-11-06 05:26:30 UTC) #2
gary.poster
Please take a look.
10 years, 6 months ago (2013-11-06 13:36:09 UTC) #3
gary.poster
On 2013/11/06 05:26:30, huwshimi wrote: > This looks like a really nice change, thanks Gary! ...
10 years, 6 months ago (2013-11-06 13:38:18 UTC) #4
gary.poster
https://codereview.appspot.com/22200045/diff/20001/app/config-debug.js File app/config-debug.js (right): https://codereview.appspot.com/22200045/diff/20001/app/config-debug.js#newcode32 app/config-debug.js:32: charmworldURL: 'https://manage.jujucharms.com/', We can switch this now, so I'm ...
10 years, 6 months ago (2013-11-06 13:40:00 UTC) #5
rharding
code looks good if a bit dense to weed through. Will QA. https://codereview.appspot.com/22200045/diff/20001/app/config-debug.js File app/config-debug.js ...
10 years, 6 months ago (2013-11-06 13:49:22 UTC) #6
rharding
LGTM, thanks for helping to get Ant's work from the sprint through!
10 years, 6 months ago (2013-11-06 13:53:39 UTC) #7
gary.poster
*** Submitted: Improve browser description formatting I saw antdillon's branch to improve the formatting and ...
10 years, 6 months ago (2013-11-06 14:49:57 UTC) #8
gary.poster
10 years, 6 months ago (2013-11-06 17:43:58 UTC) #9
I responded to Rick's comment about density with a small refactoring and a lot
of comments.  Hopefully that helps our future selves.

Thank you both!
Sign in to reply to this message.

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