New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reports Feature Refactor + UI #17069
base: main
Are you sure you want to change the base?
Conversation
ea7de06
to
5c7aa92
Compare
Some help is needed regarding the graphs that are supposed to show for the two Infocom reports. |
@@ -76,9 +76,9 @@ | |||
{% set super_header_label = super_header is array ? super_header['label'] : super_header %} | |||
{% set super_header_raw = super_header is array ? super_header['is_raw'] : false %} | |||
<tr> | |||
<th colspan="{{ total_cols }}"> | |||
{% if super_header_raw != 'th_elements' %}<th colspan="{{ total_cols }}">{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sound strange to provide th elements as raw html here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alternative is changing the datatable template to allow a lot more customization for edge-cases.
I suppose it needs done eventually if we want to get rid of the HTMLTable* classes.
When trying to change report from the dropdown, it seems to rely on configured URI instead of current one (as it's done in master). |
The new format still isn't great, but better. The last line indicates that it is the count for Computers with no type (----- being the display value for an empty selection). In the old report, it is the ----- on its own under the "Computer" line which is supposed to be a section heading, but there is 0 indication of that in the old report. All the lines without a count that were in the old report are skipped in the new one to reduce noise. |
"----" is the empty default for dropdowns, I'm really not sure that make sense for anyone outside this context -but I understand it was present before. |
N/A is used in other places. Perhaps that but also in italics? |
It seems more easy to understand to me, yes |
On
|
Problem is |
Ah. The phpdoc for |
In French the label is VNC. |
Indeed, I did not pay attention lang has switched (I usually work in english :D). Another issue: I do not have the search form (Start/End date) with "Other financial and ..." (no error in logs). |
On network report: I have no location in my test DB, so no idea if anything wrong in this part, I only can use "By hardware". On main branch, I have data in the table for all equipements I can choose, but on your PR, I always have "No data". Once search has been done, on main, dropdowns are no longer displayed. They are in your PR (good point I think), but current entry is not selected (maybe it's related to previous point). |
End of my tests:
|
Old report hid criteria if there were no items. Seemed confusing and an extra check that wasn't needed, so criteria is always visible now. All reports now have a single page for the search and display, so no more of the criteria going away and making it difficult to generate new reports. Loan report is related to reservations (bad name). |
OK, I have an SQL error (empty in are not allowed) trying to add a new reservation :/ I'll try that later |
ON another DB, I do not have the problem. Loan report is OK too. |
So, remaining issues:
|
Report not implemented at all because it had no tabular data. The only thing it showed are the graphs which already seemed broken and I have no idea how they are supposed to work.
Maybe fixed.
Fixed |
Unfortunately, I cannot help :/ All other issues are fixed; LGTM. |
If the "Other financial and ..." report is broken; I propose to just drop it. ping @orthagh? |
If the thing is broken since a long time, you may remove it. |
I'll take an eye |
This wasn't meant to be a rewrite of the report feature, but the required refactoring is extensive.
GET
instead ofPOST
(both were used in different reports).