• 
      

    Rewrite the Repositories admin dashboard widget.

    Review Request #11354 — Created Dec. 29, 2020 and submitted

    Information

    Review Board
    release-4.0.x

    Reviewers

    The new widget displays 8 repositories (rather than 3) in a grid. Each
    entry contains the name of the repository, the service (SCMTool type and
    hosting service), and action links for viewing the other repositories or
    adding a new one.

    If there are no repositories configured, helpful instructions are added
    for configuring a new one, along with a link to the manual.

    This new implementation is based on top of the new BaseAdminWidget
    class, moving away from the old Widget. It also uses CSS Grid to lay
    out the repositories. While we haven't opted to use this elsewhere in
    the UI, this is safe for this limited case.

    Tested with and without repositories, and in desktop and mobile modes.

    Summary ID
    Rewrite the Repositories admin dashboard widget.
    The new widget displays 8 repositories (rather than 3) in a grid. Each entry contains the name of the repository, the service (SCMTool type and hosting service), and action links for viewing the other repositories or adding a new one. If there are no repositories configured, helpful instructions are added for configuring a new one, along with a link to the manual. This new implementation is based on top of the new `BaseAdminWidget` class, moving away from the old `Widget`. It also uses CSS Grid to lay out the repositories. While we haven't opted to use this elsewhere in the UI, this is safe for this limited case.
    d24c6f88e80ef5af5824273d9aee61abde82fe57

    Description From Last Updated

    Instead of saying 8 here, maybe just "displaying the most recent"? That way if we change the constant the docs …

    daviddavid
    david
    1. 
        
    2. reviewboard/admin/widgets.py (Diff revision 1)
       
       
      Show all issues

      Instead of saying 8 here, maybe just "displaying the most recent"? That way if we change the constant the docs won't get out of date.

    3. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-4.0.x (82f7b2d)