16 Commits

Author SHA1 Message Date
Eric
56e22d539d
Hide thumbnails setting
Prevents downloading thumbnails, due to a known issue where certain image downloads will crash the Codex node.
2024-07-08 08:01:47 +02:00
Eric
b8751c2370
support moderated changes cross tab 2024-07-06 12:03:25 +03:00
Eric
65de6aaf10
refactor requests store request structure
The purpose was to emulate the structure of a request in the contract, so that the entire request object could be overwritten, and then the app state, eg moderated, would be separately set. Other state properties are also only fetched if not already fetched.
2024-07-03 17:12:23 +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
5c77176167
fetch slots async, with loading 2024-06-20 11:40:44 +10:00
Eric
1ce47a1f22
clean up request fetching 2024-06-20 10:51:43 +10:00
Eric
dc8cf320a6
clean up 2024-06-19 17:41:38 +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
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
552cc2705b
Add storage request detail view 2024-06-06 13:04:36 +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