Skip to content

Commit

Permalink
add expansion panel to show description
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickuhlmann committed Dec 7, 2024
1 parent 101ce18 commit e7cc52b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
10 changes: 10 additions & 0 deletions frontend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## Version 1.0.15, 07.12.2024

- feature: add expansion panel to show the description for each event/course
- increase bundle size budget
- migrate scss style (adress warning)
- chore: bump @angular-eslint to 19.0.0
- chore: bump prettier to 3.4.1
- chore: bump eslint to 9.16.0
- chore: bump @typescript/eslint to 8.16.0

## Version 1.0.14, 01.12.2024

- chore: bump to Angular 19
Expand Down
4 changes: 2 additions & 2 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumWarning": "1mb",
"maximumError": "2mb"
},
{
"type": "anyComponentStyle",
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eventoverview",
"version": "1.0.14",
"version": "1.0.15",
"scripts": {
"start": "ng serve",
"start:int": "ng serve --configuration int",
Expand Down
9 changes: 8 additions & 1 deletion frontend/src/app/event/components/eventlist.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,14 @@
<table mat-table [dataSource]="data" matSort class="mat-elevation-z8">
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Name</th>
<td mat-cell *matCellDef="let element">{{ element.name }}</td>
<td mat-cell *matCellDef="let element">
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>{{ element.name }}</mat-panel-title>
</mat-expansion-panel-header>
{{element.description}}
</mat-expansion-panel>
</td>
</ng-container>

<ng-container matColumnDef="startsAt">
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/app/event/components/eventlist.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { parseIsoDate } from '../../util/date.util';
import { ActivatedRoute } from '@angular/router';
import { SelectCheckAllComponent } from '../../core/components/select-check-all.component';
import { MatExpansionModule } from '@angular/material/expansion';

@Component({
selector: 'app-event-list',
Expand All @@ -41,6 +42,7 @@ import { SelectCheckAllComponent } from '../../core/components/select-check-all.
MatSelectModule,
MatInputModule,
FormsModule,
MatExpansionModule,
ReactiveFormsModule,
],
templateUrl: './eventlist.component.html',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'app/core/fonts/Montserrat';
@use 'app/core/fonts/Montserrat';
$main-font: 'Montserrat Light';
$text-size-normal: 14px;

Expand Down

0 comments on commit e7cc52b

Please sign in to comment.