django-timepiece
django-timepiece copied to clipboard
Add a per row filter on the Hourly report
This would work in the following way:
- Click a user's name in the "By User" table. Use JavaScript to hide the other rows in the table. Toggle display of a button that would show everything again.
This could also work in the By Project table below. Essentially, the first column is a link that shows only that row.
Another idea WRT the general design of this, would be to have a magnifying glass or eye or something on each row, which would toggle the visibility in this way.
It should be straightforward to make this sufficiently general for tables elsewhere in the project. The payroll summary currently has a similar bit of functionality but uses a get parameter and the backend to do the filtering. The payroll summary is already wired up to support selecting a single user in this way, but the front-end based solution would be easier to implement and would apply easily to other tables as desired. This also improves user experience IMHO. I'd rather see some rows toggle visibility as opposed to loading a new page.