Skip to content

feat(code-editor): degraded editor and status bar - #8867

Merged
sid-bruno merged 6 commits into
usebruno:mainfrom
barelyhuman:refactor/codemirror-optimization
Aug 31, 2026
Merged

sid-bruno merged 6 commits into
usebruno:mainfrom
barelyhuman:refactor/codemirror-optimization

Conversation

@barelyhuman

@barelyhuman barelyhuman commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

BRU-4054

Description

  • Long utf-16 unicode detection in the code editor and degrade the editor of it's functionality based on it.
  • Tests for managing this
  • A status bar to allow user to be able to work with it

Problem

Codemirror 5 doesn't do horizontal viewport based virtualisation, which means that a single long line of ~5MB of data with all the basic codemirror addons go through the whole 5MB in a single go instead of doing it per line (which is easier and less memory hungry).

On powerful systems, this adds a slight lag to the window, on most other system the app becomes unusable.

Screenshots

What the status bar looks like

Screenshot 2026-08-07 at 7 29 14 PM

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
  • I've run the claude code review skill locally.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

  • New Features
    • Added performance safeguards for very long editor lines, with alerts and an option to restore full editor functionality.
    • Added a reusable status alert component with configurable messages, icons, actions, and styling.
  • Bug Fixes
    • Improved editor layout and responsiveness.
    • Improved JSON formatting for large, compact payloads while preserving variables.
    • Standardized JSON prettification across response examples.
  • Documentation
    • Added Storybook examples covering alert states and actions.
  • Tests
    • Expanded coverage for long-line handling, editor fallback behavior, and JSON formatting.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The PR adds long-line detection, alternate JSON formatting, degraded CodeMirror profiles, performance alerts, editor layout updates, shared Alert UI, and tests for unsafe values and edits.

Changes

Long-line safety and formatting

Layer / File(s) Summary
Long-line detection and formatting
packages/bruno-app/src/utils/common/..., packages/bruno-app/src/components/ResponseExample/...
Long-line utilities detect oversized values and edits. Long-line JSON uses fast-json-format, and response examples use the shared prettifier. Tests cover boundaries, line endings, overrides, pastes, and formatted payloads.

Status alert UI

