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

Mirror Overview UI #664

Merged
merged 10 commits into from
Nov 16, 2023
Merged

Mirror Overview UI #664

merged 10 commits into from
Nov 16, 2023

Conversation

Amogh-Bharadwaj
Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj commented Nov 15, 2023

Fixes #654
Fixes #660
Fixes #656

  • Restores tab UI for specific mirror page (/edit/[mirrorId])
  • Adds mirror configuration details and list of source tables to destination tables in overview tab (with search bar)
  • Adds sort functionality for CDC tab and Initial load tab. In CDC you can sort by Start Time, End Time and Rows Synced. In Initial Load you can sort by Start Time and Time per partition.
  • Timeframe options in CDC Graph now in a dropdown.
  • Moves Sync History graph to Sync tab.
  • Displays further mirror config via a View More button click which pops up a modal with the info.
  • Centers the drop modal (same component as configuration modal in specific mirror page).
Screenshot 2023-11-16 at 1 59 44 AM Screenshot 2023-11-16 at 2 00 30 AM

const handleSort = useCallback(
(sortOption: 'startTime' | 'endTime' | 'numRows') => {
setDisplayedRows((currRows) =>
[...currRows].sort((a, b) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should sort be sorting allRows instead of current? Can see arguments for both

@Amogh-Bharadwaj Amogh-Bharadwaj force-pushed the overview-ui branch 2 times, most recently from 4d6a6e4 to a221863 Compare November 15, 2023 20:38
Amogh-Bharadwaj added a commit that referenced this pull request Nov 16, 2023
Split from #664

---------

Co-authored-by: Philip Dubé <[email protected]>
@Amogh-Bharadwaj
Copy link
Contributor Author

CDC and Snapshot tables in overview page now have sort, search and pagination logic in useMemo. Users can sort and search for an item across all rows irrespective of which page they're on.

@Amogh-Bharadwaj Amogh-Bharadwaj merged commit ce45d28 into main Nov 16, 2023
12 checks passed
@serprex serprex deleted the overview-ui branch July 19, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants