14 Commits

Author SHA1 Message Date
Eric
5c1d79eda4
fix bug where loading a preview page syncs recent loading flag in store 2024-06-24 12:50:51 +10:00
Eric
2ca7d346af
re-fetch request states asynchronously on page load 2024-06-21 23:19:37 +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
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
f164a341e2
improve breadcrumb and header link 2024-06-20 10:48:22 +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
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
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
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