Ticket #64 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Grid Empty Dataset Handling

Reported by: duffy Owned by: johnp
Priority: blocker Milestone: v1.0
Component: Widgets Version:
Keywords: Cc:
Blocked By: Blocking:

Description

Look at Overview / front page in “My Packages” widget in the right sidebar (if you don't own any packages. I don't :) ) Another example, on the My Profile > Info page, the “Packages I Own”, “Packages I Maintain” list grids in the main content area also display pagination for empty lists.

We shouldn't display pagination for empty lists. It would be best I think to have a special empty list message, "You don't own any packages. If you become a package owner, then the packages that you own will be displayed in this list." (Format for these type of messages should explain (1) that there's nothing to display, (2) what would be displayed if something were displayed, (3) steps to take to get those items to display there.)

Attachments

Screenshot.png (8.3 KB) - added by duffy 5 years ago.

Change History

Changed 5 years ago by duffy

comment:1 Changed 5 years ago by lmacken

  • Milestone changed from __unclassified__ to v1.0

comment:2 Changed 5 years ago by duffy

this effects My Profile > Memberships

comment:3 Changed 5 years ago by duffy

  • Owner set to lmacken
  • Summary changed from Don't display pagination controls for empty widgets. Ideally display an empty widget message. to Grid Empty Dataset Handling

changing bug title from "Don't display pagination controls for empty widgets. Ideally display an empty widget message." to "Empty grid handling"

comment:4 Changed 5 years ago by lmacken

  • Owner changed from lmacken to johnp

comment:5 Changed 5 years ago by spot

  • Priority changed from major to blocker

comment:6 Changed 5 years ago by johnp

We now have conditional arguments for grid-controls. To show a message if there is no data we do this in the template for the grid:

<div id="grid-control" if="options.visible_rows==0">

<div id="info_display" class"message template">

No data is found.

</div>

</div>

The message can be more specific for each template.

Builds is done. Others need to be fixed.

comment:7 Changed 5 years ago by johnp

  • Status changed from new to assigned

changelog and bugs grids done. Please list more as you see them.

comment:8 Changed 5 years ago by johnp

  • Status changed from assigned to closed
  • Resolution set to fixed

Closing since I have not seen any more grids that need to be fixed

Note: See TracTickets for help on using tickets.