Skip to content

Tidy up how Code Editor and Code Classroom users can provide feedback#1486

Merged
abcampo-iry merged 4 commits into
mainfrom
issues/1405
Jun 4, 2026
Merged

Tidy up how Code Editor and Code Classroom users can provide feedback#1486
abcampo-iry merged 4 commits into
mainfrom
issues/1405

Conversation

@abcampo-iry
Copy link
Copy Markdown
Contributor

@abcampo-iry abcampo-iry commented Jun 2, 2026

Relates to: https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/1405

  • Made the info panel feedback link configurable through the web component.
  • Kept the Code Editor feedback form as the default.

Details

@abcampo-iry abcampo-iry temporarily deployed to previews/1486/merge June 2, 2026 12:06 — with GitHub Actions Inactive
@abcampo-iry abcampo-iry changed the title Issues/1405 Tidy up how Code Editor and Code Classroom users can provide feedback Jun 2, 2026
@abcampo-iry abcampo-iry temporarily deployed to previews/1486/merge June 2, 2026 14:30 — with GitHub Actions Inactive
@abcampo-iry abcampo-iry marked this pull request as ready for review June 2, 2026 14:57
Copilot AI review requested due to automatic review settings June 2, 2026 14:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the Info panel “Feedback” link configurable for editor-wc hosts (e.g. Code Classroom) via a new feedback_form_url attribute, while keeping the Code Editor feedback form as the default.

Changes:

  • Added feedback_form_url as an observed editor-wc attribute and threaded it through the loader and project views into the sidebar.
  • Updated InfoPanel to accept feedbackFormUrl and updated tests to cover the default and custom URL cases.
  • Documented the new web component attribute in the README.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/web-component.js Adds feedback_form_url to observed attributes so hosts can configure it.
src/containers/WebComponentLoader.jsx Accepts feedbackFormUrl and passes it down to the project view.
src/components/WebComponentProject/WebComponentProject.jsx Threads feedbackFormUrl into mobile/desktop project render paths.
src/components/Mobile/MobileProject/MobileProject.jsx Passes feedbackFormUrl into the sidebar in mobile layout.
src/components/Menus/Sidebar/Sidebar.jsx Wires feedbackFormUrl into the Info panel.
src/components/Menus/Sidebar/InfoPanel/InfoPanel.jsx Uses the provided feedbackFormUrl for the feedback link (with default).
src/components/Menus/Sidebar/InfoPanel/InfoPanel.test.js Refactors rendering helper and adds coverage for default/custom URL.
src/components/Editor/Project/Project.jsx Threads feedbackFormUrl into the sidebar in the desktop project view.
README.md Documents the new feedback_form_url attribute.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/Menus/Sidebar/InfoPanel/InfoPanel.jsx
Comment thread src/components/Menus/Sidebar/InfoPanel/InfoPanel.test.js
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Comment thread src/components/Menus/Sidebar/InfoPanel/InfoPanel.jsx
Comment thread src/components/Menus/Sidebar/Sidebar.jsx
@abcampo-iry abcampo-iry temporarily deployed to previews/1486/merge June 2, 2026 16:15 — with GitHub Actions Inactive
@cocomarine cocomarine self-requested a review June 4, 2026 07:57
Copy link
Copy Markdown
Contributor

@cocomarine cocomarine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@abcampo-iry abcampo-iry merged commit ec0ac00 into main Jun 4, 2026
7 checks passed
@abcampo-iry abcampo-iry deleted the issues/1405 branch June 4, 2026 11:32
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.

3 participants