Skip to content

2010 replace placeholder links - #1775

Open
jamiebenstead wants to merge 6 commits into
mainfrom
2010-replace-placeholder-links
Open

jamiebenstead wants to merge 6 commits into
mainfrom
2010-replace-placeholder-links

Conversation

@jamiebenstead

@jamiebenstead jamiebenstead commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Part of https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/2010

What

Dispatches an editor-aiHintLearnMoreLinkClicked event 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 source says which one was clicked:

Placement Event detail
AI error message projectIdentifier, errorDetails, source: "errorMessage"
Settings toggle projectIdentifier, source: "settings"
  • aiHintLinkComponents is now getAiHintLinkComponents({ onLearnMoreClick }) so the click handler can be passed in. Only the "Learn more" link gets the handler. The feedback link is unchanged.
  • Adds tests for the link href and the event detail in both components.

Related

The editor-standalone PR that tracks this event: https://github.com/RaspberryPiFoundation/editor-standalone/pull/1221

jamiebenstead and others added 3 commits November 23, 2026 10:38
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"
/>
@macroscopeapp

macroscopeapp Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: 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:

  • approvability is in preview mode for this repository — Macroscope would have approved this PR outside preview mode

No code changes detected at ffc3889. Prior analysis still applies.

You can add or adjust custom eligibility rules. Learn more.

@cocomarine cocomarine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add the new event to the README with a note that errorDetails is only included when source is errorMessage.

@jamiebenstead

Copy link
Copy Markdown
Contributor Author

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

@jamiebenstead
jamiebenstead requested a deployment to previews/1775/merge November 24, 2026 10:06 — with GitHub Actions In progress
@cocomarine

Copy link
Copy Markdown
Contributor

Please add the new event to the README with a note that errorDetails is only included when source is errorMessage.

Having said that, maybe we don't need to include errorDetails to the event detail?

This branch is being deployed

1 in progress deployment
previews/1775/merge — ffc38894 Deployed Nov 24, 2026 by jamiebenstead via deploy-branch / build-deploy #7229
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.

2 participants