[feat] solution/backend,frontend,postgres-init: 서비스 사이트 공개 화면 방문 수집 — 전체 방문 통계에 합산하고 사이트 표에 한 줄로, 기능 문서 추가
This commit is contained in:
1 parent
2fc50de161
commit
99a344f65c
21 files changed
+378
-21
No files matched your search
@@ -19,7 +19,7 @@ export function OverallVisitStats() {
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<h2 className="text-sm font-semibold">방문 (전체 사이트)</h2>
|
||||
<h2 className="text-sm font-semibold">방문 (발행 사이트 + 서비스 사이트)</h2>
|
||||
<RangeTabs value={days} onChange={setDays} />
|
||||
</div>
|
||||
{isLoading && (
|
||||
|
||||
@@ -37,13 +37,21 @@ export function VisitStatsPanel({data, scope}: {data: ResVisitStats; scope: 'ove
|
||||
</Section>
|
||||
|
||||
{scope === 'overall' ? (
|
||||
<Section title="방문이 많은 사이트">
|
||||
<Section title="방문이 많은 사이트 (서비스 사이트 포함)">
|
||||
<Table
|
||||
head={['사이트', '페이지뷰', '방문자']}
|
||||
rows={(data.sites ?? []).map((s) => [
|
||||
<Link key="n" to={`/ops/sites/${s.place_id}/stats`} className="font-medium hover:underline">
|
||||
{s.name}
|
||||
</Link>,
|
||||
// 서비스 사이트 줄은 사업장이 없어 사이트별 통계로 갈 곳이 없다 — 이름만 보인다.
|
||||
s.service ? (
|
||||
<span key="n" className="font-medium">
|
||||
{s.name}
|
||||
<span className="ml-1.5 text-xs font-normal text-muted-foreground">공개 화면</span>
|
||||
</span>
|
||||
) : (
|
||||
<Link key="n" to={`/ops/sites/${s.place_id}/stats`} className="font-medium hover:underline">
|
||||
{s.name}
|
||||
</Link>
|
||||
),
|
||||
s.views,
|
||||
s.visitors,
|
||||
])}
|
||||
|
||||
Reference in new issue
Block a user