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
@@ -3,7 +3,7 @@ import { renderToStaticMarkup } from "react-dom/server";
|
||||
import { I18nProvider } from "@/lib/i18n/context";
|
||||
|
||||
/**
|
||||
* v1.4.16 phase B5e — coverage for the admin AI quality preview.
|
||||
* v1.4.16 — coverage for the admin AI quality preview.
|
||||
*
|
||||
* Three branches:
|
||||
* 1. loading state (Loader2 spinner + label)
|
||||
@@ -57,7 +57,7 @@ describe("<AiQualitySection>", () => {
|
||||
mockQueryState.isLoading = false;
|
||||
mockQueryState.isError = false;
|
||||
const html = render(<AiQualitySection />);
|
||||
// v1.4.33 IW7 — admin section renamed from "AI Quality" to
|
||||
// v1.4.33 — admin section renamed from "AI Quality" to
|
||||
// "Insights Quality" per the project-voice rule.
|
||||
expect(html).toContain("Insights Quality");
|
||||
expect(html).toContain("No feedback yet");
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.19 phase A7 — `/admin/api-tokens` no longer renders a Collapse
|
||||
* v1.4.19 — `/admin/api-tokens` no longer renders a Collapse
|
||||
* / Expand toggle. The toggle existed as an escape hatch from the
|
||||
* v1.4 shared-admin page where 13 sections lived on one route; in
|
||||
* v1.5 every section has its own dedicated route, so collapsing the
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.16 phase A3 — `/admin/api-tokens` no horizontal overflow on
|
||||
* v1.4.16 — `/admin/api-tokens` no horizontal overflow on
|
||||
* Pixel-5-class viewports (393 CSS px).
|
||||
*
|
||||
* The v1.4.15 fix tried hiding columns + tightening padding, but a
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.19 A7 — `/admin/api-tokens` 4th-attempt scrollbar fix.
|
||||
* v1.4.19 — `/admin/api-tokens` 4th-attempt scrollbar fix.
|
||||
*
|
||||
* The maintainer reported a "minimaler Scrollbar" still painting at the
|
||||
* bottom-right of the api-tokens page, even after the v1.4.18 phase
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.27 MB5 — `/admin/app-logs` summary line lifted out of the
|
||||
* v1.4.27 — `/admin/app-logs` summary line lifted out of the
|
||||
* `overflow-x-auto` table wrapper so admins on narrow viewports can
|
||||
* still see "showing X of Y events" without first scrolling the table
|
||||
* back to its starting offset. The refresh control already lives in
|
||||
|
||||
@@ -27,7 +27,7 @@ const mocks = vi.hoisted(() => ({
|
||||
}));
|
||||
|
||||
/**
|
||||
* v1.4.15 phase-C5 — `/admin/backups` empty state.
|
||||
* v1.4.15 — `/admin/backups` empty state.
|
||||
*
|
||||
* The previous build rendered a single-line `<p>No backups recorded
|
||||
* yet.</p>` inside the card. Brand-new admins didn't realise the "Run
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.23 H7 — admin Coach feedback section.
|
||||
* v1.4.23 — admin Coach feedback section.
|
||||
*
|
||||
* Three render paths matter:
|
||||
* 1. Loading — spinner + "Loading Coach feedback summary..."
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi, beforeEach, afterEach } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.19 A8 / F-02 — `/admin/login-overview` was rendering insights events
|
||||
* v1.4.19 — `/admin/login-overview` was rendering insights events
|
||||
* (`insights.weight-status.en`, `insights.bmi-status.en`, …) because the
|
||||
* underlying fetch never restricted the `audit-log` API to authentication
|
||||
* actions. The page subtitle promises "authentication and admin events" so
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
import { toCSV } from "@/lib/export";
|
||||
|
||||
/**
|
||||
* v1.4.25 W8b — Login-Übersicht CSV export contract.
|
||||
* v1.4.25 — Login-Übersicht CSV export contract.
|
||||
*
|
||||
* The previous CSV emitted snake_case English headers and the raw UTC
|
||||
* `createdAt` string, which Excel/LibreOffice misread once the `Z`
|
||||
@@ -31,7 +31,7 @@ const LABELS_EN: AuditCsvLabels = {
|
||||
user: "Users",
|
||||
ip: "IP",
|
||||
location: "Location",
|
||||
// v1.4.27 B3 — `admin.carrier` is shipped by bucket B6; the test
|
||||
// v1.4.27 — `admin.carrier` is shipped by bucket B6; the test
|
||||
// pins the English literal so the column order is locked.
|
||||
carrier: "Carrier",
|
||||
provider: "Provider",
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.25 W8b — `/admin/login-overview` no longer renders a Collapse
|
||||
* v1.4.25 — `/admin/login-overview` no longer renders a Collapse
|
||||
* / Expand toggle. The toggle was a leftover from the v1.4 shared
|
||||
* admin page where 13 sections lived on one route; collapsing the
|
||||
* only card on the dedicated login-overview route hid the entire
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.27 MB5 — `/admin/login-overview` pagination + summary lifted
|
||||
* v1.4.27 — `/admin/login-overview` pagination + summary lifted
|
||||
* out of the `overflow-x-auto` table wrapper.
|
||||
*
|
||||
* The audit table can be wider than the viewport on phones, so it
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Cpu, Fingerprint, Globe, KeyRound } from "lucide-react";
|
||||
import { iconForAuthProvider, providerForAction } from "../_shared";
|
||||
|
||||
/**
|
||||
* v1.4.25 W8b — Provider column for the admin Login-Übersicht.
|
||||
* v1.4.25 — Provider column for the admin Login-Übersicht.
|
||||
*
|
||||
* The audit-log entries don't carry a dedicated "provider" field — the
|
||||
* action name itself is the source of truth. These tests pin the
|
||||
|
||||
@@ -132,13 +132,13 @@ describe("admin sections — SSR smoke", () => {
|
||||
expect(html).toContain("Delete all data globally");
|
||||
});
|
||||
|
||||
// v1.4.16 phase B5e — admin AI quality preview. The mocked useQuery
|
||||
// v1.4.16 — admin AI quality preview. The mocked useQuery
|
||||
// returns `data: null, isLoading: false` so the empty-state branch
|
||||
// paints; the table-render branch is exercised by the dedicated
|
||||
// ai-quality-section test.
|
||||
it("<AiQualitySection> renders the empty-state when no summary exists", () => {
|
||||
const html = render(<AiQualitySection />);
|
||||
// v1.4.33 IW7 — section renamed from "AI Quality" to
|
||||
// v1.4.33 — section renamed from "AI Quality" to
|
||||
// "Insights Quality" per the project-voice rule (no "KI"/"AI" prefix
|
||||
// in user-facing copy).
|
||||
expect(html).toContain("Insights Quality");
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.15 phase A2: the `/admin` overview no longer renders the
|
||||
* v1.4.15: the `/admin` overview no longer renders the
|
||||
* `StatusCardGrid` (the section-card grid the maintainer described as redundant
|
||||
* with the sidebar nav). The status-card component itself was removed
|
||||
* from the codebase. This test guards the *new* overview composition:
|
||||
|
||||
@@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
|
||||
/**
|
||||
* v1.4.15 phase-C5 — `/admin/users` empty state.
|
||||
* v1.4.15 — `/admin/users` empty state.
|
||||
*
|
||||
* Before this phase, when the admin's filter bucket returned zero
|
||||
* users (or the system had only one admin and the "Users" filter was
|
||||
|
||||
@@ -119,7 +119,7 @@ export interface AdminSettings {
|
||||
glitchtipDeliveryWindowHours: number;
|
||||
reminderLateMinutes: number;
|
||||
reminderMissedMinutes: number;
|
||||
// v1.4.25 W7 — null means "fall back to Europe/Berlin in the resolver".
|
||||
// v1.4.25 — null means "fall back to Europe/Berlin in the resolver".
|
||||
defaultUserTimezone: string | null;
|
||||
// Document vault — the two admin-tunable limits (bytes on the wire; the
|
||||
// UI edits them as MB / GB). The per-file cap clamps to the hard 100 MiB
|
||||
@@ -133,7 +133,7 @@ export interface AdminAuditEntry {
|
||||
action: string;
|
||||
ipAddress: string | null;
|
||||
location: string | null;
|
||||
// v1.4.27 B3 — populated from the bundled GeoLite2-ASN MMDB at
|
||||
// v1.4.27 — populated from the bundled GeoLite2-ASN MMDB at
|
||||
// audit-creation time. Both nullable: older rows, private/loopback
|
||||
// IPs, and offline-miss rows stay valid.
|
||||
asn: number | null;
|
||||
@@ -246,7 +246,7 @@ export function SettingsToggle({
|
||||
onCheckedChange: (checked: boolean) => void;
|
||||
disabled: boolean;
|
||||
}) {
|
||||
// v1.4.27 MB7 / CF-56 — stack the toggle row vertically on `<sm` so
|
||||
// v1.4.27 — stack the toggle row vertically on `<sm` so
|
||||
// the label + description don't have to compete with the switch for
|
||||
// horizontal space on Pixel 5 (the German "Registration enabled — …"
|
||||
// description used to wrap to 4 lines while the switch ate ~52 px on
|
||||
@@ -354,7 +354,7 @@ export function useAuthActionLabels(): Record<string, string> {
|
||||
}
|
||||
|
||||
/**
|
||||
* v1.4.25 W8b — Provider column for the Login-Übersicht.
|
||||
* v1.4.25 — Provider column for the Login-Übersicht.
|
||||
*
|
||||
* The audit log doesn't have a dedicated `provider` field; the action
|
||||
* name itself encodes how the login happened (`auth.login.passkey`,
|
||||
@@ -440,7 +440,7 @@ export function useAuthProviderLabels(): Record<AuthProvider, string> {
|
||||
}
|
||||
|
||||
/**
|
||||
* v1.4.27 B3 — Fold a GeoLite2 `autonomous_system_organization`
|
||||
* v1.4.27 — Fold a GeoLite2 `autonomous_system_organization`
|
||||
* string down to a short DACH carrier label. The MMDB returns the
|
||||
* verbose legal-entity name ("Deutsche Telekom AG", "1&1 Telecom
|
||||
* GmbH", "Telefónica Germany GmbH & Co. OHG"); the admin overview
|
||||
@@ -464,7 +464,7 @@ export function carrierShortLabel(rawAsnOrg: string): string {
|
||||
}
|
||||
|
||||
/**
|
||||
* v1.4.25 W8b — Build the CSV record set for the audit-log export.
|
||||
* v1.4.25 — Build the CSV record set for the audit-log export.
|
||||
*
|
||||
* Pulled out of the section component so the column order, header
|
||||
* mapping, and provider/outcome derivation are reachable from a
|
||||
@@ -474,7 +474,7 @@ export function carrierShortLabel(rawAsnOrg: string): string {
|
||||
* require schema/API changes that are out of scope). `action` and
|
||||
* `details` follow so the export keeps the full triage payload.
|
||||
*
|
||||
* v1.4.27 B3: the `carrier` column lands between `location` and
|
||||
* v1.4.27: the `carrier` column lands between `location` and
|
||||
* `provider` so the geo-derived fields stay grouped.
|
||||
*
|
||||
* `formatTimestamp` is injected (not imported) so the production
|
||||
@@ -486,7 +486,7 @@ export interface AuditCsvEntry {
|
||||
action: string;
|
||||
ipAddress: string | null;
|
||||
location: string | null;
|
||||
// v1.4.27 B3 — both optional so legacy fixture data that predates
|
||||
// v1.4.27 — both optional so legacy fixture data that predates
|
||||
// the column landing still compiles against this shape.
|
||||
carrier?: string | null;
|
||||
asn?: number | null;
|
||||
|
||||
@@ -86,7 +86,7 @@ export const ADMIN_SECTIONS: readonly AdminSection[] = [
|
||||
icon: Radio,
|
||||
group: "system",
|
||||
},
|
||||
// v1.4.36 W4e — About / version / update check folded into Admin.
|
||||
// v1.4.36 — About / version / update check folded into Admin.
|
||||
{
|
||||
slug: "about",
|
||||
titleKey: "admin.section.about.title",
|
||||
@@ -114,7 +114,7 @@ export const ADMIN_SECTIONS: readonly AdminSection[] = [
|
||||
icon: Sparkles,
|
||||
group: "ai",
|
||||
},
|
||||
// v1.18.6 (W9) — server-wide module availability split out of Coach into
|
||||
// v1.18.6 — server-wide module availability split out of Coach into
|
||||
// its own entry, sitting next to it.
|
||||
{
|
||||
slug: "module-availability",
|
||||
@@ -210,7 +210,7 @@ export function AdminShell({ active, children }: AdminShellProps) {
|
||||
// never leave a group heading without an allowed destination below it.
|
||||
const visibleSections = isConfirmedAdmin ? ADMIN_SECTIONS : [];
|
||||
|
||||
// v1.4.34 IW-G — mirror the settings-shell auto-scroll pattern so
|
||||
// v1.4.34 — mirror the settings-shell auto-scroll pattern so
|
||||
// the active chip stays in view when the user lands on a deeper
|
||||
// admin route. Without it the 16-chip strip stays scrolled to the
|
||||
// left and the active chip lives off-screen, reading as a broken nav.
|
||||
@@ -265,7 +265,7 @@ export function AdminShell({ active, children }: AdminShellProps) {
|
||||
/>
|
||||
);
|
||||
|
||||
// v1.4.25 W8 — AuthShell wraps the page in `px-4 py-6 md:px-6`
|
||||
// v1.4.25 — AuthShell wraps the page in `px-4 py-6 md:px-6`
|
||||
// already, so this inner shell only carries the wider max-width.
|
||||
// Previously the duplicate `px-4 py-6 md:px-6 md:py-8` here was
|
||||
// producing visibly more top/bottom whitespace on Settings/Admin
|
||||
@@ -284,7 +284,7 @@ export function AdminShell({ active, children }: AdminShellProps) {
|
||||
would render an always-on scrollbar that the maintainer kept
|
||||
mis-attributing to the api-tokens table below it.
|
||||
|
||||
v1.4.34 IW-G — `snap-x snap-mandatory` plus per-chip
|
||||
v1.4.34 — `snap-x snap-mandatory` plus per-chip
|
||||
`snap-start` lets a swipe-flick land on the next chip's
|
||||
leading edge instead of the in-between dead zone, matching
|
||||
the settings-shell polish. */}
|
||||
@@ -299,7 +299,7 @@ export function AdminShell({ active, children }: AdminShellProps) {
|
||||
href="/admin"
|
||||
aria-current={activeSlug === null ? "page" : undefined}
|
||||
className={cn(
|
||||
// v1.4.25 W8 — chip strip is the primary mobile-admin
|
||||
// v1.4.25 — chip strip is the primary mobile-admin
|
||||
// navigation surface. Pad to WCAG 2.5.5 44 px so the
|
||||
// chips can be tapped without zoom on a Pixel-5.
|
||||
"flex min-h-11 items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
|
||||
@@ -333,7 +333,7 @@ export function AdminShell({ active, children }: AdminShellProps) {
|
||||
href={`/admin/${section.slug}`}
|
||||
aria-current={isActive ? "page" : undefined}
|
||||
className={cn(
|
||||
// v1.4.25 W8 — chip strip is the primary mobile-admin
|
||||
// v1.4.25 — chip strip is the primary mobile-admin
|
||||
// navigation surface. Pad to WCAG 2.5.5 44 px so the
|
||||
// chips can be tapped without zoom on a Pixel-5.
|
||||
"flex min-h-11 items-center gap-2 rounded-full border px-3 py-1.5 text-sm font-medium whitespace-nowrap transition-colors",
|
||||
|
||||
@@ -24,7 +24,7 @@ import { apiGet } from "@/lib/api/api-fetch";
|
||||
* Wraps a string in `truncate` + tooltip so a long token name /
|
||||
* username / permission cannot push the row past its bounds.
|
||||
*
|
||||
* v1.4.19 phase A7 (4th attempt) — earlier fixes (column-hide,
|
||||
* v1.4.19 (4th attempt) — earlier fixes (column-hide,
|
||||
* mobile card-list, mobile-strip `no-scrollbar`) cleared every
|
||||
* scrollbar the maintainer reported except a residual painted bar they kept
|
||||
* seeing at the bottom-right. Production probe confirmed no
|
||||
@@ -62,7 +62,7 @@ function TruncatedCell({
|
||||
}
|
||||
|
||||
/**
|
||||
* v1.4.22 W5 reconcile (S-03) — the revoked / isExpired / active
|
||||
* v1.4.22 — the revoked / isExpired / active
|
||||
* 3-way ternary is identical between the desktop table and the
|
||||
* mobile card list; the only difference is `text-xs` vs `text-2xs`.
|
||||
* Centralise so the two surfaces stay in lock-step.
|
||||
@@ -107,7 +107,7 @@ function TokenStatusBadge({
|
||||
* "iOS auto-login · 05.05.2026 19:46" while leaving any non-ISO suffix
|
||||
* (manual names, device fingerprints, etc.) untouched.
|
||||
*/
|
||||
// v1.4.22 D / D-CR-M-03 — broaden the ISO match to include non-Z
|
||||
// v1.4.22 — broaden the ISO match to include non-Z
|
||||
// offsets (e.g. `+02:00`, `-05:30`). The previous regex only matched
|
||||
// UTC (`Z`), so a token name carrying a local-tz timestamp slipped
|
||||
// through unformatted and rendered the raw `2026-05-05T19:46:20.603+02:00`
|
||||
@@ -139,7 +139,7 @@ function formatTokenName(name: string, fmt: Formatters): string {
|
||||
export function ApiTokenOverviewSection() {
|
||||
const { t } = useTranslations();
|
||||
const fmt = useFormatters();
|
||||
// v1.4.19 phase A7 — `/admin/api-tokens` is a dedicated single-
|
||||
// v1.4.19 — `/admin/api-tokens` is a dedicated single-
|
||||
// section route. The previous pattern carried a "Collapse / Expand"
|
||||
// toggle as an escape hatch from the v1.4 shared admin page where
|
||||
// 13 sections lived together, but on a route that only renders this
|
||||
@@ -166,7 +166,7 @@ export function ApiTokenOverviewSection() {
|
||||
<Loader2 className="text-muted-foreground h-5 w-5 animate-spin motion-reduce:animate-none" />
|
||||
</div>
|
||||
) : !tokens?.length ? (
|
||||
// v1.4.15 phase-C5: empty state explains where tokens come
|
||||
// v1.4.15: empty state explains where tokens come
|
||||
// from (native client sign-in / Settings → Account) so a
|
||||
// fresh admin doesn't think they need to create them here.
|
||||
<EmptyState
|
||||
@@ -253,7 +253,7 @@ export function ApiTokenOverviewSection() {
|
||||
<td className="px-3 py-2 text-right">
|
||||
<TokenStatusBadge token={token} size="sm" />
|
||||
</td>
|
||||
{/* v1.4.22 C2 (5th attempt) — drop
|
||||
{/* v1.4.22 (5th attempt) — drop
|
||||
`whitespace-nowrap` on the date cells. The
|
||||
v1.4.19 A7 probe confirmed `formatDateTime`
|
||||
renders "05.05.2026, 21:46" (~110px) which
|
||||
|
||||
@@ -273,7 +273,7 @@ export function AppLogPreviewSection() {
|
||||
description={t("admin.section.app-logs.emptyDescription")}
|
||||
/>
|
||||
) : (
|
||||
// v1.4.27 MB5 — keep the table scroll container, but lift the
|
||||
// v1.4.27 — keep the table scroll container, but lift the
|
||||
// "showing X of Y" summary line out into a sibling `<div>` so
|
||||
// the meta info stays reachable on narrow viewports even when
|
||||
// the table is scrolled horizontally. The refresh control was
|
||||
|
||||
@@ -1132,7 +1132,7 @@ export function BackupsSection() {
|
||||
return (
|
||||
<SettingsCard>
|
||||
{recentProof.dialog}
|
||||
{/* v1.18.1 E3 — the snapshot count leads (numbers first) and the
|
||||
{/* v1.18.1 — the snapshot count leads (numbers first) and the
|
||||
"Run now" button follows. */}
|
||||
<SettingsCardHeader
|
||||
icon={Database}
|
||||
@@ -1248,7 +1248,7 @@ export function BackupsSection() {
|
||||
onRetry={() => void refetch()}
|
||||
/>
|
||||
) : rows.length === 0 ? (
|
||||
// v1.4.15 phase-C5: replace bare text with the EmptyState
|
||||
// v1.4.15: replace bare text with the EmptyState
|
||||
// primitive. The header already exposes "Backup now" but a
|
||||
// brand-new admin lands inside the card and benefits from a
|
||||
// duplicate CTA right next to the explanation.
|
||||
|
||||
@@ -63,7 +63,7 @@ export function CoachFeedbackSection() {
|
||||
const buckets = summary?.coachBuckets ?? [];
|
||||
const hasData = !!summary && buckets.length > 0;
|
||||
|
||||
// v1.4.25 W8 — keep the section's outer card + header rendered across
|
||||
// v1.4.25 — keep the section's outer card + header rendered across
|
||||
// every query state (loading / error / empty / data) so the heading
|
||||
// baseline stays at a constant Y-offset. Previously the loading branch
|
||||
// returned a thin flex-row stub and the error branch a p-4 alert with
|
||||
|
||||
@@ -87,7 +87,7 @@ export function DangerZoneSection() {
|
||||
});
|
||||
|
||||
return (
|
||||
// v1.18.10 (W7) — the card SURFACE is neutral like every other admin /
|
||||
// v1.18.10 — the card SURFACE is neutral like every other admin /
|
||||
// settings section (`SettingsCard`: bg-card + border-border): a red card
|
||||
// edge reads as alarming, not premium. The danger signal lives ONLY in
|
||||
// the destructive delete button + its typed-confirmation dialog, which
|
||||
|
||||
@@ -25,7 +25,7 @@ function clamp(value: number, min: number, max: number): number {
|
||||
return Math.min(max, Math.max(min, value));
|
||||
}
|
||||
|
||||
// v1.4.27 MB7 / CF-52 — the in-file `NATIVE_SELECT_CLASS` constant
|
||||
// v1.4.27 — the in-file `NATIVE_SELECT_CLASS` constant
|
||||
// retired; the shared `<NativeSelect>` primitive owns the visual
|
||||
// contract now. The admin copy previously diverged on the
|
||||
// `focus-visible:ring-[3px]` weight; the shared primitive pins
|
||||
@@ -125,7 +125,7 @@ export function GeneralSettingsSection() {
|
||||
disabled={updateSettings.isPending}
|
||||
/>
|
||||
|
||||
{/* v1.4.27 MB7 / CF-56 — match the SettingsToggle stacking
|
||||
{/* v1.4.27 — match the SettingsToggle stacking
|
||||
contract: stack on `<sm`, side-by-side on `sm+`. */}
|
||||
<div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div className="min-w-0">
|
||||
@@ -153,7 +153,7 @@ export function GeneralSettingsSection() {
|
||||
</NativeSelect>
|
||||
</div>
|
||||
|
||||
{/* v1.4.25 W7 — server-wide default timezone for new
|
||||
{/* v1.4.25 — server-wide default timezone for new
|
||||
signups. Existing accounts are NOT touched; this drives
|
||||
only the registration handler's fallback when the
|
||||
client doesn't send a browser-detected zone. */}
|
||||
|
||||
@@ -71,13 +71,13 @@ function rangeToSince(range: DateRangePreset): string | undefined {
|
||||
export function LoginOverviewSection() {
|
||||
const { t } = useTranslations();
|
||||
const { user } = useAuth();
|
||||
// v1.4.25 W7 — every CSV-emitted timestamp uses the admin's display
|
||||
// v1.4.25 — every CSV-emitted timestamp uses the admin's display
|
||||
// timezone so the resulting `2026-05-11T11:05:00+02:00` cell stays
|
||||
// legible after Excel/LibreOffice strip the `Z` suffix from the
|
||||
// legacy UTC export.
|
||||
const userTz = user?.timezone ?? DEFAULT_TIMEZONE;
|
||||
|
||||
// v1.4.25 W8b — the section used to wrap its body in a
|
||||
// v1.4.25 — the section used to wrap its body in a
|
||||
// collapse/expand toggle. Since v1.5 phase-4b moved this to a
|
||||
// dedicated `/admin/login-overview` route (the only thing on the
|
||||
// page), the toggle was pure clutter: visiting the page already
|
||||
@@ -88,7 +88,7 @@ export function LoginOverviewSection() {
|
||||
// Quick-filter pill (kept from the v1.4.x UI for one-tap "show failed").
|
||||
const [filter, setFilter] = useState<"all" | "failed">("all");
|
||||
|
||||
// v1.4.16 phase B4 — deeper filter/pagination/export.
|
||||
// v1.4.16 — deeper filter/pagination/export.
|
||||
const [actor, setActor] = useState("");
|
||||
const [actionFilter, setActionFilter] = useState<string>("");
|
||||
const [target, setTarget] = useState("");
|
||||
@@ -183,7 +183,7 @@ export function LoginOverviewSection() {
|
||||
user: t("admin.userColumn"),
|
||||
ip: t("admin.ip"),
|
||||
location: t("admin.location"),
|
||||
// v1.4.27 B3 — `admin.carrier` is shipped by bucket B6. The
|
||||
// v1.4.27 — `admin.carrier` is shipped by bucket B6. The
|
||||
// `t()` helper falls back to the raw key string when the
|
||||
// translation row hasn't landed yet, so the CSV stays valid
|
||||
// through the staggered B3 → B6 release.
|
||||
@@ -404,7 +404,7 @@ export function LoginOverviewSection() {
|
||||
}
|
||||
/>
|
||||
) : (
|
||||
// v1.4.27 MB5 — the audit table itself stays in an
|
||||
// v1.4.27 — the audit table itself stays in an
|
||||
// `overflow-x-auto` scroll container so wide rows can pan
|
||||
// horizontally on phones, but the pagination + summary line
|
||||
// moved out into a sibling `<div>` below so the prev/next
|
||||
@@ -432,7 +432,7 @@ export function LoginOverviewSection() {
|
||||
{t("admin.ip")}
|
||||
</th>
|
||||
{/*
|
||||
v1.4.25 W8b — Standort column. Previously rendered
|
||||
v1.4.25 — Standort column. Previously rendered
|
||||
`text-right`, which on wide audit tables let the
|
||||
`Berlin, DE` label drift to the table edge and
|
||||
blend into the timestamp gutter. Left-aligning it
|
||||
|
||||
@@ -89,7 +89,7 @@ export function RecentAuditPreview() {
|
||||
onRetry={() => void refetch()}
|
||||
/>
|
||||
) : entries.length === 0 ? (
|
||||
// v1.4.15 phase-C5: compact + plain so it nests inside the
|
||||
// v1.4.15: compact + plain so it nests inside the
|
||||
// overview card without doubling the dashed border. Reuses
|
||||
// the existing audit-empty string.
|
||||
<EmptyState
|
||||
|
||||
@@ -208,7 +208,7 @@ export function RemindersSection() {
|
||||
return (
|
||||
<>
|
||||
<SettingsCard>
|
||||
{/* v1.4.22 D / F-58 — icon swap so the section header matches
|
||||
{/* v1.4.22 — icon swap so the section header matches
|
||||
the admin-shell nav tile (Bell). Clock now lives on the
|
||||
timing chips inline instead of competing as the page icon. */}
|
||||
<SettingsCardHeader
|
||||
@@ -302,7 +302,7 @@ export function RemindersSection() {
|
||||
{reminderCheck.data?.medications &&
|
||||
reminderCheck.data.medications.length > 0 && (
|
||||
<div className="space-y-2">
|
||||
{/* v1.4.33 IW9 — h4 -> h2 so the page outline stays
|
||||
{/* v1.4.33 — h4 -> h2 so the page outline stays
|
||||
sequential (parent admin SectionFrame ships <h1>). */}
|
||||
<h2 className="text-sm font-medium">
|
||||
{t("admin.reminderCheckResults")}
|
||||
|
||||
@@ -21,7 +21,7 @@ export const ADMIN_SECTION_SLUGS = [
|
||||
// for one coherent coach-quality concern read as clutter; one card opens
|
||||
// the full picture.
|
||||
"coach",
|
||||
// v1.18.6 (W9) — server-wide module availability is its own section now
|
||||
// v1.18.6 — server-wide module availability is its own section now
|
||||
// (was stacked under Coach). It gates every module, not just the coach,
|
||||
// so it reads better next to Coach than buried inside it.
|
||||
"module-availability",
|
||||
@@ -41,7 +41,7 @@ export const ADMIN_SECTION_SLUGS = [
|
||||
// danger zone.
|
||||
"encryption",
|
||||
"danger-zone",
|
||||
// v1.4.36 W4e — About / version / update check folded into Admin
|
||||
// v1.4.36 — About / version / update check folded into Admin
|
||||
// Console. Lives at /admin/about; the legacy /settings/about route
|
||||
// is unlinked from the user-card dropdown.
|
||||
"about",
|
||||
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
type FailingQueue,
|
||||
} from "./_shared";
|
||||
|
||||
// v1.4.16 phase B3: Recharts is ~108 KiB Brotli — defer-load the host
|
||||
// v1.4.16: Recharts is ~108 KiB Brotli — defer-load the host
|
||||
// metrics chart so the system-status page only ships it when an admin
|
||||
// actually opens this view. Splitting at the wrapper boundary (instead
|
||||
// of per-primitive) keeps Recharts' `findAllByType` reconciliation
|
||||
@@ -247,7 +247,7 @@ export function SystemStatusSection() {
|
||||
tone="success"
|
||||
/>
|
||||
)}
|
||||
{/* v1.4.27 R5 — offline GeoLite2 availability, read from the
|
||||
{/* v1.4.27 — offline GeoLite2 availability, read from the
|
||||
admin status rather than the public /api/version. */}
|
||||
<StatusItem
|
||||
icon={Map}
|
||||
|
||||
@@ -85,7 +85,7 @@ export function SystemStatusSummary() {
|
||||
tone={keyBackup.due ? "warning" : "success"}
|
||||
/>
|
||||
)}
|
||||
{/* v1.4.27 R5 — surface the offline-geo state so the maintainer
|
||||
{/* v1.4.27 — surface the offline-geo state so the maintainer
|
||||
spots the missing GeoLite2 databases without crawling logs.
|
||||
Read from the admin status, not the public /api/version. */}
|
||||
<StatusItem
|
||||
|
||||
@@ -329,7 +329,7 @@ export function UserManagementSection() {
|
||||
|
||||
{filteredUsers ? (
|
||||
filteredUsers.length === 0 ? (
|
||||
// v1.4.15 phase-C5: dedicated empty state. The previous build
|
||||
// v1.4.15: dedicated empty state. The previous build
|
||||
// rendered an empty `<tbody>` so an admin filter that returned
|
||||
// no rows produced a blank rectangle; the icon + filter-aware
|
||||
// copy + "Show all users" CTA make the state explicit.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* `<VersionTileSection>` — admin-overview version card.
|
||||
*
|
||||
* v1.15.12 H1 — a dedicated tile that surfaces the running build's
|
||||
* v1.15.12 — a dedicated tile that surfaces the running build's
|
||||
* version, short build SHA, and build timestamp, plus a best-effort
|
||||
* "update available" hint computed against the latest GitHub release
|
||||
* tag. The release comparison reuses the existing
|
||||
|
||||
Reference in new issue
Block a user