Closed
Bug 913903
Opened 11 years ago
Closed 9 years ago
[Music] Music app should have a way to go to the first character of an album, song, or artist similar to the contacts
Categories
(Firefox OS Graveyard :: Gaia::Music, enhancement)
Tracking
(tracking-b2g:backlog)
People
(Reporter: nhirata, Assigned: hub)
References
Details
(Keywords: uiwanted, Whiteboard: fixinmusic2)
Attachments
(1 file, 1 obsolete file)
Gaia 3628d9f5829f087782c708981c4863a7d885a96a
Gecko ab5f29823236
BuildID 20130906040204
Version 26.0a1
1. load a lot of music on the sdcard
2. launch music app
3. select songs
Expected: some way of jumping via the first character
Actual: no way to jump; have to scroll through the whole thing
Comment 1•11 years ago
|
||
Thanks for catching this, Naoki, I totally forget we didn't implement this for music yet. To fix this will depend on the patch of bug 901421, which I am addressing on, so I will also take this.
Assignee: nobody → dkuo
Updated•11 years ago
|
blocking-b2g: koi? → 1.3?
Whiteboard: [MEDIA_TRIAGED]
Updated•11 years ago
|
blocking-b2g: koi? → 1.3?
Updated•11 years ago
|
blocking-b2g: --- → 1.4?
Updated•11 years ago
|
Severity: normal → enhancement
Whiteboard: fixinmusic2
Updated•11 years ago
|
blocking-b2g: 1.4? → 1.5?
Updated•11 years ago
|
blocking-b2g: 1.5? → backlog
Comment 4•11 years ago
|
||
Started working on this feature implementation. I am able to get the UI as we have in contacts.
Now working on the back end for scrolling using the navigation element. Scrolling for contact is handled in /gaia/apps/communications/contacts/js/views/list.js. Trying to implement the same in Music.
Comment 6•11 years ago
|
||
Just for the record,created a PR. This PR contains only the UI part of this feature.
Attachment #8472271 -
Flags: review?(dkuo)
Assignee | ||
Comment 8•10 years ago
|
||
Dominic, what's the status if this? (since you are r?).
It would be nice to have someone finish to implement this.
Flags: needinfo?(dkuo)
Comment 9•10 years ago
|
||
(In reply to Hubert Figuiere [:hub] from comment #8)
> Dominic, what's the status if this? (since you are r?).
>
> It would be nice to have someone finish to implement this.
amitav.anand@accenture.com has worked on this but the patch is not complete, he just attached here as a record.
Flags: needinfo?(dkuo)
Updated•10 years ago
|
Attachment #8472271 -
Flags: review?(dkuo)
Assignee | ||
Comment 10•10 years ago
|
||
So we should pick that up sooner rather than later?
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → hub
Comment 11•10 years ago
|
||
(In reply to Hubert Figuiere [:hub] from comment #10)
> So we should pick that up sooner rather than later?
The implementation of this feature will need the characters/indexes information, which the MediaDB is currently not provided, so we need to create them after the first time we enumerate all the records from the MediaDB, then save them in music app's own database, and it's the complex of this bug.
Hubert, since 2.2 music will have a redesign so probably we can use this bug to study how to get prepared for the feature on the new music ui, I guess the release management will not allow us to add this late feature in 2.1, also we can have time to test it because the performance might be an issue, the implementation should also consider how the scrolling search will be used by the user.
Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 12•10 years ago
|
||
Dominic, do you have feedback on this?
A couple of things I'd like to see is the UI part being move to the shared code so that contact can use it (lot of it is copy / paste).
Is it the right approach inside music? It works, maybe we a few glitches.
TODO: tests.
Thanks.
Attachment #8472271 -
Attachment is obsolete: true
Attachment #8510463 -
Flags: feedback?(dkuo)
Assignee | ||
Comment 13•10 years ago
|
||
Comment on attachment 8510463 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25465
Francisco, I'd like to make the alpha scroller from Contacts shared with other apps. Therefor in this PR I move it.
Do you have any feedback? Any better way to do that?
Thank you kindly.
Attachment #8510463 -
Flags: feedback?(francisco)
Assignee | ||
Comment 14•10 years ago
|
||
Note that I have issues for things not in latin script. I wonder what would be a practical solution.
Comment 15•10 years ago
|
||
Comment on attachment 8510463 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25465
Delegating this feedback to Jose, since he worked originally in the alpha scroll component.
I did a quick test and looks good to me, but will prefer if Jose takes a look.
Attachment #8510463 -
Flags: feedback?(francisco) → feedback?(jmcf)
Assignee | ||
Comment 16•10 years ago
|
||
Jacqueline,
Do we have or need a UX spec for this. Right now I'm copying the behaviour and UI from contacts.
Thanks,
Flags: needinfo?(jsavory)
Comment 17•10 years ago
|
||
Comment on attachment 8510463 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25465
Thanks Hub,
The patch looks promising. I left a couple of comments on GH. Please ask for a review once you have a final version
cheers
Attachment #8510463 -
Flags: feedback?(jmcf) → feedback+
Assignee | ||
Comment 18•10 years ago
|
||
And we should see about moving this to a web component at a later stage.
Thank you kindly.
Assignee | ||
Updated•10 years ago
|
Target Milestone: --- → 2.1 S8 (7Nov)
Comment 19•10 years ago
|
||
Hi Hubert, following the UI and behaviour from contacts should work in this context. The only difference would be to remove the star or favourite icon from the list of letters (as music doesn't have favourites).
Flags: needinfo?(jsavory)
Assignee | ||
Comment 20•10 years ago
|
||
I currently only have '#' and A to Z. Thanks.
Comment 21•10 years ago
|
||
(In reply to Hubert Figuiere [:hub] from comment #12)
> Created attachment 8510463 [details] [review]
> Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25465
>
> Dominic, do you have feedback on this?
>
> A couple of things I'd like to see is the UI part being move to the shared
> code so that contact can use it (lot of it is copy / paste).
>
> Is it the right approach inside music? It works, maybe we a few glitches.
>
> TODO: tests.
>
> Thanks.
I have just finished/landed the phase 1 refactoring of music, and I will look on this patch tomorrow, thanks for the waiting, Hub!
Assignee | ||
Comment 22•10 years ago
|
||
I have update the PR, rebased on master after the refactor landed.
Assignee | ||
Comment 23•10 years ago
|
||
Comment on attachment 8510463 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25465
Asking for review this time. We have test in marionette.
Jose I have addressed your comments. Otherwise nothing changed this time.
Dominic, I have added the navigation alpha scroller. It is like in Contacts. Let me know if you have issues.
I have a functional for music to make sure we actually scroll properly.
The widget itself is already tested by the original code that is just being moved around.
Thanks you kindly.
Attachment #8510463 -
Flags: review?(dkuo)
Attachment #8510463 -
Flags: feedback?(jmcf)
Attachment #8510463 -
Flags: feedback?(dkuo)
Comment 24•10 years ago
|
||
Comment on attachment 8510463 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25465
LGTM. Please take into account that bug 1076701 made some changes to the position and style of the scrolling bubble. If you haven't rebased your patch please do so
thanks
Attachment #8510463 -
Flags: feedback?(jmcf) → feedback+
Assignee | ||
Comment 25•10 years ago
|
||
Seems like I need to rebase again. Thanks a lot (also I meant r? not f?).
Thanks.
Assignee | ||
Updated•10 years ago
|
Target Milestone: 2.1 S8 (7Nov) → 2.1 S9 (21Nov)
Assignee | ||
Comment 26•10 years ago
|
||
(In reply to Jose Manuel Cantera from comment #24)
> LGTM. Please take into account that bug 1076701 made some changes to the
> position and style of the scrolling bubble. If you haven't rebased your
> patch please do so
There is no change on my side since we use the same CSS. I rebased anyway.
Comment 27•10 years ago
|
||
Comment on attachment 8510463 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/25465
Hubert,
Thanks for patching this, after I tested with about 500 songs to my sd card, I think I am right about the alpha scrolling does not work when we have all the items in the ListView. Because of the lazy load strategy[1], the ListView only append the first 35 items(about 5 pages) in the dom tree so that switching between artist, album and songs can be responsive, and this means the headers(section-group-x) are not appended to the dom tree yet, the alpha scrolling won't seek to the sections that are not existed, this is a major problem and we have to fix it.
This is what I am worried about in comment 11, it seems that we need at least append the headers to the dom tree first, or the alpha scrolling won't be able to work, and after the alpha scrolling sought the some section, we need to display that section, which means to append the items around that area, so that the user can see the pages around that section if they try to scroll(not using the alpha scrolling) by themselves.
I think we can probably keep the first letters for ListView to use after we know the all the records, and save them(asyncStorage or cookie?) for next time we need to re-display the ListView, or more for next time when music app re-launches. Of course, we should update the saved first letters when the MediaDB has changes, and maybe hide the indexes before we have all the first letters(or all the records) ready, because we shouldn't display indexes when the alpha scrolling is not fully functional.
I am sure there are many details to get the ListView ready for the alpha scrolling, maybe we can split the bug into pieces? so that we can make sure the back-end things for ui I mentioned above are ready, then enable the alpha scrolling later, but that depends on you for sure :) make sense?
Please let me know if you have any questions!
[1] https://github.com/mozilla-b2g/gaia/blob/master/apps/music/js/ui/views/list_view.js#L435-L471
Attachment #8510463 -
Flags: review?(dkuo)
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
Assignee | ||
Comment 30•10 years ago
|
||
stalled because it doesn't work without changing the way we do the lists and load on demand. Not an easy issue. See comment 27.
Flags: needinfo?(hub)
Assignee | ||
Comment 31•9 years ago
|
||
Bug 1209477 is about doing this for NGA.
Comment 32•9 years ago
|
||
(In reply to Hubert Figuiere [:hub] from comment #31)
> Bug 1209477 is about doing this for NGA.
Shall we close this one then?
Assignee | ||
Comment 33•9 years ago
|
||
It is covered now.
NGA = the new music app that is now in 2.5
OGA = the old one.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•