Roundup Tracker - Issues

Message7655

Author rouilj
Recipients rouilj
Date 2022-11-01.01:47:09
Message-id <1667267229.36.0.775813107053.issue2551236@roundup.psfhosted.org>
In-reply-to
It is possible for the index page for issues to return no data. Causes:

  * there are no issues
  * user has no access to issues that match search params
  * search params don't match anything

Currently an empty table consisting of just a header row with no additional copy
is produced. It would be nice to have this empty state handled better.

See https://pencilandpaper.io/articles/empty-states specifically:
https://pencilandpaper.io/articles/empty-states#no-search-results-pattern

for example if there are no issues, Welcome the user to Roundup and provide a link
to create an issue (and teach them that they can use the new issue link).

If there is at least one issue and the user is not logged in, add note that
the user may need to log in to have the search work.

Alternatively tell the user that no issues (or other class) matched the search. Maybe
recap what the search terms were and provide a link to edit the search.

This probably needs a new template function "HandleEmptyState" as it would be done in
a template, but we can reuse the template function in jinja and TAL and easily plug it
into the index pages for the various tracker templates.
History
Date User Action Args
2022-11-01 01:47:09rouiljsetrecipients: + rouilj
2022-11-01 01:47:09rouiljsetmessageid: <1667267229.36.0.775813107053.issue2551236@roundup.psfhosted.org>
2022-11-01 01:47:09rouiljlinkissue2551236 messages
2022-11-01 01:47:09rouiljcreate