table fix

This commit is contained in:
root 2026-05-12 21:57:35 +05:00
parent 6765e2bbf4
commit 710ab671b3
2 changed files with 2 additions and 2 deletions

View File

@ -598,7 +598,7 @@ export async function GET(req: Request) {
const hoursSavedEstimate = Math.round((minutesSavedPerAnswer * aiAnswers / 60) * 10) / 10 const hoursSavedEstimate = Math.round((minutesSavedPerAnswer * aiAnswers / 60) * 10) / 10
const topProductQuestions = Array.from(productQuestionCounts.values()) const topProductQuestions = Array.from(productQuestionCounts.values())
.sort((a, b) => b.count - a.count) .sort((a, b) => b.count - a.count)
.slice(0, 8) .slice(0, 25)
const convertedProductIds = new Set(revenueAttribution.directRows.map((row) => row.productId).filter(Boolean)) const convertedProductIds = new Set(revenueAttribution.directRows.map((row) => row.productId).filter(Boolean))
const highInterestProducts = topProductQuestions const highInterestProducts = topProductQuestions
.filter((row) => !convertedProductIds.has(row.name)) .filter((row) => !convertedProductIds.has(row.name))

View File

@ -388,7 +388,7 @@ export default function AiAnalyticsPage() {
{data.demandSignals.topProductQuestions.length === 0 ? ( {data.demandSignals.topProductQuestions.length === 0 ? (
<EmptyState isLight={isLight}>Not enough product-question data yet.</EmptyState> <EmptyState isLight={isLight}>Not enough product-question data yet.</EmptyState>
) : ( ) : (
<div className="space-y-2"> <div className="max-h-[294px] space-y-2 overflow-y-auto pr-1 custom-scrollbar">
{data.demandSignals.topProductQuestions.map((row) => ( {data.demandSignals.topProductQuestions.map((row) => (
<div key={row.name} className={cn("flex items-center justify-between gap-3 rounded-xl border px-3 py-2", isLight ? "bg-slate-50 border-slate-100" : "bg-white/[0.04] border-white/10")}> <div key={row.name} className={cn("flex items-center justify-between gap-3 rounded-xl border px-3 py-2", isLight ? "bg-slate-50 border-slate-100" : "bg-white/[0.04] border-white/10")}>
<span className={cn("text-sm font-bold truncate", isLight ? "text-slate-800" : "text-slate-200")}>{row.name}</span> <span className={cn("text-sm font-bold truncate", isLight ? "text-slate-800" : "text-slate-200")}>{row.name}</span>