Skip to content
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

General: Display total LLM cost as text instead of pie chart #10088

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,8 @@ <h5 class="text-center">{{ 'artemisApp.course.detail.' + doughnutChartTitle + 'T
<div class="doughnut-chart-container" [ngClass]="titleLink ? 'clickable' : ''" (click)="openCorrespondingPage()">
<div class="doughnut-chart-text">
@if (receivedStats) {
@if (currentPercentage != undefined) {
<div class="h4">{{ currentPercentage }}%</div>
} @else if (showText) {
<div class="h4">{{ showText }}</div>
}
@if (!showText) {
<div class="h6">{{ currentAbsolute }} / {{ currentMax }}</div>
} @else if (currentPercentage != undefined) {
<div class="h6">{{ showText }}</div>
}
<div class="h4">{{ currentPercentage }}%</div>
<div class="h6">{{ currentAbsolute }} / {{ currentMax }}</div>
} @else {
<div class="h3">
<fa-icon [icon]="faSpinner" animation="spin" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@
[currentMax]="courseDTO?.currentMaxAverageScore"
/>
@if (this.irisChatEnabled || this.isAthenaEnabled) {
<jhi-course-detail-doughnut-chart
class="doughnut-container col-sm-6 my-3"
[course]="course"
[contentType]="DoughnutChartType.CURRENT_LLM_COST"
[showText]="courseDTO?.currentTotalLlmCostInEur + ' €'"
[currentMax]="0"
/>
<div class="doughnut-container col-sm-6 my-3">
<h5 class="text-center">
{{ 'artemisApp.course.detail.currentTotalLLMCostTitle' | artemisTranslate }}{{ ': ' + courseDTO?.currentTotalLlmCostInEur + ' €' }}
</h5>
</div>
}
</div>
</div>
Expand Down
Loading