Create project: Add a FormFields component

What does this MR do and why?

Add a FormFields component for a project creation form

In this iteration FormFields renders a project name, namespace select and a project slug. In next iteration there will be also a Deployment Target and Visibility Level.

These fields are shared between all the new project types. But each new project type add before or after these fields something else. So, I decided to go with a component for shared fields.

⚠️ ⚠️ ⚠️ These changes are behind the new_project_creation_form feature flag. They won't be available to users until all the work is done. See the plan here #514700 (closed) ⚠️ ⚠️ ⚠️

Screenshots or screen recordings

After
default view CleanShot_2025-04-07_at_14.45.29_2x
slug is changing based on a name CleanShot_2025-04-07_at_14.45.51_2x
validation CleanShot_2025-04-07_at_14.46.01_2x

How to set up and validate locally

  1. In rails console enable the experiment fully

    Feature.enable(:new_project_creation_form)
  2. Go to http://gdk.test:3000/projects/new

  3. Choose a blank project

  4. Click [Next step]

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

#512693 (closed)

Merge request reports

Loading