ident
All repositories: gitoria
#2ident#41 ident#43 ident#44 login error page as a component (same status codes and text, pixel-identical), declarations and route wiring cleaned up
mergedf1b-cleanup → mainby · head edcfce3f
- successKunibert: kunibertKunibert review
Verdicts
- Kunibertcommented
People’s approvals
Reviews
Kunibertappcommentededcfce3f · current head · 2026-11-09 06:25:03 UTC
The error-page conversion loses language metadata and weakens the browser’s effective referrer policy. New helper signatures also violate the required parameter-typing rule.
Correctness (2 new, 0 still open)
Two minor regressions affect accessibility and referrer handling on error pages.
Not on changed lines:
- 🔹 Minor · Correctness: no rule: Preserve the error page’s effective referrer policy (
lib/api-helpers.hl:76) srv.page injects project.hl’s referrer meta tag with same-origin, which overrides the no-referrer response header. Login query strings and invite tokens can consequently appear in same-origin Referer headers. Add a page-specific no-referrer meta override. - 🔹 Minor · Correctness: no rule: Preserve the error page’s language declaration (
components/error.hl:59) The previous HTML declared lang="en", while srv.page emits a bare <html> and this component supplies no language declaration. Screen readers can therefore pronounce these English messages using the wrong language. Add lang = 'en' to the error wrapper.
Spec (0 new, 0 still open)
No ticket or issue is linked, so there are no spec findings.
Standards (4 new, 0 still open)
New or expanded function signatures violate L10 in four changed files.
Not on changed lines:
- 🔹 Minor · Standards: L10: Type the extracted session-helper parameters (
lib/accounts.hl:99) .kunibert/HL-STANDARD.md L10 requires “Type every function parameter.” Both signedOutAudience and dropSessionUser introduce untyped parameters; declare their account, session and user argument types. - 🔹 Minor · Standards: L10: Type the expanded errorPage signature (
lib/api-helpers.hl:74) .kunibert/HL-STANDARD.md L10 requires “Type every function parameter.” All six parameters remain untyped in this expanded signature. Declare their types, including Number status and String title/message, while preserving the server reference. - 🔹 Minor · Standards: L10: Type the new route-callback parameters (
lib/api.hl:24) .kunibert/HL-STANDARD.md L10 requires “Type every function parameter.” errorAnswer, codeRoute, signinCodeRoute, welcomeRoute, embedSigninRoute and notFoundRoute all omit parameter types. Annotate each added signature. - 🔹 Minor · Standards: L10: Type the envString parameters (
lib/util.hl:8) .kunibert/HL-STANDARD.md L10 requires “Type every function parameter.” name, fallback and keepEmpty are untyped; declare their String/String/Boolean types.
Gates: not run
- 🔹 Minor · Correctness: no rule: Preserve the error page’s effective referrer policy (
Threads
No inline comments yet.
Conversation
Nobody has written here yet.
Only the owner and the members of this repository can comment here.