Skip to content

Fix/dropdown in add new task#265

Merged
its-me-abhishek merged 2 commits intoCCExtractor:mainfrom
vijay-talsangi:fix/dropdown-in-add-new-task
Dec 22, 2025
Merged

Fix/dropdown in add new task#265
its-me-abhishek merged 2 commits intoCCExtractor:mainfrom
vijay-talsangi:fix/dropdown-in-add-new-task

Conversation

@vijay-talsangi
Copy link
Copy Markdown
Contributor

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
Copy Markdown

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!

@its-me-abhishek its-me-abhishek merged commit 6dce86f into CCExtractor:main Dec 22, 2025
5 checks passed
ShivaGupta-14 pushed a commit to ShivaGupta-14/ccsync that referenced this pull request Dec 25, 2025
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

2 participants