Skip to content

feat: FIT-14: LabelStudio Playground 2.0 #7521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 97 commits into from
May 21, 2025
Merged

feat: FIT-14: LabelStudio Playground 2.0 #7521

merged 97 commits into from
May 21, 2025

Conversation

bmartel
Copy link
Contributor

@bmartel bmartel commented May 13, 2025

This pull request introduces the foundational setup and implementation of the LabelStudio Playground, a standalone React application for editing and previewing LabelStudio XML labeling configurations. This implementation will serve as the replacement of the defunct playground used on labelstud.io.

Screenshot 2025-05-14 at 2 44 48 PM

Project Setup and Configuration

  • Added a .babelrc file to configure Babel with the @nx/react/babel preset for automatic runtime.
  • Introduced a jest.config.ts file for unit testing, with support for Babel transformations and module name mapping.
  • Added a project.json file to define build, serve, and test targets using Nx executors for Webpack and Jest.

Documentation and Overview

  • Created a comprehensive README.mdc file detailing the purpose of the Playground app, its features, architecture, state management, and extensibility.

State Management

  • Defined Jotai atoms in configAtoms.ts to manage application state, including configuration, loading, error, and annotation data.

UI Components

  • Added a BottomPanel component to display sample data input and annotation output, with collapsible and resizable functionality. [1] [2]
  • Implemented an EditorPanel component for XML editing with a resizable bottom panel for input/output display. [1] [2]

Styling

  • Added SCSS styles in PlaygroundApp.module.scss to lightly customize the appearance of CodeMirror and LabelStudio components.

@bmartel bmartel merged commit 8613469 into develop May 21, 2025
39 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-fit-14 branch May 21, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants