Skip to content
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

A Less Aggressive Auto-Collapse #6598

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

balazsbajorics
Copy link
Contributor

@balazsbajorics balazsbajorics commented Oct 29, 2024

Problem:
We want a slightly more refined auto-collapse behaviour.

Fix:
The previous behaviour has been re-enabled with an additional check. The additional check is supported with data passed through from before any changes have been made to the element, so that it's possible to identify the change in situation.

Commit Details:

  • Reverted the changes which disabled pushIntendedBoundsAndUpdateHuggingElements along with the changes from that PR.
  • Added toast when fixed width and height added.
  • Updated some tests.
  • Moved getHuggingElementContentsStatus into its own file and
    extracted out the type HuggingElementContentsStatus.
  • Changed type of PushIntendedBoundsAndUpdateHuggingElements.value.
  • Added additional escape case in applyUpdateResizeHuggingElementsCommands.
  • deleteElements stores some more values upfront in the trueUpHuggingElement
    value.
  • Added elementFrame and huggingElementContentsStatus to TrueUpHuggingElement.

@balazsbajorics balazsbajorics marked this pull request as draft October 29, 2024 15:44
Copy link
Contributor

github-actions bot commented Oct 29, 2024

Try me

Copy link

relativeci bot commented Oct 29, 2024

#14992 Bundle Size — 58.04MiB (~+0.01%).

c3ea885(current) vs d1d46c1 master#14991(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 3 changes Regression 1 regression
                 Current
#14992
     Baseline
#14991
Regression  Initial JS 41.01MiB(~+0.01%) 41.01MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18.07% 17.95%
No change  Chunks 20 20
No change  Assets 22 22
Change  Modules 4165(+0.02%) 4164
No change  Duplicate Modules 213 213
No change  Duplicate Code 27.31% 27.31%
No change  Packages 477 477
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#14992
     Baseline
#14991
Regression  JS 58.03MiB (~+0.01%) 58.03MiB
Improvement  HTML 7.37KiB (-0.25%) 7.39KiB

Bundle analysis reportBranch fix/autocollapseProject dashboard


Generated by RelativeCIDocumentationReport issue

balazsbajorics and others added 5 commits October 29, 2024 17:54
- Moved `getHuggingElementContentsStatus` into its own file and
  extracted out the type `HuggingElementContentsStatus`.
- Changed type of `PushIntendedBoundsAndUpdateHuggingElements.value`.
- Added additional escape case in `applyUpdateResizeHuggingElementsCommands`.
- `deleteElements` stores some more values upfront in the `trueUpHuggingElement`
  value.
- Added `elementFrame` and `huggingElementContentsStatus` to `TrueUpHuggingElement`.
@seanparsons seanparsons changed the title Draft: Figuring out a less agressive autocollapse A Less Aggressive Auto-Collapse Oct 31, 2024
@seanparsons seanparsons marked this pull request as ready for review October 31, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants