-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add jar debug dev tools only on profile * change log levels * try to fix autorestart of spring * rename intelij config and change log level of spring to debug in staging config * rename folder * use external profile to disable formatter * remove backend/pom.xml from branch * refactor styles of dialogs * remove useless tabindex * refactor styling of dialog-content and dialog-actions * refactor dialog header * clean up * fix invite members test * change default width of dialog * set cypress viewport * remove it.only from cy tests * use diffrent classes for default and small dialogs * remove useless config * clean up styling * remove scroll-shaddow * change height sizing strategie * refactor styling of keyresult edit component * introduce dialog-template-core-component * create base template for dialogs * align close button * comment in dialog component * fix scrolling of dialog * refactor kr-type-form * finish styling of kr-type select * fix scrolling by setting height of action buttons * clean up dialog content size * clean up styles.scss * refactor styles * refactor styles of generic component * move core component to shared module * fix design because of scrollbar * change keyresult type tabs to butotns * delete cancel dialog and refactor related files * refactor confirm dialog component to use template dialog core * refactor styling * refactor style of okr-label * refactor example dialog * refactor objective form component to use template dialog core * refactor objective form dialog * refactor dialog width * refactor keyresult component * fix responsive dialog * refactor objective complete dialog * clean up * refactor objective form component * minder out * fix objective form component * use priority to fetch logos * refactor dialog history compoennt * add spinner to dialog core * refactor dialog history component * refactor check-in componentn * refactor metric check in component * clean up keyresult dialog * clean up * fix kr type component * finish dialog refactoring * remove header component * refactor css classes * refactor styling * insert okr-form-label-input-container * fix dialog service tests * fix jest of objective form compoennt * fix tests of keyresult form * fix pom * fix tests of add-edit team dialog * fix tests keyresult-dialog tests * fix tests of complete dialog * fix jest tests * readd cancel button for check-in create * fix check-in e2e tests * fix e2e tests * remove only from cypress tests * fix teammanagement e2e test * fix duplicate scorring * clean up check-in tests * fix objective duplicate tests * clean up * clean up styles * create a dialog-data-show class * fix check in metric * fix keyresult type * clean up * implement todo --------- Co-authored-by: peggimann <[email protected]>
- Loading branch information
1 parent
edd0dee
commit 56caefd
Showing
81 changed files
with
1,015 additions
and
1,189 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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
frontend/src/app/components/application-top-bar/application-top-bar.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
86 changes: 42 additions & 44 deletions
86
frontend/src/app/components/check-in-history-dialog/check-in-history-dialog.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,57 +1,55 @@ | ||
<div class="ps-4 pt-3 pe-4"> | ||
<app-dialog-header [dialogTitle]="'Check-in History'"></app-dialog-header> | ||
<div | ||
class="d-flex justify-content-start flex-column gap-4 text-black dialog-content overflow-y-scroll text-break mt-3" | ||
tabindex="-1" | ||
> | ||
<ng-container | ||
*ngIf="(checkInHistory$ | async)?.length! > 0 && (checkInHistory$ | async) as checkInHistory; else spinner" | ||
> | ||
<div | ||
*ngFor="let checkIn of checkInHistory; index as i" | ||
class="d-flex flex-column dialog-form-fields p-2 check-in-box" | ||
> | ||
<div class="d-flex flex-row"> | ||
<span class="w-50 d-flex align-items-center me-1 fw-bold mt-2 mb-2">{{ | ||
checkIn.createdOn | date: DATE_FORMAT | ||
}}</span> | ||
<div class="w-50 d-flex justify-content-end align-items-center"> | ||
<app-dialog-template-core [observable]="checkInHistory$" [title]="'Check-in History'"> | ||
<ng-container content> | ||
<ng-container *ngIf="(checkInHistory$ | async)?.length! > 0 && (checkInHistory$ | async) as checkInHistory"> | ||
<div *ngFor="let checkIn of checkInHistory; index as i" class="bg-display-element p-1 okr-form-row"> | ||
<div class="col okr-form-label"> | ||
<div class="okr-form-row justify-content-between"> | ||
<span class="fw-bold col-auto"> | ||
{{ checkIn.createdOn | date: DATE_FORMAT }} | ||
</span> | ||
|
||
<button | ||
class="d-flex align-items-center justify-content-center edit-check-in-button" | ||
class="col-auto" | ||
mat-icon-button | ||
(click)="openCheckInDialogForm(checkIn)" | ||
*ngIf="!isComplete && checkIn.writeable" | ||
[attr.data-testId]="'edit-check-in'" | ||
> | ||
<img class="edit-check-in cursor-pointer m-1" src="../../assets/icons/edit.svg" alt="edit check-in" /> | ||
<img ngSrc="assets/icons/edit.svg" alt="edit check-in" width="24" height="24" /> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="d-flex flex-row mb-1"> | ||
<div class="w-50 d-flex justify-content-start"> | ||
<span *ngIf="keyResult.keyResultType === 'metric'" | ||
><i>Wert: </i>{{ getMetricKeyResult().unit | unitLabelTransformation }} | ||
{{ +checkIn.value! | unitValueTransformation: getMetricKeyResult().unit }}</span | ||
> | ||
<span *ngIf="keyResult.keyResultType === 'ordinal'"><i>Wert: </i>{{ checkIn.value }}</span> | ||
<div class="okr-form-row row-cols-4"> | ||
<h4 class="col-auto">Wert:</h4> | ||
<div class="col"> | ||
<ng-container *ngIf="keyResult.keyResultType === 'metric'"> | ||
{{ getMetricKeyResult().unit | unitLabelTransformation }} | ||
{{ +checkIn.value! | unitValueTransformation: getMetricKeyResult().unit }} | ||
</ng-container> | ||
<ng-container *ngIf="keyResult.keyResultType === 'ordinal'"> | ||
{{ checkIn.value }} | ||
</ng-container> | ||
</div> | ||
<h4 class="col-auto">Confidence:</h4> | ||
<div class="col">{{ checkIn.confidence }} / 10</div> | ||
</div> | ||
<div class="w-50 d-flex justify-content-start"> | ||
<span><i>Confidence: </i>{{ checkIn.confidence }} / 10</span> | ||
|
||
<div class="okr-form-row justify-content-between" *ngIf="checkIn.changeInfo !== ''"> | ||
<h4 class="col-3">Veränderungen:</h4> | ||
<span class="col linebreak">{{ checkIn.changeInfo }}</span> | ||
</div> | ||
|
||
<div class="okr-form-row justify-content-between row-cols-2" *ngIf="checkIn.initiatives !== ''"> | ||
<h4 class="col-3">Massnahmen:</h4> | ||
<span class="col flex-fill linebreak">{{ checkIn.initiatives }}</span> | ||
</div> | ||
</div> | ||
<div class="d-flex flex-row w-100 text-wrap mb-1" *ngIf="checkIn.changeInfo !== ''"> | ||
<span class="label-width"><i>Veränderungen: </i></span> | ||
<span class="value-width linebreak">{{ checkIn.changeInfo }}</span> | ||
</div> | ||
<div class="d-flex flex-row w-100 text-wrap" *ngIf="checkIn.initiatives !== ''"> | ||
<span class="label-width"><i>Massnahmen: </i></span> | ||
<span class="value-width linebreak">{{ checkIn.initiatives }}</span> | ||
</div> | ||
</div> | ||
</ng-container> | ||
</div> | ||
<button class="close-button" mat-flat-button color="primary" mat-dialog-close>Schliessen</button> | ||
<ng-template #spinner> | ||
<app-spinner text="Check-in history wird geladen..."></app-spinner> | ||
</ng-template> | ||
</div> | ||
</ng-container> | ||
|
||
<ng-container actions> | ||
<div class="col-auto"> | ||
<button mat-flat-button color="primary" mat-dialog-close>Schliessen</button> | ||
</div> | ||
</ng-container> | ||
</app-dialog-template-core> |
Oops, something went wrong.