File tree Expand file tree Collapse file tree
web/src/components/dashboard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,14 +181,19 @@ const UNIT_MAP = {
181181 * @param {Object } [config] - Per-guild config with quietMode.maxDurationMinutes
182182 * @returns {number } Duration in seconds, clamped to [MIN_DURATION_SECONDS, maxSeconds]
183183 */
184- export function parseDurationFromContent ( content , defaultSeconds = DEFAULT_DURATION_SECONDS , config = null ) {
184+ export function parseDurationFromContent (
185+ content ,
186+ defaultSeconds = DEFAULT_DURATION_SECONDS ,
187+ config = null ,
188+ ) {
185189 const text = content . toLowerCase ( ) ;
186190
187191 // Determine effective max duration from config or fallback to hardcoded limit
188192 const configuredMaxMinutes = config ?. quietMode ?. maxDurationMinutes ;
189- const maxSeconds = ( Number . isFinite ( configuredMaxMinutes ) && configuredMaxMinutes > 0 )
190- ? Math . min ( configuredMaxMinutes * 60 , MAX_DURATION_SECONDS )
191- : MAX_DURATION_SECONDS ;
193+ const maxSeconds =
194+ Number . isFinite ( configuredMaxMinutes ) && configuredMaxMinutes > 0
195+ ? Math . min ( configuredMaxMinutes * 60 , MAX_DURATION_SECONDS )
196+ : MAX_DURATION_SECONDS ;
192197
193198 // Helper to clamp to valid range
194199 const clamp = ( seconds ) => Math . min ( Math . max ( seconds , MIN_DURATION_SECONDS ) , maxSeconds ) ;
Original file line number Diff line number Diff line change @@ -143,7 +143,9 @@ export function AiFeedbackStats() {
143143 innerRadius = { 50 }
144144 outerRadius = { 75 }
145145 dataKey = "value"
146- label = { ( { name, percent } ) => `${ name } ${ ( ( ( percent ?? 0 ) * 100 ) ) . toFixed ( 0 ) } %` }
146+ label = { ( { name, percent } ) =>
147+ `${ name } ${ ( ( percent ?? 0 ) * 100 ) . toFixed ( 0 ) } %`
148+ }
147149 labelLine = { false }
148150 >
149151 { pieData . map ( ( _ , index ) => (
You can’t perform that action at this time.
0 commit comments