fix(web): room for the title in the new ticket form

A field's label floats above its box and only other fields leave room
for it, so «Título» sat on the type selector. Also: the mention hint
had the shell's paragraph size instead of a hint's, and «Asignar a» and
«Release» offered «Todas las personas» / «Todas las releases», filter
words, for «nobody» and «none».

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-15 20:55:22 +02:00
parent e006d245d7
commit 2add1b6a31
3 changed files with 18 additions and 3 deletions

View File

@@ -395,7 +395,7 @@ const NOBODY = '__nobody__';
</pi-select-field>
<pi-select-field
[formField]="f.releaseId"
[options]="releaseOptions()"
[options]="newReleaseOptions()"
>
<pi-label>Release</pi-label>
</pi-select-field>
@@ -613,9 +613,10 @@ export class BoardPage {
...options(PRIORITY),
];
/* Options of the new ticket form: the empty value means nobody / none. */
protected readonly assigneeOptions = computed<PiSelectFieldOption<string>[]>(
() => [
{ value: ALL, label: 'Todas las personas' },
{ value: ALL, label: 'Sin asignar' },
...this.project
.members()
.map((m) => ({ value: m.user.id, label: m.user.name })),
@@ -630,6 +631,12 @@ export class BoardPage {
.map((r) => ({ value: r.id, label: r.name })),
],
);
protected readonly newReleaseOptions = computed<
PiSelectFieldOption<string>[]
>(() => [
{ value: ALL, label: 'Sin release' },
...this.releaseOptions().slice(1),
]);
/** Archived areas still filter (old tickets keep them). */
protected readonly areaFilterOptions = computed<
PiSelectFieldOption<string>[]

View File

@@ -399,8 +399,10 @@ interface Suggesting {
) !important;
}
}
.ts-rich__hint {
/* Beats the shell's p font size; indented like the field labels. */
ts-rich-editor p.ts-rich__hint {
margin: 0.375rem 0 0;
padding: 0 1rem;
color: var(--ts-muted);
font-size: 0.75rem;
}