-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Subgroup projects searching and pagination (#792)
* chore: Working on search in subgroups * chore: Working on auto-submit * chore: Just need to figure out flattening on search * chore: This wasn't needed * chore: Working search for subgroups and project * test: This does not need to be there anymore * chore: Fixed Shared groups and projects content * test: Update test for pagination * chore: Fixed flaky test * chore: Fixed test * test: Test searching * chore: Cleaned up methods * feat: Updated with ability to set the icon size * chore: Removed the search from the turbo response
- Loading branch information
Showing
22 changed files
with
161 additions
and
92 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
app/components/namespace_tree/namespace_tree_component.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<ul class="groups-list namespace-list-tree flex flex-col"> | ||
<ul class="flex flex-col groups-list namespace-list-tree"> | ||
<%= render NamespaceTree::RowComponent.with_collection( | ||
namespaces, | ||
path: path, | ||
path_args: path_args, | ||
type: @type, | ||
collapsed: collapsed, | ||
render_flat_list: render_flat_list, | ||
icon_size: icon_size, | ||
) %> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
app/components/namespace_tree/row/without_children_component.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
<li | ||
class="namespace-entry <%= @namespace.description.present? ? "has-description" : nil %>" | ||
> | ||
<div class="namespace-entry-contents py-3 pr-3 flex items-center"> | ||
<span class="folder-toggle-wrap mr-2 flex items-center"> | ||
<div class="flex items-center py-3 pr-3 namespace-entry-contents"> | ||
<span class="flex items-center mr-2 folder-toggle-wrap"> | ||
<%= viral_icon(name: :blank, classes: "h-3 w-3") %> | ||
</span> | ||
<%= render NamespaceTree::Row::RowContentsComponent.new( | ||
namespace: @namespace, | ||
path: @path, | ||
path_args: @path_args, | ||
sample_count: @sample_count, | ||
icon_size: @icon_size, | ||
) %> | ||
</div> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.