Skip to content

Anyone can submit a class or suggest a correction, safely #257

Open
8 of 10 issues completed
Open

Description

@Ardnived

The goal

Anyone can add a meditation class to the map, or suggest a correction to one, from the map itself. Regional managers review each submission before it appears, and spam stays out.

Why it matters

Today, new classes and corrections arrive by email or not at all, so the map goes out of date. Opening submissions to the public brings in spam and abuse unless managers have the tools to handle them.

What success looks like

  • A visitor who has never signed in can add a meditation class from the map, giving their email address, and is told it was received.
  • A visitor reading a class can suggest a correction to it in one step.
  • A submitted class arrives already attached to the right city, so the person who looks after that city is the one asked, not a shared inbox. A place nobody looks after goes to the nearest manager above it.
  • A manager sees the submissions for the places they look after, and not the rest of the world's.
  • A manager can see what a submission would change, and what the class would look like, before approving it. Nothing reaches the map until they approve.
  • A manager is told what is still waiting for them without opening the admin site, as often as their notification preferences say — a daily summary by default. A manager with nothing waiting is not emailed.
  • Repeated junk from the same person stops getting through with no manager involved, and a manager can still see what was refused and undo a mistake.
  • When two people submit the same class separately, the reviewer is shown that something similar already exists.
  • A correction aimed at a class that has since been removed tells the reviewer it is gone, rather than failing with an error they cannot act on.
  • A declined submission is deleted after one month, and the guide our embedding sites read says so.

Not included

  • Changing how approved classes look on the map. Unverified listings already carry a badge and already rank lower.
  • Sending a manager a new sign-in or invitation email. A manager who never received one can already ask for a new one at the sign-in page, so there is nothing here to build.
  • Photos in a submission. A manager can add photos after approving; visitor photos are their own goal.
  • A dashboard showing managers what the spam filter caught.
  • Summaries about anything other than waiting submissions.
  • Letting visitors vote on whether a listing is still correct. That was ruled out already.
  • Moving the atlas's existing forms onto the shared submission path. That is One safe intake for everything visitors submit #259.

Decisions

  • Which goal owns the atlas's new submission forms? → This one. One safe intake for everything visitors submit #259 excludes new kinds of forms, so it owns the shared path and this goal owns the new forms. (from One safe intake for everything visitors submit #259, 2026-10-08)
  • Should the first release let a visitor attach photos? → No photos at first. A manager can add photos after approving, and visitor photos follow as their own goal. (Ardnived, 2026-10-21)
  • Must someone submitting give their email address? → Always required, so every protection against repeat abuse works and we can tell the person what happened. (Ardnived, 2026-10-21)
  • What happens to a submission for a place nobody looks after? → It goes to the nearest manager above it, who can hand it on. (Ardnived, 2026-10-21)
  • How is a manager told about a waiting submission? → "Configurable like other notifications. Default to daily digest." Each manager sets it in their notification preferences, and the default is a daily summary. (Ardnived, 2026-10-21)
  • How long do we keep a submission we declined? → A month for everything in it, then it is deleted. (Ardnived, 2026-10-21)
  • When someone who is blocked sends something, what do they see? → The usual "received" message. Nothing they send is delivered or emailed, and it is filed as spam, so a spammer cannot tell they are blocked. (Ardnived, 2026-11-01)
  • Who can block someone? → Admins, on the person's record. A manager who sees junk asks an admin. (Ardnived, 2026-11-01)
  • When does a block end? → Only when an admin lifts it. We keep a blocked person's address for as long as the block stands. (Ardnived, 2026-11-01)
  • Should anyone be blocked automatically? → No. The existing rule already stops a burst of junk for a day, and a lasting block is always a person's decision. (Ardnived, 2026-11-01)
  • How long do we keep a sign-up the spam filter refused? → 90 days, like other spam, then it is deleted. (Ardnived, 2026-11-01)

Open questions

Notes

Related: #147, #195, #259, sydevs/SahajCloud#627, sydevs/SahajCloud#630, sydevs/SahajCloud#631, sydevs/SahajCloud#680, sydevs/SahajCloud#688, sydevs/SahajCloud#695, sydevs/SahajCloud#808

Sub-issues

Sub-issues

