JonathanGarro / SIMS-Portal

IFRC Surge Information Management Support Portal
3 stars 4 forks source link

[Feature request] Allowing contributions to the acronyms from both public and logged-in users #108

Closed nanometrenat closed 6 months ago

nanometrenat commented 6 months ago

Re the excellent new https://rcrcsims.org/acronyms

Context

Current MTAG system (from which this was migrated) allows public contributions - which is great for crowdsourcing but also potentially allows incorrect or malicious contributions to go live. Want to balance up appropriate level of scrutiny with frictionless contribution experience.

Request

Please allow logged-in SIMS Portal users to contribute directly, no gatekeeping, but with monitoring alerts so admins know a contribution has been made and can check it (action only required if it's not good quality)

Please allow public to make contributions that are held in a queue (gatekept) until an admin approves them for publication

JonathanGarro commented 6 months ago

Thanks for logging. Here's my proposed solution:

User clicks "Add Acronym" - if they are logged in, it goes straight to the existing submission page. If not logged in, goes to a "public" version of the submission page but with a callout box to alert them to the fact that non-logged in member submissions have to go into a review queue, and if they want to submit one as a member, it skips that validation. The login link there includes a redirect so it will bring them back to the same page after authenticating.

Screen Shot 2024-02-26 at 10 27 37 AM Screen Shot 2024-02-26 at 10 28 43 AM

JonathanGarro commented 6 months ago

@nanometrenat lmk if this routing makes sense to you

nanometrenat commented 6 months ago

Thanks, sounds good!

nanometrenat commented 6 months ago

Question - what is the update process? e.g. for adding additional languages, or amending a definition, or adding a URL?

JonathanGarro commented 6 months ago

@nanometrenat I added an edit route. when looking at the acronym popup, it will check if the user is an administrator OR the person that originally submitted the acronym (login required in order to run the check, otherwise no edit button appears). it will then bring up the same page as the submission, except with the data already populated.

JonathanGarro commented 6 months ago

Closing this issue. Current implementation: