Skip to content
Merged
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
27 changes: 11 additions & 16 deletions frontend/src/components/ChatBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -946,30 +946,25 @@ export default function Component({
)}
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => {
onClick={(e) => {
e.preventDefault();
// Temporarily disabled - remove this condition when re-enabling
/*
if (!canUseDocuments) {
navigate({ to: "/pricing" });
} else {
documentInputRef.current?.click();
}
*/
}}
className={cn(
"flex items-center gap-2 group",
!canUseDocuments && "hover:bg-purple-50 dark:hover:bg-purple-950/20"
)}
className={cn("flex items-center gap-2 cursor-not-allowed opacity-50")}
disabled
>
<FileText className="h-4 w-4 shrink-0" />
<span>Upload Document</span>
{!canUseDocuments && (
<>
<span className="ml-auto text-[10px] px-1.5 py-0.5 rounded-sm font-medium bg-gradient-to-r from-purple-500/10 to-blue-500/10 text-purple-600 dark:text-purple-400">
Pro
</span>
<span className="text-[10px] text-purple-600 dark:text-purple-400 opacity-0 group-hover:opacity-100 transition-opacity">
Upgrade?
</span>
</>
)}
<div className="flex flex-col">
<span>Upload Document</span>
<span className="text-xs text-muted-foreground">Temporarily Unavailable</span>
</div>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
Expand Down
19 changes: 1 addition & 18 deletions frontend/src/config/pricingConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const PRICING_PLANS: PricingPlan[] = [
},
{ text: "Rename Chats", included: true, icon: <Check className="w-4 h-4 text-green-500" /> },
{ text: "Image Upload", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{ text: "Document Upload", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{ text: "DeepSeek R1 70B", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{ text: "Gemma 3 27B", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{
Expand Down Expand Up @@ -83,8 +82,7 @@ export const PRICING_PLANS: PricingPlan[] = [
icon: <X className="w-4 h-4 text-red-500" />
},
{ text: "Qwen 2.5 72B", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{ text: "Image Upload", included: false, icon: <X className="w-4 h-4 text-red-500" /> },
{ text: "Document Upload", included: false, icon: <X className="w-4 h-4 text-red-500" /> }
{ text: "Image Upload", included: false, icon: <X className="w-4 h-4 text-red-500" /> }
],
ctaText: "Start Chatting"
},
Expand All @@ -104,11 +102,6 @@ export const PRICING_PLANS: PricingPlan[] = [
icon: <Check className="w-4 h-4 text-green-500" />
},
{ text: "Image Upload", included: true, icon: <Check className="w-4 h-4 text-green-500" /> },
{
text: "Document Upload",
included: true,
icon: <Check className="w-4 h-4 text-green-500" />
},
{
text: "DeepSeek R1 70B",
included: true,
Expand Down Expand Up @@ -155,11 +148,6 @@ export const PRICING_PLANS: PricingPlan[] = [
icon: <Check className="w-4 h-4 text-green-500" />
},
{ text: "Image Upload", included: true, icon: <Check className="w-4 h-4 text-green-500" /> },
{
text: "Document Upload",
included: true,
icon: <Check className="w-4 h-4 text-green-500" />
},
{
text: "DeepSeek R1 70B",
included: true,
Expand Down Expand Up @@ -215,11 +203,6 @@ export const PRICING_PLANS: PricingPlan[] = [
icon: <Check className="w-4 h-4 text-green-500" />
},
{ text: "Image Upload", included: true, icon: <Check className="w-4 h-4 text-green-500" /> },
{
text: "Document Upload",
included: true,
icon: <Check className="w-4 h-4 text-green-500" />
},
{
text: "DeepSeek R1 70B",
included: true,
Expand Down
43 changes: 9 additions & 34 deletions frontend/src/routes/pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ import { PRICING_PLANS } from "@/config/pricingConfig";

// File type constants for upload features
const SUPPORTED_IMAGE_FORMATS = [".jpg", ".png", ".webp"];
const SUPPORTED_DOCUMENT_FORMATS = [
".pdf",
".doc",
".docx",
".txt",
".rtf",
".xlsx",
".xls",
".pptx",
".ppt",
".md"
];

type PricingSearchParams = {
selected_plan?: string;
Expand Down Expand Up @@ -134,30 +122,17 @@ function PricingFAQ() {

<details className="group">
<summary className="cursor-pointer text-lg font-medium hover:text-foreground/80">
Which file types are supported for document and image upload?
Which file types are supported for image upload?
</summary>
<div className="mt-4 text-[hsl(var(--marketing-text-muted))] space-y-4">
<p>We support a range of file types with potential to add more in the future.</p>
<div>
<strong>Images:</strong>
<ul className="list-disc list-inside ml-4 mt-2 space-y-1">
{SUPPORTED_IMAGE_FORMATS.map((format) => (
<li key={format}>
<code className="bg-foreground/10 px-1 py-0.5 rounded text-sm">{format}</code>
</li>
))}
</ul>
</div>
<div>
<strong>Documents:</strong>
<ul className="list-disc list-inside ml-4 mt-2 space-y-1">
{SUPPORTED_DOCUMENT_FORMATS.map((format) => (
<li key={format}>
<code className="bg-foreground/10 px-1 py-0.5 rounded text-sm">{format}</code>
</li>
))}
</ul>
</div>
<p>We support the following image formats:</p>
<ul className="list-disc list-inside ml-4 mt-2 space-y-1">
{SUPPORTED_IMAGE_FORMATS.map((format) => (
<li key={format}>
<code className="bg-foreground/10 px-1 py-0.5 rounded text-sm">{format}</code>
</li>
))}
</ul>
<p>There is a 1 file limit per chat prompt with a 5MB file size limit per file.</p>
</div>
</details>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/routes/teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function TeamsPage() {
/>
<FeatureCard
icon={FileText}
title="Document & Image Upload"
description="Upload documents and images for AI analysis—summarize, extract insights, or translate securely as a team. Supported formats include PDF, DOCX, Excel, JPG, PNG, and more."
title="Advanced Model Access"
description="Teams get priority access to the latest AI models, including advanced language models for complex analysis, coding assistance, and creative tasks."
/>
<FeatureCard
icon={Building2}
Expand Down
Loading