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
This commit is contained in:
@@ -509,8 +509,6 @@ export default function AdminPage() {
|
|||||||
[
|
[
|
||||||
{ field: "nameAr", label: t("admin.serviceNameAr") },
|
{ field: "nameAr", label: t("admin.serviceNameAr") },
|
||||||
{ field: "nameEn", label: t("admin.serviceNameEn") },
|
{ field: "nameEn", label: t("admin.serviceNameEn") },
|
||||||
{ field: "descriptionAr", label: t("admin.serviceDescriptionAr") },
|
|
||||||
{ field: "descriptionEn", label: t("admin.serviceDescriptionEn") },
|
|
||||||
{ field: "price", label: t("admin.servicePrice") },
|
{ field: "price", label: t("admin.servicePrice") },
|
||||||
] as { field: keyof ServiceForm; label: string }[]
|
] as { field: keyof ServiceForm; label: string }[]
|
||||||
).map(({ field, label }) => (
|
).map(({ field, label }) => (
|
||||||
|
|||||||
@@ -91,7 +91,6 @@ export default function ServicesPage() {
|
|||||||
<div className="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-7 xl:grid-cols-8 gap-2">
|
<div className="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-7 xl:grid-cols-8 gap-2">
|
||||||
{services.map((service) => {
|
{services.map((service) => {
|
||||||
const name = lang === "ar" ? service.nameAr : service.nameEn;
|
const name = lang === "ar" ? service.nameAr : service.nameEn;
|
||||||
const description = lang === "ar" ? service.descriptionAr : service.descriptionEn;
|
|
||||||
const resolvedImage = resolveServiceImageUrl(service.imageUrl);
|
const resolvedImage = resolveServiceImageUrl(service.imageUrl);
|
||||||
const openOrder = () => {
|
const openOrder = () => {
|
||||||
if (!service.isAvailable) return;
|
if (!service.isAvailable) return;
|
||||||
@@ -123,9 +122,6 @@ export default function ServicesPage() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{description && (
|
|
||||||
<p className="text-[11px] text-muted-foreground line-clamp-1 leading-snug">{description}</p>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -271,8 +271,6 @@ async function main() {
|
|||||||
categoryId: beveragesCat?.id ?? null,
|
categoryId: beveragesCat?.id ?? null,
|
||||||
nameAr: "شاي",
|
nameAr: "شاي",
|
||||||
nameEn: "Tea",
|
nameEn: "Tea",
|
||||||
descriptionAr: "شاي طازج ومنعش",
|
|
||||||
descriptionEn: "Fresh and refreshing tea",
|
|
||||||
price: "0.00",
|
price: "0.00",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
sortOrder: 1,
|
sortOrder: 1,
|
||||||
@@ -281,8 +279,6 @@ async function main() {
|
|||||||
categoryId: beveragesCat?.id ?? null,
|
categoryId: beveragesCat?.id ?? null,
|
||||||
nameAr: "قهوة عربية",
|
nameAr: "قهوة عربية",
|
||||||
nameEn: "Arabic Coffee",
|
nameEn: "Arabic Coffee",
|
||||||
descriptionAr: "قهوة عربية أصيلة بالهيل",
|
|
||||||
descriptionEn: "Authentic Arabic coffee with cardamom",
|
|
||||||
price: "0.00",
|
price: "0.00",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
sortOrder: 2,
|
sortOrder: 2,
|
||||||
@@ -291,8 +287,6 @@ async function main() {
|
|||||||
categoryId: beveragesCat?.id ?? null,
|
categoryId: beveragesCat?.id ?? null,
|
||||||
nameAr: "ماء",
|
nameAr: "ماء",
|
||||||
nameEn: "Water",
|
nameEn: "Water",
|
||||||
descriptionAr: "ماء صافٍ منعش",
|
|
||||||
descriptionEn: "Cool refreshing water",
|
|
||||||
price: "0.00",
|
price: "0.00",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
sortOrder: 3,
|
sortOrder: 3,
|
||||||
@@ -301,8 +295,6 @@ async function main() {
|
|||||||
categoryId: beveragesCat?.id ?? null,
|
categoryId: beveragesCat?.id ?? null,
|
||||||
nameAr: "قهوة نسكافيه",
|
nameAr: "قهوة نسكافيه",
|
||||||
nameEn: "Nescafe",
|
nameEn: "Nescafe",
|
||||||
descriptionAr: "قهوة نسكافيه سريعة التحضير",
|
|
||||||
descriptionEn: "Quick Nescafe coffee",
|
|
||||||
price: "0.00",
|
price: "0.00",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
sortOrder: 4,
|
sortOrder: 4,
|
||||||
@@ -311,8 +303,6 @@ async function main() {
|
|||||||
categoryId: beveragesCat?.id ?? null,
|
categoryId: beveragesCat?.id ?? null,
|
||||||
nameAr: "عصير طازج",
|
nameAr: "عصير طازج",
|
||||||
nameEn: "Fresh Juice",
|
nameEn: "Fresh Juice",
|
||||||
descriptionAr: "عصائر طازجة متنوعة",
|
|
||||||
descriptionEn: "Various fresh juices",
|
|
||||||
price: "5.00",
|
price: "5.00",
|
||||||
isAvailable: true,
|
isAvailable: true,
|
||||||
sortOrder: 5,
|
sortOrder: 5,
|
||||||
@@ -321,8 +311,6 @@ async function main() {
|
|||||||
categoryId: beveragesCat?.id ?? null,
|
categoryId: beveragesCat?.id ?? null,
|
||||||
nameAr: "مشروب غازي",
|
nameAr: "مشروب غازي",
|
||||||
nameEn: "Soft Drink",
|
nameEn: "Soft Drink",
|
||||||
descriptionAr: "مشروبات غازية باردة",
|
|
||||||
descriptionEn: "Cold carbonated drinks",
|
|
||||||
price: "3.00",
|
price: "3.00",
|
||||||
isAvailable: false,
|
isAvailable: false,
|
||||||
sortOrder: 6,
|
sortOrder: 6,
|
||||||
|
|||||||
Reference in New Issue
Block a user