feat: Navigate directly to the agent search page when no filters are applied and prioritize user profile data for displaying user names and avatars.

This commit is contained in:
pradeepkumar
2026-03-27 08:35:27 +05:30
parent 4c06d0d895
commit 4f9dc10633
2 changed files with 20 additions and 12 deletions

View File

@@ -51,12 +51,8 @@ class _HeroSectionState extends ConsumerState<HeroSection> {
if (_selectedCategory != null) params['category'] = Uri.encodeComponent(_selectedCategory!);
if (params.isEmpty) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Please select at least one filter to search'),
backgroundColor: AppColors.accentOrange,
),
);
// "All Types" with no other filters — navigate to show all agents
context.push('/agents/search');
return;
}