-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(AI-130): eslint fixes and styles improvements (#22)
* feat(AI-130): added system notification when user added new files to the conversation * fix(AI-130): eslint fixes and styles improvements * feat(AI-130): format and unit test fixes
- Loading branch information
1 parent
6d26533
commit 18cb2e1
Showing
64 changed files
with
287 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 7 additions & 10 deletions
17
apps/spa/src/app/components/chat/chat-audio/chat-audio.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
@if (isAudioEnabled) { | ||
<span | ||
class="chat-audio" | ||
[ngClass]="'chat-audio--' + message.role" | ||
> | ||
@if(!isStarted) { | ||
<mat-icon (click)="speech()">play_circle</mat-icon> | ||
} @else { | ||
<mat-icon (click)="pause()">pause_circle</mat-icon> | ||
} | ||
</span> | ||
<span class="chat-audio" [ngClass]="'chat-audio--' + message?.role"> | ||
@if(!isStarted) { | ||
<mat-icon (click)="speech()">play_circle</mat-icon> | ||
} @else { | ||
<mat-icon (click)="pause()">pause_circle</mat-icon> | ||
} | ||
</span> | ||
} |
5 changes: 3 additions & 2 deletions
5
apps/spa/src/app/components/chat/chat-audio/chat-audio.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 4 additions & 13 deletions
17
apps/spa/src/app/components/chat/chat-footer/chat-footer.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
<ai-card-footer> | ||
|
||
<ai-controls> | ||
@if (isTranscriptionEnabled) { | ||
<ai-recorder | ||
(send$)="sendAudio$.emit($event)" | ||
matTooltip="Record audio" | ||
/> | ||
} | ||
@if (isAttachmentEnabled) { | ||
<ai-files matTooltip="Add files" /> | ||
<ai-recorder (send$)="sendAudio$.emit($event)" matTooltip="Record audio" /> | ||
} @if (isAttachmentEnabled) { | ||
<ai-files matTooltip="Add files" /> | ||
} | ||
</ai-controls> | ||
|
||
<ai-input | ||
[isDisabled]="isDisabled" | ||
(send$)="sendMessage$.emit($event)" | ||
/> | ||
|
||
<ai-input [isDisabled]="isDisabled" (send$)="sendMessage$.emit($event)" /> | ||
</ai-card-footer> |
2 changes: 1 addition & 1 deletion
2
apps/spa/src/app/components/chat/chat-footer/chat-footer.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "settings"; | ||
@import 'settings'; | ||
|
||
:host { | ||
display: block; | ||
|
3 changes: 2 additions & 1 deletion
3
apps/spa/src/app/components/chat/chat-footer/chat-footer.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
apps/spa/src/app/components/chat/chat-footer/chat-footer.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 13 additions & 14 deletions
27
apps/spa/src/app/components/chat/chat-header/chat-header.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/spa/src/app/components/chat/chat-header/chat-header.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "settings"; | ||
@import 'settings'; | ||
|
||
:host { | ||
position: relative; | ||
|
2 changes: 1 addition & 1 deletion
2
apps/spa/src/app/components/chat/chat-iframe/chat-iframe.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<ng-content/> | ||
<ng-content /> |
2 changes: 1 addition & 1 deletion
2
apps/spa/src/app/components/chat/chat-iframe/chat-iframe.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "settings"; | ||
@import 'settings'; | ||
|
||
:host { | ||
display: block; | ||
|
7 changes: 4 additions & 3 deletions
7
apps/spa/src/app/components/chat/chat-message/chat-message.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
@if (message.role === 'assistant') { | ||
<ai-chat-avatar></ai-chat-avatar> | ||
@if (message) { @if (message.role === 'assistant') { | ||
<ai-chat-avatar></ai-chat-avatar> | ||
} | ||
|
||
<div class="chat-message"> | ||
<span markdown [data]="message.content"></span> | ||
|
||
@if (message.role !== chatRole.System) { | ||
<ai-chat-audio [message]="message"></ai-chat-audio> | ||
<ai-chat-audio [message]="message"></ai-chat-audio> | ||
} | ||
</div> | ||
} |
5 changes: 3 additions & 2 deletions
5
apps/spa/src/app/components/chat/chat-message/chat-message.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
apps/spa/src/app/components/chat/chat-messages/chat-messages.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
<div class="messages"> | ||
@for (message of messages; track message) { | ||
<span #item> | ||
<ai-chat-message [message]="message"></ai-chat-message> | ||
</span> | ||
<span #item> | ||
<ai-chat-message [message]="message"></ai-chat-message> | ||
</span> | ||
} @empty { | ||
<ai-chat-tips | ||
[tips]="tips" | ||
(tipSelected$)="tipSelected$.emit($event)" | ||
/> | ||
<ai-chat-tips [tips]="tips" (tipSelected$)="tipSelected$.emit($event)" /> | ||
} | ||
<ai-chat-typing [isLoading]="isLoading"></ai-chat-typing> | ||
</div> |
6 changes: 4 additions & 2 deletions
6
apps/spa/src/app/components/chat/chat-messages/chat-messages.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/spa/src/app/components/chat/chat-tip/chat-tip.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<ng-content/> | ||
<ng-content /> |
2 changes: 1 addition & 1 deletion
2
apps/spa/src/app/components/chat/chat-tip/chat-tip.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "settings"; | ||
@import 'settings'; | ||
|
||
:host { | ||
padding: $size-2 $size-4; | ||
|
6 changes: 3 additions & 3 deletions
6
apps/spa/src/app/components/chat/chat-tips/chat-tips.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@for (tip of tips; track tip) { | ||
<ai-chat-tip (click)="tipSelected$.emit(tip)"> | ||
{{ tip }} | ||
</ai-chat-tip> | ||
<ai-chat-tip (click)="tipSelected$.emit(tip)"> | ||
{{ tip }} | ||
</ai-chat-tip> | ||
} |
2 changes: 1 addition & 1 deletion
2
apps/spa/src/app/components/chat/chat-tips/chat-tips.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "settings"; | ||
@import 'settings'; | ||
|
||
:host { | ||
display: flex; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
apps/spa/src/app/components/chat/chat-typing/chat-typing.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
@if (isLoading) { | ||
<div class="chat-typing"> | ||
<div class="chat-typing__dots"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</div> | ||
<div class="chat-typing"> | ||
<div class="chat-typing__dots"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</div> | ||
</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.