From d744967210643db1ad1a72c7b0904ee98ef99926 Mon Sep 17 00:00:00 2001 From: Jurriaan Roelofs Date: Tue, 27 Jan 2026 13:09:37 +0100 Subject: [PATCH] feat(ux): add RL experiment highlight class for visual branding Add the 'rl-experiment' class to Views blocks using AI Sorting. This enables the animated gradient border branding from the RL module for authorized users. --- ai_sorting.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ai_sorting.module b/ai_sorting.module index ca6612e..05d4b4b 100644 --- a/ai_sorting.module +++ b/ai_sorting.module @@ -118,6 +118,9 @@ function ai_sorting_views_pre_render(ViewExecutable $view) { 'rlEndpointUrl' => "{$base_path}/{$rl_path}/rl.php", 'displayId' => $view->current_display, ]; + + // Add RL experiment highlight class for visual branding. + $view->element['#attributes']['class'][] = 'rl-experiment'; } }