Merge lp:~cimi/unity8/previewSocialComment into lp:unity8
| Status: | Merged |
|---|---|
| Approved by: | Albert Astals Cid on 2015-07-06 |
| Approved revision: | 1807 |
| Merged at revision: | 1865 |
| Proposed branch: | lp:~cimi/unity8/previewSocialComment |
| Merge into: | lp:unity8 |
| Prerequisite: | lp:~unity-team/unity8/previewcommentinput |
| Diff against target: |
221 lines (+171/-1) 5 files modified
qml/Dash/Previews/PreviewComment.qml (+83/-0) qml/Dash/Previews/PreviewWidgetFactory.qml (+2/-1) tests/qmltests/CMakeLists.txt (+1/-0) tests/qmltests/Dash/Previews/tst_PreviewComment.qml (+84/-0) tests/qmltests/Dash/Previews/tst_PreviewWidgetFactory.qml (+1/-0) |
| To merge this branch: | bzr merge lp:~cimi/unity8/previewSocialComment |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-07-15 | |
| Josh Arenson | 2015-06-30 | Approve on 2015-07-07 | |
| Albert Astals Cid (community) | Approve on 2015-07-06 | ||
| Paweł Stołowski | 2015-07-01 | Pending | |
|
Review via email:
|
|||
Commit Message
Add PreviewSocialCo
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
No, but needs backend to hook in order to show up
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* Did you make sure that your branch does not contain spurious tags?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n/a
* If you changed the UI, has there been a design review?
yes, it's as in the specs
| Albert Astals Cid (aacid) wrote : | # |
spacing: units.gu(0.24)?
Seems a bit arbitrary-ish is that even an integer number of pixels?
| Albert Astals Cid (aacid) wrote : | # |
Set elide: Text.ElideRight for the date too, i don't think we'll ever need it but it doesn't hurt just in case.
| Albert Astals Cid (aacid) wrote : | # |
Why is the image anchored to the top without margins but the text actually has margins? feels a bit weird, is that what design wants?
| Albert Astals Cid (aacid) wrote : | # |
When there's no date the text from the comment doesn't go up, is that because the date is mandatory?
| Albert Astals Cid (aacid) wrote : | # |
I'm a bit concerned about
implicitHeight: column.
i know that at the moment the column is always taller than the avatar, but i can see a gu change or text font size change making this not true, should it have some Math.max also considering the avatar?
| Albert Astals Cid (aacid) wrote : | # |
visible: source.status === Image.Ready is a bit weird since for http images (that i guess it's what we will use mainly there?) it means that first the text will be full width and then will be relayouted to include the image.
That feels a bit weird, what do you think?
To test, replace
"source": "../../
with
"source": "https:/
and run
make tryPreviewSocia
| Albert Astals Cid (aacid) wrote : | # |
[11:20:18] <patriciadavila> tsdgeos: if there's not subtitle (date & time info) available, yes, we shall move it {the comment} up :)
This probably means we really need the max calculation in the height now.
- 1803. By Andrea Cimitan on 2015-07-01
-
Subtitle is optional
- 1804. By Andrea Cimitan on 2015-07-01
-
Renames
| Andrea Cimitan (cimi) wrote : | # |
> visible: source.status === Image.Ready is a bit weird since for http images
> (that i guess it's what we will use mainly there?) it means that first the
> text will be full width and then will be relayouted to include the image.
>
> That feels a bit weird, what do you think?
>
> To test, replace
> "source": "../../
> with
> "source":
> "https:/
> takeover.jpg"
> and run
> make tryPreviewSocia
I see... but that is what we do in CardCreator too... anything else?
| Andrea Cimitan (cimi) wrote : | # |
> spacing: units.gu(0.24)?
>
> Seems a bit arbitrary-ish is that even an integer number of pixels?
That's the only value that give me the text aligned like in the mockups. Might be that the ubuntu font might not be precisely 1gu
| Andrea Cimitan (cimi) wrote : | # |
> Why is the image anchored to the top without margins but the text actually has
> margins? feels a bit weird, is that what design wants?
From the mockups, yes
- 1805. By Andrea Cimitan on 2015-07-01
-
More changes for review
| Albert Astals Cid (aacid) wrote : | # |
> > visible: source.status === Image.Ready is a bit weird since for http images
> > (that i guess it's what we will use mainly there?) it means that first the
> > text will be full width and then will be relayouted to include the image.
> >
> > That feels a bit weird, what do you think?
> >
> > To test, replace
> > "source": "../../
> > with
> > "source":
> > "https:/
> > takeover.jpg"
> > and run
> > make tryPreviewSocia
>
> I see... but that is what we do in CardCreator too... anything else?
But CardCreator works and this one doesn't have you seen any card created by the cardcreator have the text jumping because the image loads async? no, this one does.
- 1806. By Andrea Cimitan on 2015-07-02
-
Use different method for checking if source is set
| Albert Astals Cid (aacid) wrote : | # |
what about adding "opacity: source.status === Image.Ready ? 1 : 0 " to the ubuntushape?
- 1807. By Andrea Cimitan on 2015-07-06
-
Merged
| Albert Astals Cid (aacid) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes
* Did CI run pass? If not, please explain why.
It's all weird :/
* Did you make sure that the branch does not contain spurious tags?
Yes
| Josh Arenson (josharenson) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes
* Did CI run pass? If not, please explain why.
I don't see a recent CI run
* Did you make sure that the branch does not contain spurious tags?
Yes
Left a comment inline, but approving since this is already top level approved and the suggestion isn't a big deal.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1807
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:1802 jenkins. qa.ubuntu. com/job/ unity8- ci/5898/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- wily-touch/ 213/console jenkins. qa.ubuntu. com/job/ unity8- wily-amd64- ci/178 jenkins. qa.ubuntu. com/job/ unity8- wily-i386- ci/179 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- wily-mako/ 141/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- wily-armhf/ 213 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- wily-armhf/ 213/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 21570
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/5898/ rebuild
http://