diff --git a/src/lib/components/AnalystEstimate.svelte b/src/lib/components/AnalystEstimate.svelte index 5b48bf00..14bec02c 100644 --- a/src/lib/components/AnalystEstimate.svelte +++ b/src/lib/components/AnalystEstimate.svelte @@ -343,7 +343,7 @@ n/a {:else if item?.val === null} {#if tableForecastRevenue[index]?.val - tableForecastRevenue[index - 1]?.val > 0} - + {(() => { const previousVal = tableForecastRevenue[index - 1]?.val ?? 0; @@ -378,7 +378,7 @@ n/a {/if} {:else if item?.val - tableActualRevenue[index - 1]?.val > 0} - + {( ((item?.val - tableActualRevenue[index - 1]?.val) / Math.abs(tableActualRevenue[index - 1]?.val)) * @@ -433,7 +433,7 @@ n/a {:else if item?.val === null} {#if tableForecastEPS[index]?.val - tableForecastEPS[index - 1]?.val > 0} - + {( ((tableForecastEPS[index]?.val - tableForecastEPS[index - 1]?.val) / @@ -452,7 +452,7 @@ {/if} {:else if item?.val - tableActualEPS[index - 1]?.val > 0} - + {( ((item?.val - tableActualEPS[index - 1]?.val) / Math.abs(tableActualEPS[index - 1]?.val)) * @@ -569,28 +569,76 @@ >High - {#each highRevenueList as val} - {abbreviateNumber(val)} + {#each highRevenueList as val, index} + + {#if data?.user?.tier !== "Pro" && index >= highRevenueList?.length - 2} + Pro + {:else} + {abbreviateNumber(val)} + {/if} + {/each} Avg - {#each avgRevenueList as val} - {abbreviateNumber(val)} + {#each avgRevenueList as val, index} + + {#if data?.user?.tier !== "Pro" && index >= avgRevenueList?.length - 2} + Pro + {:else} + {abbreviateNumber(val)} + {/if} + {/each} Low - {#each lowRevenueList as val} - {abbreviateNumber(val)} + {#each lowRevenueList as val, index} + + {#if data?.user?.tier !== "Pro" && index >= lowRevenueList?.length - 2} + Pro + {:else} + {abbreviateNumber(val)} + {/if} + {/each} @@ -630,28 +678,76 @@ >High - {#each highEPSList as val} - {abbreviateNumber(val)} + {#each highEPSList as val, index} + + {#if data?.user?.tier !== "Pro" && index >= highEPSList?.length - 2} + Pro + {:else} + {abbreviateNumber(val)} + {/if} + {/each} Avg - {#each avgEPSList as val} - {abbreviateNumber(val)} + {#each avgEPSList as val, index} + + {#if data?.user?.tier !== "Pro" && index >= avgEPSList?.length - 2} + Pro + {:else} + {abbreviateNumber(val)} + {/if} + {/each} Low - {#each lowEPSList as val} - {abbreviateNumber(val)} + {#each lowEPSList as val, index} + + {#if data?.user?.tier !== "Pro" && index >= lowEPSList?.length - 2} + Pro + {:else} + {abbreviateNumber(val)} + {/if} + {/each} diff --git a/src/routes/stocks/[tickerID]/forecast/+page.svelte b/src/routes/stocks/[tickerID]/forecast/+page.svelte index 5892ae9b..86804dda 100644 --- a/src/routes/stocks/[tickerID]/forecast/+page.svelte +++ b/src/routes/stocks/[tickerID]/forecast/+page.svelte @@ -615,10 +615,36 @@ {/if} {#if Object?.keys(data?.getAnalystInsight)?.length > 0} -

{data?.getAnalystInsight?.insight}

-

- Updated {data?.getAnalystInsight?.date} -

+ {#if data?.user?.tier === "Pro"} +

{data?.getAnalystInsight?.insight}

+

+ Updated {data?.getAnalystInsight?.date} +

+ {:else} +

+ {data?.getAnalystInsight?.insight?.slice(0, 50) + "..."} + + Unlock content with + Pro Subscription + +

+ +

+ Updated {data?.getAnalystInsight?.date} +

+ {/if} {:else}

According to {numOfAnalyst} stock analyst, the rating for {$displayCompanyName} diff --git a/src/routes/stocks/[tickerID]/forecast/analyst/+page.svelte b/src/routes/stocks/[tickerID]/forecast/analyst/+page.svelte index b8ce6ac3..6f516958 100644 --- a/src/routes/stocks/[tickerID]/forecast/analyst/+page.svelte +++ b/src/routes/stocks/[tickerID]/forecast/analyst/+page.svelte @@ -229,7 +229,7 @@

{/if} + {#if data?.user?.tier !== "Pro"} +
+
+
+

+ Analyst Star Rankings +

+

+ Our analyst star rankings are based on these four factors +

+
+
+
+
+
+
+ +
+ Success Rate +
+
+ The percentage of ratings that are profitable. +
+
+
+
+
+ +
+ Average Return +
+
+ The average percentage return within one year of the + rating. +
+
+
+
+
+ +
+ Rating Count +
+
+ The more ratings the analyst has provided, the higher the + score. +
+
+
+
+
+ +
+ Recency +
+
+ Ratings provided within the past year contribute to a + higher score. +
+
+
+
+
+
+ {/if}