Skip to content

feat: Refactor media state management with enums and streamline UI#27

Merged
kyledoesdev merged 1 commit into
masterfrom
feature/update-media-tables
May 19, 2026
Merged

feat: Refactor media state management with enums and streamline UI#27
kyledoesdev merged 1 commit into
masterfrom
feature/update-media-tables

Conversation

@kyledoesdev
Copy link
Copy Markdown
Owner

Introduce dedicated GameState, MovieState, and TvState enums to define and manage media-specific states (e.g., favorite, active, backlog, completed, total completion).

This refactoring simplifies the media editing experience by:

  • Replacing dedicated edit modals with inline checkboxes that directly toggle media states.
  • Consolidating state handling logic within the enums (e.g., label(), getValue()).
  • Removing the MediaForm's update logic, now focusing solely on creation.

Additionally, this commit removes the spatie/laravel-health package along with its configurations, migrations, and UI elements, and adds comprehensive feature tests for the new state toggling functionality.

Introduce dedicated `GameState`, `MovieState`, and `TvState` enums to define and manage media-specific states (e.g., favorite, active, backlog, completed, total completion).

This refactoring simplifies the media editing experience by:
- Replacing dedicated edit modals with inline checkboxes that directly toggle media states.
- Consolidating state handling logic within the enums (e.g., `label()`, `getValue()`).
- Removing the `MediaForm`'s update logic, now focusing solely on creation.

Additionally, this commit removes the `spatie/laravel-health` package along with its configurations, migrations, and UI elements, and adds comprehensive feature tests for the new state toggling functionality.
@kyledoesdev kyledoesdev merged commit 35de057 into master May 19, 2026
1 check passed
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