Skip to content

Commit

Permalink
Fix mobile header and add filter label on closed header
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelMoeri committed Nov 11, 2024
1 parent 5b2fe86 commit e10a5e1
Show file tree
Hide file tree
Showing 12 changed files with 433 additions and 29 deletions.
2 changes: 1 addition & 1 deletion backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,4 @@
</build>
</profile>
</profiles>
</project>
</project>
4 changes: 2 additions & 2 deletions frontend/cypress/e2e/tab.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ describe('Tab workflow tests', () => {
cy.focused().parentsUntil('#objective-column').last().contains('Edited by Cypress');
});

it('Duplicate objective with tab', () => {
it.only('Duplicate objective with tab', () => {
openThreeDotMenu();
cy.realPress('ArrowDown');
cy.realPress('ArrowDown');
Expand All @@ -231,7 +231,7 @@ describe('Tab workflow tests', () => {
editInputFields('Duplicated by Cypress');
cy.tabForward();
cy.tabForward();
cy.focused().contains('GJ');
cy.realPress('ArrowDown');
cy.realPress('ArrowDown');
cy.tabForward();
cy.focused().contains('Speichern');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,27 @@

<section class="m-0 d-sm-flex d-md-none w-100">
<mat-accordion [displayMode]="'flat'" class="w-100">
<mat-expansion-panel (closed)="panelOpenState = false" (opened)="panelOpenState = true" id="header-accordion">
<mat-expansion-panel-header>
<mat-expansion-panel
(closed)="panelOpenState = false"
(opened)="panelOpenState = true"
id="header-accordion"
class="content-center"
>
<mat-expansion-panel-header class="d-flex gap-2 mx-3">
<mat-panel-title>
<span *ngIf="!panelOpenState; else openedPanel">{{
(quarterLabel$ | async) || quarterLabel$.getValue()
}}</span>
<ng-template #openedPanel> Filter </ng-template>
<div class="w-100 d-flex justify-content-between">
<span *ngIf="!panelOpenState; else openedPanel">{{
(quarterLabel$ | async) || quarterLabel$.getValue()
}}</span>
<span *ngIf="!panelOpenState">Filter</span>
</div>
<ng-template #openedPanel><p>Filter</p></ng-template>
</mat-panel-title>
</mat-expansion-panel-header>

<div class="d-flex gap-2 flex-column">
<app-quarter-filter (quarterLabel$)="quarterLabel$.next($event)"></app-quarter-filter>
<app-objective-filter></app-objective-filter>
<app-team-filter></app-team-filter>
<div class="d-flex gap-2 flex-column filter-container">
<app-objective-filter class="m-2"></app-objective-filter>
<app-quarter-filter (quarterLabel$)="quarterLabel$.next($event)" class="m-2"></app-quarter-filter>
<app-team-filter [showMoreTeams]="false" class="m-2"></app-team-filter>
</div>
</mat-expansion-panel>
</mat-accordion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
>
<input
matInput
class="w-100"
[type]="'text'"
[placeholder]="'Nach Objectives suchen'"
[(ngModel)]="query"
Expand Down
Loading

0 comments on commit e10a5e1

Please sign in to comment.