Skip to content

Refactor state management of table state#2725

Closed
CollinBeczak wants to merge 8 commits into
mainfrom
Refactor-state-management-of-table-state
Closed

Refactor state management of table state#2725
CollinBeczak wants to merge 8 commits into
mainfrom
Refactor-state-management-of-table-state

Conversation

@CollinBeczak

Copy link
Copy Markdown
Collaborator

Resolves issues introduced in the react table v4 upgrade.

I simplified a lot of the styles, and the biggest thing i did was remove the filtering functionality from the frontend and put the majority of the sorting and filtering functionality in the backend.

- Simplified the default dashboard setup in ProjectDashboard.jsx by removing unnecessary constants and directly defining the filters.
- Enhanced WithFilterCriteria.jsx to ensure that filter properties are only updated if they exist in the new criteria object.
- Updated method names in WithReviewTasks and WithReviewTaskClusters to consistently use updateReviewCriteria.
- Improved PaginationControl.jsx to use pageCount instead of totalPages for better clarity.
- Introduced new columns and setupColumnTypes for TaskAnalysisTable, enhancing the table's configurability and readability.
- Refactored ViewTask component to use functional component syntax and integrated WithLoadedTask HOC for better task loading management.
- Adjusted TasksReviewTable to consistently use updateReviewCriteria for updating review criteria state.

These changes improve code clarity, maintainability, and consistency across components.
- Updated TaskAnalysisTable to include criteria for inverting fields in the dependency array.
- Refactored TaskReviewTable to utilize a new setup for configurable columns, improving clarity and maintainability.
- Introduced new column definitions for TasksReviewTable, allowing for better customization and filtering options.
- Improved table configuration to prevent column width resets and enhance user experience with sorting and filtering.

These changes enhance the overall functionality and usability of the task review components.
…ation

- Increased minimum and default widths for columns in TaskAnalysisTable and TasksReviewTable to enhance text display and prevent excessive width.
- Updated column rendering logic to improve layout and sorting functionality, ensuring a better user experience.
- Refactored button styles for clarity and consistency across components.

These changes improve the usability and visual presentation of the task analysis and review components.
- Updated WithReviewTasks to remove legacy filter fields and ensure only necessary data is sent to the backend.
- Enhanced MetricsTable with new filtering capabilities for text columns, improving user interaction and search functionality.
- Refactored Inbox and Sent components to include clear filters functionality, allowing users to reset filters easily.
- Improved overall table structure and pagination handling across various components for better performance and user experience.

These changes enhance the usability and maintainability of the table components, providing a more intuitive interface for users.
- Simplified import statements in MetricsTable and TasksReviewTable by removing unnecessary imports.
- Updated TaskAnalysisTable to enhance filter functionality by removing unused parameters in filter components.
- Improved key assignment in table rendering for better performance and consistency.

These changes enhance the maintainability and performance of the table components, providing a cleaner codebase.
- Updated import paths in TasksReviewTable.test.jsx for improved clarity and organization.
- Moved setupColumnTypes import to align with the new structure, enhancing maintainability.

These changes streamline the test file structure, contributing to better code organization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant