Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,15 @@ jobs:
uses: ./.github/actions/setup

- name: Format
run: pnpm format
run: pnpm format:check

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- name: Typecheck
run: pnpm typecheck
4 changes: 3 additions & 1 deletion .idea/chat-io.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/git_toolbox_blame.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/git_toolbox_prj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions convex/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,14 @@ export const reactToMessage = mutation({
throw new ConvexError("messageId was invalid");
}

// Check if user already reacted to this message
// Check if the user already reacted to this message
const existingReaction = await ctx
.table("reactions", "messageId", (q) => q.eq("messageId", messageId))
.filter((q) => q.eq(q.field("userId"), convexUser._id))
.first();

if (existingReaction && existingReaction.emoji === trimmedReaction) {
// Remove existing reaction
// Remove the existing reaction
await existingReaction.delete();
return null;
} else if (existingReaction) {
Expand All @@ -425,7 +425,7 @@ export const reactToMessage = mutation({
return existingReaction;
}

// Create new reaction if none exists
// Create a new reaction if none exists
const reaction = await ctx.table("reactions").insert({
emoji: trimmedReaction,
userId: convexUser._id,
Expand Down
82 changes: 43 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,87 +8,90 @@
"dev": "npm-run-all --parallel next:dev convex:dev ",
"convex:dev": "convex dev --tail-logs",
"next:dev": "next dev --turbo --experimental-https",
"format": "prettier --check . --ignore-path .gitignore --ignore-path .prettierignore",
"format:check": "prettier --check . --ignore-path .gitignore --ignore-path .prettierignore",
"format:write": "prettier --write . --ignore-path .gitignore --ignore-path .prettierignore",
"typecheck": "tsc --noEmit",
"lint": "next lint",
"start": "next start",
"preinstall": "npx only-allow pnpm",
"convex:deploy": "convex deploy"
},
"dependencies": {
"@clerk/nextjs": "^6.17.0",
"@clerk/nextjs": "^6.20.2",
"@emoji-mart/data": "^1.2.1",
"@emoji-mart/react": "^1.1.1",
"@floating-ui/react": "^0.27.0",
"@hookform/resolvers": "^4.0.0",
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@icons-pack/react-simple-icons": "^12.0.0",
"@legendapp/state": "^3.0.0-beta.16",
"@radix-ui/react-alert-dialog": "^1.1.11",
"@radix-ui/react-avatar": "^1.1.1",
"@radix-ui/react-checkbox": "^1.1.4",
"@radix-ui/react-dialog": "^1.1.2",
"@floating-ui/react": "^0.27.9",
"@hookform/resolvers": "^5.0.1",
"@ianvs/prettier-plugin-sort-imports": "^4.4.2",
"@icons-pack/react-simple-icons": "^12.9.0",
"@legendapp/state": "^3.0.0-beta.30",
"@radix-ui/react-alert-dialog": "^1.1.14",
"@radix-ui/react-avatar": "^1.1.10",
"@radix-ui/react-checkbox": "^1.3.2",
"@radix-ui/react-dialog": "^1.1.14",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-popover": "^1.1.2",
"@radix-ui/react-progress": "^1.1.0",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.4",
"@reactuses/core": "^6.0.0",
"@sentry/nextjs": "^9.0.0",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-popover": "^1.1.14",
"@radix-ui/react-progress": "^1.1.7",
"@radix-ui/react-select": "^2.2.5",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-tooltip": "^1.2.7",
"@reactuses/core": "^6.0.3",
"@sentry/nextjs": "^9.23.0",
"@serwist/next": "9.0.14",
"@t3-oss/env-nextjs": "^0.13.0",
"babel-plugin-react-compiler": "19.0.0-beta-e993439-20250328",
"@t3-oss/env-nextjs": "^0.13.6",
"@tailwindcss/postcss": "^4.1.8",
"babel-plugin-react-compiler": "^19.1.0-rc.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"convex": "^1.20.0",
"convex": "^1.24.3",
"convex-ents": "^0.13.0",
"convex-helpers": "^0.1.71",
"convex-helpers": "^0.1.89",
"dayjs": "^1.11.13",
"emoji-mart": "^5.6.0",
"emoji-regex": "^10.4.0",
"framer-motion": "^12.7.5",
"framer-motion": "^12.15.0",
"geist": "^1.3.1",
"jiti": "^2.4.1",
"lucide-react": "^0.511.0",
"next": "^15.0.3",
"next": "^15.3.3",
"next-axiom": "^1.7.0",
"next-themes": "^0.4.4",
"npm-run-all2": "^8.0.0",
"npm-run-all2": "^8.0.4",
"nuqs": "^2.3.1",
"posthog-js": "^1.195.0",
"posthog-js": "^1.248.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "7.56.4",
"react-intersection-observer": "^9.13.1",
"react-resizable-panels": "^3.0.0",
"react-responsive": "^10.0.0",
"react-scan": "^0.3.0",
"react-scan": "^0.3.4",
"sonner": "^2.0.0",
"tailwind-merge": "^3.0.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
"tailwind-merge": "^3.3.0",
"tw-animate-css": "^1.3.2",
"zod": "^3.25.36"
},
"devDependencies": {
"@eslint/compat": "^1.2.3",
"@eslint/eslintrc": "^3.3.0",
"@eslint/js": "9.27.0",
"@total-typescript/ts-reset": "^0.6.1",
"@types/eslint": "^9.6.1",
"@types/node": "^22.10.7",
"@types/react": "^19.0.7",
"@types/node": "^22.15.24",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.0.3",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"@typescript-eslint/eslint-plugin": "^8.33.0",
"@typescript-eslint/parser": "^8.33.0",
"autoprefixer": "^10.4.20",
"eslint": "9.27.0",
"eslint-config-next": "^15.0.3",
"eslint-config-next": "^15.3.3",
"eslint-plugin-react-hooks": "^5.0.0",
"postcss": "^8.4.49",
"postcss": "^8.5.4",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"prettier-plugin-tailwindcss": "^0.6.11",
"serwist": "^9.0.10",
"tailwindcss": "^3.4.15",
"tailwindcss": "^4.1.8",
"typescript": "^5.6.3"
},
"ct3aMetadata": {
Expand All @@ -103,6 +106,7 @@
"onlyBuiltDependencies": [
"@clerk/shared",
"@sentry/cli",
"@tailwindcss/oxide",
"core-js",
"esbuild",
"sharp",
Expand Down
Loading
Loading