From e7b177eab1b230b69979bbff8fee7fb8288a6c4d Mon Sep 17 00:00:00 2001 From: sanja <52755494+sanjacornelius@users.noreply.github.com> Date: Mon, 27 Jul 2026 13:05:55 -0700 Subject: [PATCH] Add flag to hide requests search bar Add HIDE_REQUESTS_SEARCH_BAR env variable (default false) to .env.example and expose it via app.hide_requests_search_bar (boolean) in config/app.php. Update the requests index view to conditionally hide the Requests page search bar and associated filter chips while keeping table column filters available. --- .env.example | 1 + config/app.php | 4 ++++ resources/views/requests/index.blade.php | 2 ++ 3 files changed, 7 insertions(+) diff --git a/.env.example b/.env.example index c3a094135c..a6a88e975d 100644 --- a/.env.example +++ b/.env.example @@ -52,6 +52,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 2d3855b971..a44e19ca87 100644 --- a/config/app.php +++ b/config/app.php @@ -331,4 +331,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 ba6b73d3ad..5da5c4cee6 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]; }