Skip to content

feat(events): fill the midweek meeting from the workbook #569

Open

Description

@mindsers

Why

The midweek meeting (« Vie et ministère ») follows the Life and Ministry Meeting Workbook. It changes every week: theme, Bible reading, songs, student parts and their durations. Today, whoever prepares the programme in Unitae types all of this by hand before assigning anyone. Most of the preparation time goes to retyping what is already published.

What we want

For a given week, the coordinator brings in the workbook and the midweek meeting fills itself. Every part arrives with its title, theme, duration and kind (student part, talk, reading…), ready to be assigned. The coordinator stays in control: he sees what will change before anything is saved.

jw.org publishes the workbook as an EPUB, one per month and language (mwb_<lang>_<yyyymm>.epub). That's the natural source to start from.

Done when

  • A coordinator with the right to manage the programme can import a month of the workbook for his meetings.
  • Each week's meeting gets its parts, in order, with titles and durations, mapped onto the congregation's template: student parts stay student parts, with an assistant where the format has one.
  • He sees a preview and confirms before anything is written.
  • Re-importing, or importing over a programme that already has assignments, never silently drops an assignment.
  • It works at least in French and English, and the approach doesn't block other languages.
  • It's covered by tests, as described in the testing guide.

Out of scope

  • Choosing who gets each part (automatic assignment).
  • The weekend meeting.

To settle in this issue before coding

Please comment with your approach first. These choices shape the whole feature:

  1. How the EPUB gets into Unitae: uploaded by the user, or fetched for him. Fetching has to respect jw.org's terms of use.
  2. How workbook parts map onto the template's parts: what happens when the template has a part the workbook doesn't, and the other way round.
  3. What to do with existing assignments when a week is imported again.

Where to look

  • Events & programme management: templates, part presets, tracks (parallel rooms), the draft/published flow.
  • app/features/events/: the model, routes and services of programmes.
  • Prior art for reading a file the user drops in, previewing and confirming: updating a visiting congregation's speaker list from its PDF (the visiting speakers pages).
  • Architecture, coding conventions, permissions, i18n.

New to the project? Start with CONTRIBUTING.md and the development setup.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions