Closed Bug 883883 Opened 13 years ago Closed 13 years ago

Fix load more functionality and UX

Categories

(Webmaker Graveyard :: webmaker.org, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cassie, Unassigned)

Details

(Whiteboard: designQA, uxdesign)

Attachments

(1 external file)

"Load more" should disappear if there is no more content on the page to load. It should only appear in the first place if there is actually more content to load.
We need to re-implement total results in makeAPI to do this, which will unfortunately change the structure of the response a bit -- what do you think cade? I agree having load more when there aren't actually results is suboptimal UX.
Flags: needinfo?(chris)
I also think we should defer this until makeAPI has stabilized
This is an easy makeapi patch. basically, callbacks to .then can look like this: function( err, makes, hits ){} Where hits is the total hits on the search, and makes is actually what was returned.
Flags: needinfo?(chris)
This patch enables a third parameter to makeAPI .then callbacks. It is a number representing the total number of hits matched, which may or may not be equal to the length of the results array, depending on the limit you set for your search.
Attachment #763910 - Flags: review?(kate)
Comment on attachment 763910 [details] [review] https://github.com/mozilla/MakeAPI/pull/89 One fix to make in the PR. I like how this is backwards compatible.
Attachment #763910 - Flags: review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Attachment #763910 - Flags: review?(kate)
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: