-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Initial improve thumbnail performance #22238
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Couldn't test locally, goes directly in recovery mode, because of some missing dependencies. |
The styling of the images is missing completely, please test this first. |
Hi @bramkragten Yes, sorry my bad, forgot to put it back to draft, didn't read fully after signing cla. So the problem is, I can't test local, I was core running succesfully but can't get frontend to work. |
79e0be4
to
543f053
Compare
].icon} | ||
slot="graphic" | ||
></ha-svg-icon> | ||
${child.can_play |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we checked this on line 646?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not move this in the above ternary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll move it
There are a lot more changes in this PR than just performance, you changed the styling of images (padding and rounded borders) and images are no longer always displayed as squares. You also added features in your PR, like showing the media file if it is an image in the overview. Not a bad feature, but you don't mention it anywhere (and it should have been a separate PR). Can you start with filling out the PR template? |
Hi @bramkragten, yeah my bad, this was one of my first PRs for HA and back then I didn't read the best practices. |
Accidentally closed this 🙈 |
Proposed change
This started as just an improvement to the performance of thumbnails by not inlining them and use an
img
with lazy loading set instead.Anyways it turned out to also show images even if no thumbnail is found and changes the
img
borders to align withha-card
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
see #22226