apps/stats/README.md
Ghost Admin Stats micro-frontend that provides analytics and insights for Ghost sites.
All content in the analytics tables is now clickable:
The app automatically determines the appropriate action:
/)/tag/slug/, /tags/slug/)/author/slug/, /authors/slug/)This app is part of the Ghost monorepo. After cloning the Ghost repository:
# Install dependencies from the root directory
pnpm
# Run pnpm dev in the root of the repo
pnpm dev
pnpm build
This will create a production build in the dist directory.
# Run all tests
pnpm test
# Run only unit tests
pnpm test:unit
# Run tests in watch mode during development
pnpm test:watch
# Run tests with coverage report
pnpm test:coverage
# Lint all files
pnpm lint
# Lint only source code
pnpm lint:code
# Lint only test files
pnpm lint:test
MIT - See LICENSE file for details.
The app includes URL helper utilities in src/utils/url-helpers.ts:
getFrontendUrl(): Generate full frontend URLs from attribution pathsshouldMakeClickable(): Determine if content should be clickablegetClickHandler(): Get appropriate click handler for content type