hc-sc / rsa-renewal

GC renewal for Recalls and Safety Alerts
http://search-recherche.gc.ca/rGsPreview/s_r?st=s&s5bm3ts21rch=x&num=10&st1rt=0&langs=eng&cdn=rasf&&
1 stars 0 forks source link

Create prototypes for Load more button layouts. #18

Open lbelmore opened 5 years ago

lbelmore commented 5 years ago

rsa-loadmore-desktop rsa-loadmore-phone

Conduct user testing to determine: • Does a load more button make it more likely for a user to abandon the table before seeing all results or identifying their product? • Does the load more button cause users to be less likely to use the filter options? • Does the load more work for the image+affected product table only or all responsive tables (if it works).

lbelmore commented 5 years ago

3 prototypes to be created using the image table layout: o Load 5 more o Regular pagination o Show all

assigning to @Tom-Preston

lbelmore commented 5 years ago

Hey @Tom-Preston - just checking in since our last chat. Can you post an update? Do you need anything from my end?

Tom-Preston commented 5 years ago

Hi @lbelmore Using the Filtering without a table does not provide pagination. Unless there is a solution someone has I will use table formatting and filtering, then work on adding the More and All buttons.

lbelmore commented 5 years ago

Thanks @Tom-Preston!

Add the links to what you have here when you're ready, and maybe @Borges-Porteous can share some insights :)

Tom-Preston commented 5 years ago

Hi @lbelmore / @Borges-Porteous

Files so far Main Content template for consistancy https://hc-sc.github.io/rsa-renewal/examples/content-template-en.html

File used to isolate Gallery item in progress by Natalia https://hc-sc.github.io/rsa-renewal/examples/Carousel_Natalia_edit.html

File used to isolate filtered tables requirments https://hc-sc.github.io/rsa-renewal/examples/Table.html

Template being used to adapt the table filter modified on git hub to allow for a More and All buttons, Any insite would be appreciated https://hc-sc.github.io/rsa-renewal/examples/recal-table-en.html

Borges-Porteous commented 5 years ago

Sorry... I had been drafting a reply and then completely forgot about this because of other things.

The main comment I had was around the images in the modified template (4th link): I'd suggest:

For the image slider (2nd link), great work on updating it, but it still needs work to be mobile friendly:

For the main template (1st link), it looks good. I noticed a couple small details, not sure if unintentional:

Hope that helps! Glad to see all the templates and progress!

lbelmore commented 5 years ago

Thanks @Borges-Porteous !

Tom will be making some updates today and will share the once these have been updated.

Tom-Preston commented 5 years ago

@lbelmore @Borges-Porteous I have been viewing documentation on the Table filtering and so far I can manipulate the position or inclusion of the different element of the filter. We can add a view all to the drop down list (value is -1)

I am so far unable to figure out how to add the buttons for more and to inject the functionality for these buttons.

Any new Ideas would be greatly appreciated.

Thanks

Tom Preston

Borges-Porteous commented 5 years ago

Hi @Tom-Preston @lbelmore

I've also been looking through some of the code and documentation.

Was able to find paramaters that can be passed in the table initialising code that can change column widths, disable sorting and other such things.

Here is a list of options: https://datatables.net/reference/option/

They just get added to this bit of script, in a json syntax (for example, for ordering and column sizes):

There seem to be options directly relating to the pagination https://datatables.net/reference/option/paging

Although I can't seem to find an option specific for changing pagination into load more in the jquery datatables documentation, I have found a 3rd party plugin that does exactly this. You can read about it here: https://www.gyrocode.com/articles/jquery-datatables-load-more-button/

I don't know how that works in terms of us using it... or the whole responsive table for that matter. I was intending to raise this further with PP in terms of getting it into WET, so perhaps we can go as a group to talk with Pierre, maybe next Tuesday?

I hope that helps to get started with the updated show more prototype though!

Tom-Preston commented 5 years ago

Hi @Borges-Porteous

Thank you, I am going to try and replicate the examples locally before trying in the templates. I will let you know how it works out.

Tom Preston

lbelmore commented 5 years ago

Adding the updates on the load more prototype to keep progress in github:

Miguel created an initial version https://hc-sc.github.io/rsa-renewal/examples/chargers-various.html

Tom is working on the additional adjustments:

@Tom-Preston – as discussed let’s keep all updates and issues within this github ticket.