hasura / hasura/graphql-engine

Select the $eq operator by default when filtering a table's rows

Open
#9,970 0 comments 1 reaction 0 assignees View on GitHub
k/enhancement
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Is your proposal related to a problem?

When filtering a table 80% of the time you want to find some uuid of a specific row. Currently you always have to select the $eq operator manually.
![image](https://github.com/hasura/graphql-engine/assets/1710840/d975560b-8b49-4de4-9ed7-0b5874aa91fe)

### Describe the solution you'd like

Select the $eq operator by default. That way, 80% of the time you save the user 2 clicks when setting up a filter. And the other 20% of the time it still only takes 2 clicks to choose a different operator. So there is no downside.

### Describe alternatives you've considered

Always manually select the operator.
Inject some macro using chrome extensions to set the operator to $eq automatically.

Contributor guide

Open the contributing guide

Research direction

Start by locating the table row-filter UI in the TypeScript frontend and identify where the operator selection is initialized. Verify the current filtering flow, then confirm that new filters initially use $eq while other operators remain selectable; test the filter interaction in the table UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.