diff --git a/.env.example b/.env.example index 86b7fc1e20..a67e753dc0 100644 --- a/.env.example +++ b/.env.example @@ -54,6 +54,7 @@ CUSTOM_EXECUTORS=false CACHE_SETTING_DRIVER=cache_settings CACHE_SETTING_PREFIX=settings: AI_ENABLE_RAG_COLLECTIONS=false +HIDE_REQUESTS_SEARCH_BAR=false SCRIPT_MICROSERVICE_ENABLED=true SCRIPT_MICROSERVICE_BASE_URL=https://localhost:8010 diff --git a/config/app.php b/config/app.php index b3c5891f98..c48ec9f889 100644 --- a/config/app.php +++ b/config/app.php @@ -334,4 +334,8 @@ 'claim_timeout_minutes' => env('SCHEDULER_CLAIM_TIMEOUT_MINUTES', 5), 'bpmn_timer_overlap_minutes' => env('SCHEDULER_BPMN_TIMER_OVERLAP_MINUTES', 5), ], + + // When true, hides the Requests page search bar and the filter chips listed under it. + // Table column filters remain available. + 'hide_requests_search_bar' => filter_var(env('HIDE_REQUESTS_SEARCH_BAR', false), FILTER_VALIDATE_BOOLEAN), ]; diff --git a/resources/views/requests/index.blade.php b/resources/views/requests/index.blade.php index 1d96c40d40..29bc58bb9f 100644 --- a/resources/views/requests/index.blade.php +++ b/resources/views/requests/index.blade.php @@ -55,6 +55,7 @@ function() use ($title) { return [__($title), null]; }
+ @unless(config('app.hide_requests_search_bar')) + @endunless