discourse/plugins/discourse-solved/test/javascripts
Sérgio Saquetim 4e4abca5ce
**DEV: Enhance solved plugin with improved solution handling**
Enhanced the `solved` plugin by refactoring solution acceptance and unacceptance logic for better maintainability and performance. Key improvements include:

- Added `@tracked` state for solution acceptance UI to handle saving states.
- Refactored `acceptPost` and `unacceptPost` functions to handle solution updates more efficiently.
- Updated topic models to safely update and track accepted solutions.
- Simplified template structure for displaying accepted answers.
- Improved test coverage for solution acceptance scenarios.
- Added `topic_with_op` fabricator usages across tests for consistency.
- Incorporated MessageBus to notify topics when solutions are toggled.
- Updated client API usage for compatibility with modern Discourse plugin interfaces.

This update ensures better user experience, maintains data consistency, and prepares the plugin for future integrations.
2025-07-22 16:19:24 -03:00
..
acceptance **DEV: Enhance solved plugin with improved solution handling** 2025-07-22 16:19:24 -03:00
helpers **DEV: Enhance solved plugin with improved solution handling** 2025-07-22 16:19:24 -03:00