-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adding name form to repository config detail page #18943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/unhold |
e1026d5
to
dc9b33f
Compare
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this into the project-queries file - feels kind nice having related queries co-located so thought I’d give it a try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! LGTM
const updateProject = useUpdateProject(); | ||
const [projectName, setProjectName] = useState(project.name); | ||
|
||
const nameError = useOnBlurError("Sorry, this name is too long.", projectName.length <= 32); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ll plan on handling this in a follow up (or feel free to while I’m out).
/unhold |
Description
Getting some foundation pieces in there for the repository config detail page. We need to build a get project by id api endpoint, so I have this stubbed in an innefficient way that loads all projects and finds the match from there to temporarily unblock building out some of this UI.
I've added the form to update the name as well to get some functionality stubbed out as well there.
Summary generated by Copilot
🤖 Generated by Copilot at 3ea4b4f
This pull request introduces projects as a new concept for configuring repositories in teams or organizations. It adds custom hooks and form components to fetch and update project data from the public API, and improves the UI of the
RepositoryDetail
component.Related Issue(s)
How to test
/repositories/:id
/projects/:id/settings
, and then manually update the url.Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold