Skip to content
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

New project subgroup/searchable dropdown #837

Merged
merged 26 commits into from
Jan 3, 2025

Conversation

malchua
Copy link
Contributor

@malchua malchua commented Nov 6, 2024

What does this PR do and why?

Describe in detail what your merge request does and why.
This PR adds the searchable dropdown to the new Project and new Subgroup forms. This dropdown will make it easier for a user to look up a specific Namespace or Group when creating a new Project or Subgroup.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other pull requests.
image
image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Login
  2. In the sidebar, click on Groups
  3. Select a group that your are an owner of
  4. On the details page, click on the New project button
  5. In the Project URL, search for any Namespaces that you have at least the Maintainer role for and check that they present on the list.
  6. Repeat steps 1-5 with the New subgroup button and Group URL section.

PR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

This comment has been minimized.

@malchua malchua marked this pull request as ready for review November 8, 2024 19:34
@malchua malchua force-pushed the new-project-subgroup/searchable-dropdown branch from 637c191 to 98b192c Compare November 12, 2024 22:22

This comment has been minimized.

@ericenns ericenns requested a review from joshsadam November 22, 2024 18:24
Copy link
Contributor

@joshsadam joshsadam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just took a quick look through this. My one major comment I have is that if I were a user and I clicked "Create project" from within a group, I would expect that the namespace would auto-populate to be that namespace and I would not need to search for it, possibly even disable changing it.

app/views/groups/_form_fields.html.erb Outdated Show resolved Hide resolved
@malchua malchua force-pushed the new-project-subgroup/searchable-dropdown branch from 98b192c to 2eb7ab3 Compare December 20, 2024 02:38

This comment has been minimized.

Copy link
Contributor

@joshsadam joshsadam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the changes to the component. I am still not getting the value of the select2 set properly, I left a comment about that. There are a couple other things I would like you to take a look at.

This comment has been minimized.

This comment has been minimized.

@malchua malchua force-pushed the new-project-subgroup/searchable-dropdown branch from 50e9686 to 97df898 Compare January 3, 2025 00:38

This comment has been minimized.

This comment has been minimized.

@malchua malchua force-pushed the new-project-subgroup/searchable-dropdown branch from 97df898 to f689bc1 Compare January 3, 2025 18:12
Copy link

github-actions bot commented Jan 3, 2025

Code Metrics Report

Coverage Test Execution Time
92.8% 10m30s

Code coverage of files in pull request scope (100.0%)

Files Coverage
app/components/viral/form/prefixed/select2_component.html.erb 100.0%
app/components/viral/form/prefixed/select2_component.rb 100.0%
app/helpers/view_helper.rb 100.0%
app/views/groups/_form_fields.html.erb 100.0%
app/views/groups/new_subgroup.html.erb 100.0%
app/views/projects/_project_namespace_fields.erb 100.0%
app/views/projects/new.html.erb 100.0%

Reported by octocov

@joshsadam joshsadam merged commit bb6fc4b into main Jan 3, 2025
4 checks passed
@joshsadam joshsadam deleted the new-project-subgroup/searchable-dropdown branch January 3, 2025 19:39
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