gitoria

ident

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#5ident#40 home.hl is split into components, one per area: email step, identity form, identity list, app identity choice, time zone; each moves its faces with it, the email step is shared with embed.hl (#40.3, rest of #40.2)

mergedf4-homesplit → mainby Caramboleyo · head 07d1717c

  • successKunibert: kunibertKunibert review

Verdicts

  • Kunibertcommented

People’s approvals

Reviews

  1. Kunibertappcommented07d1717c · current head · 2026-11-09 10:57:46 UTC

    No new functional regression was identified in the component extraction. The changed code has several violations of the required Hybriel standard.

    Correctness (0 new, 0 still open)

    The parent callbacks, authorization checks and face response shapes remain consistent with the previous implementation.

    Spec (0 new, 0 still open)

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

    Standards (12 new, 0 still open)

    The changed code violates documented rules for parameter types, mutable declarations, error handling, URL state, form controls, styling and update delivery.

    Not on changed lines:

    • 🔹 Minor · Standards: L5: Handle expected request failures as values (components/emailstep.hl:26) .kunibert/HL-STANDARD.md L5 requires expected failures to use value forms or on Error(e). A rejected fetch or failed JSON decode aborts before the null check, leaving no error message. Use a value form or an Error handler that calls $parent.codeFailed.
    • 🔹 Minor · Standards: F4: Put the selected identity editor in the URL (components/home.hl:208) .kunibert/HL-STANDARD.md F4 requires “Every state a user can return to” to be in the URL. openEdit and openNew only change members, so reloading loses the editor and selected identity. Represent new/edit state with a route parameter or route.query.
    • 🔹 Minor · Standards: F15: Publish account data changes to other tabs (components/identityform.hl:101) .kunibert/HL-STANDARD.md F15 requires later server-data changes to use emit client with an audience for other tabs. The extracted add/edit, delete and time-zone faces only return snapshots to their caller, leaving other open views stale. Publish account-scoped updates after successful writes and handle them in the host.
    • 🔹 Minor · Standards: F14: Move component-specific styles with their views (components/identityform.hl:25) .kunibert/HL-STANDARD.md F14 says “A component's look lives in its own Style { }”. Identity-form and avatar styling remains in components/styles.hl, alongside selectors specific to components/identitylist.hl, components/chooseidentity.hl and components/timezone.hl. Move those component-specific rules into the corresponding Style blocks.
    • 🔹 Minor · Standards: F7: Name the avatar file control (components/identityform.hl:50) .kunibert/HL-STANDARD.md F7 requires “named, labelled controls”. The avatar file input has a label and id but no name. Add a name attribute.
    • 🔹 Minor · Standards: L2: Remove unnecessary let declarations from extracted faces (components/identityform.hl:97) .kunibert/HL-STANDARD.md L2 says “Use let only for a name reassigned later”. These new files have no me member to shadow, and the local value is never reassigned. Use plain declarations at components/identityform.hl:97 and :105, components/chooseidentity.hl:52, components/identitylist.hl:61 and components/timezone.hl:61.
    • 🔹 Minor · Standards: L10: Type the identity-choice parameters (components/chooseidentity.hl:35) .kunibert/HL-STANDARD.md L10 says “Type every function parameter”. choose(id) and the face's rid and identity arguments are strings but remain untyped. Add String annotations and apply the rule to the new handler parameters.
    • 🔹 Minor · Standards: L10: Type the email-step parameters (components/emailstep.hl:22) .kunibert/HL-STANDARD.md L10 says “Type every function parameter”. setEmail(v) receives a string but leaves it untyped; the new event parameters are also untyped. Annotate the parameters and remove the unused argument from ask.
    • 🔹 Minor · Standards: L10: Type the new host callback parameters (components/home.hl:208) .kunibert/HL-STANDARD.md L10 says “Type every function parameter”. openEdit(id) leaves its string id untyped, and formSaved and identitiesDeleted leave their rows arguments untyped. Add the corresponding parameter annotations.
    • 🔹 Minor · Standards: L10: Type the identity-form parameters (components/identityform.hl:64) .kunibert/HL-STANDARD.md L10 says “Type every function parameter”. setF leaves both string parameters untyped, and the new save handlers, faces and DOM handlers also have untyped parameters. Annotate them, including the string id in editIdentity, and remove unused event arguments.
    • 🔹 Minor · Standards: L10: Type the identity-list parameters (components/identitylist.hl:38) .kunibert/HL-STANDARD.md L10 says “Type every function parameter”. The id parameters in rowOf, remove and dropIdentity are strings but remain untyped. Add their annotations and address the untyped event and face parameters.
    • 🔹 Minor · Standards: L10: Type the time-zone parameters (components/timezone.hl:30) .kunibert/HL-STANDARD.md L10 says “Type every function parameter”. setTz, knownZone and changeTimeZone leave their string arguments untyped. Annotate the parameters throughout the new handlers and remove unused event arguments.

    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.