diff --git a/.changeset/deployment-project-pages.md b/.changeset/deployment-project-pages.md index 11da68fd7..ef3ef48ef 100644 --- a/.changeset/deployment-project-pages.md +++ b/.changeset/deployment-project-pages.md @@ -2,4 +2,4 @@ "@tabler/preview": minor --- -Added the deployment failed and project settings preview pages with a shared `ProjectHeader` component. +Added project overview, deployment failed, analytics, logs and settings preview pages with a shared `ProjectHeader`. diff --git a/preview/pages/deployment-failed.astro b/preview/pages/deployment-failed.astro index f9281104c..6824de898 100644 --- a/preview/pages/deployment-failed.astro +++ b/preview/pages/deployment-failed.astro @@ -47,7 +47,7 @@ type 'Promise'. Found 2 errors in 1 file.`, }, - { status: 'secondary', name: 'Deploy', time: '-', detail: 'Skipped because Compile failed' }, + { status: 'secondary', icon: 'player-skip-forward', name: 'Deploy', time: '-', detail: 'Skipped because Compile failed' }, ] const nextSteps = [ @@ -151,7 +151,7 @@ const nextSteps = [ - + 2 Compile 2 TypeScript errors diff --git a/preview/pages/project-analytics.astro b/preview/pages/project-analytics.astro new file mode 100644 index 000000000..d5655364a --- /dev/null +++ b/preview/pages/project-analytics.astro @@ -0,0 +1,153 @@ +--- +import DefaultLayout from '@shared/layouts/DefaultLayout.astro' +import ProjectHeader from '@shared/components/parts/ProjectHeader.astro' +import Chart from '@shared/components/demo/Chart.astro' +import Button from '@ui/Button.astro' +import ButtonList from '@ui/ButtonList.astro' +import Card from '@ui/Card.astro' +import CardActions from '@ui/CardActions.astro' +import CardBody from '@ui/CardBody.astro' +import CardHeader from '@ui/CardHeader.astro' +import CardTitle from '@ui/CardTitle.astro' +import ChartSparkline from '@ui/ChartSparkline.astro' +import NavSegmented from '@ui/NavSegmented.astro' +import Progress from '@ui/Progress.astro' + +const stats = [ + { id: 'requests', label: 'Requests', value: '8.61M', delta: '+8.2%', color: 'success', data: '21,24,22,27,29,26,31' }, + { id: 'visitors', label: 'Unique visitors', value: '142K', delta: '+3.1%', color: 'success', data: '12,14,13,15,14,16,17' }, + { id: 'errors', label: 'Error rate', value: '0.42%', delta: '+0.09 pp', color: 'danger', data: '3,2,4,3,5,6,7' }, + { id: 'latency', label: 'p95 latency', value: '212 ms', delta: '-14 ms', color: 'success', data: '9,8,8,7,7,6,6' }, +] + +const routes = [ + { path: '/v1/events', requests: '3.2M', share: 37, errors: '0.12%', p95: '148 ms' }, + { path: '/v1/users/:id', requests: '1.9M', share: 22, errors: '0.31%', p95: '96 ms' }, + { path: '/v1/auth/token', requests: '1.1M', share: 13, errors: '1.84%', p95: '402 ms' }, + { path: '/v1/webhooks', requests: '840K', share: 10, errors: '0.05%', p95: '221 ms' }, + { path: '/v1/search', requests: '610K', share: 7, errors: '0.44%', p95: '618 ms' }, +] + +const statusCodes = [ + { code: '2xx', share: 97.1, color: 'success' }, + { code: '3xx', share: 1.6, color: 'secondary' }, + { code: '4xx', share: 0.9, color: 'warning' }, + { code: '5xx', share: 0.4, color: 'danger' }, +] +--- + + + + + +