Skip to content

Conversation

@luizhf42
Copy link
Member

@luizhf42 luizhf42 commented Jun 18, 2025

This pull request replaces the old admin's DataTable component, now using the recently refactored component. Other improvements and fixes were also made in the affected components, and snapshots have been updated accordingly.

  • Removed the old DataTable code and tests
  • Replaced the usage with the refactored component located in src
  • Improved error handling in the affected components
  • Made general fixes and code improvements in those components
  • Updated tests and snapshots

@luizhf42 luizhf42 added this to the v0.19.x milestone Jun 18, 2025
@luizhf42 luizhf42 self-assigned this Jun 18, 2025
@luizhf42 luizhf42 requested a review from a team as a code owner June 18, 2025 20:44
@luizhf42 luizhf42 force-pushed the refactor/admin-data-table branch from 58b6c9e to 11610b7 Compare June 18, 2025 20:56
@luizhf42 luizhf42 marked this pull request as draft June 18, 2025 21:00
@luizhf42 luizhf42 force-pushed the refactor/admin-data-table branch 5 times, most recently from ec9d09d to e867c72 Compare June 20, 2025 14:36
@luizhf42 luizhf42 marked this pull request as ready for review June 20, 2025 14:44
@luizhf42 luizhf42 force-pushed the refactor/admin-data-table branch from e867c72 to cc6d774 Compare June 20, 2025 17:30
@luizhf42 luizhf42 force-pushed the refactor/admin-data-table branch from cc6d774 to 64fe96f Compare June 20, 2025 17:37
@luizhf42 luizhf42 force-pushed the refactor/admin-data-table branch from ed0b78b to bfe1904 Compare June 20, 2025 18:51
luizhf42 added 9 commits June 20, 2025 15:51
* refactor admin table-based components to use `src`'s data table
* adjust `DataTable.vue` to match with admin's UI
* update tests' snapshots
* remove old code that caused an infinite loop when the fetch return was empty
* removed duplicated try/catch blocks in the table-based components
* reduced code duplication
* removed redundant `loading` value changes
* rename the methods to `fetchX`
* remove unnecessary params
* add async/await keywords in some missing places
* call the `handleError` util in catch blocks that missed it
@luizhf42 luizhf42 force-pushed the refactor/admin-data-table branch from bfe1904 to ad58e47 Compare June 20, 2025 18:52
@gustavosbarreto gustavosbarreto merged commit 4f0d452 into master Jun 20, 2025
8 checks passed
@gustavosbarreto gustavosbarreto deleted the refactor/admin-data-table branch June 20, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants