diff --git a/.github/workflows/vercel-staging.yml b/.github/workflows/vercel-staging.yml index 130f3928..1d0fd5ea 100644 --- a/.github/workflows/vercel-staging.yml +++ b/.github/workflows/vercel-staging.yml @@ -8,7 +8,6 @@ on: push: branches: - development - - SSG-141 jobs: Deploy-Staging: @@ -27,4 +26,4 @@ jobs: run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel Staging - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_ORG_ID }} --project=${{ secrets.VERCEL_PROJECT_ID }} --env=preview + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_ORG_ID }} --project=${{ secrets.VERCEL_PROJECT_ID }} --env=preview \ No newline at end of file diff --git a/app/auth/landing.tsx b/app/auth/landing.tsx index 31e38ab9..5ef9624b 100644 --- a/app/auth/landing.tsx +++ b/app/auth/landing.tsx @@ -115,7 +115,7 @@ export default function LandingSS() { Discover the world around you and contribute to real scientific research in Star Sailors

- +
-
-
- {filteredSteps.slice(0, 2).map((step) => ( -
0 ? "bg-gray-700" : "bg-blue-500" - }`} - onClick={() => setSelectedMission(step)} - > - -
-

{step.title}

-

{step.description}

+
+
+ {steps + .filter((step) => step.chapter === currentChapter) + .map((step) => ( +
setSelectedMission(step)} + > + +
+

{step.title}

+

{step.description}

+
-
-

Completed

-

{step.completedCount}

-
-
- ))} + ))}
- -
- {filteredSteps.slice(2).map((step) => ( -
0 ? "bg-gray-700" : "bg-blue-500" - }`} - onClick={() => setSelectedMission(step)} - > - -
-

{step.title}

-

{step.description}

-
-
-

Completed

-

{step.completedCount}

-
-
- ))} -
-
{renderMission(tutorialMission)}
diff --git a/components/Structures/Missions/BasePlate.tsx b/components/Structures/Missions/BasePlate.tsx index d7e95c68..be8483d0 100644 --- a/components/Structures/Missions/BasePlate.tsx +++ b/components/Structures/Missions/BasePlate.tsx @@ -69,14 +69,14 @@ const MissionShell = ({ setUsername(data.username); setFirstName(data?.full_name); setAvatarPreview(data?.avatar_url || ""); - } - } + }; + }; setLoading(false); - } + }; if (session?.user?.id) { getProfile(); - } + }; return () => { ignore = true; @@ -183,11 +183,11 @@ const MissionShell = ({ {currentChapter === 1 ? ( <>
-
+
{missions.slice(0, 2).map((mission) => renderMission(mission))}
-
+
{missions.slice(2).map((mission) => renderMission(mission))}
@@ -209,7 +209,7 @@ const MissionShell = ({ {selectedMission && ( setSelectedMission(null)}>Back
- {selectedMission.internalComponent && } + {selectedMission.internalComponent && ( +
{/* Add this wrapper */} + +
+ )}
)}