From 2b769cba822506c1572793385993737d4ffff478 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 26 Oct 2025 11:03:44 +0000
Subject: feat: Add admin maintenance job to migrate large inline HTML (#2071)

* Add admin maintenance job to migrate large inline HTML

* add cursor

* more fixes
---
 apps/web/components/admin/BackgroundJobs.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'apps/web/components/admin/BackgroundJobs.tsx')

diff --git a/apps/web/components/admin/BackgroundJobs.tsx b/apps/web/components/admin/BackgroundJobs.tsx
index 5920b1ab..ba73db2e 100644
--- a/apps/web/components/admin/BackgroundJobs.tsx
+++ b/apps/web/components/admin/BackgroundJobs.tsx
@@ -424,6 +424,15 @@ function useJobActions() {
           }),
         loading: isAdminMaintenancePending,
       },
+      {
+        label: t(
+          "admin.background_jobs.actions.migrate_large_link_html_content",
+        ),
+        onClick: () =>
+          runAdminMaintenanceTask({ type: "migrate_large_link_html" }),
+        loading: isAdminMaintenancePending,
+        variant: "secondary" as const,
+      },
     ],
   };
 }
-- 
cgit v1.2.3-70-g09d2

