Merge lp:~verzegnassi-stefano/ubuntu-docviewer-app/add-empty-state into lp:ubuntu-docviewer-app/trunk
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Stefano Verzegnassi on 2015-01-21 | ||||
| Approved revision: | 49 | ||||
| Merged at revision: | 51 | ||||
| Proposed branch: | lp:~verzegnassi-stefano/ubuntu-docviewer-app/add-empty-state | ||||
| Merge into: | lp:ubuntu-docviewer-app/trunk | ||||
| Diff against target: |
319 lines (+154/-87) 5 files modified
src/app/main.cpp (+10/-26) src/app/qml/ContentHubPicker.qml (+55/-0) src/app/qml/EmptyState.qml (+59/-0) src/app/qml/WelcomePage.qml (+20/-45) src/app/qml/ubuntu-docviewer-app.qml (+10/-16) |
||||
| To merge this branch: | bzr merge lp:~verzegnassi-stefano/ubuntu-docviewer-app/add-empty-state | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Andrew Hayzen (community) | argument code | 2015-01-16 | Approve on 2015-01-21 |
| Nekhelesh Ramananthan (community) | empty state code | Approve on 2015-01-21 | |
| Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve on 2015-01-16 | |
|
Review via email:
|
|||
Commit Message
Added Empty State in Welcome screen
Description of the Change
- An Empty State item is shown when DocViewer is loaded with no specified document.
ContentHub source picker has been moved in a different page.
- Removed Ubuntu.Components Arguments[1] from ubuntu-
- In the current release, when an user runs ubuntu-
For some reason, the application works anyway, but it looks more a workaround based on an issue in UITK (music-app has a similar issue[2]).
- Removed "tablet" and "phone" arguments from main.cpp.
They came from reminders-app, but we don't use it.
- Removed "QML import directory" argument.
NOTES:
- EmptyState.qml comes from ubuntu-clock-app
- The code included in ContentHubPicke
[1]: http://
[2] line 125-126: http://
| Nekhelesh Ramananthan (nik90) wrote : | # |
Thanks for the MP. IMHO, I would recommend that a MP fixes/adds only one thing to make it easier to spot regressions if any. In this MP I notice the arguments being changed and empty state. I have reviewed the empty state code and it looks and works as expected.
I haven't reviewed the arguments code since I am not too familiar with it and am actually looking for a implementation that I can copy to the clock app as well. So I would recommend you find another person to review that part of this MP or move that to a separate MP in itself.
Ok, thank you again!
The issue was that I wasn't able to add the Empty State code if I hadn't changed the arguments code. For some strange reason, adding an image on the Page used to make the application instable...
| Andrew Hayzen (ahayzen) wrote : | # |
The args code looks OK and I've tested it locally on my machine to ensure that passing an arg loads that document.


PASSED: Continuous integration, rev:49 91.189. 93.70:8080/ job/ubuntu- docviewer- app-ci/ 112/ 91.189. 93.70:8080/ job/generic- mediumtests- vivid/704 91.189. 93.70:8080/ job/generic- mediumtests- vivid/704/ artifact/ work/output/ *zip*/output. zip 91.189. 93.70:8080/ job/ubuntu- docviewer- app-vivid- amd64-ci/ 15
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/ubuntu- docviewer- app-ci/ 112/rebuild
http://