Layer / File(s) Summary
Status alert UI
packages/bruno-app/src/ui/Alert/*, packages/bruno-app/src/ui/index.js
Added the status-based Alert component, styling, public export, and Storybook stories for actions and supported statuses.

Degraded editor profiles and transitions

Layer / File(s) Summary
Degraded editor profiles and transitions
packages/bruno-app/src/components/CodeEditor/*
CodeEditor switches between degraded and normal CodeMirror profiles, disables or restores enhanced features, handles unsafe edits and overrides, and renders the performance alert. Layout styles support the revised editor shell.

Editor safety validation

Layer / File(s) Summary
Editor safety validation
packages/bruno-app/src/test-utils/mocks/codemirror.js, packages/bruno-app/src/components/CodeEditor/index.spec.js
The CodeMirror mock supports editor state operations. Tests cover unsafe initial values, external values, pastes, mode toggles, override resets, and feature restoration order.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant CodeMirror
  participant CodeEditor
  participant LongLineUtilities
  participant EditorPerformanceAlert
  CodeMirror->>CodeEditor: beforeChange event
  CodeEditor->>LongLineUtilities: changeIntroducesLongLine
  LongLineUtilities-->>CodeEditor: unsafe edit state
  CodeEditor->>CodeEditor: apply degraded or normal profile
  CodeEditor->>EditorPerformanceAlert: render current long-line mode
Loading

Possibly related PRs

Suggested reviewers: bijin-bruno

Poem

Long lines reach the limit,
CodeMirror changes its mode.
Alerts show the editor state,
JSON formatting takes another path.
Tests verify each transition.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately identifies the degraded editor change, which is a central part of the long-line safety implementation.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI 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.

Pull request overview

Adds “pathological long single-line” detection to the app’s CodeMirror 5 editor to prevent UI hangs, with a degraded editor profile and an in-editor notice/toggle to allow users to opt back into full features when needed.

Changes:

  • Introduces long-line detection utilities (+ unit tests) and reuses them to choose safer JSON formatting for extreme single-line payloads.
  • Adds a degraded CodeEditor profile (disabling expensive editor features) plus a UI alert/toggle for enabling/disabling “full editor” mode.
  • Updates CodeMirror test mocks and adds targeted CodeEditor tests covering degraded/full-mode transitions.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/bruno-app/src/utils/common/long-lines.js New utilities to detect long single lines and predict whether an edit introduces one.
packages/bruno-app/src/utils/common/long-lines.spec.js Unit tests for long-line detection helpers.
packages/bruno-app/src/utils/common/index.js Uses long-line detection to switch JSON formatting strategy for pathological single-line payloads.
packages/bruno-app/src/utils/common/index.spec.js Adds coverage ensuring prettifyJsonString handles pathological single-line JSON.
packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleBodyMode/index.js Reuses prettifyJsonString for prettifying example JSON (inherits long-line safety).
packages/bruno-app/src/components/CodeEditor/editor-profile.js New “normal vs degraded” profile builder/applier for CodeMirror options.
packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js New notice UI to inform users and allow toggling full editor mode.
packages/bruno-app/src/components/CodeEditor/index.js Integrates long-line detection, degraded mode, persistence behavior changes, and notice toggle.
packages/bruno-app/src/components/CodeEditor/index.spec.js Adds tests for degraded mode entry/exit and ordering of editor updates.
packages/bruno-app/src/components/CodeEditor/StyledWrapper.js Layout/styling updates to support the notice stack and new editor shell structure.
packages/bruno-app/src/test-utils/mocks/codemirror.js Enhances CodeMirror mock to support new editor interactions used by the tests.
packages/bruno-app/src/ui/Alert/index.js New Alert UI component used for the CodeEditor performance notice.
packages/bruno-app/src/ui/Alert/StyledWrapper.js Alert styling (status-based colors, layout for icon/content/actions).
packages/bruno-app/src/ui/Alert/Alert.stories.jsx Storybook stories for the new Alert component.
packages/bruno-app/src/ui/index.js Exposes Alert via the ui barrel export.
Suppressed comments (1)

packages/bruno-app/src/components/CodeEditor/editor-profile.js:53

  • applyEditorProfile also sets lineWrapping from props even when switching into the degraded profile. That means toggling into degraded mode won’t actually force wrapping off, which undermines the performance safety profile.
  const degraded = profile === 'degraded';
  const variables = getAllVariables(props.collection, props.item);

  editor.setOption('lineWrapping', props.enableLineWrapping ?? true);
  editor.setOption('lineNumbers', !degraded);

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

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

Actionable comments posted: 4

🧹 Nitpick comments (5)
packages/bruno-app/src/components/CodeEditor/StyledWrapper.js (2)

51-54: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

.editor-notice-highlight looks unused.

No file in this change set applies the class. EditorPerformanceAlert uses text-xs text-muted instead. Remove the rule, or apply it where the warning text needs emphasis.

#!/bin/bash
# Confirm the class has no consumer.
rg -n 'editor-notice-highlight' packages/bruno-app/src
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/bruno-app/src/components/CodeEditor/StyledWrapper.js` around lines
51 - 54, Remove the unused .editor-notice-highlight rule from the StyledWrapper
styles, since EditorPerformanceAlert uses text-xs text-muted and no consumer
applies this class.

29-32: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

This rule styles Alert internals from outside.

.alert-content is an internal class of packages/bruno-app/src/ui/Alert/index.js. packages/bruno-app/src/ui/index.js states that consumers should not reach into a component's internals. Consider a prop or a className on Alert instead, so a future change to the Alert markup does not silently break this layout.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/bruno-app/src/components/CodeEditor/StyledWrapper.js` around lines
29 - 32, Remove the `.editor-notice-stack .alert-content` selector from
`StyledWrapper` and expose the alignment through the `Alert` component’s public
API, such as a supported prop or root `className`. Apply the layout styling
through that API so `StyledWrapper` no longer depends on the internal
`.alert-content` markup defined by `Alert`.
packages/bruno-app/src/components/CodeEditor/index.js (1)

549-565: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Double gate on the notice.

showEditorNotice already equals this.state.longLineDetected, and EditorPerformanceAlert returns null for a falsy longLineDetected. Keep one gate. Rendering <EditorPerformanceAlert> unconditionally and letting it decide is the smaller surface.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/bruno-app/src/components/CodeEditor/index.js` around lines 549 -
565, Remove the redundant showEditorNotice conditional around
EditorPerformanceAlert in the CodeEditor render flow, and render the component
unconditionally while preserving its existing longLineDetected, longLineMode,
and handler props so the component continues deciding whether to return null.
packages/bruno-app/src/test-utils/mocks/codemirror.js (1)

8-13: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Mock fidelity: getLine ignores the line index, and getInputField returns a new element each call.

getLine returns the whole document for any line, and getRange ignores from. _onBeforeChange in CodeEditor passes a real line index to changeIntroducesLongLine, so multi-line prefix/suffix logic cannot be exercised and a regression there would pass. getInputField creates a fresh textarea on every call, so the element that componentDidMount adds the mousetrap class to is not the element any later call receives.

♻️ Proposed change
-    getRange: jest.fn((from, to) => editor._currentValue?.slice(0, to.ch) || ''),
+    getRange: jest.fn((from, to) => (editor._currentValue || '').split('\n')[from.line]?.slice(from.ch, to.ch) || ''),
     getValue: jest.fn(() => editor._currentValue),
     setValue: jest.fn(function (val) {
       editor._currentValue = val;
     }),
-    getLine: jest.fn(() => editor._currentValue || ''),
+    getLine: jest.fn((line) => (editor._currentValue || '').split('\n')[line ?? 0] || ''),
-    getInputField: jest.fn(() => document.createElement('textarea')),
+    _inputField: document.createElement('textarea'),
+    getInputField: jest.fn(() => editor._inputField),

Also applies to: 23-23

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/bruno-app/src/test-utils/mocks/codemirror.js` around lines 8 - 13,
Update the CodeMirror mock’s getLine and getRange implementations to honor line
boundaries and the supplied from/to positions, matching real multi-line editor
behavior for CodeEditor._onBeforeChange and changeIntroducesLongLine. Make
getInputField return one persistent textarea instance so classes added during
componentDidMount remain visible on subsequent calls. Preserve existing mock
APIs and return behavior for valid requests.
packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js (1)

11-17: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Remove the duplicate longLineDetected check.

Line 11 already returns null. The conditional at Line 17 is always true. Also import Alert from the barrel, because packages/bruno-app/src/ui/index.js states that deep paths are discouraged.

♻️ Proposed change
-import Alert from 'ui/Alert';
+import { Alert } from 'ui';
   return (
     <div className="editor-notice-stack">
-      {longLineDetected && (
-        <Alert
+      <Alert

(Then drop the matching closing )}.)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js`
around lines 11 - 17, In the EditorPerformanceAlert render flow, remove the
redundant longLineDetected conditional and its matching closing syntax because
the early return already guarantees it is true. Update the Alert import to use
the barrel export from the ui index instead of a deep path.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/bruno-app/src/components/CodeEditor/editor-profile.js`:
- Around line 20-21: Disable line wrapping whenever degraded mode is active in
both buildCodeMirrorOptions and applyEditorProfile. Update
packages/bruno-app/src/components/CodeEditor/editor-profile.js lines 20-21 and
52 so degraded takes precedence over props.enableLineWrapping, ensuring
transitions into degraded mode also turn wrapping off.

In `@packages/bruno-app/src/components/CodeEditor/index.js`:
- Around line 616-623: Update _onBeforeChange so forced degradation only occurs
when the edit creates a long line from a previously non-long line. Check the
affected line’s pre-change length before resetting longLineOverride and calling
_applyLongLineMode, while preserving the existing behavior for genuinely newly
introduced long lines and allowing edits to lines already over the limit.

In `@packages/bruno-app/src/components/CodeEditor/index.spec.js`:
- Around line 98-99: Update the test around changeHandler in index.spec.js so
the long-line mutation is not an assertion-free action: either add expectations
verifying the degraded-mode notice remains shown and lint remains false after
act(() => changeHandler()), or remove the _currentValue mutation and handler
invocation if that behavior is not being tested.

In `@packages/bruno-app/src/ui/Alert/StyledWrapper.js`:
- Around line 4-17: Update getStatusTokens to use distinct theme
status-background tokens for danger, warning, success, and info instead of
returning lighter(theme.brand) for every branch. Inspect both light and dark
theme definitions for the established token names, then map each status
consistently and verify the resulting backgrounds maintain readable contrast
with theme.text.

---

Nitpick comments:
In `@packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js`:
- Around line 11-17: In the EditorPerformanceAlert render flow, remove the
redundant longLineDetected conditional and its matching closing syntax because
the early return already guarantees it is true. Update the Alert import to use
the barrel export from the ui index instead of a deep path.

In `@packages/bruno-app/src/components/CodeEditor/index.js`:
- Around line 549-565: Remove the redundant showEditorNotice conditional around
EditorPerformanceAlert in the CodeEditor render flow, and render the component
unconditionally while preserving its existing longLineDetected, longLineMode,
and handler props so the component continues deciding whether to return null.

In `@packages/bruno-app/src/components/CodeEditor/StyledWrapper.js`:
- Around line 51-54: Remove the unused .editor-notice-highlight rule from the
StyledWrapper styles, since EditorPerformanceAlert uses text-xs text-muted and
no consumer applies this class.
- Around line 29-32: Remove the `.editor-notice-stack .alert-content` selector
from `StyledWrapper` and expose the alignment through the `Alert` component’s
public API, such as a supported prop or root `className`. Apply the layout
styling through that API so `StyledWrapper` no longer depends on the internal
`.alert-content` markup defined by `Alert`.

In `@packages/bruno-app/src/test-utils/mocks/codemirror.js`:
- Around line 8-13: Update the CodeMirror mock’s getLine and getRange
implementations to honor line boundaries and the supplied from/to positions,
matching real multi-line editor behavior for CodeEditor._onBeforeChange and
changeIntroducesLongLine. Make getInputField return one persistent textarea
instance so classes added during componentDidMount remain visible on subsequent
calls. Preserve existing mock APIs and return behavior for valid requests.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 8846a99e-9380-4088-94da-f1ee6d4d710a

📥 Commits

Reviewing files that changed from the base of the PR and between 51d609a and 4be71eb.

📒 Files selected for processing (15)
  • packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js
  • packages/bruno-app/src/components/CodeEditor/StyledWrapper.js
  • packages/bruno-app/src/components/CodeEditor/editor-profile.js
  • packages/bruno-app/src/components/CodeEditor/index.js
  • packages/bruno-app/src/components/CodeEditor/index.spec.js
  • packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleBodyMode/index.js
  • packages/bruno-app/src/test-utils/mocks/codemirror.js
  • packages/bruno-app/src/ui/Alert/Alert.stories.jsx
  • packages/bruno-app/src/ui/Alert/StyledWrapper.js
  • packages/bruno-app/src/ui/Alert/index.js
  • packages/bruno-app/src/ui/index.js
  • packages/bruno-app/src/utils/common/index.js
  • packages/bruno-app/src/utils/common/index.spec.js
  • packages/bruno-app/src/utils/common/long-lines.js
  • packages/bruno-app/src/utils/common/long-lines.spec.js

@sid-bruno
sid-bruno marked this pull request as draft August 4, 2026 11:21
@sid-bruno
sid-bruno marked this pull request as ready for review August 4, 2026 11:30

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

🧹 Nitpick comments (1)
packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js (1)

11-44: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Remove the redundant longLineDetected guard.

Line 11 already returns null when longLineDetected is falsy. The check at line 17 can never be false. CodeEditor.render also guards on the same flag before mounting this component, so the alert is guarded three times. Drop the inner check and the wrapper <div> becomes the only remaining shell. Also remove the blank line at line 34.

♻️ Proposed simplification
   return (
     <div className="editor-notice-stack">
-      {longLineDetected && (
-        <Alert
-          status="info"
-          actions={(
-            <ToggleSwitch
-              title="Enable all editor features"
-              isOn={!longLineMode}
-              size="2xs"
-              handleToggle={() => {
-                if (longLineMode) {
-                  return onEnableFullMode();
-                }
-                return onDisableFullMode();
-              }}
-            />
-          )}
-        >
-
-          <div className="flex flex-col gap-2">
-            {longLineMode
-              ? 'The length of the content may impact performance. Highlighting, linting, and editor helpers are disabled.'
-              : 'Full editor enabled for this content - this may impact app performance.'}
-
-            <span className="text-xs text-muted">You can {longLineMode ? 'enable' : 'disable'} the full editor with the toggle</span>
-          </div>
-        </Alert>
-      )}
+      <Alert
+        status="info"
+        actions={(
+          <ToggleSwitch
+            title="Enable all editor features"
+            isOn={!longLineMode}
+            size="2xs"
+            handleToggle={() => (longLineMode ? onEnableFullMode() : onDisableFullMode())}
+          />
+        )}
+      >
+        <div className="flex flex-col gap-2">
+          {longLineMode
+            ? 'The length of the content may impact performance. Highlighting, linting, and editor helpers are disabled.'
+            : 'Full editor enabled for this content - this may impact app performance.'}
+          <span className="text-xs text-muted">You can {longLineMode ? 'enable' : 'disable'} the full editor with the toggle</span>
+        </div>
+      </Alert>
     </div>
   );
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js`
around lines 11 - 44, Remove the redundant longLineDetected conditional inside
the returned JSX in EditorPerformanceAlert, since the earlier guard already
handles the false case. Keep the editor-notice-stack wrapper as the remaining
shell, and remove the extra blank line before the alert content.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js`:
- Around line 11-44: Remove the redundant longLineDetected conditional inside
the returned JSX in EditorPerformanceAlert, since the earlier guard already
handles the false case. Keep the editor-notice-stack wrapper as the remaining
shell, and remove the extra blank line before the alert content.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d2d424e2-99dc-4477-a983-956773ddf38b

📥 Commits

Reviewing files that changed from the base of the PR and between 51d609a and 34be066.

📒 Files selected for processing (15)
  • packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js
  • packages/bruno-app/src/components/CodeEditor/StyledWrapper.js
  • packages/bruno-app/src/components/CodeEditor/editor-profile.js
  • packages/bruno-app/src/components/CodeEditor/index.js
  • packages/bruno-app/src/components/CodeEditor/index.spec.js
  • packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleBodyMode/index.js
  • packages/bruno-app/src/test-utils/mocks/codemirror.js
  • packages/bruno-app/src/ui/Alert/Alert.stories.jsx
  • packages/bruno-app/src/ui/Alert/StyledWrapper.js
  • packages/bruno-app/src/ui/Alert/index.js
  • packages/bruno-app/src/ui/index.js
  • packages/bruno-app/src/utils/common/index.js
  • packages/bruno-app/src/utils/common/index.spec.js
  • packages/bruno-app/src/utils/common/long-lines.js
  • packages/bruno-app/src/utils/common/long-lines.spec.js
🚧 Files skipped from review as they are similar to previous changes (13)
  • packages/bruno-app/src/utils/common/index.spec.js
  • packages/bruno-app/src/ui/Alert/StyledWrapper.js
  • packages/bruno-app/src/ui/index.js
  • packages/bruno-app/src/utils/common/long-lines.spec.js
  • packages/bruno-app/src/ui/Alert/Alert.stories.jsx
  • packages/bruno-app/src/components/CodeEditor/StyledWrapper.js
  • packages/bruno-app/src/ui/Alert/index.js
  • packages/bruno-app/src/test-utils/mocks/codemirror.js
  • packages/bruno-app/src/utils/common/long-lines.js
  • packages/bruno-app/src/components/CodeEditor/editor-profile.js
  • packages/bruno-app/src/utils/common/index.js
  • packages/bruno-app/src/components/CodeEditor/index.spec.js
  • packages/bruno-app/src/components/ResponseExample/ResponseExampleRequestPane/ResponseExampleBodyMode/index.js

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js`:
- Line 38: Update the full-mode alert message in EditorPerformanceAlert to read
grammatically: state that all editor features are enabled for this content, then
start the performance warning as a separate sentence.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 71e04285-abf5-4cbe-b80d-0a774a039089

📥 Commits

Reviewing files that changed from the base of the PR and between 34be066 and 1be6048.

📒 Files selected for processing (3)
  • packages/bruno-app/src/components/CodeEditor/EditorPerformanceAlert.js
  • packages/bruno-app/src/components/CodeEditor/StyledWrapper.js
  • packages/bruno-app/src/ui/Alert/StyledWrapper.js
💤 Files with no reviewable changes (1)
  • packages/bruno-app/src/components/CodeEditor/StyledWrapper.js

@barelyhuman
barelyhuman force-pushed the refactor/codemirror-optimization branch from 96096ba to f0056a2 Compare August 7, 2026 13:52
@sid-bruno sid-bruno changed the title feat(code-editor): implement long single line detection and alert feat(code-editor): degraded editor and status bar Aug 7, 2026
@sid-bruno
sid-bruno merged commit 6978e54 into usebruno:main Aug 31, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants