app: announcements, devotionals and events' screens; @crosscode/seo 1.1.0 (APP-1.0-PLAN §5-§7)
Public pages: Home with today's devotional, the latest announcements (pinned first) and what's on; Announcements and each one's page (markdown without HTML, a button, Article JSON-LD; members-only ones ask for a sign-in and are noindex); Devotional (the passage in full with its copyright line, Read in YouVersion, the prayer), each day's page, the archive by month and the Acknowledgements; Events and each one's page (Register on the Events site for Cross Events', a canonical to the origin, Event JSON-LD on the App's own). A sitemap of the public pages, named in robots.txt. Admin: Announcements (schedule, end, pin, campus, who sees it, also send it), Events (simple events, Linked products: publish and show events from), and Devotionals (Cross Code's or our own, Sync now, a month's days, writing, the CSV import with its preview, keep or replace days already filled). @crosscode/seo 1.1.0: articleJsonLd. The backend gives the App's own address and the sitemap's list, and a simple event's crosscode.event/1 for its page. Checked in a browser on a throwaway PostgreSQL: the pages for a visitor, the JSON-LD, a members-only announcement asking for a sign-in, the sitemap, a Content admin publishing an announcement and a Devotional writer saving one; no page errors. 94 backend tests, 19 seo tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+26
-2
@@ -2,8 +2,9 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
Being built for `app@1.0.0` (docs/APP-1.0-PLAN.md). Three migrations so far (`20261201000000_init`,
|
||||
`20261202000000_house_of_prayer`, `20261203000000_prayer_requests`).
|
||||
Being built for `app@1.0.0` (docs/APP-1.0-PLAN.md). Four migrations so far (`20261201000000_init`,
|
||||
`20261202000000_house_of_prayer`, `20261203000000_prayer_requests`, `20261204000000_content`).
|
||||
Ships `@crosscode/seo` 1.1.0 (`articleJsonLd`, workspace).
|
||||
|
||||
### Added
|
||||
|
||||
@@ -77,5 +78,28 @@ Being built for `app@1.0.0` (docs/APP-1.0-PLAN.md). Three migrations so far (`20
|
||||
- Screens: Ask for prayer (who sees it, the emergency numbers, South African by default), Pray for
|
||||
others, My prayer requests, and the admin's Prayer requests (waiting, open, escalated, closed,
|
||||
settings). The Prayer tab shows with either prayer module.
|
||||
- **Announcements** (plan §5, `src/content/announcements.ts`): title, markdown text (shown without
|
||||
HTML, `react-markdown`), image, an optional button, a campus from the church profile, everyone or
|
||||
members only, pinned, a publish time and an end. Public ones are pages of their own (canonical,
|
||||
Article JSON-LD, in the sitemap); members-only ones ask for a sign-in and are noindex. Content
|
||||
admins write them (`/admin/announcements`). "Also send it" by email or WhatsApp is saved, and
|
||||
sent once at the publish time with §8. The heartbeat counts the last 30 days.
|
||||
- **Devotionals** (plan §6, `src/content/devotionals.ts`): Cross Code's from the Hub
|
||||
(`crosscode-devotionals`, 01:15, and Sync now: the next 2 weeks from today in the church's
|
||||
timezone, with the licence; exactly those days replaced, earlier ones kept, so a Hub outage
|
||||
changes nothing), or the church's own (Settings → Devotionals, AppSetting `devotionals_source`),
|
||||
written by Devotional writers or imported from the Hub's CSV (a preview first; days already
|
||||
filled kept or replaced). Only KJV and BSB. The passage in full with its copyright line (and a
|
||||
disclaimer where there is one) and Read in YouVersion; today's from midnight or the most recent;
|
||||
the archive by month; members-only ones; the Acknowledgements page; Article JSON-LD.
|
||||
- **Events** (plan §7, `src/events/`): simple events made by Content admins in the church's
|
||||
timezone (`/admin/events`), and the event feed both ways, as the Website's: the App's own published
|
||||
as `crosscode.event/1` (`/api/feed/v1/events`, removals for 90 days, `event.changed` to siblings),
|
||||
and read-only copies of Cross Events' and the Website's (`event-feed`, every 15 minutes and on
|
||||
their `event.changed`) with Register on the Events site and a canonical to the origin. Event
|
||||
JSON-LD on the App's own events only. Linked products: publish, and show events from each sibling.
|
||||
- Home shows today's devotional, the latest announcements (pinned first) and what's on. A sitemap
|
||||
of the public pages (`/sitemap.xml`, never prayer, members-only items or imported events), named
|
||||
in robots.txt. `GET /api/v1/app` gives the App's own address (`url`).
|
||||
- `env.template.json` (read by the Hub at the tag), `ecosystem.config.example.cjs` (ports 5400 / 3400
|
||||
in development).
|
||||
|
||||
Reference in New Issue
Block a user