-
Notifications
You must be signed in to change notification settings - Fork 1.4k
ensure more limits don't show when self hosting #1312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,22 +1,18 @@ | ||||||||
| import type { userSelectProps } from "@cap/database/auth/session"; | ||||||||
| import type { videos } from "@cap/database/schema"; | ||||||||
| import { Button } from "@cap/ui"; | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainLikely missing "use client" directive for a hook-using component This file uses + "use client";Run the script below to confirm which of these components are missing the directive. 🏁 Script executed: #!/bin/bash
rg -n --glob 'apps/web/app/s/**/_components/{Toolbar,Sidebar,ShareVideo}.tsx' -C0 -e '^\s*"use client";' || trueLength of output: 0 🏁 Script executed: #!/bin/bash
# Find all _components files with matching names
fd -t f '\.(Toolbar|Sidebar|ShareVideo)\.tsx$' apps/web/app/sLength of output: 0 🏁 Script executed: #!/bin/bash
# If files exist, check their first 10 lines for "use client"
for file in $(fd -t f '\.(Toolbar|Sidebar|ShareVideo)\.tsx$' apps/web/app/s 2>/dev/null || true); do
echo "=== File: $file ==="
head -5 "$file"
echo ""
doneLength of output: 0 🏁 Script executed: #!/bin/bash
# Search for the components more broadly
fd -t f 'Toolbar\.tsx|Sidebar\.tsx|ShareVideo\.tsx' apps/web/Length of output: 149 🏁 Script executed: #!/bin/bash
# Also check if the directory structure exists
ls -la apps/web/app/s/ 2>&1 || echo "Directory does not exist"Length of output: 294 🏁 Script executed: #!/bin/bash
# Find all _components directories
fd -t d '_components' apps/web/app/Length of output: 197 🏁 Script executed: #!/bin/bash
# Check first 5 lines of each component file for "use client" directive
for file in apps/web/app/s/[videoId]/_components/Toolbar.tsx apps/web/app/s/[videoId]/_components/Sidebar.tsx apps/web/app/s/[videoId]/_components/ShareVideo.tsx; do
echo "=== $file ==="
head -5 "$file"
echo ""
doneLength of output: 981 🏁 Script executed: #!/bin/bash
# Check for React hook imports in all three files
for file in apps/web/app/s/[videoId]/_components/Toolbar.tsx apps/web/app/s/[videoId]/_components/Sidebar.tsx apps/web/app/s/[videoId]/_components/ShareVideo.tsx; do
echo "=== $file ==="
grep -E "import.*\{.*use[A-Z]" "$file" || echo "(no hook imports found)"
echo ""
doneLength of output: 466 🏁 Script executed: #!/bin/bash
# Also check the parent page component to understand the hierarchy
cat apps/web/app/s/[videoId]/page.tsxLength of output: 22149 Add "use client" directive to all three Client Components using React hooks All three components use React hooks and are missing the directive:
Add + "use client";
import { Button } from "@cap/ui";📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||
| import { Comment, User } from "@cap/web-domain"; | ||||||||
| import { Comment } from "@cap/web-domain"; | ||||||||
| import { AnimatePresence, motion } from "motion/react"; | ||||||||
| import { startTransition, useEffect, useState } from "react"; | ||||||||
| import { newComment } from "@/actions/videos/new-comment"; | ||||||||
| import type { OrganizationSettings } from "@/app/(org)/dashboard/dashboard-data"; | ||||||||
| import { useCurrentUser } from "@/app/Layout/AuthContext"; | ||||||||
| import type { CommentType } from "../Share"; | ||||||||
| import type { VideoData } from "../types"; | ||||||||
| import { AuthOverlay } from "./AuthOverlay"; | ||||||||
|
|
||||||||
| const MotionButton = motion.create(Button); | ||||||||
|
|
||||||||
| // million-ignore | ||||||||
| interface ToolbarProps { | ||||||||
| data: typeof videos.$inferSelect & { | ||||||||
| orgSettings?: OrganizationSettings | null; | ||||||||
| }; | ||||||||
| data: VideoData; | ||||||||
| onOptimisticComment?: (comment: CommentType) => void; | ||||||||
| onCommentSuccess?: (comment: CommentType) => void; | ||||||||
| disableReactions?: boolean; | ||||||||
|
|
||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix owner display: using video title instead of owner name
SignedImageUrland the text below usedata.name(video title). They should use the owner’s name and image.📝 Committable suggestion
🤖 Prompt for AI Agents