Skip to content

feat: update Ace Editor's theme, border, background, and add mode-aware styling#8894

Merged
Cristhianzl merged 9 commits intomainfrom
feat/ace-editor-polish
Jan 6, 2026
Merged

feat: update Ace Editor's theme, border, background, and add mode-aware styling#8894
Cristhianzl merged 9 commits intomainfrom
feat/ace-editor-polish

Conversation

@rodrigosnader
Copy link
Contributor

@rodrigosnader rodrigosnader commented Jul 7, 2025

This PR improves the Ace code editor experience in Langflow by:

  • Dynamically switching between Monokai (dark) and GitHub (light) themes based on UI mode.
  • Customizing background, gutter, and border colors for both themes
  • Ensuring subtle, modern contrast and a clean look in both modes
  • Removing all unnecessary padding and legacy overrides

This PR brings a more polished, visually consistent, and mode-aware code editing experience to Langflow.

image (20)

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 7, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The changes introduce a new CSS file for custom Ace Editor theme overrides, update the main app stylesheet to import these overrides, and expand the list of Ace Editor themes imported in the code editor modal. The default dark theme for the editor is switched from "twilight" to "monokai," with no changes to logic or exported entities.

Changes

File(s) Change Summary
src/frontend/src/App.css Added import of custom-ace-overrides.css at the top of the file.
src/frontend/src/modals/codeAreaModal/index.tsx Added imports for many Ace Editor themes; changed default dark theme from "twilight" to "monokai".
src/frontend/src/style/custom-ace-overrides.css New file with custom CSS overrides for Ace Editor's Monokai and GitHub themes.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant App
    participant AceEditor
    participant ThemeStyles

    User->>App: Open code editor modal
    App->>AceEditor: Initialize editor
    AceEditor->>ThemeStyles: Apply imported themes (including Monokai, GitHub, etc.)
    ThemeStyles-->>AceEditor: Apply custom overrides (from custom-ace-overrides.css)
    AceEditor-->>User: Display editor with selected theme and custom styles
Loading
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/ace-editor-polish

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 and usage tips.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 7, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🧹 Nitpick comments (3)
src/frontend/src/style/custom-ace-overrides.css (2)

45-55: Consolidate repeated .ace-github selectors for maintainability

.ace-github appears three times across this rule; combining them into a single comma-separated group avoids duplication and eases future edits.