8 of 10 Issues completed
Loading 10 sub-issues

Activity

  1. added this to the Sahaj Atlas launch milestone on Oct 8, 2026
  2. added theissue type on Oct 8, 2026
  3. added
    bot:working
    on Oct 8, 2026
  4. sydevs-bot commented on Oct 8, 2026

    @sydevs-bot
    Contributor

    🤖 no session running

    recent dispatches
    • 01:22Z revise-roadmap · attempt 1 · session · done
    • 01:22Z revise-roadmap · attempt 1 · session

    Written by the sydevs dispatcher. Sessions never edit this comment.

  5. sydevs-bot commented on Oct 8, 2026

    @sydevs-bot
    Contributor

    Two findings that change the plan.

    1. Review is not region-scoped. Managers read proposals by type alone (accessConfigs.ts:85); the endpoint checks a collection-wide permission (endpoints/review.ts:34); Accept overrides access (lifecycle/review.ts:147). The headline promise changes shipped behaviour.
    2. A new class carries no region. region/regionHint are system-only (fields.ts:506), so the widget cannot send one and nothing resolves it. Accept 409s region_unresolved, and every new class mails the central address. deliverProposal.ts:24 and fields.ts claim screening resolves it — stale.

    Split: region resolution + scoped review (sydevs/SahajCloud, unticketed, first) → proposal sender (#195 item 3) → widget form (#147 §2) → digest (sydevs/SahajCloud#631) → blocklist (sydevs/SahajCloud#630 §1) → photos (sydevs/SahajCloud#627, on Q1).

    regional_summary defaults Monthly for every manager and nothing sends it. sydevs/SahajCloud#631 should adopt that key.

    🤖 Written by the sydevs autonomous loop — see what this is


    Generated by Claude Code

  6. sydevs-bot commented on Oct 8, 2026

    @sydevs-bot
    Contributor

    Most of this goal is already built. Two things are not what it assumes.

    Two findings. Managers are not restricted to their own region when reviewing submissions today. A submitted new class arrives with no region at all, so it mails the central address and cannot be approved without hand-editing. Both sit in this goal's scope. Evidence is above.

    What changed in the body. I sharpened every success line so a non-developer can check it. I moved the manager sign-in email to ## Not included, because a manager who never received one can already request a new one at the sign-in page. That makes sydevs/SahajCloud#680 and sydevs/SahajCloud#688 look closable.

    The seven children no longer match the goal. Nothing covers the region work, and photos hang on question 1. I did not ask for a re-plan, because their shape depends on your answers.

    What I need from you. Answer the five decisions in ## Open questions with @sydevs-bot revise 1A, or in your own words.

    Once nothing is open, @sydevs-bot implement plans the implementation tickets.

    🤖 Written by the sydevs autonomous loop — see what this is

  7. added and removed
    bot:working
    on Oct 8, 2026
  8. Ardnived commented on Oct 21, 2026

    @Ardnived
    ContributorAuthor

    Answered in the terminal by @Ardnived:

    • Should the first release let a visitor attach photos? → No photos at first. A manager can add photos after approving, and visitor photos follow as their own goal.
    • Must someone submitting give their email address? → Always required, so every protection against repeat abuse works and we can tell the person what happened.
    • What happens to a submission for a place nobody looks after? → It goes to the nearest manager above it, who can hand it on.
    • How is a manager told about a waiting submission? → "Configurable like other notifications. Default to daily digest." Each manager sets it in their notification preferences, and the default is a daily summary.
    • How long do we keep a submission we declined? → A month for everything in it, then it is deleted.
  9. Ardnived commented on Nov 1, 2026

    @Ardnived
    ContributorAuthor

    Answered in the terminal by @Ardnived:

    • When someone who is blocked sends something, what do they see? → The usual "received" message; nothing is delivered or emailed, and it is filed as spam.
    • Who can block someone? → Admins, on the person's record.
    • When does a block end? → Only when an admin lifts it.
    • Should anyone be blocked automatically? → No.
    • How long do we keep a sign-up the spam filter refused? → 90 days, then it is deleted.
    • Spam analytics in feat(api): let an admin block a submitter, and purge spam sign-ups SahajCloud#630? → Dropped, as this goal already leaves it out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Priority

    Medium

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions