diff --git a/ts_swdash/sw-dash-requests.ts b/ts_swdash/sw-dash-requests.ts index 66fd1e1..c40382c 100644 --- a/ts_swdash/sw-dash-requests.ts +++ b/ts_swdash/sw-dash-requests.ts @@ -237,6 +237,17 @@ export class SwDashRequests extends LitElement { background: var(--bg-tertiary); border-radius: var(--radius-sm); padding: var(--space-2); + cursor: pointer; + transition: background 0.15s ease; + } + + .method-stat-card:hover { + background: var(--bg-secondary); + } + + .method-stat-card.active { + background: rgba(99, 102, 241, 0.15); + border: 1px solid var(--accent-primary); } .method-stat-name { @@ -504,6 +515,11 @@ export class SwDashRequests extends LitElement { // Local filtering - no HTTP request } + private setMethodFilter(method: string): void { + // Toggle: clicking the same method clears the filter + this.methodFilter = this.methodFilter === method ? '' : method; + } + private handleSearch(e: Event): void { this.searchText = (e.target as HTMLInputElement).value.toLowerCase(); } @@ -781,7 +797,10 @@ export class SwDashRequests extends LitElement {