Skip to content

bug(dashboard): CreateSessionModal workDirError renders under wrong field (Session Name) #4401

@OneStepAt4time

Description

@OneStepAt4time

Description

In the CreateSessionModal single mode, the workDirError validation message renders under the "Session Name" input field instead of under "Working Directory" where it belongs.

Location

dashboard/src/components/CreateSessionModal.tsx lines ~163-185:

The error block {workDirError && (...)} is placed after the Name input field instead of after the WorkDir input field.

Steps to Reproduce

  1. Open New Session modal
  2. Enter an invalid working directory path
  3. Click Create Session
  4. Error message appears below "Session Name" field instead of "Working Directory"

Expected Behavior

workDirError should render immediately after the Working Directory input field.

Fix

Move the {workDirError && (...)} block from after the Name field to after the WorkDir field (line ~157).

Environment

  • Aegis Dashboard (all versions with this component)
  • All screen sizes

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugSomething isn't workingdashboardreleasedIncluded in a published release

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions