Skip to content

fix : removed alert call from TaskPreview duration validation - #1950

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

fix : removed alert call from TaskPreview duration validation#1950
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#1945

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Summary of What Has Been Done

Replaced the blocking alert() call in frontend/src/components/Dashboard/TaskPreview.jsx with an inline error state:

  • Added durationError state variable
  • Replaced alert("Please enter a valid duration in minutes") with setDurationError(...)
  • Added inline error display in the duration modal below the input field
  • Cleared error on input change, modal cancel, and successful submission

Changes Made

  • frontend/src/components/Dashboard/TaskPreview.jsx: alert removed, inline error feedback added

Impact it Made

  • Removes blocking alert() dialog from the task completion flow
  • Provides inline, non-intrusive error feedback instead of disruptive browser dialogs

Closes #1945.

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.

fix : remove alert call from TaskPreview duration validation

1 participant