Skip to content

fix: add 50 character limit on task title input with character counter#762

Open
RuntimeTerror001 wants to merge 2 commits into
aryandas2911:mainfrom
RuntimeTerror001:fix/task-title-character-limit
Open

fix: add 50 character limit on task title input with character counter#762
RuntimeTerror001 wants to merge 2 commits into
aryandas2911:mainfrom
RuntimeTerror001:fix/task-title-character-limit

Conversation

@RuntimeTerror001
Copy link
Copy Markdown

@RuntimeTerror001 RuntimeTerror001 commented May 19, 2026

Description

Added a 50 character limit on the task title input field
with a live character counter to prevent UI layout breakage
caused by excessively long task titles.

Related Issue

Closes #(your issue number)

Changes Made

  • Added TITLE_MAX_LENGTH = 50 and TITLE_WARNING_LENGTH = 40
    constants in TaskFormModal.jsx
  • Added maxLength={50} on the title input field
  • Added live character counter below the title input
    (gray → yellow at 40 → red at 50)
  • Added title length validation in handleSubmit
  • Added backend validation in createTask and updateTask
    in taskController.js

Checklist

  • I have read CONTRIBUTING.md
  • My branch follows the naming convention
  • I have tested this locally
  • Linting passes (npm run lint in frontend/)
  • No unrelated files were modified
  • Screenshots are attached (if UI change)

@RuntimeTerror001
Copy link
Copy Markdown
Author

Fixes #634

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