Commit 5e08ad5
feat: upgrade access feature (#91)
* feat: add tab navigation for app details and deals in AppsRoute component
* feat: add AppAccessTable component and integrate into AppsRoute
* feat: enhance AppAccessTable and AppDealsTable with loading and outdated state management
* feat: rename columns to appColumns and remove app address and price column
* feat: add tab navigation for dataset details, deals, and access in DatasetsRoute
* feat: integrate loading and outdated state management in DatasetDealsTable
* feat: add DatasetAccessTable component and integrate it into DatasetsRoute
* feat: add tab navigation for workerpool details, deals, and access
* feat: enhance WorkerpoolDealsTable with loading and outdated state management
* feat: add WorkerpoolAccessTable component and integrate it into WorkerpoolsRoute
* feat: refactor loading and outdated state management in access and deals tables using useEffect
* feat: add access tables for apps, datasets, and workerpools on address page
* fix: correct import path for WorkerpoolAccessTable component
* refactor: remove console logs from access data fetching functions
* feat: enhance pagination logic to display all pages for 7 or fewer total pages
* feat: update pagination logic to support mobile-first design and dynamic page visibility
* feat: update access data fetching logic to support pagination and total count for apps, datasets, and workerpools
* fix: prevent rendering of pagination controls for invalid states
* refactor: prettier
* fix: stabilize pagination rendering during lading state
* fix: normalize case for order restrictions in CopyButton components
* fix: useTabParam() name in dataset
Co-authored-by: Copilot <[email protected]>
* fix: correct error message wording in loading alerts across multiple tables
* feat: add price column with token symbol for app, dataset, and workerpool orders
* fix: conditionally apply cursor pointer class based on destination
* feat: format access data to include destination paths for apps, datasets, and workerpools
* fix: adjust indicator position calculation to include scroll offset
* fix: update initIExecSDKs to work without wallet connection
* fix: convert price values from NRLC to RLC across app, dataset, and workerpool access columns
* fix: update orderbook fetch calls to include 'any' for dataset, app, and workerpool parameters
* fix: improve pagination stability by updating totalPages reference condition
* feat: rename "access" tables to "access from"
* fix: remove unused datasetOwner parameter from dataset orderbook fetch
* fix: update query keys to use 'accessFrom' for apps, datasets, and workerpools
* feat: add access to tables for apps, datasets, and workerpools to address layout
* fix: stabilize pagination by resetting totalPages reference on chainId change
* fix: remove debug log for provider in initIExecSDKs function
* fix: include 'requester' parameter as 'any' in access data queries for app, dataset, and workerpool
* fix: reorder AddressAppsAccessTable in AddressRoute component
* fix: reorder AddressAppsAccessFromTable in AddressRoute component
* feat: rename access table "access from/to" to "granted/received access"
* feat: add Access page
* feat: convert dataset prices to RLC format in buildAccessDetails function
* feat: update access destination paths to use orderHash for all access tables
* fix: remove unnecessary refetchInterval and console log in useAccessData
* feat: enhance buildAccessDetails function with type-specific access handling
* fix: add 'order' type to LinkType in SmartLinkGroup usage in buildAccessDetails
* feat: implement revoke access functionality for app, dataset, and workerpool orders
* fix: adjust padding in tab buttons for improved layout
* fix: update comment to reflect correct number of displayed items per page in access tables
* fix: remove unnecessary console log and adjust access check placement in RevokeAccess component
* fix: remove unused imports for access tables in address layout
* feat: update access routes and components for apps, datasets, and workerpools
* refactor: remove access hash route and related components
* feat: enhance SmartLinkGroup to conditionally display address or ID and label; update access details functions to include app, dataset, and workerpool information
* feat: add revoke access button on user access granted page
* fix: update remaining display to show remaining and total volume in access details
* fix: update access destination path to include dataset in DatasetAccessTable
* feat: implement access assets details
* feat: reorder access details display
* feat: update restriction display to show 'Not restricted' for zero address
---------
Co-authored-by: Copilot <[email protected]>1 parent 94f3195 commit 5e08ad5
File tree
30 files changed
+2393
-106
lines changed- src
- components
- icons
- modules
- access
- access
- addresses/address
- grantedAccess
- receivedAccess
- apps/app
- datasets/dataset
- workerpools/workerpool
- routes/$chainSlug/_layout
- access
- app
- dataset
- workerpool
- address
30 files changed
+2393
-106
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| |||
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
101 | | - | |
| 108 | + | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| 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 | + | |
| 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 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 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 | + | |
0 commit comments