File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
stylesheets/modules/ai-bot-conversations Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,9 @@ export default {
93
93
@tracked loadedSevenDayLabel = false ;
94
94
@tracked loadedThirtyDayLabel = false ;
95
95
@tracked loadedMonthLabels = new Set ( ) ;
96
- page = 0 ;
96
+ @ tracked isLoading = true ;
97
97
isFetching = false ;
98
+ page = 0 ;
98
99
totalTopicsCount = 0 ;
99
100
100
101
constructor ( ) {
@@ -123,7 +124,9 @@ export default {
123
124
}
124
125
125
126
get emptyStateComponent ( ) {
126
- return AiBotSidebarEmptyState ;
127
+ if ( ! this . isLoading ) {
128
+ return AiBotSidebarEmptyState ;
129
+ }
127
130
}
128
131
129
132
get text ( ) {
@@ -214,6 +217,8 @@ export default {
214
217
this . attachScrollListener ( ) ;
215
218
} catch {
216
219
this . isFetching = false ;
220
+ } finally {
221
+ this . isLoading = false ;
217
222
}
218
223
}
219
224
Original file line number Diff line number Diff line change @@ -389,6 +389,10 @@ body.has-ai-conversations-sidebar {
389
389
color : var (--primary-high );
390
390
font-size : var (--font-down-2 );
391
391
392
+ & __progress {
393
+ margin-left : 0.5em ;
394
+ }
395
+
392
396
& :hover ,
393
397
& :focus-visible {
394
398
.d-icon {
Original file line number Diff line number Diff line change 137
137
expect ( page ) . to have_no_css ( ".ai-bot-upload" )
138
138
end
139
139
140
- xit "allows removing an upload before submission" do
140
+ it "allows removing an upload before submission" do
141
+ skip "TODO: fix this test for playwright"
142
+
141
143
ai_pm_homepage . visit
142
144
expect ( ai_pm_homepage ) . to have_homepage
143
145
144
146
file_path = file_from_fixtures ( "logo.png" , "images" ) . path
145
147
attach_file ( [ file_path ] ) { find ( ".ai-bot-upload-btn" , visible : true ) . click }
146
-
147
148
expect ( page ) . to have_css ( ".ai-bot-upload" , count : 1 )
148
149
150
+ # TODO: for some reason this line fails in playwright
149
151
find ( ".ai-bot-upload__remove" ) . click
150
152
151
153
expect ( page ) . to have_no_css ( ".ai-bot-upload" )
You can’t perform that action at this time.
0 commit comments