-.dark .ace-monokai .ace_content,
-.ace-github
-
-.dark .ace-monokai .ace_gutter,
-.ace-github
-
-.dark .ace-monokai,
-.ace-github {
+.dark .ace-monokai .ace_content,
+.dark .ace-monokai .ace_gutter,
+.dark .ace-monokai,
+.ace-github {
   border: 1px solid rgba(255,255,255,0.18) !important;
   box-shadow: none !important;
 }

1-70: Consider Tailwind plugin or apply utilities before adding raw CSS

Project guidelines prefer Tailwind for styling. While Ace requires some regular CSS, you could wrap these overrides in a small Tailwind plugin or use @apply where feasible to stay consistent.
Not blocking – just something to keep in mind for future overrides.

src/frontend/src/App.css (1)

1-4: Import order may unintentionally lower override precedence

custom-ace-overrides.css is imported before @tailwind base/components/utilities.
If any Tailwind pre-flight rule targets the same Ace classes (unlikely but possible in future upgrades), the !important flags will bail you out, but the safer pattern is to place custom overrides after Tailwind so they naturally win without !important.

No action required now, but worth noting.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between db48cd3 and c842b4b.

📒 Files selected for processing (3)
  • src/frontend/src/App.css (1 hunks)
  • src/frontend/src/modals/codeAreaModal/index.tsx (2 hunks)
  • src/frontend/src/style/custom-ace-overrides.css (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
`src/frontend/**/*.{ts,tsx,js,jsx,css,scss}`: Use Tailwind CSS for styling all frontend components.

src/frontend/**/*.{ts,tsx,js,jsx,css,scss}: Use Tailwind CSS for styling all frontend components.

📄 Source: CodeRabbit Inference Engine (.cursor/rules/frontend_development.mdc)

List of files the instruction was applied to:

  • src/frontend/src/App.css
  • src/frontend/src/modals/codeAreaModal/index.tsx
  • src/frontend/src/style/custom-ace-overrides.css
`src/frontend/**/*.{ts,tsx}`: Use React 18 with TypeScript for all UI components and frontend logic.

src/frontend/**/*.{ts,tsx}: Use React 18 with TypeScript for all UI components and frontend logic.

📄 Source: CodeRabbit Inference Engine (.cursor/rules/frontend_development.mdc)

List of files the instruction was applied to:

  • src/frontend/src/modals/codeAreaModal/index.tsx
🧠 Learnings (4)
📓 Common learnings
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/src/{components,hooks}/**/*.{ts,tsx} : Implement dark mode support in components and hooks where needed.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: All changes must be tested in both light and dark mode before committing.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-23T12:46:42.048Z
Learning: All changes must be tested in both light and dark mode to ensure consistent appearance and functionality.
src/frontend/src/App.css (4)
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/**/*.{ts,tsx,js,jsx,css,scss} : Use Tailwind CSS for styling all frontend components.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/src/components/**/*.{ts,tsx} : All components must be styled using Tailwind CSS utility classes.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/{package*.json,tsconfig.json,tailwind.config.*,vite.config.*} : Frontend configuration files such as 'package.json', 'tsconfig.json', 'tailwind.config.*', and 'vite.config.*' must be present and properly maintained in 'src/frontend/'.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-23T12:46:42.048Z
Learning: All UI components must be styled using Tailwind CSS utility classes, with support for different variants and sizes implemented via conditional className logic.
src/frontend/src/modals/codeAreaModal/index.tsx (11)
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/src/{components,hooks}/**/*.{ts,tsx} : Implement dark mode support in components and hooks where needed.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: All changes must be tested in both light and dark mode before committing.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/**/*.{ts,tsx} : Use React 18 with TypeScript for all UI components and frontend logic.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/*.jsx : Always support both light and dark mode for custom icons by using the `isdark` prop in your SVG component.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/**/*.{ts,tsx,js,jsx,css,scss} : Use Tailwind CSS for styling all frontend components.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/index.tsx : Create an `index.tsx` in your icon directory that exports your icon using `forwardRef` and passes the `isdark` prop.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-06-30T14:40:02.682Z
Learning: Applies to docs/docusaurus.config.js : Site configuration, including navbar, title, and theme settings, must be managed in 'docs/docusaurus.config.js'.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/src/icons/**/*.{ts,tsx,js,jsx} : Use Lucide React for icons in frontend components.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-23T12:46:52.420Z
Learning: Custom SVG icon components in React should always support both light and dark mode by accepting an 'isdark' prop and adjusting colors accordingly.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/icons.mdc:0-0
Timestamp: 2025-06-30T14:40:50.846Z
Learning: Applies to src/frontend/src/icons/*/* : Create a new directory for your icon in `src/frontend/src/icons/YourIconName/` and add your SVG as a React component (e.g., `YourIconName.jsx`) that uses the `isdark` prop to support both light and dark mode.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-23T12:46:42.048Z
Learning: Dark mode support should be implemented using a dedicated Zustand store (e.g., useDarkStore), and toggled via a custom hook (e.g., useDarkMode) that exposes isDark and toggle.
src/frontend/src/style/custom-ace-overrides.css (3)
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/src/{components,hooks}/**/*.{ts,tsx} : Implement dark mode support in components and hooks where needed.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: Applies to src/frontend/**/*.{ts,tsx,js,jsx,css,scss} : Use Tailwind CSS for styling all frontend components.
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/frontend_development.mdc:0-0
Timestamp: 2025-06-30T14:40:29.510Z
Learning: All changes must be tested in both light and dark mode before committing.
🪛 Biome (1.9.4)
src/frontend/src/style/custom-ace-overrides.css

[error] 24-24: Unexpected shorthand property background after background-color

(lint/suspicious/noShorthandPropertyOverrides)


[error] 40-40: Unexpected shorthand property background after background-color

(lint/suspicious/noShorthandPropertyOverrides)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Validate PR
🔇 Additional comments (1)
src/frontend/src/modals/codeAreaModal/index.tsx (1)

245-246: Confirm "monokai" renders correctly under light mode toggling

When dark flips false → true the Ace editor instance remains mounted; Ace doesn’t re-read the theme prop unless setTheme is invoked. Ensure dark is part of the component’s render dependency (it currently is), or call editor.setTheme in a useEffect watching dark to avoid a stale theme.

Just double-check during manual QA in light/dark mode.

Comment on lines +35 to +43
.dark .ace-monokai .ace_marker-layer .ace_active-line,
.dark .ace-monokai .ace_active-line,
.dark .ace-monokai .ace_gutter-active-line,
.dark .ace-monokai .ace_marker-layer .ace_selected-word {
background-color: #181818 !important;
background: #181818 !important;
box-shadow: none !important;
border: 1px !important;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Same redundancy as above – keep only one background declaration

.dark .ace-monokai .ace_marker-layer .ace_active-line,
.dark .ace-monokai .ace_active-line,
.dark .ace-monokai .ace_gutter-active-line,
.dark .ace-monokai .ace_marker-layer .ace_selected-word {
-  background-color: #181818 !important;
-  background: #181818 !important;
+  background-color: #181818 !important;
   box-shadow: none !important;
   border: 1px !important;
}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
.dark .ace-monokai .ace_marker-layer .ace_active-line,
.dark .ace-monokai .ace_active-line,
.dark .ace-monokai .ace_gutter-active-line,
.dark .ace-monokai .ace_marker-layer .ace_selected-word {
background-color: #181818 !important;
background: #181818 !important;
box-shadow: none !important;
border: 1px !important;
}
.dark .ace-monokai .ace_marker-layer .ace_active-line,
.dark .ace-monokai .ace_active-line,
.dark .ace-monokai .ace_gutter-active-line,
.dark .ace-monokai .ace_marker-layer .ace_selected-word {
background-color: #181818 !important;
box-shadow: none !important;
border: 1px !important;
}
🧰 Tools
🪛 Biome (1.9.4)

[error] 40-40: Unexpected shorthand property background after background-color

(lint/suspicious/noShorthandPropertyOverrides)

🤖 Prompt for AI Agents
In src/frontend/src/style/custom-ace-overrides.css between lines 35 and 43,
there are two redundant background declarations in the same CSS rule. Remove one
of the background or background-color properties to keep only a single
background declaration for clarity and maintainability.

Comment on lines +19 to +27
.ace-monokai .ace_marker-layer .ace_active-line,
.ace-monokai .ace_active-line,
.ace-monokai .ace_gutter-active-line,
.ace-monokai .ace_marker-layer .ace_selected-word {
background-color: #181818 !important;
background: #181818 !important;
box-shadow: none !important;
border: 0px !important;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Remove redundant background declarations to satisfy linter and reduce CSS noise

Each selector already sets background-color; immediately re-declaring background to the same value is flagged by Biome (noShorthandPropertyOverrides) and is unnecessary.

.ace-monokai .ace_marker-layer .ace_active-line,
.ace-monokai .ace_active-line,
.ace-monokai .ace_gutter-active-line,
.ace-monokai .ace_marker-layer .ace_selected-word {
-  background-color: #181818 !important;
-  background: #181818 !important;
+  background-color: #181818 !important;
   box-shadow: none !important;
   border: 0px !important;
}

Repeat for the dark-mode block below (lines 35-43).

🧰 Tools
🪛 Biome (1.9.4)

[error] 24-24: Unexpected shorthand property background after background-color

(lint/suspicious/noShorthandPropertyOverrides)

🤖 Prompt for AI Agents
In src/frontend/src/style/custom-ace-overrides.css around lines 19 to 27, remove
the redundant background property declarations that duplicate the
background-color settings to satisfy the linter and reduce CSS noise. Also,
apply the same removal of redundant background declarations in the dark-mode
block between lines 35 and 43.

Comment on lines 8 to 31
import "ace-builds/src-noconflict/theme-one_dark";
import "ace-builds/src-noconflict/theme-github_dark";
import "ace-builds/src-noconflict/theme-twilight";
import "ace-builds/src-noconflict/theme-dracula";
import "ace-builds/src-noconflict/theme-monokai";
import "ace-builds/src-noconflict/theme-nord_dark";
import "ace-builds/src-noconflict/theme-pastel_on_dark";
import "ace-builds/src-noconflict/theme-solarized_dark";
import "ace-builds/src-noconflict/theme-terminal";
import "ace-builds/src-noconflict/theme-tomorrow_night";
import "ace-builds/src-noconflict/theme-vibrant_ink";
import "ace-builds/src-noconflict/theme-chaos";
import "ace-builds/src-noconflict/theme-cobalt";
import "ace-builds/src-noconflict/theme-gruvbox";
import "ace-builds/src-noconflict/theme-idle_fingers";
import "ace-builds/src-noconflict/theme-kr_theme";
import "ace-builds/src-noconflict/theme-merbivore";
import "ace-builds/src-noconflict/theme-merbivore_soft";
import "ace-builds/src-noconflict/theme-mono_industrial";
import "ace-builds/src-noconflict/theme-ambiance";
import "ace-builds/src-noconflict/theme-clouds_midnight";
import "ace-builds/src-noconflict/theme-gob";
import "ace-builds/src-noconflict/theme-sqlserver";
import { useEffect, useRef, useState } from "react";
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Bulk-importing 20+ Ace themes bloats the bundle ~3-4 MB

Only monokai and github are currently used (theme={dark ? "monokai" : "github"}).

Drop the unused imports or load themes lazily when/if a theme selector is introduced:

-import "ace-builds/src-noconflict/theme-one_dark";
-import "ace-builds/src-noconflict/theme-github_dark";
-
-import "ace-builds/src-noconflict/theme-sqlserver";
+// Keep only what is actually selected at runtime
+import "ace-builds/src-noconflict/theme-monokai";
+import "ace-builds/src-noconflict/theme-github";

This keeps initial JS payload small and improves first-paint in the editor.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import "ace-builds/src-noconflict/theme-one_dark";
import "ace-builds/src-noconflict/theme-github_dark";
import "ace-builds/src-noconflict/theme-twilight";
import "ace-builds/src-noconflict/theme-dracula";
import "ace-builds/src-noconflict/theme-monokai";
import "ace-builds/src-noconflict/theme-nord_dark";
import "ace-builds/src-noconflict/theme-pastel_on_dark";
import "ace-builds/src-noconflict/theme-solarized_dark";
import "ace-builds/src-noconflict/theme-terminal";
import "ace-builds/src-noconflict/theme-tomorrow_night";
import "ace-builds/src-noconflict/theme-vibrant_ink";
import "ace-builds/src-noconflict/theme-chaos";
import "ace-builds/src-noconflict/theme-cobalt";
import "ace-builds/src-noconflict/theme-gruvbox";
import "ace-builds/src-noconflict/theme-idle_fingers";
import "ace-builds/src-noconflict/theme-kr_theme";
import "ace-builds/src-noconflict/theme-merbivore";
import "ace-builds/src-noconflict/theme-merbivore_soft";
import "ace-builds/src-noconflict/theme-mono_industrial";
import "ace-builds/src-noconflict/theme-ambiance";
import "ace-builds/src-noconflict/theme-clouds_midnight";
import "ace-builds/src-noconflict/theme-gob";
import "ace-builds/src-noconflict/theme-sqlserver";
import { useEffect, useRef, useState } from "react";
// Keep only what is actually selected at runtime
import "ace-builds/src-noconflict/theme-monokai";
import "ace-builds/src-noconflict/theme-github";
import { useEffect, useRef, useState } from "react";
🤖 Prompt for AI Agents
In src/frontend/src/modals/codeAreaModal/index.tsx between lines 8 and 31,
multiple Ace editor themes are imported but only "monokai" and "github" are
used. Remove all unused theme imports to reduce bundle size and improve load
performance. If theme selection is added later, implement lazy loading for
themes instead of bulk importing them upfront.

@ogabrielluiz ogabrielluiz changed the title Polish Ace Editor: theme, border, background, and mode-aware styling feat: update Ace Editor's theme, border, background, and add mode-aware styling Jul 8, 2025
@github-actions github-actions bot added the enhancement New feature or request label Jul 8, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jul 9, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jul 10, 2025
Comment on lines +8 to +30
import "ace-builds/src-noconflict/theme-ambiance";
import "ace-builds/src-noconflict/theme-chaos";
import "ace-builds/src-noconflict/theme-clouds_midnight";
import "ace-builds/src-noconflict/theme-cobalt";
import "ace-builds/src-noconflict/theme-dracula";
import "ace-builds/src-noconflict/theme-github_dark";
import "ace-builds/src-noconflict/theme-gob";
import "ace-builds/src-noconflict/theme-gruvbox";
import "ace-builds/src-noconflict/theme-idle_fingers";
import "ace-builds/src-noconflict/theme-kr_theme";
import "ace-builds/src-noconflict/theme-merbivore";
import "ace-builds/src-noconflict/theme-merbivore_soft";
import "ace-builds/src-noconflict/theme-mono_industrial";
import "ace-builds/src-noconflict/theme-monokai";
import "ace-builds/src-noconflict/theme-nord_dark";
import "ace-builds/src-noconflict/theme-one_dark";
import "ace-builds/src-noconflict/theme-pastel_on_dark";
import "ace-builds/src-noconflict/theme-solarized_dark";
import "ace-builds/src-noconflict/theme-sqlserver";
import "ace-builds/src-noconflict/theme-terminal";
import "ace-builds/src-noconflict/theme-tomorrow_night";
import "ace-builds/src-noconflict/theme-twilight";
import "ace-builds/src-noconflict/theme-vibrant_ink";
Copy link
Member

Choose a reason for hiding this comment

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

do we need all these new imports?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I do not think so! do we plan to expose these theme?

@ogabrielluiz ogabrielluiz added the community Pull Request from an external contributor label Jul 14, 2025
@edwinjosechittilappilly
Copy link
Collaborator

@Cristhianzl can you take a look into this PR and can we get this merged?

@rodrigosnader rodrigosnader marked this pull request as draft October 4, 2025 02:32
@rodrigosnader rodrigosnader marked this pull request as ready for review December 28, 2025 23:57
@github-actions github-actions bot removed the enhancement New feature or request label Jan 5, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jan 5, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

Frontend Unit Test Coverage Report

Coverage Summary

Lines Statements Branches Functions
Coverage: 17%
16.65% (4707/28254) 9.97% (2177/21831) 10.94% (679/6201)

Unit Test Results

Tests Skipped Failures Errors Time
1830 0 💤 0 ❌ 0 🔥 24.965s ⏱️

@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 33.36%. Comparing base (fdc1b3b) to head (004fd84).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/frontend/src/modals/codeAreaModal/index.tsx 0.00% 2 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (40.00%). You can increase the patch coverage or adjust the target coverage.
❌ Your project status has failed because the head coverage (39.52%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8894   +/-   ##
=======================================
  Coverage   33.36%   33.36%           
=======================================
  Files        1399     1399           
  Lines       66229    66229           
  Branches     9785     9785           
=======================================
  Hits        22100    22100           
  Misses      43005    43005           
  Partials     1124     1124           
Flag Coverage Δ
frontend 15.35% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/frontend/src/modals/codeAreaModal/index.tsx 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@Cristhianzl Cristhianzl left a comment

Choose a reason for hiding this comment

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

@edwinjosechittilappilly @rodrigosnader
I need to understand why are we importing all these themes..
I don't think we are using them on Langflow..
I would say to remove the unnecessary themes and keep only what we are using

@Cristhianzl Cristhianzl self-requested a review January 5, 2026 19:52
Copy link
Member

@Cristhianzl Cristhianzl left a comment

Choose a reason for hiding this comment

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

lgtm

@github-actions github-actions bot added the lgtm This PR has been approved by a maintainer label Jan 5, 2026
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Jan 5, 2026
Copy link
Collaborator

@lucaseduoli lucaseduoli left a comment

Choose a reason for hiding this comment

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

Active line indicator out of place:

image

@github-actions github-actions bot removed the lgtm This PR has been approved by a maintainer label Jan 5, 2026
Copy link
Collaborator

@lucaseduoli lucaseduoli left a comment

Choose a reason for hiding this comment

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

LGTM! We should create a task to update the Syntax Hightlighter as well (on the API page) to match the design.

@github-actions github-actions bot added lgtm This PR has been approved by a maintainer enhancement New feature or request and removed enhancement New feature or request labels Jan 5, 2026
@Cristhianzl Cristhianzl added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main with commit 409ac6a Jan 6, 2026
76 of 78 checks passed
@Cristhianzl Cristhianzl deleted the feat/ace-editor-polish branch January 6, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Pull Request from an external contributor enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants