Skip to content

Conversation

@nick-skriabin
Copy link
Member

@nick-skriabin nick-skriabin commented Jul 17, 2025

This pull request introduces a new open property to the Collapse component, enabling the default collapsed state to be set for individual panels. The changes span documentation updates, model adjustments, and rendering logic enhancements.

Documentation Updates:

  • Added the open property to the Collapse component's documentation, specifying its type as boolean and default value as false. This property sets the default collapsed state. (docs/source/includes/tags/collapse.md, docs/source/includes/tags/collapse.mdR7)

Model Enhancements:

  • Updated the PanelModel and Model in Collapse.jsx to include the open property as an optional boolean with a default value of false. (web/libs/editor/src/tags/visual/Collapse.jsx, [1] [2]

Rendering Logic Improvements:

  • Modified the HtxCollapse component to calculate defaultActiveKeys based on the open property of child panels, ensuring the default collapsed state is respected during rendering. (web/libs/editor/src/tags/visual/Collapse.jsx, web/libs/editor/src/tags/visual/Collapse.jsxR129-R140)

@netlify
Copy link

netlify bot commented Jul 17, 2025

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

Name Link
🔨 Latest commit a2c3de2
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/687e638e4bf7220008835658
😎 Deploy Preview https://deploy-preview-7993--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 Jul 17, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit a2c3de2
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/687e638ea7d0470008afed72
😎 Deploy Preview https://deploy-preview-7993--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 Jul 17, 2025
@netlify
Copy link

netlify bot commented Jul 17, 2025

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit a2c3de2
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/687e638edbde6c0008b9290d
😎 Deploy Preview https://deploy-preview-7993--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 Jul 17, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit a2c3de2
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/687e638ead1dc90007bcd4cc
😎 Deploy Preview https://deploy-preview-7993--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.

@codecov
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 65.89%. Comparing base (b7fc7f7) to head (a2c3de2).
Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
web/libs/editor/src/tags/visual/Collapse.jsx 87.50% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7993      +/-   ##
===========================================
+ Coverage    63.68%   65.89%   +2.21%     
===========================================
  Files          715      504     -211     
  Lines        50292    33382   -16910     
  Branches      8589     8797     +208     
===========================================
- Hits         32027    21998   -10029     
+ Misses       18262    11381    -6881     
  Partials         3        3              
Flag Coverage Δ
lsf-e2e 59.50% <87.50%> (?)
lsf-integration 55.61% <87.50%> (+<0.01%) ⬆️
lsf-unit 9.39% <0.00%> (-0.01%) ⬇️
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.

@nick-skriabin
Copy link
Member Author

nick-skriabin commented Jul 17, 2025

/fmt

Workflow run

_value: types.optional(types.string, ""),
value: types.optional(types.string, ""),

open: types.optional(types.boolean, false),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This param should be optional and nullable then to allow global open to work

@nick-skriabin nick-skriabin marked this pull request as draft July 18, 2025 13:58
@nick-skriabin nick-skriabin marked this pull request as ready for review July 18, 2025 13:59
@nick-skriabin
Copy link
Member Author

nick-skriabin commented Jul 21, 2025

/fmt

Workflow run

@nick-skriabin
Copy link
Member Author

nick-skriabin commented Jul 21, 2025

/fm merge

Command Description
/fm sync Sync upstream prs and merge with pull request base

@robot-ci-heartex robot-ci-heartex merged commit 3bf46b0 into develop Jul 21, 2025
84 of 88 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-bros-189/collapse-default-state branch July 21, 2025 17:33
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.

4 participants