Added Phase‑1 continuation work across deep links, offline moderation queue, and admin push.
resources/js/admin/mobile/lib.
- Admin push is end‑to‑end: new backend model/migration/service/job + API endpoints, admin runtime config, push‑aware
service worker, and a settings toggle via useAdminPushSubscription. Notifications now auto‑refresh on push.
- New PHP/JS tests: admin push API feature test and queue/haptics unit tests
Added admin-specific PWA icon assets and wired them into the admin manifest, service worker, and admin shell, plus a
new “Device & permissions” card in mobile Settings with a persistent storage action and translations.
Details: public/manifest.json, public/admin-sw.js, resources/views/admin.blade.php, new icons in public/; new hook
resources/js/admin/mobile/hooks/useDevicePermissions.ts, helpers/tests in resources/js/admin/mobile/lib/
devicePermissions.ts + resources/js/admin/mobile/lib/devicePermissions.test.ts, and Settings UI updates in resources/
js/admin/mobile/SettingsPage.tsx with copy in resources/js/admin/i18n/locales/en/management.json and resources/js/
admin/i18n/locales/de/management.json.
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Http\Controllers\Api\LegalController;
|
||||
use App\Http\Controllers\Api\Marketing\CouponPreviewController;
|
||||
use App\Http\Controllers\Api\PackageController;
|
||||
use App\Http\Controllers\Api\SparkboothUploadController;
|
||||
use App\Http\Controllers\Api\Tenant\AdminPushSubscriptionController;
|
||||
use App\Http\Controllers\Api\Tenant\DashboardController;
|
||||
use App\Http\Controllers\Api\Tenant\EmotionController;
|
||||
use App\Http\Controllers\Api\Tenant\EventAddonCatalogController;
|
||||
@@ -294,6 +295,12 @@ Route::prefix('v1')->name('api.v1.')->group(function () {
|
||||
Route::post('notifications/logs/mark', [NotificationLogController::class, 'mark'])
|
||||
->middleware('tenant.admin')
|
||||
->name('tenant.notifications.logs.mark');
|
||||
Route::post('notifications/push-subscriptions', [AdminPushSubscriptionController::class, 'store'])
|
||||
->middleware('tenant.admin')
|
||||
->name('tenant.notifications.push-subscriptions.store');
|
||||
Route::delete('notifications/push-subscriptions', [AdminPushSubscriptionController::class, 'destroy'])
|
||||
->middleware('tenant.admin')
|
||||
->name('tenant.notifications.push-subscriptions.destroy');
|
||||
|
||||
Route::prefix('packages')->middleware('tenant.admin')->group(function () {
|
||||
Route::get('/', [PackageController::class, 'index'])->name('packages.index');
|
||||
|
||||
Reference in New Issue
Block a user