-
Notifications
You must be signed in to change notification settings - Fork 0
[Frontend] - Question components tests and integrations #637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
thomasdejaeghere
merged 20 commits into
development
from
567-frontend---question-components-tests-and-integrations
May 20, 2025
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1317b94
student assignment chat popup and routing buttons
rvdkeere a90507f
convert popup button to separate component
rvdkeere 380351c
Update chat-popup.component.ts
rvdkeere c0f9f2a
Merge branch 'development' into 567-frontend---question-components-te…
rvdkeere 37aab98
refactored integration into new assignment component
rvdkeere 4752b3f
added chat titles and menu button
rvdkeere 6bfac82
separate student and teacher chat toggle
rvdkeere 464b776
Merge branch 'development' into 567-frontend---question-components-te…
rvdkeere 52f93f2
various fixes
rvdkeere 9409651
fix button location
lennertdr 4661040
refactored chat page, added teacher dashboard integration
rvdkeere 5d950c5
Merge branch '567-frontend---question-components-tests-and-integratio…
rvdkeere 5da619d
Merge branch 'development' into 567-frontend---question-components-te…
rvdkeere 5f39b77
Merge branch 'development' into 567-frontend---question-components-te…
rvdkeere f917d23
cleanup
rvdkeere b19e6a4
added tests
rvdkeere 40bbf04
layout fix + off-by-1 for students
lennertdr 5accb5a
Merge remote-tracking branch 'origin/development' into 567-frontend--…
lennertdr 6eef1e8
send with enter
lennertdr 16f16b2
fix padding
lennertdr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -55,4 +55,11 @@ | |
|
|
||
| .stats { | ||
| width: 80%; | ||
| } | ||
|
|
||
| .inline { | ||
| display: flex; | ||
| flex-direction: row; | ||
| width: 100%; | ||
| justify-content: center; | ||
| } | ||
This file contains hidden or 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 hidden or 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
26 changes: 26 additions & 0 deletions
26
frontend/src/app/components/chat-popup/chat-popup.component.html
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <button mat-fab class="chat-fab" color="primary" (click)="open()"> | ||
| <mat-icon>chat</mat-icon> | ||
| </button> | ||
|
|
||
| <ng-template #chatDialog> | ||
| <div class="chat-dialog"> | ||
| <div class="chat-header"> | ||
| <mat-toolbar color="primary" class="chat-custom-toolbar"> | ||
| <span>Chat</span> | ||
| <span class="spacer"></span> | ||
| <button mat-icon-button (click)="navigateToFullChat()" matTooltip="Open full chat"> | ||
| <mat-icon style="color: black;">open_in_new</mat-icon> | ||
| </button> | ||
| <button mat-icon-button (click)="close()"> | ||
| <mat-icon style="color: black;">close</mat-icon> | ||
| </button> | ||
| </mat-toolbar> | ||
| </div> | ||
| <app-chat | ||
| [questionThreadId]="currentThreadId" | ||
| [showHeader]="false" | ||
| [assignmentId]="assignmentId" | ||
| [learningObjectId]="currentLearningObjectId"> | ||
| </app-chat> | ||
| </div> | ||
| </ng-template> |
55 changes: 55 additions & 0 deletions
55
frontend/src/app/components/chat-popup/chat-popup.component.less
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| .chat-fab { | ||
| margin-left: 3rem; | ||
| } | ||
|
|
||
| .chat-dialog-container { | ||
| .mat-mdc-dialog-container { | ||
| height: 100% !important; | ||
| display: flex; | ||
| flex-direction: column; | ||
| padding: 0; | ||
| overflow: hidden; | ||
|
|
||
| .mdc-dialog__surface { | ||
| height: 100%; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .chat-dialog { | ||
| display: flex; | ||
| flex-direction: column; | ||
| height: 100%; | ||
| overflow: hidden; | ||
|
|
||
| app-chat { | ||
| flex: 1; | ||
| overflow-y: auto; | ||
| } | ||
| } | ||
|
|
||
| .chat-custom-toolbar { | ||
| position: sticky; | ||
| top: 0; | ||
| z-index: 2; | ||
| height: 64px; | ||
| flex-shrink: 0; | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
|
|
||
| .spacer { | ||
| flex: 1; | ||
| } | ||
|
|
||
| .mat-icon-button { | ||
| background: transparent !important; | ||
| border: none !important; | ||
|
|
||
| &:hover { | ||
| background: rgba(255, 255, 255, 0.1) !important; | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a typo?