FE-778: Dim the code editor loading label and left-align it inline - #9628
Conversation
The label shown while Monaco loads is one dimmed element for both waits, the module load and the editor mount: left-aligned and vertically centred in an inline expression cell, where a centred label used to jump to the left once the editor mounted, and centred in a block editor.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
PR SummaryLow Risk Overview Loading label: Suspense fallback and Monaco’s Placeholder: Inline placeholders render only after Tests: New Reviewed by Cursor Bugbot for commit bdad29b. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8ba14ed. Configure here.
There was a problem hiding this comment.
🟢 Approval recommended
The focused styling and lifecycle changes are consistent, covered by a targeted test, and include the required changeset.
Pull request overview
Updates Petrinaut’s Monaco editor loading state for smoother, clearer presentation.
Changes:
- Shares one loading element across module loading and editor mounting.
- Dims loading labels and left-aligns inline-editor labels.
- Tests placeholder visibility during mounting.
- Relevant user docs do not describe loading presentation, so no update is needed.
File summaries
| File | Description |
|---|---|
code-editor.tsx |
Updates loading styles and mount-state handling. |
code-editor.test.tsx |
Tests loading-to-placeholder behavior. |
.changeset/code-editor-loading-label.md |
Adds the required patch changeset. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Summary
Before this PR, a code editor showed a full-strength "Loading..." label while Monaco loaded, centered in the box. In an inline expression cell the centered label jumped to the left once the editor mounted, and in both shapes it read as content rather than as a wait.
Both placeholders now share one dimmed element: left-aligned and vertically centered in an inline editor, centered in a block editor. Monaco's own loading state renders the same element, so the label does not change between the module load and the editor mount.
Before
9628-before.mp4
After
9628-after.mp4
Links
Changes
Review fixes
Test coverage
@hashintel/petrinautunit suitecode-editor.test.tsx:How to test