Conversation
- Replace codemirror@5, react-codemirror2, @types/codemirror with CM6 packages - Add @uiw/react-codemirror, @codemirror/lang-*, @codemirror/language, etc. - Rewrite SchemaEditor.tsx and CodeEditor.tsx for CM6 API - Replace runMode with highlightCode in CustomHtmlRederer - Update CSMode enum with language extension mapping utilities Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/b0dbef9d-c059-4c2c-b51b-a087e2dc0964 Co-authored-by: siddhant1 <30566406+siddhant1@users.noreply.github.com>
- Replace all .CodeMirror* CSS classes with .cm-editor/.cm-* equivalents - Rewrite SchemaEditor.test.tsx and CodeEditor.test.tsx mocks for CM6 - Update all 12 Playwright test files with CM6 selectors - Update Jest config transformIgnorePatterns for CM6 ESM packages - Remove stale codemirror/addon CSS imports from ParameterForm and ProfilerSettingsModal Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/b0dbef9d-c059-4c2c-b51b-a087e2dc0964 Co-authored-by: siddhant1 <30566406+siddhant1@users.noreply.github.com>
- Fix highlightCode import (from @lezer/highlight, not @codemirror/language) - Remove duplicate declarations in CustomHtmlRederer.tsx - Fix onClick type mismatch in CodeEditor.tsx - Remove 'codemirror' from tsconfig types array (CM6 has built-in types) - Fix requestAnimationFrame mock in SchemaEditor.test.tsx Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/b0dbef9d-c059-4c2c-b51b-a087e2dc0964 Co-authored-by: siddhant1 <30566406+siddhant1@users.noreply.github.com>
Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/b0dbef9d-c059-4c2c-b51b-a087e2dc0964 Co-authored-by: siddhant1 <30566406+siddhant1@users.noreply.github.com>
Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/b0dbef9d-c059-4c2c-b51b-a087e2dc0964 Co-authored-by: siddhant1 <30566406+siddhant1@users.noreply.github.com>
Move @uiw/react-codemirror import before antd (alphabetical) in CodeEditor.tsx and SchemaEditor.tsx. Move @lezer/highlight before @toast-ui/editor in CustomHtmlRederer.tsx. Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/53a7e75c-6f72-4a2c-b275-a91a8edfad1d Co-authored-by: siddhant1 <30566406+siddhant1@users.noreply.github.com>
…nsion Directly return array literal instead of creating intermediate array and pushing to it. Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/53a7e75c-6f72-4a2c-b275-a91a8edfad1d Co-authored-by: siddhant1 <30566406+siddhant1@users.noreply.github.com>
This comment was marked as outdated.
This comment was marked as outdated.
Code Review ✅ Approved 3 resolved / 3 findingsCodeMirror v6 migration completes with native prop handling for line numbers, wrapping, and read-only states. All previous configuration discrepancies and React key warnings are resolved. ✅ 3 resolved✅ Bug: Top-level
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Gitar
@uiw/react-codemirroralphabetically beforeantdand@lezer/highlightbefore@toast-ui/editorfixes 3721
Summary by Gitar
SchemaEditorandCodeEditorto support dynamic line numbers and line wrapping viaoptions.readOnly: 'nocursor'as a valid configuration option.fillCodeMirrorEditorutility in Playwright to standardize interaction with CM6 editors.SchemaEditorandCodeEditorcovering prop handling and configuration.runHighlightto correctly include React keys for code fragments.This will update automatically on new commits.