Skip to content

Commit 8943d62

Browse files
committed
πŸͺ‚πŸ“• ↝ Some long-overdue notes on the v1 explore
1 parent b5c76a0 commit 8943d62

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import React from "react";
2+
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
3+
import Layout from "../../Section/Layout";
4+
import OwnedPlanetsList from "../Planets/UserOwnedPlanets"; // Potentially this should be in a lists component dir
5+
import OwnedItemsList from "./UserOwnedItems";
6+
import MySpaceships from "./Vehicles/MySpaceships";
7+
8+
export default function V1Inventory() { // Inventory items for v1 of public schema, see notes below
9+
const supabase = useSupabaseClient();
10+
const session = useSession();
11+
12+
return (
13+
<Layout>
14+
<OwnedPlanetsList />
15+
<OwnedItemsList />
16+
<MySpaceships />
17+
</Layout>
18+
);
19+
};
20+
21+
/*
22+
23+
1. I think explore.tsx houses legacy content β†’ i.e. owned spaceships, planets, items in the old architecture. Potentially we should move this archive into a different supabase schema and then have different versions that can be "staked" based on each release of Star Sailors (alpha versions). So we'll need to look into achieving calls into other (I'm assuming public) schemas
24+
2. A lot of the explore page can actually be used, in terms of the components. Block layout for your "inventory". In reality it's more akin to an inventory page, the explore page should be designated towards exploring anomalies or other entities (a distinction would need to be made between the garden and explore pages, then).
25+
26+
*/

β€Žpages/explore.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ export default function Explore() {
1515
<OwnedItemsList />
1616
<MySpaceships />
1717
</Layout>
18-
)
19-
}
18+
);
19+
};

β€Žyarn.lock

-5
Original file line numberDiff line numberDiff line change
@@ -1050,11 +1050,6 @@
10501050
dependencies:
10511051
tslib "^2.4.0"
10521052

1053-
"@tailwindcss/aspect-ratio@^0.4.2":
1054-
version "0.4.2"
1055-
resolved "https://registry.yarnpkg.com/@tailwindcss/aspect-ratio/-/aspect-ratio-0.4.2.tgz#9ffd52fee8e3c8b20623ff0dcb29e5c21fb0a9ba"
1056-
integrity sha512-8QPrypskfBa7QIMuKHg2TA7BqES6vhBrDLOv8Unb6FcFyd3TjKbc6lcmb9UPQHxfl24sXoJ41ux/H7qQQvfaSQ==
1057-
10581053
"@tailwindcss/forms@^0.5.3":
10591054
version "0.5.7"
10601055
resolved "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.7.tgz"

0 commit comments

Comments
Β (0)