diff --git a/app/api/db/migrations/20211129205924_curv/migration.sql b/app/api/db/migrations/20211129205924_curv/migration.sql new file mode 100644 index 0000000..405c759 --- /dev/null +++ b/app/api/db/migrations/20211129205924_curv/migration.sql @@ -0,0 +1,2 @@ +-- AlterEnum +ALTER TYPE "CadPackage" ADD VALUE 'curv'; diff --git a/app/api/db/schema.prisma b/app/api/db/schema.prisma index 9ec2844..e62813d 100644 --- a/app/api/db/schema.prisma +++ b/app/api/db/schema.prisma @@ -38,7 +38,7 @@ enum CadPackage { openscad cadquery jscad - // curv // TODO uncomment when ready for users to save curv projects + curv } model Project { diff --git a/app/api/src/graphql/projects.sdl.ts b/app/api/src/graphql/projects.sdl.ts index 8669a9d..2ead489 100644 --- a/app/api/src/graphql/projects.sdl.ts +++ b/app/api/src/graphql/projects.sdl.ts @@ -19,6 +19,7 @@ export const schema = gql` childForks: [Project]! } +# should match enum in api/db/schema.prisma enum CadPackage { openscad cadquery diff --git a/app/web/src/components/Hero/Hero.tsx b/app/web/src/components/Hero/Hero.tsx index a2b98d8..a85fa6d 100644 --- a/app/web/src/components/Hero/Hero.tsx +++ b/app/web/src/components/Hero/Hero.tsx @@ -348,6 +348,10 @@ function ChooseYourCharacter() { cadPackage: 'jscad', desc: 'A JavaScript Code-CAD library that will feel familiar to web developers, based on the same tech as OpenSCAD.', }, + // { // TODO add curv to this list. + // cadPackage: 'curv', + // desc: 'A language for creating 3D art', + // } ].map( ({ cadPackage, diff --git a/app/web/src/components/IdeProjectCell/IdeProjectCell.tsx b/app/web/src/components/IdeProjectCell/IdeProjectCell.tsx index 0473d30..a5c73b3 100644 --- a/app/web/src/components/IdeProjectCell/IdeProjectCell.tsx +++ b/app/web/src/components/IdeProjectCell/IdeProjectCell.tsx @@ -35,7 +35,7 @@ export interface Project { code: string mainImage: string createdAt: string - cadPackage: 'openscad' | 'cadquery' | 'curv' + cadPackage: 'openscad' | 'cadquery' | 'jscad' | 'curv' user: { id: string userName: string diff --git a/app/web/src/components/NavPlusButton/NavPlusButton.tsx b/app/web/src/components/NavPlusButton/NavPlusButton.tsx index 326fe02..9a95c11 100644 --- a/app/web/src/components/NavPlusButton/NavPlusButton.tsx +++ b/app/web/src/components/NavPlusButton/NavPlusButton.tsx @@ -95,13 +95,13 @@ const menuOptions: { dotClasses: 'bg-yellow-300', ideType: 'jscad', }, - // { // TODO uncomment when ready for users to save curv projects - // name: 'Curv', - // sub: 'beta', - // bgClasses: 'bg-ch-blue-700', - // dotClasses: 'bg-blue-800', - // ideType: 'curv', - // }, + { + name: 'Curv', + sub: 'alpha ', + bgClasses: 'bg-ch-blue-700', + dotClasses: 'bg-blue-800', + ideType: 'curv', + }, ] const NavPlusButton: React.FC = () => {