-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat: FIT-977: [FSM UI] Project State Display and Filtering #8845
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
Conversation
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #8845 +/- ##
===========================================
+ Coverage 66.60% 66.78% +0.17%
===========================================
Files 813 813
Lines 63851 63853 +2
Branches 10790 10790
===========================================
+ Hits 42531 42643 +112
+ Misses 21316 21206 -110
Partials 4 4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/git merge
|
This pull request introduces support for displaying project workflow states in the Label Studio Open Source (LSO) UI. It adds backend and frontend changes to expose the current finite state machine (FSM) state of each project, registers the core project states, and updates the UI to show this state to users. Additionally, it improves project title display with tooltips and better text overflow handling.
Backend: Project State Exposure
ProjectSerializerinlabel_studio/projects/serializers.pynow includes acurrent_statefield, exposing the project's FSM state via the API. This uses theStateManagerto retrieve the state, and gracefully handles cases where FSM is not enabled. [1] [2] [3]Frontend: State Display and Registry
state-registry-lso.ts, registers the three core project states (CREATED,ANNOTATION_IN_PROGRESS,COMPLETED) with the shared state registry, ensuring consistent state handling and display. Development-time checks alert if any state is missing. [1] [2]current_statefor each project. TheProjectStateChipcomponent is used to show the state visually on project cards. [1] [2] [3] [4]UI/UX Improvements
These changes lay the groundwork for more advanced workflow state support and improve the clarity and usability of project listings for users.