Commit 8a8d4ce
Feat: add account page (#27)
* 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
* fix: make displayText optional in CopyButton component
* fix: update DataTable and Table components for improved styling; enhance formatElapsedTime utility for better timestamp handling
* feat: implement deal details and tasks tables
* fix: update TableCell and buildDealDetails components to use <p> tags for better semantic structure
* fix: update TableCell component to use inline-flex for improved layout
* fix: remove GPT comment from blockExplorerUrl declaration
* fix: refactor SmartLinkGroup to use dynamic block explorer URL and improve breadcrumb links with ChainLink component
* fix: rename dealTaskQuery to dealTasksQuery
* fix: update label in SmartLinkGroup to use dataset address instead of name
* fix: update DealTasksTable and buildDealDetails to handle error states and improve data fetching logic
* feat: add dataset details and dataset deals functionality
* feat: implement ErrorAlert component and replace inline error handling in various tables
* feat: update DatasetDealsTable to filter out 'dealid' column and enhance DealTasksTable with extended columns
* feat: add Workerpool details and deals functionality with GraphQL queries and components
* feat: implement app details and app deals functionality with GraphQL queries and components
* feat: add task details page with GraphQL query and components, including task breadcrumbs and error handling
* refactor: clean up formatting in buildAppDetails and AppsRoute components
* feat: refactor event components for better modularity and readability
* feat: add task link type and update block explorer functionality in SmartLinkGroup component
* feat: replace inline JSON display with JsonBlock component in buildDealDetails
* feat: add transaction details and event queries
* refactor: remove debug log from buildAppDetails function
* fix: update DealEventProps structure and adjust SmartLinkGroup types in buildTransactionDetails
* feat: Add address details page with queries for beneficiary deals, requested deals, requested tasks and overview
* fix: regenerate routeTree
* refactor: re generate gql file
* fix: remove redundant code in TasksPreviewTable component
* fix: make deal prop optional in DealEvent component
* fix: include currentPage in queryKey for beneficiaryDeals requestedDeals and requestedTasks
* fix: update TableCell height in DataTable component to avoid deferent empty size
* feat: add appPrice, datasetPrice, and workerpoolPrice to AddressBeneficiaryDeals and AddressRequestedDeals queries
* feat: add AddressContribution and NextAddressContribution queries and corresponding components
* fix: remove console.log statements from AddressBeneficiaryDealsTable, AddressRequestedDealsTable, and AddressRequestedTasksTable components
* feat: add AddressApps and NextAddressApps queries and corresponding AddressAppsTable component
* feat: add Address Datasets and Workerpools tables with corresponding queries
* fix: remove redundant deployed apps display in AddressRoute component
* feat: enhance Tabs component with disabled states and tooltips based on address data
* fix: update import from multiaddr to @multiformats/multiaddr and adjust package dependencies
* fix: adjust ChainLink component to take for width in DataTable
* feat: replace address display with SmartLinkGroup component in buildAddressOverview
* fix: format count display for address details to handle large numbers
* refactor: remove unused tab styles and add cursor pointer to buttons
* feat: integrate StatusCell component for task status display in buildTaskDetails and columns
* refactor: remove unused import of SUPPORTED_CHAINS in useUser.store
* fix: update rlcToNrlc function to support bigint input and return type
* feat: update SearcherBar to display user activity link based on user address
* feat: implement ClaimButton component and integrate it into task and deals details
* chore: add TODO entry to .gitignore
* refactor: update GraphQL types and improve type safety across components
* fix: separate build and type check scripts in package.json
* fix: correct deadline and add loading indicator
* style: adjust padding and layout in Navbar, SearcherBar, and Root components
* style: adjust spacing and layout for headers in various route components
* style: fix spacing in TableCell component className
* feat: add DownloadResult component for downloading task results from IPFS
* style: refactor layout of App and Dataset details headers for improved spacing
* feat: implement account management layout with tabs and stepper for deposit/withdraw actions
* feat: enhance account management with deposit/withdraw functionality and bridge integration
* feat: update query keys to include chainId and improve tab navigation logic
* style: fix className order in Stepper component for consistency
* feat: add IexecAccountIcon and WalletIcon components; enhance account layout with icons and improved styling
* fix: ensure non-null assertion for chainId and userAddress; improve mobile step display styling
* feat: move Coingecko URL to config file; enhance error handling in account component; keep current step between tabs
* fix: temp rename of IexecAccountIcon
* fix: rename IexecAccountIcon component and update import in account layout
* refactor: remove unused routes from ChainSlug layout
* fix: addressAddress page merge
* fix: update button background color in SearcherBar component
* fix: replace div with span for wallet and account icons in RouteComponent
* fix: update SVG attributes to camelCase in IexecAccountIcon and WalletIcon components
* fix: add wallet connection prompt in RouteComponent when user is not connected
* fix: update token references to use dynamic token symbols across components
* fix: handle non-numeric and non-positive strict values
Co-authored-by: pjt <[email protected]>
* fix: handle non-numeric and non-positive strict values
Co-authored-by: pjt <[email protected]>
* fix: remove error alerts for RLC price for total deposits and withdrawals
* fix: update GitHub Actions workflow to trigger on pull requests and ensure linting step is included
* fix: update GitHub Actions workflow to not trigger on pull requests and fix formatting in getTabs component
* fix: change input type for deposit and withdraw amounts to text for better handling of decimal values
* fix: update rlcToNrlc function to use big.js for improved precision and handle string inputs
* fix: update deposit and withdraw mutation checks to validate amounts instead of total balances
* fix: replace totalToDeposit and totalToWithdraw with walletBalance and accountStakedBalance
* fix: remove unused intermediary color variables from CSS
* fix: correct variable name for account staked balance refetch function
---------
Co-authored-by: Pierre Jeanjacquot <[email protected]>1 parent bfab41b commit 8a8d4ce
File tree
17 files changed
+829
-13
lines changed- .github/workflows
- src
- components
- icons
- ui
- modules
- account
- deals/dealsTable
- search
- routes/$chainSlug/_layout
- utils
17 files changed
+829
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
| 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 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 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 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments