chore: full technical rename planarchy → capakraken
Complete rename of all technical identifiers across the codebase: Package names (11 packages): - @planarchy/* → @capakraken/* in all package.json, tsconfig, imports Import statements: 277 files, 548 occurrences replaced Database & Docker: - PostgreSQL user/db: planarchy → capakraken - Docker volumes: planarchy_pgdata → capakraken_pgdata - Connection strings updated in docker-compose, .env, CI CI/CD: - GitHub Actions workflow: all filter commands updated - Test database credentials updated Infrastructure: - Redis channel: planarchy:sse → capakraken:sse - Logger service name: planarchy-api → capakraken-api - Anonymization seed updated - Start/stop/restart scripts updated Test data: - Seed emails: @planarchy.dev → @capakraken.dev - E2E test credentials: all 11 spec files updated - Email defaults: @planarchy.app → @capakraken.app - localStorage keys: planarchy_* → capakraken_* Documentation: 30+ .md files updated Verification: - pnpm install: workspace resolution works - TypeScript: only pre-existing TS2589 (no new errors) - Engine: 310/310 tests pass - Staffing: 37/37 tests pass Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
import type { Prisma, PrismaClient } from "@planarchy/db";
|
||||
import { AllocationStatus } from "@planarchy/shared";
|
||||
import type { Prisma, PrismaClient } from "@capakraken/db";
|
||||
import { AllocationStatus } from "@capakraken/shared";
|
||||
|
||||
type DbClient = PrismaClient | Prisma.TransactionClient;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import type {
|
||||
AllocationReadModel,
|
||||
Assignment,
|
||||
DemandRequirement,
|
||||
} from "@planarchy/shared";
|
||||
} from "@capakraken/shared";
|
||||
|
||||
function toDemandRequirement<TAllocation extends AllocationLike>(
|
||||
allocation: TAllocation,
|
||||
|
||||
@@ -3,7 +3,7 @@ import type {
|
||||
AllocationReadModel,
|
||||
Assignment,
|
||||
DemandRequirement,
|
||||
} from "@planarchy/shared";
|
||||
} from "@capakraken/shared";
|
||||
type SplitAllocationEntry = AllocationLike;
|
||||
type SplitProjectSummary = NonNullable<SplitAllocationEntry["project"]>;
|
||||
type SplitResourceSummary = NonNullable<SplitAllocationEntry["resource"]>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Prisma } from "@planarchy/db";
|
||||
import type { Prisma } from "@capakraken/db";
|
||||
import type { AssignmentBookingWithFallback } from "./list-assignment-bookings.js";
|
||||
|
||||
type ChargeabilityProjectLike = AssignmentBookingWithFallback["project"];
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { Prisma, PrismaClient } from "@planarchy/db";
|
||||
import type { Prisma, PrismaClient } from "@capakraken/db";
|
||||
import { buildSplitAllocationReadModel } from "./build-split-allocation-read-model.js";
|
||||
|
||||
type DbClient =
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Prisma, PrismaClient } from "@planarchy/db";
|
||||
import type { Prisma, PrismaClient } from "@capakraken/db";
|
||||
import { buildSplitAllocationReadModel } from "./build-split-allocation-read-model.js";
|
||||
|
||||
type DbClient =
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { calculateAllocation, validateAvailability, checkDuplicateAssignment } from "@planarchy/engine";
|
||||
import type { PrismaClient, Prisma } from "@planarchy/db";
|
||||
import { calculateAllocation, validateAvailability, checkDuplicateAssignment } from "@capakraken/engine";
|
||||
import type { PrismaClient, Prisma } from "@capakraken/db";
|
||||
import {
|
||||
type Allocation,
|
||||
type CreateAssignmentInput,
|
||||
type WeekdayAvailability,
|
||||
} from "@planarchy/shared";
|
||||
} from "@capakraken/shared";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { listAssignmentBookings } from "./list-assignment-bookings.js";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PrismaClient, Prisma } from "@planarchy/db";
|
||||
import { type CreateDemandRequirementInput } from "@planarchy/shared";
|
||||
import type { PrismaClient, Prisma } from "@capakraken/db";
|
||||
import { type CreateDemandRequirementInput } from "@capakraken/shared";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
|
||||
type DbClient = PrismaClient | Prisma.TransactionClient;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Prisma, PrismaClient } from "@planarchy/db";
|
||||
import type { Prisma, PrismaClient } from "@capakraken/db";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import type { AllocationEntryResolution } from "./load-allocation-entry.js";
|
||||
import { deleteAssignment } from "./delete-assignment.js";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Prisma, PrismaClient } from "@planarchy/db";
|
||||
import { AllocationStatus } from "@planarchy/shared";
|
||||
import type { Prisma, PrismaClient } from "@capakraken/db";
|
||||
import { AllocationStatus } from "@capakraken/shared";
|
||||
|
||||
type DbClient =
|
||||
| Pick<PrismaClient, "assignment" | "demandRequirement">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Prisma, PrismaClient } from "@planarchy/db";
|
||||
import type { Prisma, PrismaClient } from "@capakraken/db";
|
||||
|
||||
type DbClient =
|
||||
| Pick<PrismaClient, "demandRequirement" | "assignment">
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import type { PrismaClient } from "@planarchy/db";
|
||||
import type { PrismaClient } from "@capakraken/db";
|
||||
import {
|
||||
AllocationStatus,
|
||||
type FillDemandRequirementInput,
|
||||
} from "@planarchy/shared";
|
||||
} from "@capakraken/shared";
|
||||
import {
|
||||
createAssignment,
|
||||
type AssignmentWithRelations,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { PrismaClient } from "@planarchy/db";
|
||||
import { AllocationStatus, type FillDemandRequirementInput } from "@planarchy/shared";
|
||||
import { checkDuplicateAssignment } from "@planarchy/engine";
|
||||
import type { PrismaClient } from "@capakraken/db";
|
||||
import { AllocationStatus, type FillDemandRequirementInput } from "@capakraken/shared";
|
||||
import { checkDuplicateAssignment } from "@capakraken/engine";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { type AssignmentWithRelations } from "./create-assignment.js";
|
||||
import { fillDemandRequirementWithLegacySync } from "./fill-demand-requirement-with-legacy-sync.js";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PrismaClient } from "@planarchy/db";
|
||||
import type { FillOpenDemandByAllocationInput } from "@planarchy/shared";
|
||||
import type { PrismaClient } from "@capakraken/db";
|
||||
import type { FillOpenDemandByAllocationInput } from "@capakraken/shared";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { fillDemandRequirement } from "./fill-demand-requirement.js";
|
||||
import { loadAllocationEntry } from "./load-allocation-entry.js";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Prisma, PrismaClient } from "@planarchy/db";
|
||||
import type { Prisma, PrismaClient } from "@capakraken/db";
|
||||
|
||||
type AssignmentBookingsDbClient = Pick<PrismaClient, "assignment">;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Prisma, PrismaClient } from "@planarchy/db";
|
||||
import type { AllocationWithDetails } from "@planarchy/shared";
|
||||
import type { Prisma, PrismaClient } from "@capakraken/db";
|
||||
import type { AllocationWithDetails } from "@capakraken/shared";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { buildSplitAllocationReadModel } from "./build-split-allocation-read-model.js";
|
||||
import {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { PrismaClient, Prisma } from "@planarchy/db";
|
||||
import type { PrismaClient, Prisma } from "@capakraken/db";
|
||||
import type {
|
||||
AllocationWithDetails,
|
||||
UpdateAssignmentInput,
|
||||
UpdateDemandRequirementInput,
|
||||
} from "@planarchy/shared";
|
||||
} from "@capakraken/shared";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { findAllocationEntry } from "./load-allocation-entry.js";
|
||||
import { updateAssignment } from "./update-assignment.js";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PrismaClient, Prisma } from "@planarchy/db";
|
||||
import { type UpdateAssignmentInput } from "@planarchy/shared";
|
||||
import type { PrismaClient, Prisma } from "@capakraken/db";
|
||||
import { type UpdateAssignmentInput } from "@capakraken/shared";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import {
|
||||
ASSIGNMENT_RELATIONS_INCLUDE,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PrismaClient, Prisma } from "@planarchy/db";
|
||||
import { type UpdateDemandRequirementInput } from "@planarchy/shared";
|
||||
import type { PrismaClient, Prisma } from "@capakraken/db";
|
||||
import { type UpdateDemandRequirementInput } from "@capakraken/shared";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import {
|
||||
DEMAND_REQUIREMENT_RELATIONS_INCLUDE,
|
||||
|
||||
Reference in New Issue
Block a user