Skip to content

feat: LEAP-2036: Summary page for View All #7439

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

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from

Conversation

hlomzik
Copy link
Collaborator

@hlomzik hlomzik commented Apr 29, 2025

Create a special Summary page inside View All view to display all labelings across all annotations in current task.
Here are the LabelingSummary and DataSummary components to display info about control tags and object tags respectively.

hlomzik added 3 commits April 29, 2025 20:01
Create a special Summary page inside View All view to display all labelings
across all annotations in current task.
Here are the LabelingSummary and DataSummary components to display info
about control tags and object tags respectively.
Proper user info for Userpic and `user` in store.
Proper types for them.
@hlomzik hlomzik requested a review from Gondragos April 29, 2025 19:05
@github-actions github-actions bot added the feat label Apr 29, 2025
Copy link

netlify bot commented Apr 29, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit f3e9117
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-storybook/deploys/682215b1036bac0008f5ef2b
😎 Deploy Preview https://deploy-preview-7439--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Apr 29, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit f3e9117
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/682215b144f0f9000876a4c4

Copy link

netlify bot commented Apr 29, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit f3e9117
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/682215b1b4d6380008a76a16

@hlomzik hlomzik requested a review from nass600 April 29, 2025 23:55
@@ -47,7 +47,8 @@ import { ToastProvider, ToastViewport } from "@humansignal/ui/lib/toast/toast";
import { Annotation } from "./Annotation";
import { BottomBar } from "../BottomBar/BottomBar";
import Debug from "../Debug";
import Grid from "./Grid";
// import Grid from "./Grid";
import Summary from "../Summary/Summary";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use a more precise name for this component given it is pretty open, maybe AnnotationSummary or ReviewSummary or anything else that gives a bit more information

<table className="table-auto w-full">
<thead>
<tr>
{Object.entries(data_types).map(([field, type]) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a check here so we can safely assume we will have data_types


export const LabelingSummary = ({ annotations, controls }: Props) => {
return (
<table className="w-full">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless specifically needed I would use Grid over tables so we can easily ensure a responsive design

hlomzik added 8 commits May 6, 2025 15:58
It chooses between tabbed view with FF ON and usual Grid with FF OFF.
Tabbed view has new Summary tab and old Grid tab.
Selected tab is preserved between sessions.
- no tooltip on avatar, we already show names
- annotation tabs are always displayed with new Summary
- Add TextArea tag
- Add support for per-regions
  - for now per-region flag is calculated by simple rule: >1 results -> per-region
- Move renderers to a separate file
- Allow to return null to fallback to default text
More semantic styles.
Local Card component.
Numbers on the top.
All labels will be displayed the same, so just reuse the same renderer.
Agreement is calculated on backend over submitted annotations.
So displayed results should also be only submitted once.
We have `versions` with `draft` and `result`, so we should use the latter.
@hlomzik hlomzik changed the title feat: LEAP-2036: Summary page for View All [DRAFT] feat: LEAP-2036: Summary page for View All May 8, 2025
hlomzik added 3 commits May 8, 2025 16:09
Get (almost) all info about tags from LSF; don't use DM.
The only lefover is agreement, should be fixed soon.
Fix all the related code to work with real tags.
Add new types to describe store and tags.
Fix linting here and there.
This automatically accepts agreement passed via `task` from outer sources.
@hlomzik hlomzik requested a review from nick-skriabin as a code owner May 11, 2025 13:49
@hlomzik
Copy link
Collaborator Author

hlomzik commented May 11, 2025

/git merge

Workflow run
Successfully merged: rename web/libs/datamanager/src/components/App/{App.jsx => App.tsx} (73%)

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