Closed Bug 1020958 Opened 10 years ago Closed 9 years ago

[Collection App] Loading more results

Categories

(Firefox OS Graveyard :: Gaia::Everything.me, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: amirn, Assigned: ranbena)

References

Details

Attachments

(2 files)

When viewing a Collection, scrolling down should trigger loading of more results.
is this a blocker for 2.0?
Flags: needinfo?(pdolanjski)
Assignee: nobody → ran
Status: NEW → ASSIGNED
(In reply to Amir Nissim (Everything.me) from comment #1)
> is this a blocker for 2.0?

As opposed to having a fix number of results?
If so, how many would be in the fixed set?

NI on Francis as he'll likely have input.
Flags: needinfo?(pdolanjski) → needinfo?(fdjabri)
I'd rather not bypass this feature. Let's discuss this if it's at risk of not making it.
Kevin, this feature requires a "reached bottom of results" event when scroll ends. In 1.x we did that with a custom script of ours "scroll.js" which implements polling and listens to scroll and touch events. Works well but not very elegant.

Any suggestion on how to implement this differently? Perhaps some actual "scrollend" event? Or maybe an "element visible in viewport" event?
Flags: needinfo?(kgrandon)
We have the next two weeks to focus on smart collections, so I'd say there should be no problem including this.

Regarding implementation, for now I do think it should live in the collection app, until we need it elsewhere in the system. I'm fine if we want to port scroll.js over, or use a new library. The only hooks it should need from the gaia grid is grid.add() and grid.render().

I'm not sure of the exact reasoning behind the touch listeners in scroll.js - if we could do it with only a scroll listener it might be better.
Flags: needinfo?(kgrandon)
(In reply to Ran Ben Aharon (Everything.me) from comment #3)
> I'd rather not bypass this feature. Let's discuss this if it's at risk of
> not making it.

I agree. This doesn't seem like a blocker but we should include it if possible.
Flags: needinfo?(fdjabri)
QA Whiteboard: [VH-FL-blocking-][VH-FC-blocking-]
Attached file WIP
Attachment #8440584 - Flags: review?(amirn)
due to time constraints, attaching another approach that gets 48 results from the API and then renders them in batches.
Attachment #8440584 - Flags: review?(amirn)
This is not a blocker, but we could consider taking it and uplifting, so moving to block vhomescreen.next.

I'm also cautious about the performance of so many results - we have a lot of work to do on the perfomance, so we should address that first. See bug 1028452.
Blocks: vertical-home-next
No longer blocks: collection-app
Mass update: Resolve/Wontfix all existing collections bugs as this feature is now removed.

Please re-open or file a new bug if you feel that this bug still exists in master.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: