-
Notifications
You must be signed in to change notification settings - Fork 77
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
Replace raw files popup with a table #277 #487
Conversation
* Added material-ui x DataGrid and styling dependencies to package.json * New Menu item in 'Files' popup to view 'Route Files' * New FilesTable modal that utilizes mui DataGrid component to display a table with links for all segment(s) uploaded files.
Looks like this isn't exposed in the UI yet? |
Sorry about that. It looks like those changes got wiped when I did a rebase. I re-committed the missing changes to add the menu item. |
Looks pretty good, but didn't work for me. Here's the console log. |
Try rebuilding your node_modules repository with a fresh pnpm install. I had to add the dependencies for x-data-grid to package.json and that extra step was necessary for me to get it to load. If that's not it, were you trying it with the demo data? I don't have any comma hardware, so perhaps there a case that needs to be handled with the live data... |
@RossGGG I don't have permission to push to this PR. Regarding the data, if you want to populate the table, you can use the app in demo mode. |
@macdoos Yeah I did that, and it works fine with the demo data. Not sure why the test suite is showing failed now. It works locally. |
@RossGGG Have you tried running the tests locally? Also, could you please give me write access to this PR so I can try? |
I ran the tests locally on the live repo and they went fine every time. When I do a build and run the tests, it gets more inconsistent but usually works. When I serve the build and go through the steps manually they always produce the expected results, and the error messages the automated tests give when they have failed have been too generic to point to any underlying issue. I think you'll need access to my fork to update the PR. I just sent you a collaboration invite. |
@macdoos Seems to work for me. It was working before your latest commit too, but good to know it works for multiple people now. |
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.
There's a bug where the second click on the "Files" button opens the new table instead of the intermediate popup.
"@mui/x-data-grid": "^7.6.1", | ||
"@emotion/styled": "^11.11.5", | ||
"@emotion/react": "^11.4.0", |
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.
what are these for? a table shouldn't really require any new dependencies
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.
I used the x-data-grid react component because the Table react component in the legacy version of material-ui being used for this project does not support virtualized paging and I assumed live datasets could contain a larger number of segments and files than the demo dataset provided. If this assumption was incorrect, I can update it to use the Table react component instead.
|
Can you rebase to get the new preview deployment? Then you can share the link on our Discord and have some people stress test it. |
Yeah that sounds good. I will go do that now. |
* Added material-ui x DataGrid and styling dependencies to package.json * New Menu item in 'Files' popup to view 'Route Files' * New FilesTable modal that utilizes mui DataGrid component to display a table with links for all segment(s) uploaded files.
* Fix table for segments that do not have available uploads for certain file types. * Fix style for header filler cells if columns do not span the full width of the table.
…table # Conflicts: # src/components/Files/FileTable.jsx
The preview deployment is failing due to a missing secret (apiKey) for CloudFlare. |
Should be fixed now if you rebase. |
Welcome to connect! Make sure to:
deployed preview: https://487.connect-d5y.pages.dev |
It seems to be building now, but the built preview does not reflect/include the changes from the PR. |
Should be fixed now if you rebase. |
@adeebshihadeh It looks like the test is failing now, I think because there is no demo data in the default date range when the UI loads now. The preview deployment does seem to have updated with the PR changes, so I will post it on the Discord. |
* Disabled the column header menus on the fild download columns since they caused formatting issues when they appear, and they don't have much practical use on those columns * Disabled cell focus box appearing on headers.
I'm closing out this bounty, since we're shifting our focus over to new-connect. The work is done though, so you're good to collect the bounty. Instructions here: https://github.com/commaai/openpilot/blob/master/docs/BOUNTIES.md |
This pull request fixes #277 .