Closed
Bug 883883
Opened 13 years ago
Closed 13 years ago
Fix load more functionality and UX
Categories
(Webmaker Graveyard :: webmaker.org, defect)
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.
Comment 1•13 years ago
|
||
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)
Comment 2•13 years ago
|
||
I also think we should defer this until makeAPI has stabilized
Comment 3•13 years ago
|
||
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)
Comment 4•13 years ago
|
||
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 5•13 years ago
|
||
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+
Comment 6•13 years ago
|
||
Commit pushed to master at https://github.com/mozilla/MakeAPI
https://github.com/mozilla/MakeAPI/commit/610e09fc0219a97a0a9007c798a7e6a4fe926763
Fix Bug 883883 - Return total matched hits to makeapi callbacks
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Attachment #763910 -
Flags: review?(kate)
| Assignee | ||
Updated•13 years ago
|
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.
Description
•