lmnr-ai / lmnr

Laminar - open-source all-in-one platform for engineering AI products. Crate data flywheel for you AI app. Traces, Evals, Datasets, Labels. YC S24.
https://www.lmnr.ai
Apache License 2.0
1.19k stars 60 forks source link

refactored code editor #97

Closed skull8888888 closed 1 month ago

skull8888888 commented 1 month ago

[!IMPORTANT] Refactor code editor and related components to add collapsible functionality, update styles, and improve user interface.

  • Formatter Component:
    • Added collapsible prop to Formatter in formatter.tsx, allowing sections to be collapsible.
    • Updated Formatter to handle YAML and JSON parsing more robustly.
  • Code Editor:
    • Removed unused imports and code in code-editor.tsx.
    • Updated myTheme in code-editor.tsx to include new styles for selection and caret.
    • Adjusted CodeEditor component to use bg-secondary and text-foreground classes.
  • Styling:
    • Updated color variables in globals.css for popover and secondary elements.
    • Adjusted SpanCard and SpanViewSpan components to use updated styles and collapsible Formatter.
  • Miscellaneous:
    • Minor adjustments to chat-message-list-tab.tsx to integrate collapsible Formatter.

This description was created by Ellipsis for 74bb8181b035e30b2f9886347ab6f30c495b8123. It will automatically update as commits are pushed.