@@ -204,6 +204,7 @@ function IndustryRankingsTable({
204204 if ( brand . llama_mentions > 0 ) modelCounts . add ( "Llama 4 Maverick" ) ;
205205 // New Voyager models
206206 if ( brand . gemini_pro_mentions > 0 ) modelCounts . add ( "Gemini Pro 2.5" ) ;
207+ if ( brand . sonnet_mentions > 0 ) modelCounts . add ( "Claude Sonnet 4" ) ;
207208 if ( brand . deepseek_r1_mentions > 0 ) modelCounts . add ( "DeepSeek R1" ) ;
208209 if ( brand . kimi_k2_mentions > 0 ) modelCounts . add ( "Kimi K2" ) ;
209210 if ( brand . gpt_5_mentions > 0 ) modelCounts . add ( "GPT 5" ) ;
@@ -227,6 +228,7 @@ function IndustryRankingsTable({
227228 ( brand . google_ai_mode_mentions > 0 ? 1 : 0 ) +
228229 // Voyager mode models
229230 ( brand . deepseek_mentions > 0 ? 1 : 0 ) +
231+ ( brand . sonnet_mentions > 0 ? 1 : 0 ) +
230232 ( brand . gpt_4_1_mentions > 0 ? 1 : 0 ) +
231233 ( brand . grok_mentions > 0 ? 1 : 0 ) +
232234 ( brand . llama_mentions > 0 ? 1 : 0 ) +
@@ -276,6 +278,9 @@ function IndustryRankingsTable({
276278 if ( selectedModel . has ( "DeepSeek v3" ) && brand . deepseek_mentions > 0 ) {
277279 selectedModelTotalMentions ++ ;
278280 }
281+ if ( selectedModel . has ( "Claude Sonnet 4" ) && brand . sonnet_mentions > 0 ) {
282+ selectedModelTotalMentions ++ ;
283+ }
279284 if ( selectedModel . has ( "GPT 4.1 Nano" ) && brand . gpt_4_1_mentions > 0 ) {
280285 selectedModelTotalMentions ++ ;
281286 }
@@ -2791,6 +2796,7 @@ function DashboardContent() {
27912796 analysis_brands . forEach ( ( brand ) => {
27922797 const brandName = brand . name ;
27932798 const mentions = {
2799+ sonnet_mentions : 0 ,
27942800 claude_mentions : 0 ,
27952801 perplexity_mentions : 0 ,
27962802 gemini_mentions : 0 ,
@@ -2844,6 +2850,8 @@ function DashboardContent() {
28442850 // Assign mentions to the appropriate model
28452851 if ( modelName . includes ( "claude" ) ) {
28462852 mentions . claude_mentions += mentionCount ;
2853+ } else if ( modelName . includes ( "sonnet 4" ) ) {
2854+ mentions . sonnet_mentions += mentionCount ;
28472855 } else if ( modelName . includes ( "perplexity" ) ) {
28482856 mentions . perplexity_mentions += mentionCount ;
28492857 } else if ( modelName . includes ( "gemini" ) ) {
@@ -2946,6 +2954,7 @@ function DashboardContent() {
29462954 analysis_brands . forEach ( ( brand ) => {
29472955 const brandName = brand . name ;
29482956 const mentions = {
2957+ sonnet_mentions : 0 ,
29492958 claude_mentions : 0 ,
29502959 perplexity_mentions : 0 ,
29512960 gemini_mentions : 0 ,
@@ -3000,6 +3009,8 @@ function DashboardContent() {
30003009 // Assign mentions to the appropriate model
30013010 if ( modelName . includes ( "claude" ) ) {
30023011 mentions . claude_mentions += mentionCount ;
3012+ } else if ( modelName . includes ( "sonnet 4" ) ) {
3013+ mentions . sonnet_mentions += mentionCount ;
30033014 } else if ( modelName . includes ( "perplexity" ) ) {
30043015 mentions . perplexity_mentions += mentionCount ;
30053016 } else if ( modelName . includes ( "gemini pro" ) ) {
@@ -3278,62 +3289,6 @@ function DashboardContent() {
32783289 router . push ( "/dashboard/search" ) ;
32793290 } ;
32803291
3281- // const handleAnalyze = async () => {
3282- // if (!brand) return;
3283-
3284- // console.log("Selected Monitoring Frequency:", monitoringFrequency);
3285-
3286- // setIsAnalyzing(true);
3287- // try {
3288- // const response = await fetch(
3289- // process.env.NEXT_PUBLIC_ANALYZE_BRAND as string,
3290- // {
3291- // method: "POST",
3292- // headers: {
3293- // "Content-Type": "application/json",
3294- // Authorization: `Bearer ${sessionKey}`,
3295- // },
3296- // body: JSON.stringify({ brandId: brand.id }),
3297- // }
3298- // );
3299-
3300- // if (!response.ok) {
3301- // const errorData = await response.json();
3302- // console.error("Brand analysis failed:", errorData);
3303- // setIsAnalyzing(false);
3304- // return;
3305- // }
3306-
3307- // // Refetch brand data to get updated metrics
3308- // await refetch();
3309- // } catch (error) {
3310- // console.error("Error analyzing brand:", error);
3311- // } finally {
3312- // setIsAnalyzing(false);
3313- // }
3314- // };
3315-
3316- // if (!subsLoading && !subscription && !loading) {
3317- // return (
3318- // <div className="flex flex-col items-center justify-center h-screen gap-2">
3319- // <Blocks className="w-6 h-6 text-blue-500" />
3320- // <div className="text-center text-blue-500 mb-2">
3321- // No Subscriptions Found
3322- // </div>
3323- // <p>
3324- // You have no subscriptions. Please get a subscription to start
3325- // monitoring your keywords and brands.
3326- // </p>
3327- // <Button
3328- // variant="outline"
3329- // className="mt-5"
3330- // onClick={() => window.location.assign("/onboarding")}
3331- // >
3332- // Get Subscription
3333- // </Button>
3334- // </div>
3335- // );
3336- // }
33373292
33383293 if ( error && queries . length <= 0 ) {
33393294 return (
@@ -4252,7 +4207,7 @@ function DashboardContent() {
42524207 >
42534208 All Models
42544209 </ DropdownMenuCheckboxItem >
4255- < ScrollArea className = "max- h-[200px]" >
4210+ < ScrollArea className = "h-[200px]" >
42564211 { analysis_models ?. map ( ( model : string ) => (
42574212 < DropdownMenuCheckboxItem
42584213 key = { model }
@@ -4536,7 +4491,7 @@ function DashboardContent() {
45364491 Filter by Model
45374492 </ DropdownMenuLabel >
45384493 < DropdownMenuSeparator />
4539- < ScrollArea className = "max- h-[200px]" >
4494+ < ScrollArea className = "h-[200px]" >
45404495 { analysis_models ?. map ( ( model : string ) => (
45414496 < DropdownMenuCheckboxItem
45424497 key = { model }
@@ -4646,7 +4601,7 @@ function DashboardContent() {
46464601 >
46474602 All Models
46484603 </ DropdownMenuCheckboxItem >
4649- < ScrollArea className = "max- h-[200px]" >
4604+ < ScrollArea className = "h-[200px]" >
46504605 { analysis_models ?. map ( ( model : string ) => (
46514606 < DropdownMenuCheckboxItem
46524607 key = { model }
0 commit comments