@@ -152,9 +152,7 @@ public function form(Form $form): Form
152152 ->label ('Enable Discord webhook notifications ' )
153153 ->reactive ()
154154 ->columnSpanFull (),
155- Forms \Components \Grid::make ([
156- 'default ' => 1 ,
157- ])
155+ Forms \Components \Grid::make (['default ' => 1 ])
158156 ->hidden (fn (Forms \Get $ get ) => $ get ('discord_enabled ' ) !== true )
159157 ->schema ([
160158 Forms \Components \Fieldset::make ('Triggers ' )
@@ -164,6 +162,7 @@ public function form(Form $form): Form
164162 ->columnSpanFull (),
165163 Forms \Components \Toggle::make ('discord_on_threshold_failure ' )
166164 ->label ('Notify on threshold failures ' )
165+ ->reactive ()
167166 ->columnSpanFull (),
168167 ]),
169168 Forms \Components \Repeater::make ('discord_webhooks ' )
@@ -177,12 +176,16 @@ public function form(Form $form): Form
177176 ])
178177 ->columnSpanFull (),
179178 Forms \Components \Fieldset::make ('discord_user_mention ' )
180- ->label ('User Id to mention if threshold is hit ' )
179+ ->label ('Discord User Mention ' )
180+ ->hidden (fn (Forms \Get $ get ) => $ get ('discord_on_threshold_failure ' ) !== true )
181181 ->schema ([
182182 Forms \Components \TextInput::make ('discord_user_mention ' )
183- ->label ('Mention ID ' )
184- ->maxLength (18 ),
185- ]),
183+ ->label ('User ID ' )
184+ ->placeholder ('Enter the Discord User ID ' )
185+ ->maxLength (18 )
186+ ->helperText ('This should be the numeric User ID from Discord (e.g., 123456789012345678) ' ),
187+ ])
188+ ->columnSpanFull (),
186189 Forms \Components \Actions::make ([
187190 Forms \Components \Actions \Action::make ('test discord ' )
188191 ->label ('Test Discord webhook ' )
@@ -196,7 +199,6 @@ public function form(Form $form): Form
196199 'default ' => 1 ,
197200 'md ' => 2 ,
198201 ]),
199-
200202 Forms \Components \Section::make ('Gotify ' )
201203 ->schema ([
202204 Forms \Components \Toggle::make ('gotify_enabled ' )
0 commit comments