This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/sbp by this push:
     new da901ba5 Change the size of several release policy form fields
da901ba5 is described below

commit da901ba525a0a06c22b2d2c413b1230cb95f8328
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri Mar 20 20:07:20 2026 +0000

    Change the size of several release policy form fields
---
 atr/form.py            | 5 ++++-
 atr/get/projects.py    | 6 +++---
 atr/shared/projects.py | 7 +++++++
 3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/atr/form.py b/atr/form.py
index ff2e99aa..f84a7e41 100644
--- a/atr/form.py
+++ b/atr/form.py
@@ -1024,7 +1024,10 @@ def _render_widget(  # noqa: C901
             widget = htpy.input(**attrs)
 
         case Widget.TEXTAREA:
-            attrs = {**base_attrs, "rows": str(textarea_rows)}
+            json_schema_extra = field_info.json_schema_extra or {}
+            per_field_rows = json_schema_extra.get("rows") if 
isinstance(json_schema_extra, dict) else None
+            rows = per_field_rows if (per_field_rows is not None) else 
textarea_rows
+            attrs = {**base_attrs, "rows": str(rows)}
             widget = htpy.textarea(**attrs)[field_value or ""]
 
         case Widget.URL:
diff --git a/atr/get/projects.py b/atr/get/projects.py
index b9460b0b..4ad788ce 100644
--- a/atr/get/projects.py
+++ b/atr/get/projects.py
@@ -411,7 +411,7 @@ def _render_finish_form(project: sql.Project) -> 
htm.Element:
         field_name="announce_release_template",
         default_value=project.policy_announce_release_template or "",
         template_variables=construct.announce_template_variables(),
-        rows=10,
+        rows=18,
         documentation="Email template for messages to announce a finished 
release.",
     )
 
@@ -663,7 +663,7 @@ def _render_vote_form(project: sql.Project) -> htm.Element:
         field_name="release_checklist",
         default_value=project.policy_release_checklist or "",
         template_variables=construct.checklist_template_variables(),
-        rows=10,
+        rows=3,
         documentation="Markdown text describing how to test release 
candidates.",
     )
 
@@ -678,7 +678,7 @@ def _render_vote_form(project: sql.Project) -> htm.Element:
         field_name="start_vote_template",
         default_value=project.policy_start_vote_template or "",
         template_variables=construct.vote_template_variables(),
-        rows=10,
+        rows=18,
         documentation="Email template for messages to start a vote on a 
release.",
     )
 
diff --git a/atr/shared/projects.py b/atr/shared/projects.py
index e027ee11..9d6f2abb 100644
--- a/atr/shared/projects.py
+++ b/atr/shared/projects.py
@@ -118,16 +118,19 @@ class ComposePolicyForm(form.Form):
         "Patterns using .gitignore syntax for files to exclude"
         " from lightweight license header checks on source artifacts.",
         widget=form.Widget.TEXTAREA,
+        rows=3,
     )
     source_excludes_rat: str = form.label(
         "RAT source excludes",
         "RAT exclude file contents for source artifacts. Used only when no 
.rat-excludes file exists in the archive.",
         widget=form.Widget.TEXTAREA,
+        rows=3,
     )
     file_tag_mappings: str = form.label(
         "Tagging spec",
         "Spec for which files should be tagged for release in specific 
distribution types, YAML format",
         widget=form.Widget.TEXTAREA,
+        rows=3,
     )
     strict_checking: form.Bool = form.label(
         "Strict checking",
@@ -165,6 +168,7 @@ class VotePolicyForm(form.Form):
         "Vote comment template",
         "Plain text template for vote comments. Voters can edit before 
submitting.",
         widget=form.Widget.TEXTAREA,
+        rows=6,
     )
     start_vote_subject: str = form.label(
         "Start vote subject",
@@ -218,16 +222,19 @@ class TrustedPublishingPolicyForm(form.Form):
         "Compose workflow paths",
         "GitHub workflow paths for the compose phase, including the 
.github/workflows/ prefix.",
         widget=form.Widget.TEXTAREA,
+        rows=3,
     )
     github_vote_workflow_path: str = form.label(
         "Vote workflow paths",
         "GitHub workflow paths for the vote phase, including the 
.github/workflows/ prefix.",
         widget=form.Widget.TEXTAREA,
+        rows=3,
     )
     github_finish_workflow_path: str = form.label(
         "Finish workflow paths",
         "GitHub workflow paths for the finish phase, including the 
.github/workflows/ prefix.",
         widget=form.Widget.TEXTAREA,
+        rows=3,
     )
 
     @pydantic.model_validator(mode="after")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to