fix(ci): clear PR #61 lint error + bump fast-uri/next over high-sev advisories
CI / Architecture Guardrails (pull_request) Successful in 2m44s
CI / Assistant Split Regression (pull_request) Successful in 4m29s
CI / Lint (pull_request) Successful in 4m59s
CI / Typecheck (pull_request) Successful in 5m9s
CI / Unit Tests (pull_request) Successful in 6m24s
CI / Build (pull_request) Successful in 4m37s
CI / E2E Tests (pull_request) Successful in 5m35s
CI / Fresh-Linux Docker Deploy (pull_request) Failing after 7m29s
CI / Release Images (pull_request) Has been skipped
CI / Architecture Guardrails (pull_request) Successful in 2m44s
CI / Assistant Split Regression (pull_request) Successful in 4m29s
CI / Lint (pull_request) Successful in 4m59s
CI / Typecheck (pull_request) Successful in 5m9s
CI / Unit Tests (pull_request) Successful in 6m24s
CI / Build (pull_request) Successful in 4m37s
CI / E2E Tests (pull_request) Successful in 5m35s
CI / Fresh-Linux Docker Deploy (pull_request) Failing after 7m29s
CI / Release Images (pull_request) Has been skipped
CI on PR #61 surfaced three issues. Two are real and fixed here; the third was an act-runner flake (actions/setup-node container cleanup race) that resolves on retrigger. 1. Lint error in apps/web/src/components/allocations/AllocationModal.tsx The `// eslint-disable-next-line @typescript-eslint/no-explicit-any` sat one line above the `as any` cast, so it suppressed nothing and eslint flagged it as an unused directive. Moved the comment to the line immediately above the cast. 2. pnpm audit --audit-level=high reported 9 high-severity findings, all transitive through two packages: - fast-uri <=3.1.1 (GHSA-q3j6-qgpj-74h6, host confusion via percent-encoded authority delimiters) — pinned to >=3.1.2 via pnpm.overrides since it's only reachable through @sentry/webpack- plugin > webpack > schema-utils > ajv > fast-uri - next 15.5.15 — bumped to ^15.5.16 (patched range starts here) Quality gates green: typecheck (7/7), test:unit (7/7), lint (0 errors). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
"dompurify": "^3.4.0",
|
||||
"exceljs": "^4.4.0",
|
||||
"framer-motion": "^12.38.0",
|
||||
"next": "^15.5.15",
|
||||
"next": "^15.5.16",
|
||||
"next-auth": "^5.0.0-beta.25",
|
||||
"otpauth": "^9.5.0",
|
||||
"qrcode": "^1.5.4",
|
||||
|
||||
@@ -85,22 +85,21 @@ export function AllocationModal({ allocation, onClose, onSuccess }: AllocationMo
|
||||
conflictCheckEnd !== null &&
|
||||
!isNaN(conflictCheckEnd.getTime()) &&
|
||||
debouncedHoursPerDay > 0;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const { data: conflictResult, isFetching: checkingConflicts } = (
|
||||
trpc.allocation.checkConflicts.useQuery as any
|
||||
)(
|
||||
{
|
||||
resourceId: debouncedResourceId,
|
||||
startDate: conflictCheckStart,
|
||||
endDate: conflictCheckEnd,
|
||||
hoursPerDay: debouncedHoursPerDay,
|
||||
excludeAssignmentId: isEditing && allocation?.id ? allocation.id : undefined,
|
||||
},
|
||||
{ enabled: shouldCheckConflicts, staleTime: 15_000 },
|
||||
) as {
|
||||
data: import("@nexus/shared").AllocationConflictCheckResult | undefined;
|
||||
isFetching: boolean;
|
||||
};
|
||||
const { data: conflictResult, isFetching: checkingConflicts } =
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(trpc.allocation.checkConflicts.useQuery as any)(
|
||||
{
|
||||
resourceId: debouncedResourceId,
|
||||
startDate: conflictCheckStart,
|
||||
endDate: conflictCheckEnd,
|
||||
hoursPerDay: debouncedHoursPerDay,
|
||||
excludeAssignmentId: isEditing && allocation?.id ? allocation.id : undefined,
|
||||
},
|
||||
{ enabled: shouldCheckConflicts, staleTime: 15_000 },
|
||||
) as {
|
||||
data: import("@nexus/shared").AllocationConflictCheckResult | undefined;
|
||||
isFetching: boolean;
|
||||
};
|
||||
|
||||
const overlapWarning = useMemo(() => {
|
||||
if (!shouldCheckOverlap || !existingAllocations || !startDate || !endDate) return null;
|
||||
|
||||
Reference in New Issue
Block a user