People directories, ministries, organization contacts (migrations 062 to 064)
- People tags (062): Data → People tags (Musicians seeded); a person's Directories repeater tags them and their Specialty line shows on their tile. A People directory section preset shows a tag's first 12 and links to its full page, /directory/<tag>, with page meta and a sitemap entry. Tiles' details panels show a person's links. - Ministries (063): a new organization kind. A group picks its ministry and its page says "Ministry: <name>", linked to the ministry's website. Ministries have no public page, list, sitemap or timeline entry, and aren't offered where a record links to its organization. organizations is rebuilt for the kind CHECK. - Organization contacts (064): Data → Contact types; a private Contacts repeater on each organization (editors and up, readRole on a child collection). Tools → Newsletter → Recipients filters them by type, kind, region and published and downloads a Mailchimp CSV. - A trigger refusing a save with a sentence is shown as that message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
07e56bfd20
commit
0ed7315156
38 changed files with 1108 additions and 29 deletions
|
|
@ -14,6 +14,9 @@
|
|||
unpublished blog post: its blocks and picks as the post's body,
|
||||
opened in the post's editor to finish.
|
||||
|
||||
Under it, Recipients exports organization contacts as a mailing
|
||||
list (NewsletterRecipients.tsx), for editors and up.
|
||||
|
||||
Picked blog posts are read from their public pages, so only a
|
||||
post visitors can open makes it in, with its excerpt and cover.
|
||||
Links and images are the live site's (SITE_ORIGIN), since an
|
||||
|
|
@ -30,6 +33,7 @@ import { canDelete, canWrite } from '../../lib/roles.ts'
|
|||
import { slugify } from '../../lib/adminSchema.ts'
|
||||
import { blocksChild, BLOCK_TYPES } from '../../lib/adminSchema/shared.ts'
|
||||
import { Repeater } from '../../components/admin/fields.tsx'
|
||||
import NewsletterRecipients from '../../components/admin/NewsletterRecipients.tsx'
|
||||
import { useEvents } from '../../lib/eventData.ts'
|
||||
import { useFrontPage, type FeaturedCard } from '../../lib/useFrontPage.ts'
|
||||
import type { BlogPostRecord } from '../../lib/useBlog.ts'
|
||||
|
|
@ -603,6 +607,8 @@ export default function AdminNewsletter() {
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{canWrite(user) && <NewsletterRecipients />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue