Skip to content

feat: RSS-SE-11 integrate swagger editor - #8

Merged
FierceSloth merged 3 commits into
feature/swaggerEditorfrom
story/RSS-SE-11_integrateSwaggerEditor
Jul 2, 2026
Merged

FierceSloth merged 3 commits into
feature/swaggerEditorfrom
story/RSS-SE-11_integrateSwaggerEditor

Conversation

@FierceSloth

Copy link
Copy Markdown
Owner

📋 Trello Task ID

  • RSS-SE-11 (Task ID / Trello Card)
  • No ID (Global fix or chore)

⚡️ Summary

  • Added @uiw/react-codemirror with JSON/YAML support
  • Created reusable CodeEditor in shared/ui with readonly and transparent props
  • Applied custom dark theme and syntax highlighting via SCSS and JS
  • Integrated CodeEditor into SwaggerEditor widget

🛠 Type of change

  • feat (New feature)
  • fix (Bug fix)
  • refactor (Code improvement / Refactoring without changing logic)
  • style (Formatting, CSS)
  • docs (Documentation)
  • chore (Configs, Build)
  • test (Testing)

📷 Screenshots / GIFs

image

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
swagger-editor-app Ready Ready Preview, Comment Jun 30, 2026 3:16pm

Comment on lines +27 to +54
}: ICodeEditorProps) {
const extensions = [format === 'json' ? json() : yaml(), editorTheme, syntaxTheme, EditorState.readOnly.of(readonly)];

return (
<div
className={clsx(
styles.codeEditor,
{
[styles.transparent]: transparent,
[styles.hideLines]: hideLines,
[styles.readonly]: readonly,
},
className
)}
>
<CodeMirror
theme="none"
extensions={extensions}
editable={!readonly}
basicSetup={{
lineNumbers: !hideLines,
foldGutter: !hideLines,
}}
{...props}
/>
</div>
);
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good work!

@FierceSloth
FierceSloth merged commit c86e5fe into feature/swaggerEditor Jul 2, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Preview — f29ff9d4 Deployed Jun 30, 2026 by vercel[bot]
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