Created on 2022-11-01 01:47 by rouilj, last changed 2022-11-01 01:47 by rouilj.
||Author: [hidden] (rouilj)
||Date: 2022-11-01 01:47
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:
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.