Search bar component in Cloud Tenant module #9229
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR enhances the search functionality in Compute -> Clouds -> Tenant -> (admin) -> admin (Cloud Object Store Containers, Images, Instances, Security Groups, Cloud Networks, Cloud Subnets, Network Ports, Cloud Volumes).
Changes Included:
Reused SearchBar Component:
The
SearchBar
component is reused with theadvanced_search
parameter set to false to simplify the search process.Application Controller Updates:
In the
get_view_process_search_text
method ofapplication_controller.rb
, the logic has been updated to handle the @display instance variable.CSS Adjustments:
Added CSS rules to ensure the search bar appears correctly positioned on the right side of the screen.
Impact:
These changes ensure that the search bar functionality works seamlessly across different views, including images, instances, security groups, cloud volumes, and other entities under the
Tenant
in theClouds
menu.Testing:
Verified that the search bar works correctly for all Cloud Tenant display in the UI. But not executed the Rspec test cases.
Before:
After: