Extract common pattern from perform_site_reorder/4 and perform_device_reorder/4 into a single perform_reorder/4 helper function. Both reorder handlers now delegate to the shared helper, reducing duplication and making the reload/regroup/flash pattern consistent. - Reduces code from 40 lines to 28 lines - Maintains identical behavior (all tests pass) - Uses static gettext strings to satisfy compile-time requirements |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| helpers | ||
| live | ||
| plugs | ||
| endpoint.ex | ||
| gettext.ex | ||
| gettext_helpers.ex | ||
| permissions.ex | ||
| plug_exceptions.ex | ||
| router.ex | ||
| telemetry.ex | ||
| user_auth.ex | ||