Skip to content

feat: adding tile to studio pages and resources#141

Draft
dcoa wants to merge 4 commits intoopenedx:mainfrom
eduNEXT:dcoa/pages-poc
Draft

feat: adding tile to studio pages and resources#141
dcoa wants to merge 4 commits intoopenedx:mainfrom
eduNEXT:dcoa/pages-poc

Conversation

@dcoa
Copy link
Contributor

@dcoa dcoa commented Feb 14, 2026

This is demonstration about how to insert a tile in Studio Pages and resources.

This is the result of the Research Spike: injecting UI for studio workflows from the pages and resources tiles #139

For this POC we will mount a modal for Badges Generation, we can reuse the same logic to create a wide-propose modal (AI-extensions) or multiple cards.

Plugin Slot Integration

The Badge Creation Card is injected through the AdditionalCoursePluginSlot plugin slot in frontend-app-authoring.

Slot Details

  • Slot ID: org.openedx.frontend.authoring.additional_course_plugin.v1
  • Location: Pages & Resources page, alongside other course app cards
  • Component: BadgeCreationCard from @openedx/openedx-ai-extensions-ui
import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';
import { BadgeCreationCard } from '@openedx/openedx-ai-extensions-ui';
import { useCourseOutline } from './src/course-outline/hooks';
import { useParams } from 'react-router';

const BadgeAIGenerator = () => {
     const { courseId } = useParams();

    // We can in future consider to provide the studio context by props, if needed
    const { courseName, sectionsList } = useCourseOutline({ courseId });
  return <BadgeCreationCard courseData={sectionsList} courseId={courseId} courseName={courseName} />;
};

const config = {
  pluginSlots: {
    'org.openedx.frontend.authoring.additional_course_plugin.v1': {
      keepDefault: true,
      plugins: [
        {
          op: PLUGIN_OPERATIONS.Insert,
          widget: {
            id: 'ai-badge-creator-card',
            priority: 100,
            type: DIRECT_PLUGIN,
            RenderWidget: BadgeAIGenerator
            ),
          },
        },
      ],
    },
  },
};

export default config;

Warning

There is another plugin with similar name (additional_course_content_plugin) but that one will be deprecated openedx/frontend-app-authoring#2330

What is in this PR?

  • CoursePagesCard: is a general propose component that add the card in the Pages and Resources. Helpful if we want to add more than one tile.
  • We have the badges-creator sub-feature that encapsulates all the components - logic for the modal.

Screenshots

Screenshot from 2026-02-16 01-59-29 Screenshot from 2026-02-16 07-29-08

@openedx-webhooks
Copy link

Thanks for the pull request, @dcoa!

This repository is currently maintained by @felipemontoya.

Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review.

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

🔘 Update the status of your PR

Your PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate.


Where can I find more information?

If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:

When can I expect my changes to be merged?

Our goal is to get community contributions seen and reviewed as efficiently as possible.

However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U core contributor PR author is a Core Contributor (who may or may not have write access to this repo). labels Feb 14, 2026
@github-project-automation github-project-automation bot moved this to Needs Triage in Contributions Feb 14, 2026
@dcoa dcoa changed the title feat: adding tite to studio pages and resources feat: adding tile to studio pages and resources Feb 15, 2026
@dcoa dcoa requested a review from felipemontoya February 15, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). open-source-contribution PR author is not from Axim or 2U

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

2 participants