gitoria

ident

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#4ident#40 the code step is one component (components/codestep.hl) placed by home.hl and embed.hl; its verify face, setCode, browserZone and verify call exist once (#40.2)

mergedf3-codestep → mainby Caramboleyo · head 51e387f2

  • successKunibert: kunibertKunibert review

Verdicts

  • Kunibertcommented

People’s approvals

Reviews

  1. Kunibertappcommented51e387f2 · current head · 2026-11-09 10:22:31 UTC

    The extraction leaves Home’s account-derived title stale after successful sign-in. The diff also breaks documented parameter typing, helper sharing, and component styling rules.

    Correctness (1 new, 0 still open)

    One minor regression: sign-in no longer refreshes Home’s session-derived account state and title.

    Not on changed lines:

    • 🔹 Minor · Correctness: no rule: Refresh Home’s account-derived state after sign-in (components/home.hl:274) Moving verifyCode into codestep.hl bypasses Home’s session projection: plugins/web/WebFramework.hl only synchronizes the face-owning component, which now declares no session member. This callback leaves me and __title unchanged, so successful /code sign-in keeps the title “ident | sign in” until another Home face or reload. Explicitly refresh the host’s account-derived state and title.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (5 new, 0 still open)

    Found violations of L10 parameter typing, L16 shared-helper reuse, and F14 component styling.

    Not on changed lines:

    • 🔹 Minor · Standards: L10: Type the code-step parameters (components/codestep.hl:29) .kunibert/HL-STANDARD.md L10 says “Type every function parameter.” v here is untyped, as are the parameters of verify (34), verifyCode (50), and the View handlers (15, 20, 24). Declare their types and remove unused event parameters.
    • 🔹 Minor · Standards: L10: Type the home verification callback parameter (components/home.hl:274) .kunibert/HL-STANDARD.md L10 says “Type every function parameter.” The new callback leaves r untyped despite receiving the known verification-result record. Declare it as Hybrid r.
    • 🔹 Minor · Standards: L10: Type the embed verification callback parameter (components/embed.hl:109) .kunibert/HL-STANDARD.md L10 says “Type every function parameter.” The new callback leaves r untyped despite receiving the known verification-result record. Declare it as Hybrid r.
    • 🔹 Minor · Standards: L16: Share the browser time-zone helper (components/codestep.hl:32) This definition duplicates browserZone in components/home.hl:238, which is still used by useBrowserZone. .kunibert/HL-STANDARD.md L16 requires shared helpers in lib/util.hl or lib/<topic>-helpers.hl and says “never copy them.” Move the helper to one shared definition and import it from both components.
    • 🔹 Minor · Standards: F14: Put code-step styling in its own Style block (components/codestep.hl:20) .kunibert/HL-STANDARD.md F14 says “A component’s look lives in its own Style { }.” The new component has no Style block; its code-specific #code styling remains in components/styles.hl:43. Move that rule into codestep.hl’s Style block.

    Gates: not run

Threads

No inline comments yet.

Conversation

Nobody has written here yet.

Only the owner and the members of this repository can comment here.