Merge lp://staging/~vthompson/music-app/recent-items into lp://staging/music-app/trusty

Proposed by Victor Thompson
Status: Merged
Approved by: Victor Thompson
Approved revision: 226
Merged at revision: 229
Proposed branch: lp://staging/~vthompson/music-app/recent-items
Merge into: lp://staging/music-app/trusty
Diff against target: 350 lines (+176/-23)
6 files modified
LibraryListModel.qml (+19/-0)
MusicAlbums.qml (+4/-0)
MusicPlaylists.qml (+5/-2)
MusicStart.qml (+65/-20)
meta-database.js (+75/-1)
music-app.qml (+8/-0)
To merge this branch: bzr merge lp://staging/~vthompson/music-app/recent-items
Reviewer Review Type Date Requested Status
Andrew Hayzen Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+191738@code.staging.launchpad.net

Commit message

* Add database schema to track recent items
* Change models to query selected playlist or album
* Update recent list when an album or playlist is selected from either its tab or the recent list

Description of the change

* Add database schema to track recent items
* Change models to query selected playlist or album
* Update recent list when an album or playlist is selected from either its tab or the recent list

Note, that this change does not implement the sheet pattern for the items in the Recent list. That will need to be implemented at a later time.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
223. By Victor Thompson

Show recent list as empty instead of hiding it when it is empty

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

Could I get someone to review this? If you want to toggle back to the empty state with no recent items do the following:
1) uncomment L222 of meta-database.js in the reset function.
2) start the app and then kill it
3) re-comment L222

224. By Victor Thompson

Add a button to clear history.

225. By Victor Thompson

Fix button visibility

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

I implemented a clear button (not in the design spec) that I found useful.

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Looks good, I think we need to talk to design regarding the clear button (I guess if we had the setting page it could go in there? but we don't at the moment).

Also on the first run I noticed I got this error.
meta-database.js:329: Error: no such table: recent Unable to execute statement

226. By Victor Thompson

Resolve warning upon initialization.

Revision history for this message
Victor Thompson (vthompson) wrote :

I see that error as well, but when the app starts to load content and isRecentEmpty() is called before the table exists it was designed to return true in all cases but when entries were found. I've fixed the issue, however.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Awesome! I approve assuming design agree on the clear button.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: