Skip to content

Conversation

@CharlyMartin
Copy link
Collaborator

@CharlyMartin CharlyMartin commented Dec 18, 2025

πŸ“ Description

This PR implements search functionality using query parameters for the warm storage service providers table.

UXIT-3724

πŸ› οΈ Key Changes

  • Implemented search query state management in WarmStorageProvidersTable using the useSearchQueryState hook
  • Moved useSearchQueryState hook from src/app/service-providers/hooks/useSearchQueryState.ts to src/hooks/use-search-query-state.ts for shared usage across multiple features
  • Updated ServiceProvidersTable to import useSearchQueryState from the new shared location
  • Configured WarmStorageProvidersTable to use globalFilter state and onGlobalFilterChange handler for search functionality
  • Simplified tsconfig.json path aliases by removing redundant mappings that are already covered by the base @/* alias
  • Added enableMultiSort: false to react-table hook, as commented on Implement persisted search and sort filters to ServiceProvidersTableΒ #148 (comment)
  • Removed unnecessary { shallow: false } from nuqs hooks, as commented on Implement persisted search and sort filters to ServiceProvidersTableΒ #148 (comment)

- Rename `useSearchQueryState` hook from service-providers to shared hooks for reusability across components.
- Update import path in `ServiceProvidersTable.tsx`.
- Integrate hook into `WarmStorageProvidersTable.tsx` to manage global search query state via URL params, replacing derived state.
- Add `@/hooks` path alias in `tsconfig.json` to support new shared hooks location.
Removed specific aliases for app, components, fonts, config, constants,
services, types, and utils directories, as the general "@/*" mapping
covers src imports. Retained "@/public/*" for public assets to maintain
compatibility without redundancy. This streamlines the configuration
and reduces maintenance overhead.
@vercel
Copy link

vercel bot commented Dec 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
filecoin-cloud Ready Ready Preview, Comment Dec 18, 2025 3:33pm

@FilOzzy FilOzzy added this to FS Dec 18, 2025
@github-project-automation github-project-automation bot moved this to πŸ“Œ Triage in FS Dec 18, 2025
@CharlyMartin CharlyMartin changed the title UXIT-3724/implement-search-query-params Implement search query params on warm storage table Dec 18, 2025
Added `enableMultiSort: false` to the `useReactTable` configuration to prevent
multi-column sorting, simplifying the user experience and ensuring single-column
sorting behavior.
Copy link
Collaborator

@mirhamasala mirhamasala left a comment

Choose a reason for hiding this comment

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

LGTM! ❀️‍πŸ”₯

@github-project-automation github-project-automation bot moved this from πŸ“Œ Triage to βœ”οΈ Approved by reviewer in FS Dec 19, 2025
@CharlyMartin CharlyMartin merged commit e3d3b4d into main Dec 19, 2025
6 checks passed
@CharlyMartin CharlyMartin deleted the UXIT-3724/implement-search-query-params branch December 19, 2025 09:56
@github-project-automation github-project-automation bot moved this from βœ”οΈ Approved by reviewer to πŸŽ‰ Done in FS Dec 19, 2025
@github-actions github-actions bot added size/M and removed size/M labels Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: πŸŽ‰ Done

Development

Successfully merging this pull request may close these issues.

3 participants