diff --git a/packages/core/src/sphere/api/spheres.ts b/packages/core/src/sphere/api/spheres.ts index c6b523d..2134bac 100644 --- a/packages/core/src/sphere/api/spheres.ts +++ b/packages/core/src/sphere/api/spheres.ts @@ -6,7 +6,7 @@ import { spheres, sphereMembers } from "../../db/schema/index.ts"; import { requireAuth, optionalAuth, type AuthEnv } from "../../auth/index.ts"; import { putPdsRecord, generateRkey } from "../../pds.ts"; import { createSphereSchema, updateSphereSchema } from "../schemas.ts"; -import { getActiveMemberRole, getMemberStatus } from "../operations.ts"; +import { getMemberStatus } from "../operations.ts"; import { computeUserPermissions } from "../../permissions/check.ts"; import { findSphere, getEnabledModules, formatModules } from "./helpers.ts"; diff --git a/packages/core/src/sphere/operations.ts b/packages/core/src/sphere/operations.ts index 6a19f86..5de8c0b 100644 --- a/packages/core/src/sphere/operations.ts +++ b/packages/core/src/sphere/operations.ts @@ -85,7 +85,12 @@ interface UpsertSphereParams { pdsUri: string; } -export function upsertSphereFromRecord({ did, rkey, record, pdsUri }: UpsertSphereParams): void { +export function upsertSphereFromRecord({ + did, + rkey: _rkey, + record, + pdsUri, +}: UpsertSphereParams): void { const db = getDb(); const existing = db .select({ id: spheres.id }) diff --git a/packages/feature-requests/src/__tests__/db-operations.test.ts b/packages/feature-requests/src/__tests__/db-operations.test.ts index 9a8fd56..8e39726 100644 --- a/packages/feature-requests/src/__tests__/db-operations.test.ts +++ b/packages/feature-requests/src/__tests__/db-operations.test.ts @@ -1,6 +1,6 @@ import { describe, it, expect, vi, beforeEach } from "vitest"; import type { BetterSQLite3Database } from "drizzle-orm/better-sqlite3"; -import { eq, and } from "drizzle-orm"; +import { eq } from "drizzle-orm"; // Use the shared test-db helper from core (resolves via workspace) import { createTestDb, seedSphere } from "../../../core/src/__tests__/helpers/test-db.ts"; diff --git a/packages/feature-requests/src/api/comments.ts b/packages/feature-requests/src/api/comments.ts index c46924e..fbd76f7 100644 --- a/packages/feature-requests/src/api/comments.ts +++ b/packages/feature-requests/src/api/comments.ts @@ -260,7 +260,6 @@ app.put("/comments/:id", requireAuth, async (c) => { // Delete own comment or admin-moderate a comment app.delete("/comments/:id", requireAuth, async (c) => { const id = c.req.param("id"); - const db = getDb(); const did = c.var.did; const sphereId = c.var.sphereId; const sphereOwnerDid = c.var.sphereOwnerDid; diff --git a/packages/kanban/src/__tests__/db-operations.test.ts b/packages/kanban/src/__tests__/db-operations.test.ts index 2c0e5f4..6cc1fd1 100644 --- a/packages/kanban/src/__tests__/db-operations.test.ts +++ b/packages/kanban/src/__tests__/db-operations.test.ts @@ -36,7 +36,6 @@ const MOD_DID = "did:plc:mod1"; const SPHERE_ID = "test-sphere-001"; // Valid TID string (insertComment derives updatedAt via tidToDate) const COMMENT_TID_1 = "3mhy7w6tbg22b"; -const COMMENT_TID_2 = "3mhy7w6tbg22c"; function seedTask(overrides: Partial & { id: string }) { const values = { diff --git a/packages/kanban/src/api/comments.ts b/packages/kanban/src/api/comments.ts index 90ffceb..146a4c6 100644 --- a/packages/kanban/src/api/comments.ts +++ b/packages/kanban/src/api/comments.ts @@ -175,7 +175,6 @@ app.put("/comments/:id", requireAuth, async (c) => { // Delete own comment or admin-moderate app.delete("/comments/:id", requireAuth, async (c) => { const id = c.req.param("id"); - const db = getDb(); const did = c.var.did; const sphereId = c.var.sphereId; const sphereOwnerDid = c.var.sphereOwnerDid; diff --git a/packages/kanban/src/ui/hooks/use-board-dnd.ts b/packages/kanban/src/ui/hooks/use-board-dnd.ts index f388630..9feecd5 100644 --- a/packages/kanban/src/ui/hooks/use-board-dnd.ts +++ b/packages/kanban/src/ui/hooks/use-board-dnd.ts @@ -93,7 +93,7 @@ export function useBoardDnd( }; } - function onDrop(status: string) { + function onDrop(_status: string) { return (e: DragEvent) => { e.preventDefault(); const ds = dragState.value;