Skip to content

Separate release notes #38693

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

Merged
merged 3 commits into from
Apr 23, 2025
Merged

Separate release notes #38693

merged 3 commits into from
Apr 23, 2025

Conversation

mrdarrengriffin
Copy link
Contributor

@mrdarrengriffin mrdarrengriffin commented Apr 23, 2025

Proposed change

This change separates blog posts tagged as release notes into it's own card to help declutter the "recent blog posts" and allow users to see the release notes better.

The release notes card will be limited to 2 posts but the latest blog posts card will remain at 4.

Before:
image

After:
image

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

  • Link to parent pull request in the codebase:
  • Link to parent pull request in the Brands repository:
  • This PR fixes or closes issue: fixes #

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

Summary by CodeRabbit

  • New Features
    • The "Recent Blog Posts" section now displays two separate lists: "Release Notes" and general recent blog posts, each with its own heading and icon.
  • Style
    • Improved formatting for post dates and section headings.
    • Enhanced layout and readability with updated anchor tag formatting and indentation.

@home-assistant home-assistant bot added the current This PR goes into the current branch label Apr 23, 2025
Copy link

netlify bot commented Apr 23, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 23206cc
🔍 Latest deploy log https://app.netlify.com/sites/home-assistant-docs/deploys/6808caaf9da6960008dc4df9
😎 Deploy Preview https://deploy-preview-38693--home-assistant-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 site configuration.

@mrdarrengriffin mrdarrengriffin marked this pull request as ready for review April 23, 2025 10:43
Copy link
Contributor

coderabbitai bot commented Apr 23, 2025

📝 Walkthrough

Walkthrough

The update restructures the "Recent Blog Posts" section in the HTML template to display two separate lists: one for "Release Notes" and another for general blog posts. It introduces individual limits for each list, filters posts based on their categories, and formats the post dates in a consistent "Month day, Year" style. Section headings and icons are updated, and some formatting adjustments are made to anchor tags and indentation for clarity and consistency.

Changes

File(s) Change Summary
source/_includes/custom/news.html Refactored blog post listing into two filtered lists with separate limits; updated headings, icons, and formatting.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant TemplateEngine
    participant SitePosts

    User->>TemplateEngine: Render news.html include
    TemplateEngine->>SitePosts: Retrieve all posts
    TemplateEngine->>TemplateEngine: Filter posts by "Release-Notes" category (limit 2)
    TemplateEngine->>TemplateEngine: Filter posts not in "Release-Notes" category (limit 4)
    TemplateEngine->>User: Display "Release Notes" list
    TemplateEngine->>User: Display "Recent Blog Posts" list
Loading

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 39746fa and 23206cc.

📒 Files selected for processing (1)
  • source/_includes/custom/news.html (6 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • source/_includes/custom/news.html
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Redirect rules - home-assistant-docs
  • GitHub Check: Header rules - home-assistant-docs
  • GitHub Check: Pages changed - home-assistant-docs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

♻️ Duplicate comments (5)
source/_includes/custom/news.html (5)

33-35: Duplicate: heading semantic issue
The same <h1> concern applies to the "Recent Blog Posts" section. Ensure you maintain a logical heading hierarchy across both cards.


38-38: Duplicate: counter variable clarity
As above, renaming the second loop’s current to blog_count will improve readability.


45-47: Duplicate: break compatibility
You’ve already flagged break for verification in the first loop.


49-51: Duplicate: date formatting simplification
The same inline formatting recommendation applies here.


52-55: Duplicate: inline style extraction
As above, move the grid and font-size styles into a CSS class.

🧹 Nitpick comments (8)
source/_includes/custom/news.html (8)

4-5: Extract limits to configuration
Hardcoding releases_post_limit = 2 and blog_post_limit = 4 in the template reduces flexibility. Consider moving these values to your site’s _config.yml or front matter so they can be adjusted per environment without touching the include file.


11-11: Rename counter variable for clarity
The generic current variable is reused for two different loops. Rename it to something like release_count to make its purpose clear and avoid confusion when reading the template.


21-23: Simplify date formatting
You can format the date inline without intermediate assignments:

<small class="blog-date">{{ post.date | date: "%B %d, %Y" }}</small>

This removes the extra assign statements and keeps the template concise.


24-27: Extract inline styles into CSS classes
Avoid inline style="display: grid; font-size: 16px". Define a reusable CSS class (e.g., .post-list-item) in your stylesheet and apply it here to keep markup clean and maintainable.


123-123: Nit: align indentation
The style attribute indentation here is inconsistent with neighboring elements. Please adjust spacing to match project conventions.


143-147: Extract image styling to CSS
Avoid inline background-image, background-size, and padding-top. Create a CSS class (e.g., .feature-sotoh2025) and move these properties there—this keeps your templates DRY and maintainable.


161-165: Extract voice promo inline styles
Similarly, move the background-image, background-size, and padding-bottom for the Assist card into a dedicated CSS class.


180-181: Extract merch store inline styles
The merch store link uses an inline style for the background image. Define a CSS class (e.g., .merch-store-promo) to hold this styling instead.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 093cdba and 39746fa.

📒 Files selected for processing (1)
  • source/_includes/custom/news.html (6 hunks)
🔇 Additional comments (2)
source/_includes/custom/news.html (2)

13-19: Verify Liquid break support in your environment
The {% break %} tag inside Liquid loops requires Jekyll/Liquid 4.0+. Confirm your build environment supports it. If not, you may need to filter and limit the collection in one go (e.g., site.posts | where_exp: ... | first: releases_post_limit).


117-118: Formatting only—no action needed
This inline {% for ... %}/{% if ... %} change is purely cosmetic.

@frenck frenck merged commit 5625d31 into current Apr 23, 2025
9 checks passed
@frenck frenck deleted the release-notes-separation branch April 23, 2025 16:40
@mrdarrengriffin mrdarrengriffin restored the release-notes-separation branch April 23, 2025 21:08
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
current This PR goes into the current branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants