Skip to content

feat(blog): UI improvements#7294

Merged
alicanerdurmaz merged 6 commits into
mainfrom
feat/blog-ui-improvements
Feb 23, 2026
Merged

feat(blog): UI improvements#7294
alicanerdurmaz merged 6 commits into
mainfrom
feat/blog-ui-improvements

Conversation

@alicanerdurmaz

Copy link
Copy Markdown
Collaborator

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features


What Changed

  • Removed horizontal scrolling behavior from desktop category navigation and switched to wrapped items in documentation/src/components/blog/category-nav-bar/index.tsx.
  • Removed scroll state persistence (localStorage) and overflow shadow indicators from desktop category navigation in documentation/src/components/blog/category-nav-bar/index.tsx.
  • Added a new route-aware favicon hook in documentation/src/hooks/use-route-favicon.ts.
  • Wired the new favicon hook into the shared layout in documentation/src/refine-theme/common-layout.tsx.
  • Added a blog-specific favicon asset in documentation/static/assets/favicon-blog.svg.
  • Updated blog category label normalization so "Ecosystem / Integrations" maps to "Integrations" in documentation/plugins/blog-plugin.js.
  • Adjusted blog hero horizontal spacing on large screens in documentation/src/refine-theme/blog-hero.tsx.
  • Adjusted blog layout container horizontal padding on large screens in documentation/src/refine-theme/blog-layout.tsx.
  • Adjusted blog header logo row alignment on large screens in documentation/src/refine-theme/blog-header.tsx.
  • Updated post card sizing/padding in documentation/src/theme/BlogPostItem/index.js and documentation/src/components/blog/featured-blog-post-item/index.js.

@alicanerdurmaz alicanerdurmaz requested a review from a team as a code owner February 23, 2026 08:08
@changeset-bot

changeset-bot Bot commented Feb 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2d485bc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@refine-bot refine-bot temporarily deployed to deploy-preview-website-7294 February 23, 2026 08:31 Inactive
@erenkurnaz erenkurnaz requested a review from Copilot February 23, 2026 11:57
@alicanerdurmaz alicanerdurmaz merged commit d861860 into main Feb 23, 2026
9 checks passed
@alicanerdurmaz alicanerdurmaz deleted the feat/blog-ui-improvements branch February 23, 2026 12:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR implements UI improvements for the blog section, focusing on navigation, spacing, and branding. The changes enhance the desktop blog experience by replacing horizontal scrolling with wrapped navigation items, introduce a route-aware favicon that changes based on the current section, and refine spacing and alignment across various blog components for better visual consistency at larger screen sizes.

Changes:

  • Simplified desktop category navigation from horizontal scrolling to flex-wrap layout, removing localStorage persistence and scroll indicators
  • Added route-aware favicon functionality that displays a blog-specific icon when viewing blog pages
  • Adjusted spacing and alignment across blog components (hero, header, layout, post cards) for improved visual consistency at the blog-max breakpoint (≥1296px)

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
documentation/static/assets/favicon-blog.svg New blog-specific favicon asset with gradient radial styling
documentation/src/hooks/use-route-favicon.ts New hook that dynamically updates favicon based on current route (blog vs. other pages)
documentation/src/refine-theme/common-layout.tsx Integrated favicon hook into shared layout to enable route-aware favicon switching
documentation/src/components/blog/category-nav-bar/index.tsx Removed horizontal scrolling, localStorage persistence, and shadow indicators; switched to flex-wrap layout for desktop navigation
documentation/plugins/blog-plugin.js Added category name normalization to map "Ecosystem / Integrations" to "Integrations"
documentation/src/refine-theme/blog-layout.tsx Reduced horizontal padding from 8 to 3 (px-8 → px-3) at blog-max breakpoint
documentation/src/refine-theme/blog-hero.tsx Increased left padding from 10 to 68px at blog-max breakpoint
documentation/src/refine-theme/blog-header.tsx Added negative left margin of 1 (-ml-1) to logo at blog-max breakpoint
documentation/src/theme/BlogPostItem/index.js Added max-width constraint and bottom padding at blog-md breakpoint for post cards
documentation/src/components/blog/featured-blog-post-item/index.js Added bottom padding at blog-max breakpoint for featured post cards
documentation/src/components/blog/post-paginator/index.js Added vertical center alignment at blog-md breakpoint
documentation/src/components/blog/blog-post-page/index.js Changed header tag to div, adjusted spacing, and refined negative margin values
Comments suppressed due to low confidence (1)

documentation/plugins/blog-plugin.js:228

  • The regex replacement using word boundaries (\b) may not work correctly for "Ecosystem / Integrations" because the forward slash creates a word boundary. The pattern \bEcosystem / Integrations\b might not match as expected. Consider using a simpler string replacement or adjusting the regex pattern. For example: value = value.replace("Ecosystem / Integrations", "Integrations"); without regex would be more reliable.
  replacements.forEach(([from, to]) => {
    value = value.replace(new RegExp(`\\b${from}\\b`, "g"), to);

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +258 to +260
<div
className={clsx("not-prose", "pt-8", "blog-lg:pt-16", "blog-max:px-4")}
>

Copilot AI Feb 23, 2026

Copy link

Choose a reason for hiding this comment

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

Changing from <header> to <div> reduces semantic HTML meaning. The <header> tag provides better accessibility and SEO by clearly indicating this is a header section containing the post's title and metadata. Consider keeping the <header> tag and adding the padding classes to it instead.

Copilot uses AI. Check for mistakes.
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.

4 participants