From ea41328626426ee0007344574603c2b4698151cc Mon Sep 17 00:00:00 2001 From: riyadhafraa <49757212-riyadhafraa@users.noreply.replit.com> Date: Wed, 22 Apr 2026 10:55:46 +0000 Subject: [PATCH] Remove service descriptions from display and administration Removes Arabic and English description fields from the admin form, the services display component, and the seed data in `scripts/src/seed.ts`, and removes the corresponding columns from the database. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 5f1c43b0-7465-4e56-bb0e-896a4df38886 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/dnVFHsG Replit-Helium-Checkpoint-Created: true --- artifacts/tx-os/src/pages/admin.tsx | 2 -- artifacts/tx-os/src/pages/services.tsx | 4 ---- scripts/src/seed.ts | 12 ------------ 3 files changed, 18 deletions(-) diff --git a/artifacts/tx-os/src/pages/admin.tsx b/artifacts/tx-os/src/pages/admin.tsx index a6a73dc9..cbec2cc0 100644 --- a/artifacts/tx-os/src/pages/admin.tsx +++ b/artifacts/tx-os/src/pages/admin.tsx @@ -509,8 +509,6 @@ export default function AdminPage() { [ { field: "nameAr", label: t("admin.serviceNameAr") }, { field: "nameEn", label: t("admin.serviceNameEn") }, - { field: "descriptionAr", label: t("admin.serviceDescriptionAr") }, - { field: "descriptionEn", label: t("admin.serviceDescriptionEn") }, { field: "price", label: t("admin.servicePrice") }, ] as { field: keyof ServiceForm; label: string }[] ).map(({ field, label }) => ( diff --git a/artifacts/tx-os/src/pages/services.tsx b/artifacts/tx-os/src/pages/services.tsx index 1e86b371..861aeabb 100644 --- a/artifacts/tx-os/src/pages/services.tsx +++ b/artifacts/tx-os/src/pages/services.tsx @@ -91,7 +91,6 @@ export default function ServicesPage() {
{services.map((service) => { const name = lang === "ar" ? service.nameAr : service.nameEn; - const description = lang === "ar" ? service.descriptionAr : service.descriptionEn; const resolvedImage = resolveServiceImageUrl(service.imageUrl); const openOrder = () => { if (!service.isAvailable) return; @@ -123,9 +122,6 @@ export default function ServicesPage() { )}
- {description && ( -

{description}

- )} ); diff --git a/scripts/src/seed.ts b/scripts/src/seed.ts index ff1d5fea..4df24621 100644 --- a/scripts/src/seed.ts +++ b/scripts/src/seed.ts @@ -271,8 +271,6 @@ async function main() { categoryId: beveragesCat?.id ?? null, nameAr: "شاي", nameEn: "Tea", - descriptionAr: "شاي طازج ومنعش", - descriptionEn: "Fresh and refreshing tea", price: "0.00", isAvailable: true, sortOrder: 1, @@ -281,8 +279,6 @@ async function main() { categoryId: beveragesCat?.id ?? null, nameAr: "قهوة عربية", nameEn: "Arabic Coffee", - descriptionAr: "قهوة عربية أصيلة بالهيل", - descriptionEn: "Authentic Arabic coffee with cardamom", price: "0.00", isAvailable: true, sortOrder: 2, @@ -291,8 +287,6 @@ async function main() { categoryId: beveragesCat?.id ?? null, nameAr: "ماء", nameEn: "Water", - descriptionAr: "ماء صافٍ منعش", - descriptionEn: "Cool refreshing water", price: "0.00", isAvailable: true, sortOrder: 3, @@ -301,8 +295,6 @@ async function main() { categoryId: beveragesCat?.id ?? null, nameAr: "قهوة نسكافيه", nameEn: "Nescafe", - descriptionAr: "قهوة نسكافيه سريعة التحضير", - descriptionEn: "Quick Nescafe coffee", price: "0.00", isAvailable: true, sortOrder: 4, @@ -311,8 +303,6 @@ async function main() { categoryId: beveragesCat?.id ?? null, nameAr: "عصير طازج", nameEn: "Fresh Juice", - descriptionAr: "عصائر طازجة متنوعة", - descriptionEn: "Various fresh juices", price: "5.00", isAvailable: true, sortOrder: 5, @@ -321,8 +311,6 @@ async function main() { categoryId: beveragesCat?.id ?? null, nameAr: "مشروب غازي", nameEn: "Soft Drink", - descriptionAr: "مشروبات غازية باردة", - descriptionEn: "Cold carbonated drinks", price: "3.00", isAvailable: false, sortOrder: 6,