|
82 | 82 | > |
83 | 83 | <form [formGroup]="form"> |
84 | 84 | <div class="row"> |
| 85 | + <div class="col-6 col-lg-3"> |
| 86 | + <nb-form-field class="mb-2"> |
| 87 | + <nb-icon |
| 88 | + nbPrefix |
| 89 | + icon="calendar-plus" |
| 90 | + ></nb-icon> |
| 91 | + <input |
| 92 | + nbInput |
| 93 | + fullWidth |
| 94 | + fieldSize="small" |
| 95 | + placeholder="Data collected after" |
| 96 | + nbTooltip="Show dialogs created after this date" |
| 97 | + [nbDatepicker]="from_date" |
| 98 | + formControlName="dialogCreationDateFrom" |
| 99 | + /> |
| 100 | + <button |
| 101 | + *ngIf="!!getFormControl('dialogCreationDateFrom').value" |
| 102 | + nbButton |
| 103 | + nbSuffix |
| 104 | + ghost |
| 105 | + nbTooltip="Clear" |
| 106 | + type="button" |
| 107 | + (click)="resetControl(getFormControl('dialogCreationDateFrom'))" |
| 108 | + > |
| 109 | + <nb-icon icon="x"></nb-icon> |
| 110 | + </button> |
| 111 | + </nb-form-field> |
| 112 | + <nb-datepicker #from_date></nb-datepicker> |
| 113 | + </div> |
| 114 | + |
| 115 | + <div class="col-6 col-lg-3"> |
| 116 | + <nb-form-field class="mb-2"> |
| 117 | + <nb-icon |
| 118 | + nbPrefix |
| 119 | + icon="calendar-minus" |
| 120 | + ></nb-icon> |
| 121 | + <input |
| 122 | + nbInput |
| 123 | + fullWidth |
| 124 | + fieldSize="small" |
| 125 | + placeholder="Data collected before" |
| 126 | + nbTooltip="Show dialogs created before this date" |
| 127 | + [nbDatepicker]="to_date" |
| 128 | + formControlName="dialogCreationDateTo" |
| 129 | + /> |
| 130 | + <button |
| 131 | + *ngIf="!!getFormControl('dialogCreationDateTo').value" |
| 132 | + nbButton |
| 133 | + nbSuffix |
| 134 | + ghost |
| 135 | + nbTooltip="Clear" |
| 136 | + type="button" |
| 137 | + (click)="resetControl(getFormControl('dialogCreationDateTo'))" |
| 138 | + > |
| 139 | + <nb-icon icon="x"></nb-icon> |
| 140 | + </button> |
| 141 | + </nb-form-field> |
| 142 | + <nb-datepicker #to_date></nb-datepicker> |
| 143 | + </div> |
| 144 | + |
85 | 145 | <div class="col-6 col-lg-3"> |
86 | 146 | <nb-form-field class="mb-2"> |
87 | 147 | <nb-icon |
|
90 | 150 | ></nb-icon> |
91 | 151 | <nb-select |
92 | 152 | fullWidth |
| 153 | + size="small" |
93 | 154 | nbTooltip="Search for dialogs using this configuration." |
94 | 155 | placeholder="Configuration" |
95 | 156 | formControlName="configuration" |
|
113 | 174 | ></nb-icon> |
114 | 175 | <nb-select |
115 | 176 | fullWidth |
| 177 | + size="small" |
116 | 178 | nbTooltip="Search for dialogs using this connector." |
117 | 179 | placeholder="Connector" |
118 | 180 | formControlName="connectorType" |
|
140 | 202 | ></nb-icon> |
141 | 203 | <nb-select |
142 | 204 | fullWidth |
| 205 | + size="small" |
143 | 206 | nbTooltip="Search dialogs containing exchanges corresponding to the selected intent." |
144 | 207 | placeholder="Intent" |
145 | 208 | formControlName="intentName" |
|
164 | 227 | ></nb-icon> |
165 | 228 | <nb-select |
166 | 229 | fullWidth |
| 230 | + size="small" |
167 | 231 | multiple |
168 | 232 | nbTooltip="Hide exchanges corresponding to selected intents." |
169 | 233 | placeholder="Hide intents" |
|
179 | 243 | </nb-select> |
180 | 244 | </nb-form-field> |
181 | 245 | </div> |
182 | | - </div> |
183 | 246 |
|
184 | | - <div class="row"> |
185 | 247 | <div class="col-6 col-lg-3"> |
186 | 248 | <nb-form-field> |
187 | 249 | <nb-icon |
|
191 | 253 | <input |
192 | 254 | nbInput |
193 | 255 | fullWidth |
194 | | - fieldSize="medium" |
| 256 | + fieldSize="small" |
195 | 257 | nbTooltip="Search a dialog by id" |
196 | 258 | placeholder="Dialog id" |
197 | 259 | type="text" |
|
213 | 275 | </nb-form-field> |
214 | 276 | </div> |
215 | 277 |
|
216 | | - <div class="col-6 col-lg-3 pt-2"> |
| 278 | + <div class="col-6 col-lg-3 pt-1"> |
| 279 | + <nb-checkbox |
| 280 | + nbTooltip="Display dialogues held from the studio test view" |
| 281 | + class="text-nowrap" |
| 282 | + formControlName="displayTests" |
| 283 | + >Display tests |
| 284 | + </nb-checkbox> |
| 285 | + </div> |
| 286 | + |
| 287 | + <div class="col-6 col-lg-3 pt-1"> |
217 | 288 | <nb-checkbox |
218 | 289 | nbTooltip="Display only dialogs containing Rag responses" |
219 | 290 | class="text-nowrap" |
|
222 | 293 | </nb-checkbox> |
223 | 294 | </div> |
224 | 295 |
|
225 | | - <div class="col-6 col-lg-3 pt-2"> |
| 296 | + <!-- Annotations filters --> |
| 297 | + |
| 298 | + <div class="col-6 col-lg-3 pt-1 ellipsis"> |
226 | 299 | <nb-checkbox |
227 | | - nbTooltip="Display dialogues held from the studio test view" |
| 300 | + nbTooltip="Display only annotated dialogs" |
228 | 301 | class="text-nowrap" |
229 | | - formControlName="displayTests" |
230 | | - >Display tests |
| 302 | + formControlName="withAnnotations" |
| 303 | + >With annotation |
231 | 304 | </nb-checkbox> |
232 | 305 | </div> |
| 306 | + |
| 307 | + <div |
| 308 | + class="col-6 col-lg-3" |
| 309 | + *ngIf="getFormControl('withAnnotations').value" |
| 310 | + > |
| 311 | + <nb-form-field class="mb-2"> |
| 312 | + <nb-icon |
| 313 | + nbPrefix |
| 314 | + icon="pin-angle" |
| 315 | + ></nb-icon> |
| 316 | + <nb-select |
| 317 | + fullWidth |
| 318 | + size="small" |
| 319 | + multiple |
| 320 | + nbTooltip="Filter annotations by state" |
| 321 | + placeholder="Annotations state" |
| 322 | + formControlName="annotationStates" |
| 323 | + > |
| 324 | + <nb-option>Clear selection</nb-option> |
| 325 | + <nb-option |
| 326 | + *ngFor="let state of annotationStates" |
| 327 | + [value]="state.value" |
| 328 | + > |
| 329 | + {{ state.label }} |
| 330 | + </nb-option> |
| 331 | + </nb-select> |
| 332 | + </nb-form-field> |
| 333 | + </div> |
| 334 | + |
| 335 | + <div |
| 336 | + class="col-6 col-lg-3" |
| 337 | + *ngIf="getFormControl('withAnnotations').value" |
| 338 | + > |
| 339 | + <nb-form-field class="mb-2"> |
| 340 | + <nb-icon |
| 341 | + nbPrefix |
| 342 | + icon="cone-striped" |
| 343 | + ></nb-icon> |
| 344 | + <nb-select |
| 345 | + fullWidth |
| 346 | + size="small" |
| 347 | + multiple |
| 348 | + nbTooltip="Filter annotations by reason" |
| 349 | + placeholder="Annotations reasons" |
| 350 | + formControlName="annotationReasons" |
| 351 | + > |
| 352 | + <nb-option>Clear selection</nb-option> |
| 353 | + <nb-option |
| 354 | + *ngFor="let reason of annotationReasons" |
| 355 | + [value]="reason.value" |
| 356 | + > |
| 357 | + {{ reason.label }} |
| 358 | + </nb-option> |
| 359 | + </nb-select> |
| 360 | + </nb-form-field> |
| 361 | + </div> |
| 362 | + |
| 363 | + <div |
| 364 | + class="col-6 col-lg-3" |
| 365 | + *ngIf="getFormControl('withAnnotations').value" |
| 366 | + > |
| 367 | + <nb-form-field class="mb-2"> |
| 368 | + <nb-icon |
| 369 | + nbPrefix |
| 370 | + icon="calendar-plus" |
| 371 | + ></nb-icon> |
| 372 | + <input |
| 373 | + nbInput |
| 374 | + fullWidth |
| 375 | + fieldSize="small" |
| 376 | + placeholder="Annotations created after" |
| 377 | + nbTooltip="Show annotations created after this date" |
| 378 | + [nbDatepicker]="from_date_annotation" |
| 379 | + formControlName="annotationCreationDateFrom" |
| 380 | + /> |
| 381 | + <button |
| 382 | + *ngIf="!!getFormControl('annotationCreationDateFrom').value" |
| 383 | + nbButton |
| 384 | + nbSuffix |
| 385 | + ghost |
| 386 | + nbTooltip="Clear" |
| 387 | + type="button" |
| 388 | + (click)="resetControl(getFormControl('annotationCreationDateFrom'))" |
| 389 | + > |
| 390 | + <nb-icon icon="x"></nb-icon> |
| 391 | + </button> |
| 392 | + </nb-form-field> |
| 393 | + <nb-datepicker #from_date_annotation></nb-datepicker> |
| 394 | + </div> |
| 395 | + |
| 396 | + <div |
| 397 | + class="col-6 col-lg-3" |
| 398 | + *ngIf="getFormControl('withAnnotations').value" |
| 399 | + > |
| 400 | + <nb-form-field class="mb-2"> |
| 401 | + <nb-icon |
| 402 | + nbPrefix |
| 403 | + icon="calendar-minus" |
| 404 | + ></nb-icon> |
| 405 | + <input |
| 406 | + nbInput |
| 407 | + fullWidth |
| 408 | + fieldSize="small" |
| 409 | + placeholder="Annotations created before" |
| 410 | + nbTooltip="Show annotations created before this date" |
| 411 | + [nbDatepicker]="to_date_annotation" |
| 412 | + formControlName="annotationCreationDateTo" |
| 413 | + /> |
| 414 | + <button |
| 415 | + *ngIf="!!getFormControl('annotationCreationDateTo').value" |
| 416 | + nbButton |
| 417 | + nbSuffix |
| 418 | + ghost |
| 419 | + nbTooltip="Clear" |
| 420 | + type="button" |
| 421 | + (click)="resetControl(getFormControl('annotationCreationDateTo'))" |
| 422 | + > |
| 423 | + <nb-icon icon="x"></nb-icon> |
| 424 | + </button> |
| 425 | + </nb-form-field> |
| 426 | + <nb-datepicker #to_date_annotation></nb-datepicker> |
| 427 | + </div> |
| 428 | + |
| 429 | + <div |
| 430 | + class="col-12 col-xl-6 d-flex gap-1 align-items-center" |
| 431 | + *ngIf="getFormControl('withAnnotations').value" |
| 432 | + > |
| 433 | + Sort order of annotations: |
| 434 | + <nb-radio-group |
| 435 | + formControlName="annotationSort" |
| 436 | + class="d-flex" |
| 437 | + > |
| 438 | + <nb-radio |
| 439 | + *ngFor="let order of sortOrders" |
| 440 | + [value]="order.value" |
| 441 | + > |
| 442 | + {{ order.label }} |
| 443 | + </nb-radio> |
| 444 | + </nb-radio-group> |
| 445 | + </div> |
233 | 446 | </div> |
234 | 447 | </form> |
235 | 448 | </div> |
|
0 commit comments