openedx / openedx/sample-plugin

add example for installing FPF plugin components that aren't published to NPM

Open
#12 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.