Skip to content

[pull] main from TryGhost:main#1212

Merged
pull[bot] merged 2 commits into
code:mainfrom
TryGhost:main
Jun 5, 2026
Merged

[pull] main from TryGhost:main#1212
pull[bot] merged 2 commits into
code:mainfrom
TryGhost:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Jun 5, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

amal-hafis and others added 2 commits June 4, 2026 18:45
no ref

The members CSV export filename did not include the site name, unlike
the JSON export and the already-fixed analytics CSV export (#28227).
This inconsistency makes it harder to identify which site the data comes
from when managing multiple Ghost instances.

## What does it do?
Updates the members CSV export filename to follow the same convention:
`<site-name>.ghost.members.YYYY-MM-DD.csv`

Falls back to `ghost.members.YYYY-MM-DD.csv` if no site title is set.

## Why is this something Ghost users need?
Consistency across all exports and easier file management when handling
multiple Ghost sites.


This will be one of a few commits cleaning up the use, as there's both front- and back-end handling.
Fixes #28310

## Summary

- add a members export filename helper that prefixes CSV exports with
the slugified site title
- pass the existing settings `title` value from the members page into
the export action
- keep the current `ghost.members.YYYY-MM-DD.csv` fallback when the site
title is unavailable

## Verification

- `pnpm vitest run test/unit/views/members/members-actions.test.tsx`
from `apps/posts` (7 tests passed)
- `pnpm --dir apps/posts exec eslint
src/views/members/components/members-actions.tsx
test/unit/views/members/members-actions.test.tsx`
- commit hook ESLint also covered
`apps/posts/src/views/members/members.tsx`
- `pnpm --dir apps/posts exec tsc --noEmit`
- `git diff --check`
- `pnpm --filter @tryghost/posts build` got through TypeScript and then
failed in Vite/Rollup on virtual `\0react` with Node `v24.15.0`; this
checkout warns the repo expects Node `^22.13.1`

This is one of a few PRs to update this handling as we now recreate the member export title (and streamed exports) in a few places.
@pull pull Bot locked and limited conversation to collaborators Jun 5, 2026
@pull pull Bot added the ⤵️ pull label Jun 5, 2026
@pull pull Bot merged commit b76a6d4 into code:main Jun 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants