Skip to content

Conversation

@vijay-talsangi
Copy link

Description

Fix project dropdown displaying blank when creating a new project in Add Task dialog.

Problem: When selecting "+ Create new project…" from the Project dropdown while adding a task, the dropdown would show "Select a project" initially and then become blank while typing the new project name. This was confusing for users.

Solution:

Updated the Select component's value to use CREATE_NEW when isCreatingNewProject is true
Added dynamic text display in SelectValue that shows:
"+ Create new project…" when the option is first selected
"New: [project name]" as the user types the new project name
This provides clear visual feedback about the active selection state.

Checklist

  • Ran npx prettier --write . (for formatting)
  • Ran gofmt -w . (for Go backend)
  • Ran npm test (for JS/TS testing)
  • Added unit tests, if applicable
  • Verified all tests pass
  • Updated documentation, if needed

Additional Notes

File changed:
frontend/src/components/HomeComponents/Tasks/AddTaskDialog.tsx

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

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.

Project dropdown does not display selected value when creating a new project

1 participant