This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
assets/javascripts/discourse/services Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -224,9 +224,9 @@ export default class AiConversationsSidebarManager extends Service {
224224 if ( diffDays <= 1 ) {
225225 dateGroup = "today" ;
226226 } else if ( diffDays <= 7 ) {
227- dateGroup = "last_7_days " ;
227+ dateGroup = "last-7-days " ;
228228 } else if ( diffDays <= 30 ) {
229- dateGroup = "last_30_days " ;
229+ dateGroup = "last-30-days " ;
230230 } else {
231231 const d = new Date ( postedAtMs ) ;
232232 const key = `${ d . getFullYear ( ) } -${ d . getMonth ( ) } ` ;
@@ -240,10 +240,10 @@ export default class AiConversationsSidebarManager extends Service {
240240 case "today" :
241241 title = i18n ( "discourse_ai.ai_bot.conversations.today" ) ;
242242 break ;
243- case "last_7_days " :
243+ case "last-7-days " :
244244 title = i18n ( "discourse_ai.ai_bot.conversations.last_7_days" ) ;
245245 break ;
246- case "last_30_days " :
246+ case "last-30-days " :
247247 title = i18n ( "discourse_ai.ai_bot.conversations.last_30_days" ) ;
248248 break ;
249249 default :
Original file line number Diff line number Diff line change 250250 header . click_bot_button
251251
252252 expect ( ai_pm_homepage ) . to have_homepage
253- expect ( sidebar ) . to have_section ( "Apr 2024" )
253+ expect ( sidebar ) . to have_section ( "2024-3 " )
254254 end
255255
256256 it "navigates to the bot conversation when clicked" do
You can’t perform that action at this time.
0 commit comments