fix: remove scouting quick filter bar

This commit is contained in:
bisco
2026-06-03 23:05:16 +02:00
parent f2934d7924
commit 5cc1076225
4 changed files with 2 additions and 115 deletions
-18
View File
@@ -89,24 +89,6 @@ describe('AppComponent', () => {
assert.equal(calls, 1);
});
it('applies quick filters immediately and can clear them with all controls', () => {
const requestedPositions: string[] = [];
const api = {
searchPlayers: (filters: { position: string; league: string }) => {
requestedPositions.push(`${filters.position}:${filters.league}`);
return of({ count: 0, results: [] });
},
} as unknown as PlayerApiService;
const component = new AppComponent(api);
component.setPosition('PG');
component.setLeague('LBA');
component.setPosition('');
component.setLeague('');
assert.deepEqual(requestedPositions, ['PG:', 'PG:LBA', ':LBA', ':']);
});
it('shows the loading placeholder only before results exist', () => {
const api = {
searchPlayers: () => of({ count: samplePlayers.length, results: samplePlayers }),