← Back to Pull requests

Bump djLint to 1.46 #20573

Open
JacobCoffee opened this pull request with 11982 lines diff across 132 files
View on GitHub
JacobCoffee JacobCoffee commented on Sep 21, 2026 21:34 UTC
Author

Updates djLint to 1.46.1 and unpuns it

Remove the upper version limit. Keep the exact version in the lockfile.

  • Apply the new template format. Keep double quotes; single quotes change more files.

  • Remove positive tabindex values to meet H046. The account forms now use document order. I checked in browser, tab order is okay i feel (username->pass->show pass now is username->show pass->pass)

  • Add button types. fix dupe IDs and invalid paragraphs.

  • Remove unnecessary gettext escapes. (they escaped the innner double quotes but now they are single quotes outside so the href double quotes dont need escapes)

  • Add quotes around link attributes, needed re-translate
  • Diff: 11982 lines (+6005 / -5977) across 132 files Reviewer: miketheman Review duration: 105886m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.79) × (1 − Review Confidence (0.77)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.79 · 11982 lines diff across 132 files
    0.79
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.60 · 5 substantive comment(s)
    0.60
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    76%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    13 items
    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Sep 21, 2026 21:34 UTC
    Bot

    You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

    miketheman miketheman commented on code on Sep 22, 2026 13:49 UTC
    Code Review
    requirements/lint.in:1
    @@ -3,10 +3,7 @@
     ruff<0.16
     ast-grep-cli
     codespell
    -# TODO: 1.40 onwards fixes indentation after multi-line `{% trans %}` blocks,
    -# rewrites quotes inside template tags and adds H025, H036, H043, H046, H050
    -# and H053. Upgrade in its own PR.
    -djlint<1.40
    +djlint<1.47

    Drop the pin now that it's updated

    miketheman miketheman commented on code on Sep 22, 2026 13:51 UTC
    Code Review
    warehouse/templates/accounts/login.html:1
    @@ -35,13 +35,12 @@ <h1 class="page-title">{% trans title=title %}Log in to {{ title }}{% endtrans %
                 {% endif %}
               </label>
               {{ form.username(placeholder=gettext("Your username") ,
    -          autocapitalize="off",
    -          autocomplete="username",
    -          spellcheck="false",
    -          required="required",
    -          class_="form-group__field",
    -          aria_describedby="username-errors",
    -          tabindex="1",

    Why are the tab indexes removed? Nothing noted about their removal in either commit message or PR description.

    miketheman miketheman commented on code on Sep 22, 2026 14:04 UTC
    Code Review
    warehouse/templates/accounts/invite-confirmation.html:1
    @@ -18,26 +18,26 @@
                    type="hidden"
                    value="{{ request.session.get_csrf_token() }}">
             <span class="form-group__text">
    -          {% trans project_name=project_name, role_name=desired_role, project_link=request.route_url('packaging.project', name=project_name) %}
    +          {% trans project_name=project_name, role_name=desired_role, project_link=request.route_url("packaging.project", name=project_name) %}

    These changes appear to be a newer quote_style setting - set it to single to avoid churn

    miketheman miketheman commented on code on Sep 22, 2026 14:05 UTC
    Code Review
    warehouse/templates/accounts/register.html:1
    @@ -33,218 +33,222 @@ <h1 class="page-title">{% trans title=title %}Create an account on {{ title }}{%
               <li>{% trans title=title %}Do not use {{ title }} as a file host, or split large files across releases.{% endtrans %}</li>
             </ul>
             <p>
    -          {% trans aup="https://policies.python.org/pypi.org/Acceptable-Use-Policy/", security_page=request.route_path('security'), external=gettext("External link") %}
    +          {% trans aup="https://policies.python.org/pypi.org/Acceptable-Use-Policy/", security_page=request.route_path("security"), external=gettext("External link") %}
               For more information, please read the full <a href="{{ aup }}"
         title="{{ external }}"
         target="_blank"
         rel="noopener">Acceptable Use Policy</a>. If you are a security researcher, refer to our <a href="{{ security_page }}">published security policy</a> and coordinate through proper disclosure channels.
    -        {% endtrans %}
    -      </p>
    -    </aside>
    -    <hr>
    -    <dialog data-action="cancel->email-confirmation#close"
    -            data-email-confirmation-target="dialog">
    -      <form method="dialog">
    -        <p>
    -          {% trans %}Please confirm that your email address is <strong data-email-confirmation-target="email"></strong>.{% endtrans %}
    +          {% endtrans %}
             </p>
    -        <button class="button button--primary"
    -                data-action="click->email-confirmation#confirm">{% trans %}Confirm{% endtrans %}</button>
    -        <button class="button" formmethod="dialog" value="cancel">{% trans %}Cancel{% endtrans %}</button>
    -      </form>
    -    </dialog>
    -    <form method="post"
    -          action="{{ request.current_route_path() }}"
    -          data-email-confirmation-target="form">
    -      <input name="csrf_token"
    -             type="hidden"
    -             value="{{ request.session.get_csrf_token() }}">
    -      {% if form.form_errors %}
    -        <ul class="form-errors" role="alert">
    -          {% for error in form.form_errors %}<li>{{ error }}</li>{% endfor %}
    -        </ul>
    -      {% endif %}
    -      <div class="form-group">
    -        <label for="full_name" class="form-group__label">
    -          {% trans %}Name{% endtrans %}
    -          {% if form.full_name.flags.required %}
    -            <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    -          {% endif %}
    -        </label>
    -        {{ form.full_name(placeholder=gettext("Your name") ,
    -        autocomplete="name",
    -        autocapitalize="off",
    -        spellcheck="false",
    -        class_="form-group__field",
    -        aria_describedby="name-errors",
    -        ) }}
    -        <div id="name-errors">
    -          {% if form.full_name.errors %}
    -            <ul class="form-errors" role="alert">
    -              {% for error in form.full_name.errors %}<li>{{ error }}</li>{% endfor %}
    -            </ul>
    -          {% endif %}
    -        </div>
    -      </div>
    -      <div class="form-group">
    -        <label for="email" class="form-group__label">
    -          {% trans %}Email address{% endtrans %}
    -          {% if form.email.flags.required %}
    -            <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    -          {% endif %}
    -        </label>
    -        {{ form.email(placeholder=gettext("Your email address") ,
    -        autocomplete="email",
    -        spellcheck="false",
    -        required="required",
    -        class_="form-group__field",
    -        aria_describedby="email-errors",
    -        ) }}
    -        <div id="email-errors">
    -          {% if form.email.errors %}
    -            <ul class="form-errors" role="alert">
    -              {% for error in form.email.errors %}<li>{{ error }}</li>{% endfor %}
    -            </ul>
    -          {% endif %}
    -        </div>
    -      </div>
    -      {# The following is a honeypot field and is hidden from the user #}
    -      <div class="form-group confirm-form">
    -        <label for="confirm_form" class="form-group__label">{% trans %}Confirm form{% endtrans %}</label>
    -        {{ form.confirm_form(class="form-group__field",
    -                aria_hidden='true',) }}
    -      </div>
    -      <div class="form-group">
    -        <label for="username" class="form-group__label">
    -          {% trans %}Username{% endtrans %}
    -          {% if form.username.flags.required %}
    -            <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    -          {% endif %}
    -        </label>
    -        {{ form.username(placeholder=gettext("Select a username") ,
    -        autocapitalize="off",
    -        autocomplete="username",
    -        spellcheck="false",
    -        required="required",
    -        class_="form-group__field",
    -        aria_describedby="username-errors",
    -        ) }}
    -        <div id="username-errors">
    -          {% if form.username.errors %}
    -            <ul class="form-errors" role="alert">
    -              {% for error in form.username.errors %}<li>{{ error }}</li>{% endfor %}
    -            </ul>
    -          {% endif %}
    -        </div>
    -      </div>
    -      <div>
    +      </aside>
    +      <hr>
    +      <dialog data-action="cancel->email-confirmation#close"
    +              data-email-confirmation-target="dialog">
    +        <form method="dialog">
    +          <p>
    +            {% trans %}Please confirm that your email address is <strong data-email-confirmation-target="email"></strong>.{% endtrans %}
    +          </p>
    +          <button type="button"
    +                  class="button button--primary"
    +                  data-action="click->email-confirmation#confirm">{% trans %}Confirm{% endtrans %}</button>
    +          <button type="submit"
    +                  class="button"
    +                  formmethod="dialog"
    +                  value="cancel">{% trans %}Cancel{% endtrans %}</button>
    +        </form>
    +      </dialog>
    +      <form method="post"
    +            action="{{ request.current_route_path() }}"
    +            data-email-confirmation-target="form">
    +        <input name="csrf_token"
    +               type="hidden"
    +               value="{{ request.session.get_csrf_token() }}">
    +        {% if form.form_errors %}
    +          <ul class="form-errors" role="alert">
    +            {% for error in form.form_errors %}<li>{{ error }}</li>{% endfor %}
    +          </ul>
    +        {% endif %}
             <div class="form-group">
    -          <div class="split-layout">
    -            <label for="new_password" class="form-group__label">
    -              {% trans %}Password{% endtrans %}
    -              {% if form.new_password.flags.required %}
    -                <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    -              {% endif %}
    -            </label>
    -            <label for="show-password">
    -              <input data-action="change->password#togglePasswords"
    -                     data-password-target="showPassword"
    -                     id="show-password"
    -                     type="checkbox">
    -              &nbsp;{% trans %}Show passwords{% endtrans %}
    -            </label>
    +          <label for="full_name" class="form-group__label">
    +            {% trans %}Name{% endtrans %}
    +            {% if form.full_name.flags.required %}
    +              <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    +            {% endif %}
    +          </label>
    +          {{ form.full_name(placeholder=gettext("Your name") ,
    +            autocomplete="name",
    +            autocapitalize="off",
    +            spellcheck="false",
    +            class_="form-group__field",
    +            aria_describedby="name-errors",
    +          ) }}
    +          <div id="name-errors">
    +            {% if form.full_name.errors %}
    +              <ul class="form-errors" role="alert">
    +                {% for error in form.full_name.errors %}<li>{{ error }}</li>{% endfor %}
    +              </ul>
    +            {% endif %}
               </div>
    -          {{ form.new_password(placeholder=gettext("Select a password") ,
    -          required="required",
    -          class_="form-group__field",
    -          autocomplete="new-password",
    -          spellcheck="false",
    -          data_password_target="password",
    -          data_password_match_target="passwordMatch",
    -          data_password_strength_gauge_target="password",
    -          data_password_breach_target="password",
    -          data_action="input->password-match#checkPasswordsMatch input->password-strength-gauge#checkPasswordStrength input->password-breach#check",
    -          aria_describedby="password-errors password-strength"
    +        </div>
    +        <div class="form-group">
    +          <label for="email" class="form-group__label">
    +            {% trans %}Email address{% endtrans %}
    +            {% if form.email.flags.required %}
    +              <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    +            {% endif %}
    +          </label>
    +          {{ form.email(placeholder=gettext("Your email address") ,
    +            autocomplete="email",
    +            spellcheck="false",
    +            required="required",
    +            class_="form-group__field",
    +            aria_describedby="email-errors",
               ) }}
    -          <div id="password-errors">
    -            {% if form.new_password.errors %}
    +          <div id="email-errors">
    +            {% if form.email.errors %}
                   <ul class="form-errors" role="alert">
    -                {% for error in form.new_password.errors %}<li>{{ error }}</li>{% endfor %}
    +                {% for error in form.email.errors %}<li>{{ error }}</li>{% endfor %}
                   </ul>
                 {% endif %}
               </div>
    -          {{ password_strength_gauge(data_password_strength_gauge_target="strengthGauge") }}
    +        </div>
    +        {# The following is a honeypot field and is hidden from the user #}
    +        <div class="form-group confirm-form">
    +          <label for="confirm_form" class="form-group__label">{% trans %}Confirm form{% endtrans %}</label>
    +          {{ form.confirm_form(class="form-group__field",
    +            aria_hidden='true',) }}
             </div>
             <div class="form-group">
    -          <label for="password_confirm" class="form-group__label">
    -            {% trans %}Confirm password{% endtrans %}
    -            {% if form.password_confirm.flags.required %}
    +          <label for="username" class="form-group__label">
    +            {% trans %}Username{% endtrans %}
    +            {% if form.username.flags.required %}
                   <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
                 {% endif %}
               </label>
    -          {{ form.password_confirm(placeholder=gettext("Confirm password") ,
    -          required="required",
    -          class_="form-group__field",
    -          autocomplete="new-password",
    -          spellcheck="false",
    -          data_password_target="password",
    -          data_password_match_target="passwordMatch",
    -          data_action="input->password-match#checkPasswordsMatch",
    -          aria_describedby="password-confirm-errors",
    +          {{ form.username(placeholder=gettext("Select a username") ,
    +            autocapitalize="off",
    +            autocomplete="username",
    +            spellcheck="false",
    +            required="required",
    +            class_="form-group__field",
    +            aria_describedby="username-errors",
               ) }}
    -          <div id="password-confirm-errors">
    -            {% if form.password_confirm.errors %}
    +          <div id="username-errors">
    +            {% if form.username.errors %}
                   <ul class="form-errors" role="alert">
    -                {% for error in form.password_confirm.errors %}<li>{{ error }}</li>{% endfor %}
    +                {% for error in form.username.errors %}<li>{{ error }}</li>{% endfor %}
                   </ul>
                 {% endif %}
               </div>
             </div>
    -      </div>
    -      <div class="form-group">
    -        <ul class="form-errors">
    -          <li data-password-match-target="matchMessage" class="hidden"></li>
    -          <li data-password-breach-target="message" class="hidden">
    -            {# djlint:off H025 #}
    -            {{ gettext("This password appears in a security breach or has been compromised and cannot be used. Please refer to the <a href=\"/help/#compromised-password\">FAQ</a> for more information.") }}

    For some reason I thought the leading \ was needed for gettexct - is it not needed? How did you confirm?

    miketheman miketheman commented on code on Sep 22, 2026 14:05 UTC
    Code Review
    warehouse/templates/accounts/reset-password.html:1
    @@ -34,21 +34,20 @@ <h1 class="page-title">{% trans %}Reset your password{% endtrans %}</h1>
                   <input data-action="change->password#togglePasswords"
                          data-password-target="showPassword"
                          id="show-password"
    -                     type="checkbox"
    -                     tabindex="4">

    same note about tabindexes in this file

    miketheman miketheman requested changes on Sep 22, 2026 14:11 UTC
    Changes Requested Reviewer

    I was only able to review a few files due to the amount of churn, so have suggested a couple of questions to answer before trying again.

    This PR needs more details/context/explanation on why some of the changes were made

    JacobCoffee JacobCoffee commented on code on Oct 02, 2026 22:11 UTC
    Code Review
    requirements/lint.in:1
    @@ -3,10 +3,7 @@
     ruff<0.16
     ast-grep-cli
     codespell
    -# TODO: 1.40 onwards fixes indentation after multi-line `{% trans %}` blocks,
    -# rewrites quotes inside template tags and adds H025, H036, H043, H046, H050
    -# and H053. Upgrade in its own PR.
    -djlint<1.40
    +djlint<1.47

    2ca5e1f done

    JacobCoffee JacobCoffee commented on code on Oct 02, 2026 22:12 UTC
    Code Review
    warehouse/templates/accounts/invite-confirmation.html:1
    @@ -18,26 +18,26 @@
                    type="hidden"
                    value="{{ request.session.get_csrf_token() }}">
             <span class="form-group__text">
    -          {% trans project_name=project_name, role_name=desired_role, project_link=request.route_url('packaging.project', name=project_name) %}
    +          {% trans project_name=project_name, role_name=desired_role, project_link=request.route_url("packaging.project", name=project_name) %}

    lookin in to it:

    | Quote style | Templates changed | Lines added | Lines removed |
    | --- | ---: | ---: | ---: |
    | Double | 105 | 389 | 344 |
    | Single | 164 | 626 | 581 |

    so keeping double seems to make sense?

    JacobCoffee JacobCoffee commented on code on Oct 02, 2026 22:15 UTC
    Code Review
    warehouse/templates/accounts/login.html:1
    @@ -35,13 +35,12 @@ <h1 class="page-title">{% trans title=title %}Log in to {{ title }}{% endtrans %
                 {% endif %}
               </label>
               {{ form.username(placeholder=gettext("Your username") ,
    -          autocapitalize="off",
    -          autocomplete="username",
    -          spellcheck="false",
    -          required="required",
    -          class_="form-group__field",
    -          aria_describedby="username-errors",
    -          tabindex="1",

    part of the new H046 rule - added a note in the pr description.
    poking in FF his changes the login tab order from:
    1. Username
    2. Password
    3. Show password
    _to_
    1. Username
    2. Show password
    3. Password

    JacobCoffee JacobCoffee commented on code on Oct 02, 2026 22:27 UTC
    Code Review
    warehouse/templates/accounts/reset-password.html:1
    @@ -34,21 +34,20 @@ <h1 class="page-title">{% trans %}Reset your password{% endtrans %}</h1>
                   <input data-action="change->password#togglePasswords"
                          data-password-target="showPassword"
                          id="show-password"
    -                     type="checkbox"
    -                     tabindex="4">

    replied above & in descriptio

    JacobCoffee JacobCoffee commented on code on Oct 02, 2026 22:52 UTC
    Code Review
    warehouse/templates/accounts/register.html:1
    @@ -33,218 +33,222 @@ <h1 class="page-title">{% trans title=title %}Create an account on {{ title }}{%
               <li>{% trans title=title %}Do not use {{ title }} as a file host, or split large files across releases.{% endtrans %}</li>
             </ul>
             <p>
    -          {% trans aup="https://policies.python.org/pypi.org/Acceptable-Use-Policy/", security_page=request.route_path('security'), external=gettext("External link") %}
    +          {% trans aup="https://policies.python.org/pypi.org/Acceptable-Use-Policy/", security_page=request.route_path("security"), external=gettext("External link") %}
               For more information, please read the full <a href="{{ aup }}"
         title="{{ external }}"
         target="_blank"
         rel="noopener">Acceptable Use Policy</a>. If you are a security researcher, refer to our <a href="{{ security_page }}">published security policy</a> and coordinate through proper disclosure channels.
    -        {% endtrans %}
    -      </p>
    -    </aside>
    -    <hr>
    -    <dialog data-action="cancel->email-confirmation#close"
    -            data-email-confirmation-target="dialog">
    -      <form method="dialog">
    -        <p>
    -          {% trans %}Please confirm that your email address is <strong data-email-confirmation-target="email"></strong>.{% endtrans %}
    +          {% endtrans %}
             </p>
    -        <button class="button button--primary"
    -                data-action="click->email-confirmation#confirm">{% trans %}Confirm{% endtrans %}</button>
    -        <button class="button" formmethod="dialog" value="cancel">{% trans %}Cancel{% endtrans %}</button>
    -      </form>
    -    </dialog>
    -    <form method="post"
    -          action="{{ request.current_route_path() }}"
    -          data-email-confirmation-target="form">
    -      <input name="csrf_token"
    -             type="hidden"
    -             value="{{ request.session.get_csrf_token() }}">
    -      {% if form.form_errors %}
    -        <ul class="form-errors" role="alert">
    -          {% for error in form.form_errors %}<li>{{ error }}</li>{% endfor %}
    -        </ul>
    -      {% endif %}
    -      <div class="form-group">
    -        <label for="full_name" class="form-group__label">
    -          {% trans %}Name{% endtrans %}
    -          {% if form.full_name.flags.required %}
    -            <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    -          {% endif %}
    -        </label>
    -        {{ form.full_name(placeholder=gettext("Your name") ,
    -        autocomplete="name",
    -        autocapitalize="off",
    -        spellcheck="false",
    -        class_="form-group__field",
    -        aria_describedby="name-errors",
    -        ) }}
    -        <div id="name-errors">
    -          {% if form.full_name.errors %}
    -            <ul class="form-errors" role="alert">
    -              {% for error in form.full_name.errors %}<li>{{ error }}</li>{% endfor %}
    -            </ul>
    -          {% endif %}
    -        </div>
    -      </div>
    -      <div class="form-group">
    -        <label for="email" class="form-group__label">
    -          {% trans %}Email address{% endtrans %}
    -          {% if form.email.flags.required %}
    -            <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    -          {% endif %}
    -        </label>
    -        {{ form.email(placeholder=gettext("Your email address") ,
    -        autocomplete="email",
    -        spellcheck="false",
    -        required="required",
    -        class_="form-group__field",
    -        aria_describedby="email-errors",
    -        ) }}
    -        <div id="email-errors">
    -          {% if form.email.errors %}
    -            <ul class="form-errors" role="alert">
    -              {% for error in form.email.errors %}<li>{{ error }}</li>{% endfor %}
    -            </ul>
    -          {% endif %}
    -        </div>
    -      </div>
    -      {# The following is a honeypot field and is hidden from the user #}
    -      <div class="form-group confirm-form">
    -        <label for="confirm_form" class="form-group__label">{% trans %}Confirm form{% endtrans %}</label>
    -        {{ form.confirm_form(class="form-group__field",
    -                aria_hidden='true',) }}
    -      </div>
    -      <div class="form-group">
    -        <label for="username" class="form-group__label">
    -          {% trans %}Username{% endtrans %}
    -          {% if form.username.flags.required %}
    -            <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    -          {% endif %}
    -        </label>
    -        {{ form.username(placeholder=gettext("Select a username") ,
    -        autocapitalize="off",
    -        autocomplete="username",
    -        spellcheck="false",
    -        required="required",
    -        class_="form-group__field",
    -        aria_describedby="username-errors",
    -        ) }}
    -        <div id="username-errors">
    -          {% if form.username.errors %}
    -            <ul class="form-errors" role="alert">
    -              {% for error in form.username.errors %}<li>{{ error }}</li>{% endfor %}
    -            </ul>
    -          {% endif %}
    -        </div>
    -      </div>
    -      <div>
    +      </aside>
    +      <hr>
    +      <dialog data-action="cancel->email-confirmation#close"
    +              data-email-confirmation-target="dialog">
    +        <form method="dialog">
    +          <p>
    +            {% trans %}Please confirm that your email address is <strong data-email-confirmation-target="email"></strong>.{% endtrans %}
    +          </p>
    +          <button type="button"
    +                  class="button button--primary"
    +                  data-action="click->email-confirmation#confirm">{% trans %}Confirm{% endtrans %}</button>
    +          <button type="submit"
    +                  class="button"
    +                  formmethod="dialog"
    +                  value="cancel">{% trans %}Cancel{% endtrans %}</button>
    +        </form>
    +      </dialog>
    +      <form method="post"
    +            action="{{ request.current_route_path() }}"
    +            data-email-confirmation-target="form">
    +        <input name="csrf_token"
    +               type="hidden"
    +               value="{{ request.session.get_csrf_token() }}">
    +        {% if form.form_errors %}
    +          <ul class="form-errors" role="alert">
    +            {% for error in form.form_errors %}<li>{{ error }}</li>{% endfor %}
    +          </ul>
    +        {% endif %}
             <div class="form-group">
    -          <div class="split-layout">
    -            <label for="new_password" class="form-group__label">
    -              {% trans %}Password{% endtrans %}
    -              {% if form.new_password.flags.required %}
    -                <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    -              {% endif %}
    -            </label>
    -            <label for="show-password">
    -              <input data-action="change->password#togglePasswords"
    -                     data-password-target="showPassword"
    -                     id="show-password"
    -                     type="checkbox">
    -              &nbsp;{% trans %}Show passwords{% endtrans %}
    -            </label>
    +          <label for="full_name" class="form-group__label">
    +            {% trans %}Name{% endtrans %}
    +            {% if form.full_name.flags.required %}
    +              <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    +            {% endif %}
    +          </label>
    +          {{ form.full_name(placeholder=gettext("Your name") ,
    +            autocomplete="name",
    +            autocapitalize="off",
    +            spellcheck="false",
    +            class_="form-group__field",
    +            aria_describedby="name-errors",
    +          ) }}
    +          <div id="name-errors">
    +            {% if form.full_name.errors %}
    +              <ul class="form-errors" role="alert">
    +                {% for error in form.full_name.errors %}<li>{{ error }}</li>{% endfor %}
    +              </ul>
    +            {% endif %}
               </div>
    -          {{ form.new_password(placeholder=gettext("Select a password") ,
    -          required="required",
    -          class_="form-group__field",
    -          autocomplete="new-password",
    -          spellcheck="false",
    -          data_password_target="password",
    -          data_password_match_target="passwordMatch",
    -          data_password_strength_gauge_target="password",
    -          data_password_breach_target="password",
    -          data_action="input->password-match#checkPasswordsMatch input->password-strength-gauge#checkPasswordStrength input->password-breach#check",
    -          aria_describedby="password-errors password-strength"
    +        </div>
    +        <div class="form-group">
    +          <label for="email" class="form-group__label">
    +            {% trans %}Email address{% endtrans %}
    +            {% if form.email.flags.required %}
    +              <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
    +            {% endif %}
    +          </label>
    +          {{ form.email(placeholder=gettext("Your email address") ,
    +            autocomplete="email",
    +            spellcheck="false",
    +            required="required",
    +            class_="form-group__field",
    +            aria_describedby="email-errors",
               ) }}
    -          <div id="password-errors">
    -            {% if form.new_password.errors %}
    +          <div id="email-errors">
    +            {% if form.email.errors %}
                   <ul class="form-errors" role="alert">
    -                {% for error in form.new_password.errors %}<li>{{ error }}</li>{% endfor %}
    +                {% for error in form.email.errors %}<li>{{ error }}</li>{% endfor %}
                   </ul>
                 {% endif %}
               </div>
    -          {{ password_strength_gauge(data_password_strength_gauge_target="strengthGauge") }}
    +        </div>
    +        {# The following is a honeypot field and is hidden from the user #}
    +        <div class="form-group confirm-form">
    +          <label for="confirm_form" class="form-group__label">{% trans %}Confirm form{% endtrans %}</label>
    +          {{ form.confirm_form(class="form-group__field",
    +            aria_hidden='true',) }}
             </div>
             <div class="form-group">
    -          <label for="password_confirm" class="form-group__label">
    -            {% trans %}Confirm password{% endtrans %}
    -            {% if form.password_confirm.flags.required %}
    +          <label for="username" class="form-group__label">
    +            {% trans %}Username{% endtrans %}
    +            {% if form.username.flags.required %}
                   <span class="form-group__required">{% trans %}(required){% endtrans %}</span>
                 {% endif %}
               </label>
    -          {{ form.password_confirm(placeholder=gettext("Confirm password") ,
    -          required="required",
    -          class_="form-group__field",
    -          autocomplete="new-password",
    -          spellcheck="false",
    -          data_password_target="password",
    -          data_password_match_target="passwordMatch",
    -          data_action="input->password-match#checkPasswordsMatch",
    -          aria_describedby="password-confirm-errors",
    +          {{ form.username(placeholder=gettext("Select a username") ,
    +            autocapitalize="off",
    +            autocomplete="username",
    +            spellcheck="false",
    +            required="required",
    +            class_="form-group__field",
    +            aria_describedby="username-errors",
               ) }}
    -          <div id="password-confirm-errors">
    -            {% if form.password_confirm.errors %}
    +          <div id="username-errors">
    +            {% if form.username.errors %}
                   <ul class="form-errors" role="alert">
    -                {% for error in form.password_confirm.errors %}<li>{{ error }}</li>{% endfor %}
    +                {% for error in form.username.errors %}<li>{{ error }}</li>{% endfor %}
                   </ul>
                 {% endif %}
               </div>
             </div>
    -      </div>
    -      <div class="form-group">
    -        <ul class="form-errors">
    -          <li data-password-match-target="matchMessage" class="hidden"></li>
    -          <li data-password-breach-target="message" class="hidden">
    -            {# djlint:off H025 #}
    -            {{ gettext("This password appears in a security breach or has been compromised and cannot be used. Please refer to the <a href=\"/help/#compromised-password\">FAQ</a> for more information.") }}

    they escaped the innner double quotes but now there are single quotes outside so the
    href double quotes dont need escapes.

    confirmed by going to register in the ui with both versions, and the warning/faq links worked the same and then had robot do UI poking to double check me

    Reviewers
    Assignees
    JacobCoffee JacobCoffee
    Labels
    risk: low confidence: 76.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 78.5% (HIGH) · Higher = larger blast radius
    78.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 76.9% · Lower = rushed or shallow review
    76.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.1% · Safe to merge
    18.1%
    Repository