--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/679fadd3-e480-448a-b14c-ce8e7669eb0cn%40googlegroups.com.
Thank you, Nico, for your work on improving the dashboard app. It is such a handy app. I wanted to share a few features I appreciated in the old and new versions.
Old version:
All rows had a uniform height, similar to standard database interfaces.
Reference fields were clickable, allowing users to navigate directly to the corresponding row.
New version:
The row order is now saved in the URL, which allows users to refresh the page without losing their custom ordering.
The in-dashboard editing interface looks more polished.
I hope that as many of these features as possible can be retained or expanded upon in future releases.
Thank you again!
Hadi
Reference fields were clickable, allowing users to navigate directly to the corresponding row.
To view this discussion visit https://groups.google.com/d/msgid/py4web/e513422e-a17e-4ff6-9692-7f08cc3fa45bn%40googlegroups.com.

To view this discussion visit https://groups.google.com/d/msgid/py4web/a503010e-cc85-468b-8b1b-6b753da2ddc1n%40googlegroups.com.
Thank you, Nico and Massimo. I just verified that the issue with uniform row heights has been resolved!
Nico, I think I understand where the uncertainty about row ordering comes from. Here’s a more detailed explanation.
When a user first opens a table, the rows are sorted in ascending order by the row index. If they click the index header, the string ?orderby={table_name}.id is added to the URL, but the order does not actually change. When they click the index header a second time, the string ?orderby=~{table_name}.id is added to the URL and the order is reversed. From that point on, clicking the header continues to toggle both the URL and the row order, which is the expected behavior. The problem only occurs the very first time a table is opened.
I would normally categorize this as a minor issue, but it’s worth noting that clicking the index header is a very common action, since users often open a table specifically to see the latest entries.
One possible quick and easy solution would be to update the code that handles header clicks as follows: treat a URL without any orderby parameter exactly the same way as a URL with ?orderby={table_name}.id. In practice, this could simply mean replacing a URL without an orderby parameter with the same URL with ?orderby={table_name}.id appended before any downstream analysis is performed.
By the way, here’s another enhancement suggestion regarding the table interface in the dashboard.
It’s common for users to want to scroll all the way to the right to see the columns at the end. This would be much easier if the horizontal (overflow-x) scrollbar were visible as soon as a table is opened, without requiring users to first scroll down to the bottom. Please see the two screenshots below.
It looks like this shouldn’t be too difficult to implement, since there is a good amount of unused real estate at the top of the table pages (yellow boxes in the first screenshot). For example, one could reduce some top margins and paddings, reduce the padding at the top and bottom of each row (td elements), or even reduce the number of rows per page from 15 to 10.
Current table interface:
Suggested table interface:

Suggested table interface:

[...]
It’s common for users to want to scroll all the way to the right to see the columns at the end. This would be much easier if the horizontal (overflow-x) scrollbar were visible as soon as a table is opened, without requiring users to first scroll down to the bottom.
Thank you, Dave.
I have some good news. Based on further investigation, inspired by the earlier dashboard version, it turns out there’s a much simpler solution. Right now, overflow-x is set to hidden on the body and to auto on .grid-table-wrapper. We can just remove both of these settings. That way, the horizontal scrollbar will appear at the bottom of the page whenever the content is too wide, just like in the old dashboard implementation!
Hadi
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/294f6cc2-540c-4014-8bb4-07f56fdbdd42n%40googlegroups.com.
Thank you, Nico, for helping streamline the processes—two great ideas! I’ve updated the issue regarding row ordering, and I’ve created a PR for the enhanced table interface.
Hadi