feat: create common table component (EN-292)
Summary
Created table component to be reused for all other table implementations. Refactored applications layout page as an example of how to use the component.
Changes
- fix and debug old code from previous devs to become usable
- create custom rendering for table cells depending on column
- create custom rendering for column titles
- add templated types for columns, table props, data
- implement sorting based on column, sort handling methods
- add sort toggling and sort direction logic
- connect applications table view to API
- connect applications view pagination and sorting to API
- add custom default sort index and sort direction
- add pagination configurations, display page amounts as relative to total amounts
- add custom pagination handler to pass page number to API
- allow for column sorting to be optional
- provide fallback values for sort direction and index
- design to handle sort direction logic on table side, pass direction to handlers
- fix errors relating to invalid DOM nesting from previous dev code
- remove application table component (no longer required)
- tested data display, pagination, sorting
- migrate old API methods to new formats
- pass access token down to application layout level to access API
- update snapshots