Skip to content

Conversation

luizhf42
Copy link
Member

@luizhf42 luizhf42 commented Jun 11, 2025

This pull request replaces the BoxMessage component with a new, reusable NoItemsMessage component. The changes streamline the code by removing redundant logic and improving maintainability. Additionally, the box Vuex store module and its related functionality have been removed as part of the cleanup.

  • Removed the BoxMessage component and its associated logic, and added a new reusable NoItemsMessage component to display messages when no items are available. It uses slots for dynamic content and actions;
  • Removed the box Vuex module, along with its references, since it was no longer in use;
  • Updated the logic and content to use the new component in all related views;
  • Tests for the component's behavior in the views were added.

luizhf42 added 4 commits June 11, 2025 17:33
- this commit transforms `BoxMessage` into a dumb component.
- now, instead of having logic, it's just used as a wrapper for the template
- now the item, icon, content, and action button are passed by the parents
- removes the box.ts store since it became unnecessary
- now it truly reflects its purpose: be a message in a list that has no items
@luizhf42 luizhf42 added this to the v0.19.x milestone Jun 11, 2025
@luizhf42 luizhf42 self-assigned this Jun 11, 2025
@luizhf42 luizhf42 requested a review from a team as a code owner June 11, 2025 21:09
@luizhf42 luizhf42 force-pushed the refactor/box-message branch from 01c8606 to c266714 Compare June 12, 2025 12:01
@gustavosbarreto gustavosbarreto merged commit 5dccdf0 into master Jun 16, 2025
16 checks passed
@gustavosbarreto gustavosbarreto deleted the refactor/box-message branch June 16, 2025 14:09
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.

2 participants