40 Commits

Author SHA1 Message Date
Eric
0ea0f60197
fix bug with multiple alerts not dismissing
The alerts for multiple events involving slots had non-unique ids and were failing to dismiss.
2024-06-27 12:01:33 +10:00
Eric
dcb6131c19
fix bug where a 404 puts a value in the shared state that should not exist 2024-06-26 17:02:55 +10:00
Eric
20d3a1ce8d
maintain moderation view when viewing request details from alert banner 2024-06-26 17:02:55 +10:00
Eric
50b0e7ea03
fix bug with stale images when requestId in URL changes 2024-06-26 17:02:55 +10:00
Eric
22fe987c3b
download images from network when request cancelled or finished 2024-06-26 17:02:54 +10:00
Eric
8118a9f911
Update footer
- balance and block number are continually updated
- codex node and ethereum rpc connections continually checked
2024-06-26 17:02:50 +10:00
Eric
5c1d79eda4
fix bug where loading a preview page syncs recent loading flag in store 2024-06-24 12:50:51 +10:00
Eric
754604cb05
Add preview link to moderation views 2024-06-24 12:50:25 +10:00
Eric
2ca7d346af
re-fetch request states asynchronously on page load 2024-06-21 23:19:37 +10:00
Eric
5071088831
fix localStorage sync
Was not using the newly updated localStorage key
2024-06-20 17:03:56 +10:00
Eric
a24883461a
404 fixes
- 404 doesn't pollute state in localStorage
- fix js errors on request details page when request not found
2024-06-20 17:03:28 +10:00
Eric
d869176a9c
make header and footer sticky and main content scrollable 2024-06-20 13:11:04 +10:00
Eric
d11edbc8f1
dismiss alert when 'view details' button clicked 2024-06-20 12:35:18 +10:00
Eric
42d560fb8c
add toast notification when loading recent storage events 2024-06-20 12:11:33 +10:00
Eric
5c77176167
fetch slots async, with loading 2024-06-20 11:40:44 +10:00
Eric
73e7e0e5c9
fetch from last block in localStorage
Fetches StorageRequested events after the events already stored in localStorage.
Creates `loadingRecent` ref to track when partial updates are occurring
2024-06-20 10:54:25 +10:00
Eric
1ce47a1f22
clean up request fetching 2024-06-20 10:51:43 +10:00
Eric
8150f38124
make persisted store marketplace address-dependent 2024-06-20 10:51:11 +10:00
Eric
44646197d6
update time every 10s in RelativeTime component 2024-06-20 10:49:06 +10:00
Eric
8da2b0685f
update block number on new block 2024-06-20 10:48:42 +10:00
Eric
f164a341e2
improve breadcrumb and header link 2024-06-20 10:48:22 +10:00
Eric
a315350d40
clean up nav look 2024-06-19 17:59:05 +10:00
Eric
dc8cf320a6
clean up 2024-06-19 17:41:38 +10:00
Eric
9dea49c11c
add nav breadcrumbs 2024-06-19 17:41:16 +10:00
Eric
12702d4e59
add moderation controls
Moderation view of all requests: /moderate

Allows request details page to be opened in two separate tabs: one with moderation enabled, and the other without (for the projector). Moderating the image has its state synced to the other (non-moderated) tab
2024-06-19 16:43:41 +10:00
Eric
3fb5a59069
codex plugin cleanup 2024-06-17 17:27:15 +10:00
Eric
342eba171c
Add environments, to allow loading localhost chain/contracts 2024-06-17 17:25:55 +10:00
Eric
ed378e1a77
Split out loading of request and request details
On the requests page, only show details relating to the StorageRequested event
On the request details page, load more detailed information, including slot info. If already fetched, do not re-fetch
2024-06-17 17:25:05 +10:00
Eric
a44f23719d
add 404 page 2024-06-17 10:45:24 +10:00
Eric
b788b2c692
remove remnants of fetched from requests store 2024-06-17 09:25:46 +10:00
Eric
77cdbbe6e8
Add all the bells and whistles
Add tooltip, relative time, requestedAt
However, fetching data is too slow now and there is a lag after render. Can try removing the fetching of slots when getting past StorageRequested events, and only do that fetch on the details page
2024-06-14 18:13:35 +10:00
Eric
28bdd3f3e7
bug fixes
- prevent reload of page when clicking alert "view details" button
- when on the request details page, navigating to a different request, eg via an alert button, works without refreshing the page (data is fetched from the store)
- fixed bug with inserting data into the store on StorageRequested event
- fixed blockNumber not being inserted into the store
2024-06-12 17:46:19 +10:00
Eric
d53f5b8aca
replace TestToken and Marketplace abi with valid json 2024-06-11 10:20:47 +10:00
Eric
81eb1a4bcd
CodexImage, SpinnerLoading, and IndicatorBadge sizing 2024-06-07 15:29:45 +10:00
Eric
a6225b9f6a
set max height for requests table 2024-06-07 12:57:30 +10:00
Eric
83ab353038
Add slots inside of storage request details 2024-06-06 15:28:29 +10:00
Eric
552cc2705b
Add storage request detail view 2024-06-06 13:04:36 +10:00
Eric
6a55e88fc5
fix dark mode 2024-06-06 11:51:52 +10:00
Eric
62b25b46ee
listen to all contract events with alerts 2024-06-04 17:38:13 +10:00
Eric
1cfc90a1bf
Initial commit 2024-05-30 17:56:10 +10:00