Extend integrations hub with more channels, caching, and refresh.

Cache per-store status for five minutes, add TikTok/Reddit/Meta cards, and let merchants refresh without reloading WordPress on every visit.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-08 07:37:41 +00:00
co-authored by Cursor
parent 5a0022af72
commit 1b0831b176
8 changed files with 162 additions and 11 deletions
+1
View File
@@ -63,6 +63,7 @@ Route::middleware(['auth', 'platform.session'])->group(function () {
Route::post('/stores/switch', StoreSwitchController::class)->name('woo.stores.switch');
Route::delete('/stores/{store}', [StoreController::class, 'destroy'])->name('woo.stores.destroy');
Route::get('/integrations', [IntegrationController::class, 'index'])->name('woo.integrations.index');
Route::post('/integrations/refresh', [IntegrationController::class, 'refresh'])->name('woo.integrations.refresh');
Route::get('/settings', [SettingsController::class, 'edit'])->name('woo.settings');
Route::post('/ai/chat', [AiController::class, 'chat'])->middleware('throttle:30,1')->name('woo.ai.chat');