Skip to content

Conversation

@nick-skriabin
Copy link
Member

@nick-skriabin nick-skriabin commented May 28, 2025

This pull request updates the GridView.scss file to enhance the layout and styling of the GridView component. The changes introduce grid-based layout adjustments for better structure and responsiveness.

Layout improvements:

  • Added a new &-body class with a grid-based layout. This includes handling cases where the body contains an image, ensuring proper alignment and responsiveness. Additionally, images within the body are set to take up the full height.
  • Updated the &-content class to use a grid layout with rows defined as min-content and minmax(0, 1fr), improving the content structure and adaptability.
image

@nick-skriabin nick-skriabin requested a review from a team as a code owner May 28, 2025 16:40
@netlify
Copy link

netlify bot commented May 28, 2025

Deploy Preview for label-studio-docs-new-theme ready!

Name Link
🔨 Latest commit 6bdd96b
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/683ee857335b980008ac50cc
😎 Deploy Preview https://deploy-preview-7640--label-studio-docs-new-theme.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 May 28, 2025

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit 6bdd96b
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/683ee857335b980008ac50ca
😎 Deploy Preview https://deploy-preview-7640--heartex-docs.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 May 28, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 6bdd96b
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/683ee8573aebc3000738488e
😎 Deploy Preview https://deploy-preview-7640--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 May 28, 2025
@netlify
Copy link

netlify bot commented May 28, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 6bdd96b
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/683ee857d30e8a00088e99bb
😎 Deploy Preview https://deploy-preview-7640--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.

@nick-skriabin nick-skriabin requested review from bmartel, hlomzik, nass600, niklub and yyassi-heartex and removed request for a team May 28, 2025 16:48
Copy link
Contributor

@yyassi-heartex yyassi-heartex left a comment

Choose a reason for hiding this comment

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

we need to be careful with this - what happens when a user adds more columns to display in grid view? since the image is now hight based does it just continuously get smaller?
Alec mentioned need to include an ability to change the size of the image / amount of text and possibly the ability to change the size of the tile based on the number in the row so it gets bigger + the ability to scroll through text in the grid view?
Happy to sync on this with you - feels like there is more to be done here

tested in FB - I see the image can get squished in certain situations
screen-recorder-wed-may-28-2025-13-36-47.webm

Copy link
Collaborator

@niklub niklub left a comment

Choose a reason for hiding this comment

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

Consider test coverage for <GridView>, which includes:

  1. The main GridView component itself (in the current implementation, only GridBody was tested)
  2. GridHeader component functionality
  3. GridCell component interactions
  4. GridDataGroup component behavior
  5. Grid selection interactions (checkboxes, row selection)
  6. Grid resizing and responsive behavior
  7. Click handlers and event management
  8. Different data types beyond images (Text, Unknown types)

Added autogenerated tests for your convenience, feel free to edit or remove them, but keeping the coverage high enough

@nick-skriabin nick-skriabin requested a review from niklub June 2, 2025 11:29
@yyassi-heartex
Copy link
Contributor

yyassi-heartex commented Jun 2, 2025

/fmt

Workflow run

@hlomzik
Copy link
Collaborator

hlomzik commented Jun 2, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 web/libs/editor/src/components/TaskSummary/types.ts

@nick-skriabin nick-skriabin requested a review from hlomzik June 2, 2025 17:30
Copy link
Contributor

@yyassi-heartex yyassi-heartex left a comment

Choose a reason for hiding this comment

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

approved with the expectation that the comments added by @hlomzik and I are addressed

@nick-skriabin
Copy link
Member Author

nick-skriabin commented Jun 3, 2025

/git merge

Workflow run
Successfully merged: 8 files changed, 104 insertions(+), 73 deletions(-)

@robot-ci-heartex robot-ci-heartex merged commit 6ab698e into develop Jun 3, 2025
61 of 63 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-bros-62/dm-grid-images branch June 3, 2025 13:09
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