Skip to content

1982 move the error to the input panel - #1773

Merged
jamiebenstead merged 7 commits into
mainfrom
1982-move-the-error-to-the-input-panel
Nov 23, 2026
Merged

jamiebenstead merged 7 commits into
mainfrom
1982-move-the-error-to-the-input-panel

Conversation

@jamiebenstead

@jamiebenstead jamiebenstead commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

closes https://github.com/RaspberryPiFoundation/digital-editor-issues/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

image

Error with AI helper (to show the 50% error max height)

image

UPDATE: Changed button to match designs

image

@cocomarine

Copy link
Copy Markdown
Contributor

@macroscope-app review

@macroscopeapp

macroscopeapp Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Manual reviews triggered for commit 4808c62:

All prior checks · these links stay valid even if you push more commits.

@macroscopeapp

macroscopeapp Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Review started; results will appear in the check runs.

@macroscopeapp

macroscopeapp Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Would Approve

Macroscope's review found this PR approvable — Python errors move beside the code, with mobile navigation revealing them automatically and existing output-only embed behavior retained. The changes are limited to presentation and navigation, with targeted unit and browser-test coverage.

Needs human approval because:

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

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.

I think we need to update the Run button to a small size according to the design.
The grey lines and borders look a bit off in some places (e.g. the line above Run button is too thick), but my PR #1771 fixes them so no need to correct them here.

Screenshot 2026-11-23 at 10 30 03

@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.

LGTM

@jamiebenstead
jamiebenstead merged commit 49b18a6 into main Nov 23, 2026
13 checks passed
@jamiebenstead
jamiebenstead deleted the 1982-move-the-error-to-the-input-panel branch November 23, 2026 13:23
jamiebenstead added a commit that referenced this pull request Nov 23, 2026
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"
/>

This branch was successfully deployed

1 active deployment
previews/1773/merge — 7be3cd5c Deployed Nov 23, 2026 by jamiebenstead via deploy-branch / build-deploy #7211
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