Skip to content

fix : replaced alert with inline error in Tasks.jsx duration validation - #2051

Open
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#2046
Open

fix : replaced alert with inline error in Tasks.jsx duration validation#2051
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#2046

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Summary of What Has Been Done

Replaced the browser alert() call in the Tasks page duration modal with a state-based inline error message for better UX.

Changes Made

  • Added state to the Tasks component
  • Replaced with when validation fails
  • Cleared error on input change and modal close
  • Added inline error display below the duration input

Impact it Made

  • Eliminates jarring browser dialog
  • Works properly on mobile
  • Consistent with the app's toast-based UX patterns

Note: Please assign this PR to the tmdeveloper007 account.

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