62 Commits

Author SHA1 Message Date
Eric
ea98b760fe
Add timestamp to events
Also add clearEvents/clearEvents
2024-07-03 11:25:57 +10:00
Eric
e3390a0bc1
aggressively cache images browser-side 2024-07-02 16:34:24 +10:00
Eric
3ef0e8dcb4
clean up 2024-07-02 16:34:11 +10:00
Eric
31b4bd95a1
Move events to their own store for notifications centre 2024-07-02 16:23:06 +10:00
Eric
4f75651962
always show when slots are loading 2024-07-02 16:21:12 +10:00
Eric
b0489601c5
add error to CodexImage title, so don't need to look in source 2024-07-02 16:20:58 +10:00
Eric
56da727773
change slotState and requestState to object to avoid typos 2024-07-02 16:20:31 +10:00
Eric
09c4ed7daf
fix dark mode memory on page load, hide drawer on item click, remove bg from logo when on home page 2024-07-02 16:20:04 +10:00
Eric
ce7470bcd5
increase image download timeout to 2 minutes 2024-07-02 11:38:14 +10:00
Eric
ee5771608d
add padding to request details left column items 2024-07-01 21:20:08 +10:00
Eric
903272e16a
fix StorageFinished appearing immediately after StorageRequested 2024-07-01 21:19:47 +10:00
Eric
d01b188f76
add drawer navigation menu
- draw slides out from left
- add dark mode button
2024-07-01 20:33:13 +10:00
Eric
8e4f07e8eb
Add relative times for request: requested, expires, ends 2024-07-01 18:21:47 +10:00
Eric
d5c1100b45
bump image download timeout to 30s 2024-07-01 18:20:58 +10:00
Eric
5e82b0e3e9
dark mode by default, remove alert buttons 2024-07-01 17:03:20 +10:00
Eric
5a5dd68af6
cancel image downloading when unmounting 2024-07-01 17:00:43 +10:00
Eric
c7a8a83e43
fixes for updating request states
- once storage requested, set timeout for duration to get the updated state, as the only way to get RequestFinished events (since they don't exist in the contract). The timeout callback is fired after duration seconds after storage was requested.
- always fetch request state on page load (on request details page)
2024-06-28 15:27:52 +10:00
Eric
f466102054
increase Codex logo size in footer 2024-06-28 15:23:36 +10:00
Eric
e060668cb2
Fix alert button url and info
- alert button url was not honouring the enableModeration query string
- slot index was not appear for slot index 0
2024-06-28 15:23:20 +10:00
Eric
bbbd706574
fix cross-tab state sync 2024-06-28 12:37:19 +10:00
Eric
18ecacda94
Modify codex start script to use public ip for --nat 2024-06-27 12:03:47 +10:00
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
f1b97c3f3c
update codex run script 2024-06-26 17:02:55 +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