Skip to content

feat(animations): add disableAnimatableDevWarnings option - #49036

Closed
dario-piotrowicz wants to merge 4 commits into
angular:mainfrom
dario-piotrowicz:disable-non-animatable-warnings
Closed

dario-piotrowicz wants to merge 4 commits into
angular:mainfrom
dario-piotrowicz:disable-non-animatable-warnings

Conversation

@dario-piotrowicz

Copy link
Copy Markdown
Contributor

add the disableAnimatableDevWarnings options for the BrowserAnimationsModule so that developers can turn off the warning in case it is not wanted

resolves #46928

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

@angular-robot angular-robot Bot added the detected: feature PR contains a feature commit label Feb 11, 2023
@dario-piotrowicz
dario-piotrowicz force-pushed the disable-non-animatable-warnings branch from 39e56db to dcf0b53 Compare February 11, 2023 15:58
@dario-piotrowicz
dario-piotrowicz force-pushed the disable-non-animatable-warnings branch 2 times, most recently from fcb161a to 3f724b2 Compare February 11, 2023 21:10
@dario-piotrowicz
dario-piotrowicz marked this pull request as ready for review February 11, 2023 22:33
@dario-piotrowicz
dario-piotrowicz force-pushed the disable-non-animatable-warnings branch from 8e70433 to 9c97155 Compare February 12, 2023 21:14
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release area: animations legacy animations package only. Otherwise use area: core. labels Feb 13, 2023
@ngbot ngbot Bot added this to the Backlog milestone Feb 13, 2023
@dario-piotrowicz
dario-piotrowicz force-pushed the disable-non-animatable-warnings branch from 9c97155 to f9e4e42 Compare February 13, 2023 23:14

@jessicajaniuk jessicajaniuk left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Thanks, @dario-piotrowicz!

reviewed-for: fw-core, fw-animations, public-api

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is non-blocking, but it would be great if we could construct this message using a method and importing it rather than duplicating it it here and in animation_transition_factory.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see.... if I remember correctly I think I did consider that but then I thought not to do that because using a function both in the actual runtime code and in the tests felt not the best (because in that case we would never be checking the text itself, we'd just be checking that the same utility method has been used)

but I'm fine to do it if you think it's better 🙂

@pullapprove
pullapprove Bot requested review from dylhunn and jessicajaniuk March 13, 2023 17:58
@jessicajaniuk

Copy link
Copy Markdown
Contributor

@dario-piotrowicz looks like this needs a rebase.

@jessicajaniuk
jessicajaniuk removed their request for review March 13, 2023 18:00
@pullapprove
pullapprove Bot requested a review from atscott March 13, 2023 18:00
@dario-piotrowicz
dario-piotrowicz force-pushed the disable-non-animatable-warnings branch from f9e4e42 to 57b34b2 Compare March 13, 2023 23:24
@AndrewKushnir
AndrewKushnir removed their request for review August 20, 2023 00:08
@pullapprove
pullapprove Bot requested a review from alxhub August 20, 2023 00:08
@ilyakonrad

Copy link
Copy Markdown

What's the status? This is a very welcomed improvement.

@JeanMeche
JeanMeche force-pushed the disable-non-animatable-warnings branch from 161f10f to ac095a3 Compare February 9, 2024 15:12
@JeanMeche

Copy link
Copy Markdown
Member

@jessicajaniuk I've picked up this PR. Let's see if it's mergeable.

@JeanMeche
JeanMeche force-pushed the disable-non-animatable-warnings branch 2 times, most recently from 3e9036f to 9c7e68d Compare February 9, 2024 15:40
@JeanMeche
JeanMeche force-pushed the disable-non-animatable-warnings branch from 8ceaea3 to edfc912 Compare February 9, 2024 18:01
@dario-piotrowicz

Copy link
Copy Markdown
Contributor Author

@JeanMeche thanks a bunch for picking it up 🙂 🙏

@JeanMeche
JeanMeche force-pushed the disable-non-animatable-warnings branch from edfc912 to 1ad032e Compare February 9, 2024 18:16
add the disableAnimatableDevWarnings options for the
BrowserAnimationsModule so that developers can turn off the warning
in case it is not wanted

resolves angular#46928

xxx find where to squash
add the allowedProps options for the transition function so that
developers can choose to use this option to disable single
non-animatable warnings instead of using disableAnimatableDevWarnings
to disable all warnings for all animations

(also) solves angular#46928
share getNonAnimatablePropsWarnining function to reduce
code duplication
@JeanMeche
JeanMeche force-pushed the disable-non-animatable-warnings branch from 1ad032e to 374e31c Compare February 9, 2024 18:22
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jul 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: animations legacy animations package only. Otherwise use area: core. detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive warnings about not animatable properties

6 participants