Show contract renewal in businesses and align SSL/view charts.

Add annual renewal column with color-coded days left, owner title and renewal fields on create, SSL expiry display, and updated view chart kinds.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-26 10:13:06 +03:30
co-authored by Cursor
parent a52f963f52
commit e2fb08cccd
11 changed files with 243 additions and 27 deletions
@@ -30,7 +30,7 @@ const VIEW_CHART_CONFIG: Record<
}
> = {
product_views_30d: {
kind: 'product',
kind: 'product_detail',
titleKey: 'home.chart.productViews.title',
subtitleKey: 'home.chart.productViews.subtitle',
legendKey: 'home.chart.productViews.legend',
@@ -39,7 +39,7 @@ const VIEW_CHART_CONFIG: Record<
barKey: 'home.chart.productViews.bar',
},
website_views_30d: {
kind: 'website',
kind: 'home',
titleKey: 'home.chart.websiteViews.title',
subtitleKey: 'home.chart.websiteViews.subtitle',
legendKey: 'home.chart.websiteViews.legend',
@@ -48,7 +48,7 @@ const VIEW_CHART_CONFIG: Record<
barKey: 'home.chart.websiteViews.bar',
},
portfolio_views_30d: {
kind: 'portfolio',
kind: 'portfolio_detail',
titleKey: 'home.chart.portfolioViews.title',
subtitleKey: 'home.chart.portfolioViews.subtitle',
legendKey: 'home.chart.portfolioViews.legend',
@@ -57,7 +57,7 @@ const VIEW_CHART_CONFIG: Record<
barKey: 'home.chart.portfolioViews.bar',
},
blog_views_30d: {
kind: 'blog',
kind: 'blog_detail',
titleKey: 'home.chart.blogViews.title',
subtitleKey: 'home.chart.blogViews.subtitle',
legendKey: 'home.chart.blogViews.legend',