-
-
Notifications
You must be signed in to change notification settings - Fork 789
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: modules db schema & actions * feat: trpc modules router * chore: apply migrations * feat: initial version of recent modules section * feat: icon primitive & recent modules collapsing * feat: module card skeleton * feat: static variation of module card skeleton * feat: empty state for recent modules * chore: cleanup * feat: initialises auto animated module creation popover * feat: step 1 module creation form * chore: updates all deps * feat: icon & color pickers * chore: updates deps * feat: create mutation * feat: displaying modules when created * refactor: better modules listing * chore: updates deps * refactor: optional description for module * chore: updates deps * fix: missing react-popover dep
- Loading branch information
Showing
37 changed files
with
1,548 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ node_modules | |
next-env.d.ts | ||
.husky | ||
bun.lockb | ||
*.toml | ||
*.toml | ||
drizzle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,3 +52,4 @@ words: | |
- typecheck | ||
- Uploadthing | ||
- Upstash | ||
- healthcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE IF NOT EXISTS "modules" ( | ||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, | ||
"user_id" text NOT NULL, | ||
"name" text NOT NULL, | ||
"description" text NOT NULL, | ||
"code" text NOT NULL, | ||
"icon" text DEFAULT 'default' NOT NULL, | ||
"color" text DEFAULT 'default' NOT NULL, | ||
"archived" boolean DEFAULT false NOT NULL, | ||
"credits" integer DEFAULT 0 NOT NULL, | ||
"created_at" timestamp DEFAULT now() NOT NULL, | ||
"modified_at" timestamp DEFAULT now() NOT NULL, | ||
"last_visited" timestamp DEFAULT now() NOT NULL, | ||
CONSTRAINT "modules_id_unique" UNIQUE("id") | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE "modules" ALTER COLUMN "description" DROP NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
{ | ||
"id": "e2f7138b-3bc5-4e5c-8e9f-df04364cddcb", | ||
"prevId": "b304d26a-1927-40c9-9067-57935d6d9ab3", | ||
"version": "7", | ||
"dialect": "postgresql", | ||
"tables": { | ||
"public.early_access": { | ||
"name": "early_access", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "uuid", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"default": "gen_random_uuid()" | ||
}, | ||
"name": { | ||
"name": "name", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"email": { | ||
"name": "email", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"reason": { | ||
"name": "reason", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"approved": { | ||
"name": "approved", | ||
"type": "boolean", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"default": false | ||
}, | ||
"created_at": { | ||
"name": "created_at", | ||
"type": "timestamp (3)", | ||
"primaryKey": false, | ||
"notNull": false, | ||
"default": "now()" | ||
}, | ||
"invitation_sent_at": { | ||
"name": "invitation_sent_at", | ||
"type": "timestamp (3)", | ||
"primaryKey": false, | ||
"notNull": false | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": { | ||
"early_access_email_unique": { | ||
"name": "early_access_email_unique", | ||
"nullsNotDistinct": false, | ||
"columns": [ | ||
"email" | ||
] | ||
} | ||
} | ||
}, | ||
"public.modules": { | ||
"name": "modules", | ||
"schema": "", | ||
"columns": { | ||
"id": { | ||
"name": "id", | ||
"type": "uuid", | ||
"primaryKey": true, | ||
"notNull": true, | ||
"default": "gen_random_uuid()" | ||
}, | ||
"user_id": { | ||
"name": "user_id", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"name": { | ||
"name": "name", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"description": { | ||
"name": "description", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"code": { | ||
"name": "code", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true | ||
}, | ||
"icon": { | ||
"name": "icon", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "'default'" | ||
}, | ||
"color": { | ||
"name": "color", | ||
"type": "text", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "'default'" | ||
}, | ||
"archived": { | ||
"name": "archived", | ||
"type": "boolean", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": false | ||
}, | ||
"credits": { | ||
"name": "credits", | ||
"type": "integer", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": 0 | ||
}, | ||
"created_at": { | ||
"name": "created_at", | ||
"type": "timestamp", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "now()" | ||
}, | ||
"modified_at": { | ||
"name": "modified_at", | ||
"type": "timestamp", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "now()" | ||
}, | ||
"last_visited": { | ||
"name": "last_visited", | ||
"type": "timestamp", | ||
"primaryKey": false, | ||
"notNull": true, | ||
"default": "now()" | ||
} | ||
}, | ||
"indexes": {}, | ||
"foreignKeys": {}, | ||
"compositePrimaryKeys": {}, | ||
"uniqueConstraints": { | ||
"modules_id_unique": { | ||
"name": "modules_id_unique", | ||
"nullsNotDistinct": false, | ||
"columns": [ | ||
"id" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"enums": {}, | ||
"schemas": {}, | ||
"sequences": {}, | ||
"_meta": { | ||
"columns": {}, | ||
"schemas": {}, | ||
"tables": {} | ||
} | ||
} |
Oops, something went wrong.