import React from 'react' import { usePage, Link } from '@inertiajs/react' import StudioLayout from '../../Layouts/StudioLayout' const kpiItems = [ { key: 'views', label: 'Views', icon: 'fa-eye', color: 'text-emerald-400' }, { key: 'favourites', label: 'Favourites', icon: 'fa-heart', color: 'text-pink-400' }, { key: 'shares', label: 'Shares', icon: 'fa-share-nodes', color: 'text-amber-400' }, { key: 'comments', label: 'Comments', icon: 'fa-comment', color: 'text-blue-400' }, { key: 'downloads', label: 'Downloads', icon: 'fa-download', color: 'text-purple-400' }, ] const metricCards = [ { key: 'ranking_score', label: 'Ranking Score', icon: 'fa-trophy', color: 'text-yellow-400' }, { key: 'heat_score', label: 'Heat Score', icon: 'fa-fire', color: 'text-orange-400' }, { key: 'engagement_velocity', label: 'Engagement Velocity', icon: 'fa-bolt', color: 'text-cyan-400' }, ] export default function StudioArtworkAnalytics() { const { props } = usePage() const { artwork, analytics } = props return ( {/* Back link */} Back to Artworks {/* Artwork header */}
{artwork?.thumb_url && ( {artwork.title} )}

{artwork?.title}

/{artwork?.slug}

{/* KPI row */}
{kpiItems.map((item) => (
{item.label}

{(analytics?.[item.key] ?? 0).toLocaleString()}

))}
{/* Performance metrics */}

Performance Metrics

{metricCards.map((item) => (
{item.label}

{(analytics?.[item.key] ?? 0).toFixed(1)}

))}
{/* Placeholder sections for future features */}

Traffic Sources

Coming soon

Traffic source tracking is on the roadmap

Shares by Platform

Coming soon

Platform-level share tracking coming in v2

Ranking History

Coming soon

Historical ranking data will be tracked in a future update

) }