Organizations block: its picker lists ministries too

The block picked from the `organizations` options, which leave
ministries out for pickers that link to a page. A card needs no page,
so the block has its own `block_orgs`, every kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-11 03:32:01 -06:00
parent bd271ef02d
commit 06bf033448
2 changed files with 5 additions and 1 deletions

View file

@ -100,6 +100,10 @@ export const OPTION_QUERIES = {
// What an organization cards section can hand-pick (067).
card_orgs:
"SELECT id, name || ' (' || kind || ')' AS label FROM organizations WHERE kind IN ('partner', 'ministry') ORDER BY kind, name",
// What an organizations content block can pick (093): every kind,
// a card needing no page of its own.
block_orgs:
"SELECT id, name || ' (' || kind || ')' AS label FROM organizations ORDER BY kind, name",
event_scopes: "SELECT id, name AS label FROM event_scopes ORDER BY sort_order",
events: "SELECT id, title AS label FROM events ORDER BY starts_on DESC, title",
people: "SELECT id, display_name AS label FROM people ORDER BY sort_name, display_name",