Skip to content

Add Moodle Playground demo (blueprint + README badge) - #766

Open
erseco wants to merge 1 commit into
PoetOS:MOODLE_500_STABLEfrom
erseco:feature/moodle-playground-preview
Open

Add Moodle Playground demo (blueprint + README badge)#766
erseco wants to merge 1 commit into
PoetOS:MOODLE_500_STABLEfrom
erseco:feature/moodle-playground-preview

Conversation

@erseco

@erseco erseco commented Jul 11, 2026

Copy link
Copy Markdown

About this PR — Moodle Playground

Moodle Playground (source) runs a full Moodle site entirely in the browser (PHP + SQLite via WebAssembly). A blueprint.json describes how to provision plugins, users, courses and sample content so anyone can try a plugin with one click — no Docker, no local Moodle.

Update (simplification)

An earlier version of this PR also added a GitHub Action (.github/workflows/pr-playground-preview.yml) that automatically attached a Playground preview link to every same-repo pull request.

After reflecting on feedback from similar contributions, I have removed the workflow. Requiring pull-requests: write and running extra CI on every PR is more than many plugin repositories need, and it can feel invasive when the main goal is simply “try this plugin online.”

This PR now only adds:

  1. blueprint.json — installs mod_questionnaire, creates a “Questionnaire Demo” course with a sample “Course feedback survey” (Yes/No, multiple-choice and text-box questions), and lands on its preview.
  2. README.md — short “Try in Moodle Playground” section with a badge pointing at this repository’s MOODLE_500_STABLE/blueprint.json so it works as soon as this is merged. Existing README content is otherwise unchanged.

No automated PR previews, no new permissions, no releases clutter.

Try it (preview of the README button)

This is the same button that will appear in the README. Until this PR is merged, the README badge correctly targets the future upstream path (so it works right after merge). The button below points at the live blueprint on my fork branch so you can try the demo today:

Preview in Moodle Playground

After merge, the README badge will resolve to:

https://moodle-playground.com/?blueprint-url=https://raw.githubusercontent.com/PoetOS/moodle-mod_questionnaire/refs/heads/MOODLE_500_STABLE/blueprint.json

Test plan

  • Open the Playground button above and confirm Moodle boots with the plugin installed.
  • Confirm you land on the sample questionnaire preview.
  • Confirm sample questions are visible (Yes/No, multiple-choice, text-box).
  • Confirm this PR does not add any GitHub workflow under .github/workflows/.

Happy to adjust the README wording or the demo content if you prefer something even smaller.

Add a one-click browser demo via Moodle Playground:
- blueprint.json provisions Moodle with mod_questionnaire and a sample
  course feedback survey ready to preview.
- README.md documents the demo with a badge pointing at the upstream
  path so it works as soon as this is merged.

Intentionally no GitHub Action / PR preview workflow, to keep the
contribution small and non-invasive for maintainers.
@erseco
erseco force-pushed the feature/moodle-playground-preview branch from 8ff6f6b to cf5083e Compare July 20, 2026 09:27
@erseco erseco changed the title Add Moodle Playground preview with a ready-to-use questionnaire Add Moodle Playground demo (blueprint + README badge) Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant