Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor datatable component to include filter clearing functionality #270

Merged
merged 28 commits into from
Dec 6, 2024

Conversation

devansh-m12
Copy link
Contributor

@devansh-m12 devansh-m12 commented Dec 6, 2024

fixes #269

@dinmukhamedm I've updated the DataTable component to check if a filter exists in the search parameters and is applied. Only then do we have the permission to clear filters."

Screenshot 2024-12-06 at 8 48 10 AM

Important

Adds filter clearing functionality to DataTable component, allowing users to clear applied filters via a button.

  • Behavior:
    • Adds clearFilters function in datatable.tsx to remove 'filter' from search parameters and update the URL.
    • Displays 'Clear filters' button in TableCell when filters are applied and no results are found.
  • Imports:
    • Adds usePathname, useRouter, and useSearchParams from next/navigation in datatable.tsx.

This description was created by Ellipsis for 8f65322. It will automatically update as commits are pushed.

dinmukhamedm and others added 27 commits October 29, 2024 21:00
Readme fixes and global colors
Update landing and welcome email, contrib experience, minor fixes
Improve onboarding, fix eval page placeholder
Explicit mapping in labels + frontend improvements
add claude-3-5-haiku to pipeline and prices (lmnr-ai#174)
fix evaluations query in labeling queue (lmnr-ai#176)
Middleware auth, traces page efficiency
improve UI for workspaces + internal fixes
Store label values sent from association properties
* initial work to compare evals

* remove unnecessary div

* design

---------

Co-authored-by: Din <dinmukhamed.mailibay@gmail.com>
disable all clickhouse queries for non-full builds (lmnr-ai#213)
update models in pipeline templates to 4o family (lmnr-ai#215)
Fix realtime and manual spans
Semantic search API, blogs, minor fixes
update rust deps and fix blog images (lmnr-ai#246)
Allow disabling tracing, search by spans
@CLAassistant
Copy link

CLAassistant commented Dec 6, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 8f65322 in 1 minute and 36 seconds

More details
  • Looked at 48 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_IyRPITAjPptnnzdd


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

frontend/components/ui/datatable.tsx Show resolved Hide resolved
frontend/components/ui/datatable.tsx Outdated Show resolved Hide resolved
frontend/components/ui/datatable.tsx Outdated Show resolved Hide resolved
@dinmukhamedm dinmukhamedm changed the base branch from main to dev December 6, 2024 03:59
@dinmukhamedm
Copy link
Member

@devansh-m12 LGTM. Can you please attach a screenshot of what it looks like after your last change?

@devansh-m12
Copy link
Contributor Author

Here, @dinmukhamedm I've implemented the requested changes. To clarify, it removes the filter from the search parameters but does not reset the filter fields, allowing previously applied filters to be re-applied with a single click. you can check recording for refrence.

Screenshot 2024-12-06 at 9 31 11 AM
Screen.Recording.2024-12-06.at.9.34.21.AM.mov

@dinmukhamedm
Copy link
Member

Awesome, that works great, merging to dev now!

@dinmukhamedm dinmukhamedm merged commit bcb38fc into lmnr-ai:dev Dec 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CTA to reset filters if filters are applied and 0 results are shown
4 participants