arya2004 / arya2004/fynewire

Add a "Clear Filters" Button

Open
#5 1 comment 0 reactions 1 assignee Claimed by @princyballabh View on GitHub
good first issue hacktoberfest hacktoberfest-accepted
Dominant language
Go
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Currently, there is no way to reset all filter input fields in the UI at once.

**Task:**

* [ ] Add a "Clear" button to the filter section of the UI (in `app.go`).
* [ ] When clicked, the button should reset all filter fields and re-apply filters to show all packets.

**Example:**

```go
clear := widget.NewButton("Clear", func() {
u.filterProtocol.SetText("")
u.filterSrcIP.SetText("")
u.filterDstIP.SetText("")
u.filterSrcPort.SetText("")
u.filterDstPort.SetText("")
u.filterFreeText.SetText("")
u.applyFilters()
})
```

**Why:**
This will improve usability for users who want to quickly reset their search.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.