openedx / openedx/sample-plugin
add example for installing FPF plugin components that aren't published to NPM
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1
- Forks
- 4
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 8
Description
I had a conversation with Felipe where he asked:
Do you know of any tutor plugin that loads the code of a UIslot without requiring that the code is first published to NPM?
I didn't know any examples. The README examples for the slots all use inline RenderWidget code, and the other examples use NPM packages.
The solution used for openedx-ai-extensions ended up being Tutor's build-contexts.
https://github.com/openedx/openedx-ai-extensions/blob/main/tutor/openedx_ai_extensions/plugin.py#L32
I definitely think "make a plugin that utilizes FPF slots but doesn't have frontend code published to NPM" is a reasonable use case that we should (and apparently already do) support, so it'd be great to document that.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README slot examples and the build-contexts approach referenced from openedx-ai-extensions/tutor/openedx_ai_extensions/plugin.py at line 32. Document an example showing how to use FPF slots when frontend code is not published to NPM, and ensure the example reflects the existing build-contexts solution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- Half a day
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100