Skip to content

feat(board): truncate long task titles on cards to 300 chars - #900

Merged
artempartos merged 2 commits into
developfrom
feature/357-truncate-card-title
Dec 1, 2026
Merged

artempartos merged 2 commits into
developfrom
feature/357-truncate-card-title

Conversation

@aixle-com

@aixle-com aixle-com Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Board task cards grew without bound with very long titles. TaskCardUI now shows at most 300 characters (code-point safe, trailing whitespace trimmed, … appended) via new shared/lib/truncateText.ts. When the title is cut, hovering it shows the full title in a tooltip. Stored title, drawer, checkbox aria-label and collapsed chip are unchanged. No backend limit or validation.

Card: https://flow.aixle.com/company/projects/56/board?n=357

Checks

New tests: truncateText.test.ts, TaskCardUI.test.tsx; CI is the verification. Docs grep for card-title truncation: no hits, no doc change needed.

🤖 Generated with Claude Code

@aixle-com

aixle-com Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Code Review — round 1 — PASS

No critical issues. The change matches the Tech Design: truncateText splits by code points, trims trailing whitespace and adds …. TaskCardUI cuts the title at 300 characters and sets the native title only when cut. wordBreak and the checkbox aria-label are unchanged. The main behavior is tested at both layers (unit for the helper, component for the card). The changelog entry and commit message are in place.

Non-critical suggestions

  • The test file for TaskCardUI does not cover the exact 300/301 boundary at the card level. The helper's own tests cover it, so this is optional.
  • CI (vitest, eslint, tsc) has not been run by the author. It will run in the next step.

@aixle-com

aixle-com Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Code Review — round 1 — PASS

No critical issues. truncateText cuts by code points, trims trailing whitespace and adds …. TaskCardUI truncates the title at 300 characters and shows the full title in a Mantine tooltip only when it was cut. wordBreak is kept and the full-title search and drawer are unaffected. The main behavior is tested at the unit level (helper) and the component level (card). Changelog entry is present.

Non-critical suggestions

  • The Tech Design proposed a native title attribute; the code uses a Mantine Tooltip instead. It works and is tested, but the Tech Design's concern about tooltip cost on boards with hundreds of cards applies. Optional.
  • The card-level test does not cover the exact 300/301 boundary. The helper tests cover it.
  • CI (vitest, eslint, tsc) was not run by the author; it runs in the next step.

artempartos added a commit that referenced this pull request Nov 26, 2026
Agent sessions commit as noreply@<deployment domain> since #545, which is
[email protected] in production. The service-account match only took
*@aixle.com, so a bot-opened PR failed DCO on every agent commit that the
agent did not happen to sign off itself (#900).

Signed-off-by: Artem Petrov <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@aixle-com
aixle-com Bot force-pushed the feature/357-truncate-card-title branch 2 times, most recently from d012d62 to e4dfb11 Compare November 30, 2026 12:53
@aixle-com
aixle-com Bot marked this pull request as ready for review November 30, 2026 12:59
@artempartos
artempartos force-pushed the feature/357-truncate-card-title branch from e4dfb11 to d206e6a Compare December 1, 2026 07:38
@artempartos
artempartos merged commit f94f888 into develop Dec 1, 2026
19 checks passed
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