add history description (#100)
Some checks failed
Backend Deploy / build (push) Successful in 21s
Backend Build and Test / build (push) Has been cancelled

closes #93

Reviewed-on: #100
This commit is contained in:
Huffle 2025-05-27 14:32:37 +02:00
parent 8380e95217
commit 344f7a7eef
4 changed files with 7 additions and 2 deletions

Binary file not shown.

View File

@ -1,4 +1,5 @@
export interface History { export interface History {
timestamp: string; timestamp: string;
allowance: number; allowance: number;
description: string;
} }

View File

@ -10,11 +10,11 @@
<div class="item" *ngFor="let history of history$ | async"> <div class="item" *ngFor="let history of history$ | async">
<div class="left"> <div class="left">
<div class="date">{{ history.timestamp | date: 'yyyy-MM-dd' }}</div> <div class="date">{{ history.timestamp | date: 'yyyy-MM-dd' }}</div>
<div class="description">Seba made an oopsie</div> <div class="description">{{ history.description }}</div>
</div> </div>
<div <div
class="amount" class="amount"
[ngClass]="{ 'negative': history.allowance < 0 }" [ngClass]="{ 'negative': history.allowance < 0 }"
>{{ history.allowance }}</div> >{{ history.allowance }} SP</div>
</div> </div>
</ion-content> </ion-content>

View File

@ -6,6 +6,10 @@
padding: 8px; padding: 8px;
} }
.left {
width: 70%;
}
.date { .date {
color: var(--line-color); color: var(--line-color);
} }