feat: Build SearchInput and FilterPanel components for asset filterin…#859
Merged
Conversation
…g in opsce folder
|
@SheyeJDev is attempting to deploy a commit to the naijabuz's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@bibi-fay Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
yusuftomilola
approved these changes
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: registration form, data table, pagination, and search/filter components
Summary
Implements four outstanding frontend issues across auth and shared UI infrastructure.
Changes
frontend/opsce/auth/RegisterForm.tsxReplaces the stub register page with a fully validated form using
react-hook-formandzod. Adds aconfirmPasswordfield, field-level error messages on blur, a password strength indicator (weak / medium / strong), a loading + disabled submit state, and a409error handler that surfaces "An account with this email already exists" inline on the email field. On success, redirects to/loginwith a toast.frontend/opsce/components/DataTable/DataTable.tsxGeneric headless table built on
@tanstack/react-tablev8 with Tailwind styling. Supports column sorting (ASC / DESC / none), row selection via checkboxes with anonSelectionChangecallback, a customisable empty-state slot, and a 3-row loading skeleton. Horizontally scrollable on small screens.frontend/opsce/components/Pagination/Pagination.tsxPagination control that accepts
page,totalPages,total, andlimitprops. Renders numbered page buttons with ellipsis for large ranges, disables Prev/Next at boundaries, highlights the current page, shows a "Showing X–Y of Z results" summary, and includesaria-labelattributes throughout.frontend/opsce/components/SearchInput/SearchInput.tsx+FilterPanel/FilterPanel.tsx+hooks/useFilterState.tsSearchInputdebounces theonChangecallback by 300 ms.FilterPanelis a collapsible panel with dropdowns for Status, Condition, Category, Department, and Location, plus a date-range picker. An active filter count badge appears on the toggle button and a "Clear all" button resets everything. Filter state (and search) is synced to URL query params viauseFilterStateso selections survive page refresh. All components are exported fromfrontend/opsce/components/index.ts.Testing
/loginwith toastconfirmPasswordmismatch shows error on bluronSelectionChangeCloses #773
Closes #772
Closes #770
Closes #771