Repository navigation
2010 replace placeholder links - #1775
jamiebenstead wants to merge 6 commits into
Conversation
closes RaspberryPiFoundation/digital-editor-issues#1982 ## What's changed - Python errors now show at the bottom of the input panel - The error takes up at most half the input panel's height and scrolls if longer - On mobile, the Code tab opens when an error occurs - Output-only embeds are unchanged: the error still shows in the output ## Screens ### Error <img width="1507" height="745" alt="image" src="https://github.com/user-attachments/assets/05f56fdb-9b0b-4f30-b991-a01a61fe7152" /> ### Error with AI helper (to show the 50% error max height) <img width="1507" height="745" alt="image" src="https://github.com/user-attachments/assets/cd34c924-4875-4697-a1d2-13b9a65302f1" /> ### UPDATE: Changed button to match designs <img width="1507" height="745" alt="image" src="https://github.com/user-attachments/assets/6251633a-3796-4f69-8cd2-3006249100be" />
ApprovabilityVerdict: Would Approve Macroscope's review found this PR approvable — Updates AI-hint help and feedback links and adds a documented learn-more click event. Navigation retains existing safeguards, and the event uses project and error information already exposed through existing host-page events. Needs human approval because:
No code changes detected at You can add or adjust custom eligibility rules. Learn more. |
cocomarine
left a comment
There was a problem hiding this comment.
Please add the new event to the README with a note that errorDetails is only included when source is errorMessage.
@cocomarine Woops, good spot. I've added that now |
Having said that, maybe we don't need to include errorDetails to the event detail? |
Part of https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/2010
What
Dispatches an
editor-aiHintLearnMoreLinkClickedevent when the "Learn more" link is clicked, so we can see how many people want to learn more about AI hints.The link appears in two places, and
sourcesays which one was clicked:projectIdentifier,errorDetails,source: "errorMessage"projectIdentifier,source: "settings"aiHintLinkComponentsis nowgetAiHintLinkComponents({ onLearnMoreClick })so the click handler can be passed in. Only the "Learn more" link gets the handler. The feedback link is unchanged.hrefand the event detail in both components.Related
The editor-standalone PR that tracks this event: https://github.com/RaspberryPiFoundation/editor-standalone/pull/1221