kanban-dev-webapp/scripts/_dbg.ts
Dave 19e9dc29ac feat(dashboard): remove session-clustering paragraph from methodology
The methodology panel still explains 'what hours are' and 'what they cannot
see'. The session-clustering detail — the constants — was the part a client
might want to interrogate rather than just be told. With this removed, the
constants are still stored inside the payload (so a future question can be
answered) but the visible panel is shorter.

Also dropped the now-unused destructured local in Methodology().
2026-09-16 15:30:46 +02:00

18 lines
662 B
TypeScript

import PocketBase from "pocketbase";
const PB_URL = process.env.NEXT_PUBLIC_PB_URL!;
async function main() {
const pb = new PocketBase(PB_URL);
pb.autoCancellation(false);
await pb.collection("_superusers").authWithPassword(
process.env.PB_SUPERUSER_EMAIL!,
process.env.PB_SUPERUSER_PASSWORD!
);
const p = await pb.collection("projects").getOne("28eagx0bpf805p4");
console.log("type:", typeof p);
console.log("keys:", Object.keys(p));
console.log("session_gap_minutes:", (p as Record<string, unknown>).session_gap_minutes);
console.log("raw:", JSON.stringify(p, null, 2));
}
main().catch(e => { console.error(e); process.exit(1); });