Rename project and remove unused services
Update project name from teaboy-os to tx-os and remove obsolete services. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 3154f23a-748a-4118-aa41-fc01b7b1f04d Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/PVuelRZ Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -5,4 +5,4 @@ pnpm --filter db run push-force
|
||||
# Idempotent: ensure the default groups exist and existing users are mapped
|
||||
# (Admins, Tx, Everyone). Safe to run repeatedly.
|
||||
pnpm --filter scripts run seed
|
||||
pnpm --filter @workspace/teaboy-os exec playwright install chromium
|
||||
pnpm --filter @workspace/tx-os exec playwright install chromium
|
||||
|
||||
+3
-29
@@ -205,19 +205,6 @@ async function main() {
|
||||
isSystem: true,
|
||||
sortOrder: 4,
|
||||
},
|
||||
{
|
||||
slug: "directory",
|
||||
nameAr: "الدليل الداخلي",
|
||||
nameEn: "Directory",
|
||||
descriptionAr: "دليل الموظفين والأقسام",
|
||||
descriptionEn: "Employees and departments directory",
|
||||
iconName: "Users",
|
||||
route: "/directory",
|
||||
color: "#06b6d4",
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
sortOrder: 5,
|
||||
},
|
||||
{
|
||||
slug: "calendar",
|
||||
nameAr: "التقويم",
|
||||
@@ -229,20 +216,7 @@ async function main() {
|
||||
color: "#3b82f6",
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
sortOrder: 6,
|
||||
},
|
||||
{
|
||||
slug: "announcements",
|
||||
nameAr: "الإعلانات",
|
||||
nameEn: "Announcements",
|
||||
descriptionAr: "أخبار وإعلانات الشركة",
|
||||
descriptionEn: "Company news and announcements",
|
||||
iconName: "Megaphone",
|
||||
route: "/announcements",
|
||||
color: "#ec4899",
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
sortOrder: 7,
|
||||
sortOrder: 5,
|
||||
},
|
||||
{
|
||||
slug: "documents",
|
||||
@@ -255,7 +229,7 @@ async function main() {
|
||||
color: "#64748b",
|
||||
isActive: true,
|
||||
isSystem: false,
|
||||
sortOrder: 8,
|
||||
sortOrder: 6,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -355,7 +329,7 @@ async function main() {
|
||||
},
|
||||
];
|
||||
|
||||
await db.insert(servicesTable).values(services).onConflictDoNothing();
|
||||
await db.insert(servicesTable).values(services).onConflictDoNothing({ target: servicesTable.nameEn });
|
||||
console.log("Services created");
|
||||
|
||||
// ----- Groups: idempotent migration -----
|
||||
|
||||
Reference in New Issue
Block a user