Skip to content

feat(Sidebar): add registry and demo components for Sidebar#162

Merged
aeroplaniko merged 6 commits intoSitecore:devfrom
SC-vishathamarasinghe:update_latest_with_dev
Sep 19, 2025
Merged

feat(Sidebar): add registry and demo components for Sidebar#162
aeroplaniko merged 6 commits intoSitecore:devfrom
SC-vishathamarasinghe:update_latest_with_dev

Conversation

@SC-vishathamarasinghe
Copy link
Collaborator

Summary

This PR adds the Blok-designed Sidebar to the registry and demo directories, making it the default reusable sidebar across the project.

The documentation site’s existing sidebar, which has additional features not part of the Blok design, has been renamed and moved out of the registry to avoid conflicts and reduce unnecessary refactoring.

Changes

Blok Sidebar

  • Implemented the Blok-designed sidebar in src/components/ui/sidebar.tsx.
  • Added a demo implementation at src/app/demo/[name]/ui/sidebar.tsx.
  • Registered the Blok sidebar in the registry for consistent usage across the project.

Docsite Sidebar

  • The documentation site currently uses a sidebar with extra features (SidebarRail, SIDEBAR_COOKIES, etc.) that differ from the Blok sidebar.
  • To prevent breaking the docsite and avoid large-scale refactoring:
  • Renamed it to docsite-sidebar.tsx.
  • Moved it into a separate directory outside of the registry.
  • Kept it functional only for the docsite.

Notes

  • The Blok sidebar is now the default sidebar in the registry.
  • The docsite sidebar remains in place but isolated to the documentation site.
  • Fully tested the Blok sidebar locally.

@vercel
Copy link

vercel bot commented Sep 18, 2025

Someone is attempting to deploy this pull request to the Sitecore Technical Marketing Team on Vercel.

To accomplish this, the commit author's email address needs to be associated with a GitHub account.

Learn more about how to change the commit author information.

@aeroplaniko aeroplaniko merged commit b840e6a into Sitecore:dev Sep 19, 2025
1 check failed
SC-vishathamarasinghe added a commit that referenced this pull request Nov 14, 2025
* block-sidebar implemented in registry and demo

* sidebar component and demo implemented

* refactor

* linting issues fixed

* liniting issues fixed

* registry old file refactored

---------

Co-authored-by: Vishath Amarasinghe <vishath.amarasinghe@igt1sl.com>
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.

2 participants