From 85bce5544ddc78e4bec86a389fcf83b007e1b1f5 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Mon, 30 Dec 2024 14:07:02 -0600 Subject: [PATCH] small style fix, switch back datasource, switch course id back --- prisma/schema.prisma | 16 ++++++------ .../profile/progress/UserProgress.js | 4 +-- src/components/profile/progress/badges.md | 26 ------------------- .../profile/subscription/UserSubscription.js | 2 +- 4 files changed, 11 insertions(+), 37 deletions(-) delete mode 100644 src/components/profile/progress/badges.md diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 9bf55c0..aa8be5c 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1,14 +1,14 @@ -datasource db { - provider = "postgresql" - url = env("DATABASE_URL") -} - // datasource db { -// provider = "postgresql" -// url = env("POSTGRES_PRISMA_URL") -// directUrl = env("POSTGRES_URL_NON_POOLING") +// provider = "postgresql" +// url = env("DATABASE_URL") // } +datasource db { + provider = "postgresql" + url = env("POSTGRES_PRISMA_URL") + directUrl = env("POSTGRES_URL_NON_POOLING") +} + generator client { provider = "prisma-client-js" } diff --git a/src/components/profile/progress/UserProgress.js b/src/components/profile/progress/UserProgress.js index 58c42bd..ff1442d 100644 --- a/src/components/profile/progress/UserProgress.js +++ b/src/components/profile/progress/UserProgress.js @@ -22,8 +22,8 @@ const allTasks = [ status: 'PlebDevs Starter', completed: false, tier: 'Plebdev', - // courseId: "f538f5c5-1a72-4804-8eb1-3f05cea64874", - courseId: "5664e78f-c618-410d-a7cc-f3393b021fdf", + courseId: "f538f5c5-1a72-4804-8eb1-3f05cea64874", + // courseId: "5664e78f-c618-410d-a7cc-f3393b021fdf", subTasks: [ { status: 'Complete the course', completed: false }, ] diff --git a/src/components/profile/progress/badges.md b/src/components/profile/progress/badges.md deleted file mode 100644 index efe5c51..0000000 --- a/src/components/profile/progress/badges.md +++ /dev/null @@ -1,26 +0,0 @@ -{ - "content":"", - "created_at":1733852920, - "id":"b0a72bef2d167359e46f29371c6fab353364aded30dd04778e9c66b3e58def46", - "kind":30009, - "pubkey":"62bad2c804210b9ccd8b3d6b49da7333185bae17c12b6d7a8ed5865642e82b1e", - "sig":"6b481176a7208b6f8edc76de1bf90859d3fe97b8894f49ee1fd2471ccf3584fb990e7e8a2bba075e6c9867e351c092d262c3fb67997c8c983c4deaef82adba8e", - "tags":[ - ["d","testr42069"], - ["name","mario-test"], - ["description","A test for mario, it's a' me."], - ["image","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","1024x1024"], - ["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","512x512"], - ["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","256x256"], - ["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","64x64"], - ["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","32x32"], - ["thumb","https://plebdevs-bucket.nyc3.cdn.digitaloceanspaces.com/voltage-tipper.png","16x16"] - ] -} - -Key points for implementation: - -Use a unique identifier in the d tag that includes the course level and year -Include high-res (1024x1024) badge images and multiple thumbnail sizes -Create Badge Award events (kind 8) to assign badges to students who complete courses -Students can then choose to display badges via Profile Badges events (kind 30008) \ No newline at end of file diff --git a/src/components/profile/subscription/UserSubscription.js b/src/components/profile/subscription/UserSubscription.js index 7442b6b..606f051 100644 --- a/src/components/profile/subscription/UserSubscription.js +++ b/src/components/profile/subscription/UserSubscription.js @@ -101,7 +101,7 @@ const UserSubscription = () => {
{/* Left Column - 22% */}
-
+
{/* Subscription Status Messages */} {subscribed && !user?.role?.nwc && (