mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-13 19:32:27 +08:00
This commit updates the email logs functionality, primarily simplifying and improving the code structure by removing redundant classes and methods. It introduces new utility functions for handling arrays uniquely and enhances the readability and maintainability of the codebase. **Main Changes:** - Refactored email-logs-list.gjs to use @trackedArray and addUniqueValuesToArray for cohesive array updates. - Removed redundant controller files (e.g., admin-email-logs, subcontrollers for specific statuses, corresponding routes) because their functionality was unified into the `EmailLogsList` component, which is in fact responsible for fetching the data. - Refactored array-tools to include: * New utility methods: addUniqueValueToArray, addUniqueValuesToArray. * Improved validation and typed errors for consistency. - Enhanced unit tests in array-tools-test.js to validate added functionality for unique array modifications. |
||
|---|---|---|
| .. | ||
| adapters | ||
| components | ||
| controllers | ||
| helpers | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| templates | ||