-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: BROS-73: [FE] Create empty states for panels: info, regions, relations, history #7694
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
ricardoantoniocm
merged 48 commits into
develop
from
fb-bros-73/fe-create-more-informative-user-friendly-empty-states-info-regions-relations-history-panel-outliner
Jun 16, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…tates for Info, Regions, Relations, and History panel in outliner
…to get the Community or Enterprise variant of a docs page. Improves history-rewind icon visual weight.
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for heartex-docs canceled.
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
….tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ty-states-info-regions-relations-history-panel-outliner' of https://github.com/heartexlabs/label-studio into fb-bros-73/fe-create-more-informative-user-friendly-empty-states-info-regions-relations-history-panel-outliner
Contributor
Author
/fm sync |
…er-friendly-empty-states-info-regions-relations-history-panel-outliner' Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/15622503161
…ty-states-info-regions-relations-history-panel-outliner' of https://github.com/heartexlabs/label-studio into fb-bros-73/fe-create-more-informative-user-friendly-empty-states-info-regions-relations-history-panel-outliner
Contributor
Author
/fm sync |
…er-friendly-empty-states-info-regions-relations-history-panel-outliner' Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/15632687321
bmartel
approved these changes
Jun 13, 2025
Contributor
Author
/fm sync |
…er-friendly-empty-states-info-regions-relations-history-panel-outliner' Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/15643301653
/git merge
|
…er-friendly-empty-states-info-regions-relations-history-panel-outliner' Workflow run: https://github.com/HumanSignal/label-studio/actions/runs/15645321753
…on the state of the panel.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reason for change
The existing empty states in the Info, Regions, Relations, and History panels of the outliner are not sufficiently informative or user-friendly. This PR introduces new, improved empty states to provide a better user experience when these panels have no content to display.
The implemented solution follows a consistent design pattern across all affected panels: an icon, a concise title, and a descriptive message.
Key improvements include:
EmptyState
Component: A reusable React component (EmptyState.tsx
) has been created to display an icon, header, description, and an optional "Learn more" link. This component is designed to hide the "Learn more" link in white-label environments.EmptyState
component when no regions are present, with a relevant icon and "Learn more" link (hidden in white-label mode).utils/docs.ts
) generates documentation URLs dynamically based on the deployment (Open Source vs. Enterprise) and ensures links are hidden for white-labeled environments.Other minor improvements:
Screenshots
Before:



After:



Testing
EmptyState.test.tsx
with unit tests for the newEmptyState
component, verifying:IconHistoryRewind
,IconLsLabeling
, new relations icon) and text content match the specifications.Reviewer notes
utils/docs.ts
handles the dynamic URL generation.DetailsPanel.tsx
andOutlinerPanel.tsx
for improved typing and maintainability.General notes
This PR focuses on improving the user experience by providing clear and helpful empty states in key areas of the outliner. The introduction of the reusable
EmptyState
component promotes consistency and maintainability. Additionally, the changes include general code quality improvements such as enhanced TypeScript typings and refactoring of component logic.