-
Notifications
You must be signed in to change notification settings - Fork 6
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
343 UI Update Admin Tools Scan History table #364
343 UI Update Admin Tools Scan History table #364
Conversation
- Code belongs on a separate branch.
- Added MUI Data Grid to ScanTasksView. - Added MUI modal to ScanTasksView. - Scan Task details are now displayed in the modal. - Removed erroneous table from ScansView. - Deleted the new table from ScansView. - That table is on a separate branch - Server-side pagination is implemented. - Server-side filtering is not yet implemented. - Changed page size to match other tables in app.
- Changed page size to 15. - Removed unused code for page size in .env. - Edited api call to accept page size variable. - Added page size to the query string in the frontend. - Built filter by name drop down component in DataGrid toolbar. - Built filter by status drop down component in DataGrid toolbar.
…n-tools-scan-history-table
- Refined Scan Name dropdown menu. - Refined Scan Status dropdown menu. - Added return to fetchScans function to prevent an empty table from rendering. - Formatted Created At and Updated At columns to display in a more readable format. - Added Logs and killScan to Details modal.
- Reverted killScan function. - Reenabled old table, expanded view, pagination, sorting, and filtering.
- added keys to list items in Scan Name dropdown. - added keys to list items in Scan Status dropdown. - added keys to children in Data Grid toolbar.
- Removed json parsing of output. Scan output does not require parsing. - Made modal large to showcase scan logs better. - Scan logs now display properly. - Added close button to modal. - Added aria-labels to buttons.
- New Data Grid allows for the passing in of Scan Task id versus row index. - Built modified killScan function to accept Scan Task id. - Both are enabled for testing.
- Removed old table, old pagination, and old expanded row. - Removed old imports. - Removed old helper functions.
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.
- Filtering of Name and Status only works if the value exists. Say, dnstwist hasn't been run ever and you filter the Name by dnstwist; the table doesn't change at all. Instead should say No results or something
- The table needs to be sorted by the Created At column where the first entry is the most recent. I believe right now it is doing the opposite
Otherwise looks good!
…n-tools-scan-history-table
…//github.com/cisagov/XFD into 343-ui-update-admin-tools-scan-history-table
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.
Looks good!
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.
Looks good...
filters: tableFilters | ||
} | ||
} | ||
); | ||
// if (result.length === 0) return; |
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.
Is this commented code needed?
🗣 Description
💭 Motivation and context
🧪 Testing
📷 Screenshots (if appropriate)
✅ Pre-approval checklist
in code comments.
✅ Pre-merge checklist
✅ Post-merge checklist