Skip to content

Conversation

@ricardoantoniocm
Copy link
Contributor

@ricardoantoniocm ricardoantoniocm commented Oct 27, 2025

This pull request introduces a significant refactor and UX improvement to the table component, especially for "QuickView" (labeling) mode. The main changes include a unified, sticky toolbar and header for the table in QuickView, a new density toggle for row height, and several code and style cleanups. The toolbar is now always visible and integrated into the scrolling/virtualization logic, while density (row height) can be switched and is persisted. The changes also remove legacy column selector code and update styles for a more consistent look.

https://www.loom.com/share/fe304a4efbe546f2bdd840e4f7b8362a

Screenshots

Before

image

After

image image image image

Table/QuickView UX and Virtualization Improvements:

  • Refactored the table to support a sticky, always-visible toolbar and header in QuickView mode, integrating them into the virtualization logic and ensuring correct scroll/offset handling. This includes new logic for rendering, positioning, and sizing of toolbar/header rows, and handling scroll events to keep the header in view. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]

  • Removed old column selector button logic and markup from the QuickView table, consolidating customization controls into the new toolbar. [1] [2]

Density Toggle Feature:

  • Added a new DensityToggle component that allows users to switch between "comfortable" and "compact" row heights. The choice is persisted in localStorage and triggers a global event on change. Integrated the toggle into both the table toolbar and the DataManager toolbar instruments. [1] [2] [3] [4] [5]

Styling and Theming Updates:

  • Updated SCSS for the table and toolbar, including new styles for the sticky toolbar, header, and density toggle, plus minor tweaks for consistent sizing and background colors. Also adjusted a gradient in App.scss to use a new CSS variable. [1] [2] [3]

Minor Layout Tweaks:

  • Slightly increased the minimum width for the QuickView data panel from 200px to 202px for improved alignment. [1] [2]

@netlify
Copy link

netlify bot commented Oct 27, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 69a071a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/69023370fe274b000835ba9e
😎 Deploy Preview https://deploy-preview-8719--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 project configuration.

@github-actions github-actions bot added the feat label Oct 27, 2025
@netlify
Copy link

netlify bot commented Oct 27, 2025

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

Name Link
🔨 Latest commit 69a071a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/6902337020c47d00086d7b53

@netlify
Copy link

netlify bot commented Oct 27, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 69a071a
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/69023370a6f74900086f813a
😎 Deploy Preview https://deploy-preview-8719--label-studio-playground.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 project configuration.

@netlify
Copy link

netlify bot commented Oct 27, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 69a071a
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/6902337020c47d00086d7b51

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.92%. Comparing base (7cda132) to head (69a071a).
⚠️ Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
...s/ui/src/lib/auto-sizer-table/auto-sizer-table.tsx 0.00% 7 Missing ⚠️
web/libs/core/src/lib/Tour/Tour.tsx 0.00% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (7cda132) and HEAD (69a071a). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (7cda132) HEAD (69a071a)
pytests 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8719      +/-   ##
===========================================
- Coverage    67.03%   59.92%   -7.11%     
===========================================
  Files          790      551     -239     
  Lines        60682    39003   -21679     
  Branches     10313    10316       +3     
===========================================
- Hits         40677    23373   -17304     
+ Misses       20002    15627    -4375     
  Partials         3        3              
Flag Coverage Δ
lsf-e2e 54.22% <0.00%> (-0.01%) ⬇️
lsf-integration 50.65% <0.00%> (-0.01%) ⬇️
lsf-unit 8.34% <ø> (ø)
pytests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ricardoantoniocm ricardoantoniocm self-assigned this Oct 27, 2025
@ricardoantoniocm ricardoantoniocm marked this pull request as ready for review October 27, 2025 19:22
@ricardoantoniocm ricardoantoniocm requested a review from a team as a code owner October 27, 2025 19:22

// Regular mode: Index 0 is header (sticky), Index 1+ are data rows
const row = data[index - 1];
const isEven = index % 2 === 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is inconsistensy between isEven logic here and in new code. And sematically your code is correct, because the first row (virutally it has index 0 which is even) in your code will have it true (2 is even, that's correct), but in old code first row will have false (1 is odd). You can even see this on screenshots: in Quick View first row is grey while in DM it's white.
I'd suggest to fix the old code.

@ricardoantoniocm
Copy link
Contributor Author

ricardoantoniocm commented Oct 29, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 web/libs/ui/src/assets/icons/webhook.svg

@robot-ci-heartex robot-ci-heartex merged commit 4c6c7b7 into develop Oct 29, 2025
44 of 46 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-fit-835 branch October 29, 2025 17: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.

6 participants