Version 2

    Rationale

    Since JCR 1.15 the proprietary API on QueryResult object QueryResultImpl#getTotalSize() has been changed.

     

    It has some impacts on the UI, mainly with pagination pattern used previsouly in GateIn. In fact, it's not possible to retrieve the total number of results from a query, so it's impossible to determine the total number of pages need in the previous pattern.

     

    We decide to change this pagination pattern.

     

     

    UI Specification

     

    We change the position of the "Add New Page" button. It moves from the bottom of the table to its header.

     

    PaginationPattern-Step0.png

     

    RULEDescription
    IR_PAGINATION_01When the screen is displayed it displays first 15 item of the table
    IR_PAGINATION_02When there is more than 15 items to display in the table, we display a "More" button

     

    PaginationPattern-Step1.png

     

     

    RULEDescription
    IR_PAGINATION_03When the user is clicking on the "More" button, it displays a small activity indicator and change the label to "loading..."

     

    PaginationPattern-Step2.png

     

     

    RULEDescription
    IR_PAGINATION_04

    The screen will display 15 more items from the table.

     

    If there are more items, the "More" button will be added again.

     

     

    PaginationPattern-Step3.png