From cbd45b8293daa43ce64ee2cd8c438d6b84b8ea5d Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 9 Oct 2024 13:37:46 +0200 Subject: [PATCH 1/3] Update proxy.ts to reflect slots for demo --- src/proxy.ts | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/proxy.ts b/src/proxy.ts index ad1c8ec..b9b0703 100644 --- a/src/proxy.ts +++ b/src/proxy.ts @@ -101,39 +101,39 @@ class CodexMarketplaceMock extends CodexMarketplace { // }, // }); // } - // override reservations(): Promise> { - // return Promise.resolve({ - // error: false, - // data: [ - // { - // id: "0x123456789", - // availabilityId: "0x12345678910", - // requestId: "0x1234567891011", - // /** - // * Size in bytes - // */ - // size: 500_000_000 + "", - // /** - // * Slot Index as hexadecimal string - // */ - // slotIndex: "2", - // }, - // { - // id: "0x987654321", - // availabilityId: "0x9876543210", - // requestId: "0x98765432100", - // /** - // * Size in bytes - // */ - // size: 500_000_000 + "", - // /** - // * Slot Index as hexadecimal string - // */ - // slotIndex: "1", - // }, - // ], - // }); - // } + override reservations(): Promise> { + return Promise.resolve({ + error: false, + data: [ + { + id: "0x123456789", + availabilityId: "0x12345678910", + requestId: "0x1234567891011", + /** + * Size in bytes + */ + size: 500_000_000 + "", + /** + * Slot Index as hexadecimal string + */ + slotIndex: "2", + }, + { + id: "0x987654321", + availabilityId: "0x9876543210", + requestId: "0x98765432100", + /** + * Size in bytes + */ + size: 500_000_000 + "", + /** + * Slot Index as hexadecimal string + */ + slotIndex: "1", + }, + ], + }); + } } export const CodexSdk = { From 673785c88b34d30b96abc7b15b7ae3a884dd9f90 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 9 Oct 2024 13:38:53 +0200 Subject: [PATCH 2/3] Add missing import --- src/proxy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/proxy.ts b/src/proxy.ts index b9b0703..1124c13 100644 --- a/src/proxy.ts +++ b/src/proxy.ts @@ -2,6 +2,7 @@ import { CodexData, CodexDataResponse, CodexMarketplace, + CodexReservation, SafeValue, UploadResponse, } from "@codex-storage/sdk-js"; From 363e96a286374b24c9b9986e9d5c6f0758e8eac3 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 10 Oct 2024 10:59:59 +0200 Subject: [PATCH 3/3] Fix slot row padding --- src/components/Availability/AvailabilitySlotRow.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Availability/AvailabilitySlotRow.css b/src/components/Availability/AvailabilitySlotRow.css index 85aaa72..5dd2217 100644 --- a/src/components/Availability/AvailabilitySlotRow.css +++ b/src/components/Availability/AvailabilitySlotRow.css @@ -22,7 +22,8 @@ overflow: hidden; transition: height 0.35s; will-change: height; - padding: 0 1rem; + padding-left: 3rem; + padding-right: 1rem; } .availabilitySlotRow--active .availabilitySlotRow-cell-content {