Skip to content

Commit

Permalink
πŸͺ‚πŸ“• ↝ Some long-overdue notes on the v1 explore
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Feb 10, 2024
1 parent b5c76a0 commit 8943d62
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
26 changes: 26 additions & 0 deletions components/Content/Inventory/ArchivedInventory.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from "react";
import { useSession, useSupabaseClient } from "@supabase/auth-helpers-react";
import Layout from "../../Section/Layout";
import OwnedPlanetsList from "../Planets/UserOwnedPlanets"; // Potentially this should be in a lists component dir
import OwnedItemsList from "./UserOwnedItems";
import MySpaceships from "./Vehicles/MySpaceships";

export default function V1Inventory() { // Inventory items for v1 of public schema, see notes below
const supabase = useSupabaseClient();
const session = useSession();

return (
<Layout>
<OwnedPlanetsList />
<OwnedItemsList />
<MySpaceships />
</Layout>
);
};

/*
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
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).
*/
4 changes: 2 additions & 2 deletions pages/explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export default function Explore() {
<OwnedItemsList />
<MySpaceships />
</Layout>
)
}
);
};
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1050,11 +1050,6 @@
dependencies:
tslib "^2.4.0"

"@tailwindcss/aspect-ratio@^0.4.2":
version "0.4.2"
resolved "https://registry.yarnpkg.com/@tailwindcss/aspect-ratio/-/aspect-ratio-0.4.2.tgz#9ffd52fee8e3c8b20623ff0dcb29e5c21fb0a9ba"
integrity sha512-8QPrypskfBa7QIMuKHg2TA7BqES6vhBrDLOv8Unb6FcFyd3TjKbc6lcmb9UPQHxfl24sXoJ41ux/H7qQQvfaSQ==

"@tailwindcss/forms@^0.5.3":
version "0.5.7"
resolved "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.7.tgz"
Expand Down

0 comments on commit 8943d62

Please sign in to comment.