mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 16:12:11 +00:00
chore: strip planning tags from comments and enable the rule
Output of `node scripts/strip-planning-tags.mjs --write`: 3,157 comment lines in 1,308 files lose the work-item identifier at their head. Release versions and issue references stay; nothing outside comment text changes, which the script checks per file against a comment-free printout. healthlog/no-planning-tags is enabled at error level with this commit, so the tree it lands on is clean.
This commit is contained in:
1 parent
892a819060
commit
fea1d1e0b5
1308 files changed
+3163
-3157
No files matched your search
@@ -4,7 +4,7 @@ import { annotate } from "@/lib/logging/context";
|
||||
import { prisma } from "@/lib/db";
|
||||
|
||||
/**
|
||||
* v1.4.16 phase B5e — admin AI quality preview.
|
||||
* v1.4.16 — admin AI quality preview.
|
||||
*
|
||||
* Returns the latest aggregator-written summary from
|
||||
* `AppSettings.adminAiInsightsFeedbackSummary`. The pg-boss
|
||||
|
||||
@@ -9,7 +9,7 @@ import { z } from "zod/v4";
|
||||
import { isoDateTime } from "@/lib/validations/datetime";
|
||||
|
||||
/**
|
||||
* v1.4.16 phase B4: parse the union of legacy + new query params. Legacy
|
||||
* v1.4.16: parse the union of legacy + new query params. Legacy
|
||||
* `limit`/`offset`/`filter` keys still work so the existing
|
||||
* `<RecentAuditPreview>` and `<LoginOverviewSection>` callers don't break;
|
||||
* new `page`/`perPage`/`actor`/`action`/`target`/`since`/`until` drive
|
||||
@@ -152,7 +152,7 @@ export const GET = apiHandler(async (request: NextRequest) => {
|
||||
action: true,
|
||||
ipAddress: true,
|
||||
location: true,
|
||||
// v1.4.27 B3 — surface the carrier chip data alongside the
|
||||
// v1.4.27 — surface the carrier chip data alongside the
|
||||
// existing location string. Both nullable so older rows render
|
||||
// with the same dash that `location` falls back to.
|
||||
asn: true,
|
||||
@@ -167,7 +167,7 @@ export const GET = apiHandler(async (request: NextRequest) => {
|
||||
prisma.auditLog.count({ where }),
|
||||
]);
|
||||
|
||||
// v1.4.16 phase D reconcile (security H2) — `details` is a JSON string
|
||||
// v1.4.16 (security H2) — `details` is a JSON string
|
||||
// column written by `auditLog()` calls across the app. A user-controlled
|
||||
// value can land in here (e.g. `auth.login.failed → details.identifier`)
|
||||
// and a typo'd "Bearer hlk_..." in a username field would otherwise be
|
||||
|
||||
@@ -41,7 +41,7 @@ import {
|
||||
OFFHOST_BACKUP_PERIOD_HOURS,
|
||||
type OffhostBackupFreshness,
|
||||
} from "@/lib/jobs/offhost-backup-freshness";
|
||||
// v1.4.41 W-ORG — `BackupRow` / `BackupsList` moved to `src/types/backups.ts`
|
||||
// v1.4.41 — `BackupRow` / `BackupsList` moved to `src/types/backups.ts`
|
||||
// so callers (in particular `components/admin/backups-section.tsx`) don't
|
||||
// have to reach across the component → route-handler layer boundary.
|
||||
import type {
|
||||
|
||||
@@ -6,7 +6,7 @@ import { NextRequest } from "next/server";
|
||||
import { z } from "zod/v4";
|
||||
|
||||
/**
|
||||
* v1.4.16 phase B3: serve the host-load chart that sits above
|
||||
* v1.4.16: serve the host-load chart that sits above
|
||||
* `/admin/system-status`. The pg-boss `host-metric-sample` worker writes
|
||||
* one row per minute; this endpoint returns the last `?since=` window
|
||||
* (default 2h, max 24h) ordered by `capturedAt` ascending so the chart
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* v1.4.48 H-APNs-1 — coverage for the admin notification diagnostic
|
||||
* v1.4.48 — coverage for the admin notification diagnostic
|
||||
* endpoint. The route surfaces what the dispatcher would observe when
|
||||
* targeting the calling admin's account so an operator can debug push
|
||||
* delivery without DB-shell access; these tests pin:
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { ChannelType } from "@/lib/notifications/types";
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
/**
|
||||
* v1.4.48 H-APNs-1 — admin-only diagnostic endpoint for the
|
||||
* v1.4.48 — admin-only diagnostic endpoint for the
|
||||
* notification subsystem. Surfaces what the dispatcher would see when
|
||||
* targeting the calling admin's account so an operator can debug an
|
||||
* iOS / Web Push / Telegram / ntfy issue without needing DB shell
|
||||
|
||||
@@ -194,7 +194,7 @@ export const POST = apiHandler(async (request: NextRequest) => {
|
||||
const timeWindow = `${schedule.windowStart}–${schedule.windowEnd}`;
|
||||
|
||||
try {
|
||||
// v1.4.27 F21 — each notification renders in the affected
|
||||
// v1.4.27 — each notification renders in the affected
|
||||
// user's `User.locale` (the recipient is the user whose dose
|
||||
// is overdue, not the admin running the check).
|
||||
// `dispatchLocalisedNotification` resolves the locale from
|
||||
|
||||
@@ -149,7 +149,7 @@ export const POST = apiHandler(async () => {
|
||||
});
|
||||
}
|
||||
|
||||
// v1.4.27 F21 — resolve the admin's persisted locale so the test
|
||||
// v1.4.27 — resolve the admin's persisted locale so the test
|
||||
// notification arrives in their preferred language. The test route
|
||||
// talks to the senders directly (not the dispatcher) because it
|
||||
// needs per-channel success / error feedback for the UI, so we
|
||||
|
||||
@@ -377,7 +377,7 @@ describe("PUT /api/admin/settings", () => {
|
||||
expect(res.status).toBe(415);
|
||||
});
|
||||
|
||||
// v1.4.25 W7 — server-default timezone.
|
||||
// v1.4.25 — server-default timezone.
|
||||
it("persists a valid defaultUserTimezone", async () => {
|
||||
vi.mocked(prisma.appSettings.upsert).mockResolvedValue({
|
||||
id: "singleton",
|
||||
|
||||
@@ -187,7 +187,7 @@ export const PUT = apiHandler(async (request: NextRequest) => {
|
||||
|
||||
const parsed = assistantFlagsSchema.safeParse(body);
|
||||
if (!parsed.success) {
|
||||
// v1.4.43 W6 — multi-issue 422.
|
||||
// v1.4.43 — multi-issue 422.
|
||||
return returnAllZodIssues(parsed.error, 422);
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ export const GET = apiHandler(async () => {
|
||||
settings?.documentQuotaBytes !== undefined
|
||||
? Number(settings.documentQuotaBytes)
|
||||
: 1_073_741_824,
|
||||
// v1.4.25 W7 — null means "fall back to Europe/Berlin in the
|
||||
// v1.4.25 — null means "fall back to Europe/Berlin in the
|
||||
// resolver"; surfacing the raw value lets the admin UI render
|
||||
// an empty picker placeholder until they opt in.
|
||||
defaultUserTimezone: settings?.defaultUserTimezone ?? null,
|
||||
@@ -116,7 +116,7 @@ export const PUT = apiHandler(async (request: NextRequest) => {
|
||||
if (jsonError) return jsonError;
|
||||
const parsed = adminSettingsSchema.safeParse(body);
|
||||
if (!parsed.success) {
|
||||
// v1.4.43 W6 — multi-issue 422.
|
||||
// v1.4.43 — multi-issue 422.
|
||||
return returnAllZodIssues(parsed.error, 422);
|
||||
}
|
||||
|
||||
@@ -244,7 +244,7 @@ export const PUT = apiHandler(async (request: NextRequest) => {
|
||||
auditDetails.documentQuotaBytes = data.documentQuotaBytes;
|
||||
}
|
||||
|
||||
// v1.4.25 W7 — server-default timezone for new signups.
|
||||
// v1.4.25 — server-default timezone for new signups.
|
||||
// Empty string clears the override (resolver falls back to
|
||||
// Europe/Berlin); a non-empty string must pass Intl validation
|
||||
// upstream of the column write.
|
||||
|
||||
@@ -68,7 +68,7 @@ vi.mock("@/lib/jobs/job-failures", () => ({
|
||||
readFailingQueues: vi.fn(),
|
||||
}));
|
||||
|
||||
// v1.4.25 W21 Fix-K — `/api/admin/status` now reads the legacy-form
|
||||
// v1.4.25 — `/api/admin/status` now reads the legacy-form
|
||||
import { GET } from "../route";
|
||||
import { prisma } from "@/lib/db";
|
||||
import { requireAdmin, HttpError } from "@/lib/api-handler";
|
||||
|
||||
@@ -48,7 +48,7 @@ export const GET = apiHandler(async () => {
|
||||
appSettings,
|
||||
] = await Promise.all([
|
||||
prisma.user.count(),
|
||||
// v1.4.41 W-DELETED-2 — exclude soft-deleted measurements from the
|
||||
// v1.4.41 — exclude soft-deleted measurements from the
|
||||
// admin status count so the dashboard tile reflects live data only.
|
||||
prisma.measurement.count({ where: { deletedAt: null } }),
|
||||
prisma.medication.count(),
|
||||
|
||||
@@ -56,7 +56,7 @@ export const PUT = apiHandler(
|
||||
if (jsonError) return jsonError;
|
||||
const parsed = updateUserSchema.safeParse(body);
|
||||
if (!parsed.success) {
|
||||
// v1.4.43 W6 — multi-issue 422.
|
||||
// v1.4.43 — multi-issue 422.
|
||||
return returnAllZodIssues(parsed.error, 422);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user