foss42 / apidash

API Dash is a beautiful open-source cross-platform API Client built using Flutter which can help you easily create & customize your API requests, visually inspect responses and generate API integration code. A lightweight alternative to postman/insomnia.
https://apidash.dev
Apache License 2.0
1.43k stars 269 forks source link

feat: Add a search/filter for collection pane #347

Closed sudhar08 closed 5 months ago

sudhar08 commented 5 months ago

This feature adds a search/filter functionality to the collection pane, allowing users to easily search for specific requests based on their names. Users can input search queries to filter the requests displayed in the collection pane, improving the navigation and organization of requests within the application.

PR Description

Add your description

Related Issues

Checklist

Added/updated tests?

We encourage you to add relevant test cases.

ashitaprasad commented 5 months ago

@sudhar08 Review your approach. This feature can be implemented at UI level without touching providers.

sudhar08 commented 5 months ago

@ashitaprasad we can't implement this feature without the provider because we need the data to search

animator commented 5 months ago

@sudhar08 All required data is already flowing into collection_pane.dart

animator commented 5 months ago

You just need at max one provider to store search query, but nothing more other than that.

sudhar08 commented 5 months ago

You just need at max one provider to store search query, but nothing more other than that.

Yes I need one provider for store the search query

animator commented 5 months ago

But, no other modification is required in CollectionStateNotifier that you have currently done. Also, the provider for storing search query goes in ui_providers.dart

sudhar08 commented 5 months ago

But, no other modification is required in CollectionStateNotifier that you have currently done. Also, the provider for storing search query goes in ui_providers.dart

What I was done here is the when the user search the query store in the provider and it and it search for the query in the CollectionStateNotifier