From 7b8fa4a8a0cef2ebcfdc9f120e6fdf68cb859073 Mon Sep 17 00:00:00 2001 From: mrhid6 Date: Wed, 29 Jul 2026 10:35:07 +0100 Subject: [PATCH] feat: Updated hq login page --- .claude/settings.json | 24 ++++++++++ .gitattributes | 1 + .gitignore | 3 +- adminsite/app/login/page.tsx | 90 +++++++++++++++++++++++------------- claude.md | 10 ++++ 5 files changed, 94 insertions(+), 34 deletions(-) create mode 100644 .claude/settings.json create mode 100644 .gitattributes diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..54ea0e8 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,24 @@ +{ + "hooks": { + "PreToolUse": [ + { + "matcher": "Bash|Grep", + "hooks": [ + { + "type": "command", + "command": "C:/Python314/Scripts/graphify.EXE hook-guard search" + } + ] + }, + { + "matcher": "Read|Glob", + "hooks": [ + { + "type": "command", + "command": "C:/Python314/Scripts/graphify.EXE hook-guard read" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..acc1967 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +graphify-out/graph.json merge=graphify diff --git a/.gitignore b/.gitignore index a0ab227..fa0ea7b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ installer/*.msi installer/nssm.zip installer/checksums-msi.txt .next -*.tsbuildinfo \ No newline at end of file +*.tsbuildinfo +graphify-out \ No newline at end of file diff --git a/adminsite/app/login/page.tsx b/adminsite/app/login/page.tsx index dc30b16..ed18e08 100644 --- a/adminsite/app/login/page.tsx +++ b/adminsite/app/login/page.tsx @@ -44,46 +44,70 @@ export default function LoginPage() { return (
-

Sign in

-
- setEmail(e.target.value)} - /> - setPassword(e.target.value)} - error={error ?? undefined} - /> -
); } function Main({ children }: { children: React.ReactNode }) { - return
{children}
; + return ( +
+ {children} +
+ ); } diff --git a/claude.md b/claude.md index de66592..16a0d79 100644 --- a/claude.md +++ b/claude.md @@ -698,3 +698,13 @@ git push origin main # server + web deploy - **root only** — manages `/root/.ssh/authorized_keys`; no per-user key management. - **Windows agents are second-class by design** — register, heartbeat, run steps, report inventory; no `authorized_keys` management. - **Deletion lives in the control plane** — admin sends the warnings because it knows the billing address; the control plane performs the delete because it is the only service that knows which collections carry `instance_id`. Mirroring that list into admin would drift, and a drift there deletes the wrong rows. + +## graphify + +This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships. + +Rules: +- For codebase questions, first run `graphify query ""` when graphify-out/graph.json exists. Use `graphify path "" ""` for relationships and `graphify explain ""` for focused concepts. These return a scoped subgraph, usually much smaller than GRAPH_REPORT.md or raw grep output. +- If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing. +- Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context. +- After modifying code, run `graphify update .` to keep the graph current (AST-only, no API cost).