Commit 2d1be5d
feature/chain switch (#12)
* feat: add data table component and integrate with apps route
* feat: add SearcherBar component and integrate it into apps and index routes
* refactor: remove unused Link import from columns.tsx
* feat: implement PaginatedNavigation component in AppsTable for pagination support
* refactor: enhance pagination logic in PaginatedNavigation component for improved readability and functionality
* refactor: adjust pagination logic in generatePaginationItems for improved visibility and functionality
* fix: border transition looking bad
* refactor: update useAppsData to accept currentPage for dynamic data fetching
* fix: add placeholderData to useQuery for improved data handling
* refactor: wrap app name in a div and fixe is width
* fix: update TABLE_LENGTH to 16 for correct configuration
* refactor: remove AppsTable component and integrate its functionality directly into AppsRoute with refetch indicator
* feat: add Deals route with data fetching and pagination functionality
* fix: rename taskQuery to tasksQuery for consistency in data fetching
* refactor: reorganize imports and simplify conditional rendering in DealsRoute
* feat: implement Tasks route with data fetching, pagination, and task table columns
* refactor: replace inline type definitions with GraphQL query types for Apps and Deals
* fix: display workerpool description directly in the table instead of using CopyButton
* feat: add Workerpools route with data fetching, pagination, and table columns
* fix: wrap CopyButton in a div to set a fixed width for app name display
* fix: improve description display in workerpools table with consistent styling
* fix: replace CopyButton with conditional rendering for dataset name display
* feat: add Datasets route with data fetching, pagination, and table columns
* fix: update PaginationEllipsis styling for better responsiveness
* fix: update query state variables to indicate refetch and loading
* fix: update loading indicator logic to show during loading or refetching
* fix: adjust SearcherBar styling for improved layout and responsiveness
* fix: refactor SearcherBar layout for improved structure and styling
* fix: adjust SearcherBar padding for improved layout consistency
* fix: simplify Button component structure in SearcherBar for cleaner code
* fix: update PaginationPrevious and PaginationNext to use screen reader only text for accessibility
* fix: refactor SearcherBar to improve button visibility and input class handling based on connection status
* fix: update placeholder text in SearcherBar for clarity
* feat: rename folder
* feat: rename folder AppsTable/ to appTable/
* fix: remove unnecessary 'use client' directive from multiple components
* feat: enhance DataTable component with tableLength and isLoading props for improved data handling
* feat: move routes for apps, datasets, deals, tasks, and workerpools
* fix: update destination paths for apps, datasets, deals, tasks, and workerpools routes
* feat: implement DataTable component and update routes to use it
* feat: replace useNavigate with Link in DataTable for improved navigation
* feat: refactor preview tables to use DataTable component for improved rendering and data handling
* fix: prevent default button behavior in CopyButton component
* feat: rename WorkerpoolsPreviewTable component and update import path
* fix: update import path for WorkerpoolsPreviewTable component
* feat: add routes for datasets, deals, tasks, and workerpools with data handling and pagination
* refactor: remove unused AppsTable component and related code
* feat: add NextApps, NextDatasets, NextDeals, NextTasks, and NextWorkerpools to assure next page in pagination
* fix: update import path for WorkerpoolsPreviewTable component
* chore: update @radix-ui/react-slot version to 1.2.2 in package.json and package-lock.json
* feat: update pagination logic in multiple routes to adjust current page and total pages
* feat: add ChainSelector component and integrate new chain Arbitrum Sepolia and Avalanche Fuji
* fix: update danger color variables for improved accessibility
* fix: replace Terminal icon with AlertOctagon in UnsupportedChain component
* fix: adjust border radius and add left border to destructive alert variant
* fix: remove Avalanche Fuji from configuration
* fix: add color property to chain objects and update background color in Index component
* feat: integrate subgraph URL management in user store and update query execution across preview tables
* fix: add query client initialization and invalidate queries in useSyncAccountWithUserStore
* fix: update useUserStore import and refactor query execution in TasksPreviewTable and WorkerpoolsPreviewTable
* fix: update query execution in apps, datasets, deals, tasks, and workerpools routes to include subgraph URL
* fix: update query execution in preview tables to include chainId in query keys and invalidate query on chain update
* fix: update query execution in WorkerpoolsPreviewTable to include chainId and subgraphUrl
* fix: temps renaming
* fix: rename WorkerpoolsPreviewTable
* fix: correct import path for WorkerpoolsPreviewTable
* fix: update ChainSelector to handle chainId as a required number
* fix: update useSyncAccountWithUserStore to set chainId only when currentChain is found
* fix: refactor to use chainId instead of subgraphUrl in various components and hooks
* fix: update subgraphUrl for Arbitrum Sepolia in SUPPORTED_CHAINS
* fix: simplify ChainSelector by removing local state and using chainId directly
* feat: implement dynamic routes for chain-specific apps, datasets, tasks, and workerpools; remove deprecated deals route
* feat: add missing deals page, lost during merge
* fix: import filename casing issue
* refactor: introduce ChainSyncManager to keep chain state up to date
* fix: update redirect target to use INITIAL_CHAIN slug
* fix: enable data fetching based on chainId
---------
Co-authored-by: Pierre Jeanjacquot <[email protected]>1 parent b5568b4 commit 2d1be5d
File tree
33 files changed
+688
-275
lines changed- src
- assets/chain-icons
- components
- ui
- graphql
- hooks
- modules
- apps
- datasets
- deals
- tasks
- workerpools
- routes
- $chainSlug
- _layout
- stores
- utils
33 files changed
+688
-275
lines changedLoading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | | - | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 9 | | |
| 10 | + | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
| |||
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
27 | | - | |
| 22 | + | |
28 | 23 | | |
29 | 24 | | |
30 | | - | |
| 25 | + | |
31 | 26 | | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
35 | | - | |
| 30 | + | |
36 | 31 | | |
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 36 | + | |
51 | 37 | | |
52 | 38 | | |
53 | 39 | | |
| |||
89 | 75 | | |
90 | 76 | | |
91 | 77 | | |
92 | | - | |
| 78 | + | |
93 | 79 | | |
94 | | - | |
| 80 | + | |
95 | 81 | | |
96 | 82 | | |
97 | 83 | | |
| |||
117 | 103 | | |
118 | 104 | | |
119 | 105 | | |
120 | | - | |
| 106 | + | |
121 | 107 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 108 | + | |
132 | 109 | | |
133 | 110 | | |
134 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
9 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
12 | 30 | | |
13 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
8 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
0 commit comments