Problem
When I enter invalid JSON, the validation message is shown, but it is not easy to notice or read quickly. The error area should be clearer and easier to scan.
Before
The error message is difficult to read and the validation area is not draggable.
After
The error message is now easily readable and the validation window is draggable (like VS Code terminal).
Solution
Changes Made:
-
Better Error Messages (src/utils/parseSchema.ts)
- Enhanced JSON/YAML error parsing to include line number, column, and character position
- Format:
Invalid JSON: [error message] (line X column Y) (near character N)
-
Resizable Validation Panel (src/components/MonacoEditor.tsx)
- Converted validation area from fixed-height to draggable vertical split
- Added
PanelResizeHandle to allow users to expand/collapse the error panel
- Validation panel always visible and readable
-
Improved UI Styling (src/App.css)
- Added visual drag handle indicator
- Smooth cursor feedback (
cursor-row-resize)
- Better visual hierarchy for the validation section
Result:
- ✅ Error messages now clearly show exact location of JSON syntax errors
- ✅ Validation panel is resizable like VS Code terminal
- ✅ Users can easily expand the panel to read full error messages
Problem
When I enter invalid JSON, the validation message is shown, but it is not easy to notice or read quickly. The error area should be clearer and easier to scan.
Before
After
Solution
Changes Made:
Better Error Messages (
src/utils/parseSchema.ts)Invalid JSON: [error message] (line X column Y) (near character N)Resizable Validation Panel (
src/components/MonacoEditor.tsx)PanelResizeHandleto allow users to expand/collapse the error panelImproved UI Styling (
src/App.css)cursor-row-resize)Result: