Skip to content

Prefill project name in create modal#1045

Merged
Onatcer merged 2 commits intosolidtime-io:mainfrom
ShrootBuck:main
Mar 29, 2026
Merged

Prefill project name in create modal#1045
Onatcer merged 2 commits intosolidtime-io:mainfrom
ShrootBuck:main

Conversation

@ShrootBuck
Copy link
Copy Markdown
Contributor

What does this PR do?

When searching for a project in the time tracker dropdown that doesn't exist, clicking "Create new Project" now pre-fills the search text as the project name in the creation modal. This saves the user from having to retype the name they already searched for. Minor QoL improvement but I've found it to occur quite frequently in new projects

Verified that existing usages of ProjectCreateModal (Projects page, Command Palette, ProjectDropdown, ProjectTable) are unaffected since the new prop is marked optional

  • Adds an optional initialProjectName prop to ProjectCreateModal
  • Passes the dropdown's searchValue as the initial project name

Checklist

ShrootBuck and others added 2 commits March 26, 2026 21:04
Add optional initialProjectName prop to ProjectCreateModal and use it
to initialize the project's name. Pass the TimeTracker dropdown's
searchValue as initial-project-name so the create form is prefilled.
@Onatcer
Copy link
Copy Markdown
Contributor

Onatcer commented Mar 29, 2026

Thank you for the contribution!

@Onatcer Onatcer merged commit 1eb066f into solidtime-io:main Mar 29, 2026
1 check passed
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.

2 participants