Skip to content

fix(platform): follow up task limits and imports after #3577 - #3689

Merged
yannickmonney merged 11 commits into
mainfrom
fix/task-import-cuts-and-relayed-messages
Sep 28, 2026
Merged

yannickmonney merged 11 commits into
mainfrom
fix/task-import-cuts-and-relayed-messages

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

External issue imports can split a multi-code-point emoji or report an upstream title that differs from the task stored in Tale. This cuts imported titles and descriptions on grapheme boundaries and returns the stored task title across creation, reconciliation, archived tasks and insert races. Both task natives and their test-run mocks refuse blank titles consistently before writing. Source cards and linked issues retain their full text.

Legacy oversized descriptions now show a localized length/limit warning and hold Save/Create until the draft fits, including keyboard submission. Title and label controls use the shared limits. The shared light error token and destructive alert text were corrected after browser review found insufficient contrast in the new warning. Relayed automation binding errors no longer repeat the caller’s slug, and REST string-limit messages consistently name UTF-16 code units. Messages and importer docs cover EN/DE/FR.

Validation:

  • 1,872 server/REST/native/schema/i18n tests across 93 files.
  • 64/64 real-Postgres checks in the filtered external-issue synchronization lane, including stored-title readback and GitHub/GlitchTip transfer isolation.
  • 19 focused task UI tests and 10 shared form Chromium checks. The contrast regression failed four cases before the correction and passes after it.
  • 12 independent Chromium task scenarios across EN/DE/FR, create/edit, desktop/light and phone/dark; corrected warning contrast is 6.31:1 light and 7.20:1 dark. Six rendered docs locale/width checks also pass.
  • Platform/UI type checks, scoped type-aware lint, formatting, manual and guide checks pass. Docs checks pass across the initial run and a focused 32-case rerun of two files that initially timed out. Shared UI React Doctor is 100/100; the platform’s three existing diagnostics were reviewed.

The broader local task-UI attempt was stopped after a timeout under host load; no full local bun run check pass is claimed. Scoped SAST reported zero findings, but nine large files were partially analyzed due to parsing/timeouts. Fresh current-head CI remains the merge gate.

yannickmonney and others added 11 commits September 28, 2026 09:39
A keyboard drag on the task Board or List spoke dnd-kit's English
defaults in every locale ("Draggable item <uuid> was moved over
droppable area <uuid>."), and the pickup line was overwritten in the
same frame.

useTaskBoardDnd now returns one accessibility contract that both
DndContexts use. The pickup names the task's key and title with its
status and position. Each move names the status and position the drop
would take, including an empty status, and a move to the slot just
spoken stays silent, so the pickup line is kept. The drop and the cancel
name the key. Positions come from the same resolveDrop arithmetic the
drop applies, and the handler records what the drop did for its line.
The title's instructions name the keys it handles: Enter opens, Space
picks up and drops, the arrow keys move, Escape cancels. A task without
a key is named by its title, and a task gone mid-drag is reported as
not moved, never by its id. EN/DE/FR under tasks.drag.

The Board's drag overlay gets an upright wrapper. dnd-kit measures the
overlay's only child, and the tilted card's box made the first arrow
press after a pickup stay in the lane (ArrowRight) or do nothing
(ArrowDown).

Docs (EN/DE/FR) describe the keyboard move. The manual layer gains
TASK-A7 for the spoken half and an automation row for the Chromium
specs.

Closes #3561
The imported cut stepped back from a lone high surrogate only, so a ZWJ
family kept its first person, a flag a lone regional indicator, and a
skin tone, keycap or combining accent lost its tail. The cut now ends on
an Intl.Segmenter grapheme boundary: the last whole grapheme that ends
within max - 1 units is kept before the "…", built lazily because the app
imports the module for its limits.
task.upsert echoed the title it was sent (trimmed, uncut, up to 10,000
units) and task.upsert_issues each issue's sent title, though the task
stores it cut to 200 and a source-snapshot reconcile (every GitHub or
GlitchTip sync) leaves the Tale title alone. upsertTaskByExternalRef now
answers the title the task carries - cut on a create and a plain
reconcile, the stored one on a source or archived reconcile - and both
natives return it.

A blank title answered the validator's "title Too small" text; both
natives now refuse it with the empty-title sentence every task door
answers, naming the item (issues.<n>:) in a batch. The action schema's
minLength would pre-empt that for '' at the dispatcher, so it goes, and
the test-run mocks cut and refuse the way the domain does.
A task start relays AutomationError sentences word for word (the app's
handleError, REST's envelope), and resolveRunProject's
AUTOMATION_PROJECT_FORBIDDEN repeated the name it was given - the
workflowSlug the caller sent. The sentence is static now. The task
refusal guard follows the automations-domain functions a task door
reaches, as it did the projects domain, and reads their AutomationErrors;
the input-schema refusal's first problem (a path and a rule, never a
value) is reviewed onto its list.
The OpenAPI info still gave "must be at most 200 characters" as its
data.issues example while the Markdown reference and the task answers say
UTF-16 code units, and the house formatter rendered every string cap as
"N characters" though zod measures String.length. describeQuantity now
names the unit a string cap counts, so the example the two references
give is the answer every field gets; the spec example and openapi.json
follow.
An older import stored descriptions whole past the 20,000-unit cap, and
saving one from the task answered the generic error toast: the modal had
no branch for TASK_DESCRIPTION_INVALID. The description editor and the
create form now name the draft's length and the cap under the field and
hold Save and Create until it fits, and a title or description the
server refuses anyway toasts the cap in the reader's language. The
inline title editor takes the create form's 200 cap, and the two label
components import the shared label caps instead of declaring their own.
No migration cuts stored descriptions: the text past the cap may be a
person's, and the editor now says how much to shorten.
The importer page never said that an imported title over 200 or a
description over 20,000 UTF-16 code units is cut on the task and ends in
"…". One sentence per locale says so, and that the source card and the
linked issue keep the full text. The automation register records this
batch's behaviour, the cut's claim now true of graphemes.
@yannickmonney
yannickmonney merged commit af28977 into main Sep 28, 2026
57 checks passed
@yannickmonney
yannickmonney deleted the fix/task-import-cuts-and-relayed-messages branch September 28, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant