Skip to content

feat(components): add Sidebar component (DS-5256)#421

Merged
KamilEmeleev merged 5 commits into
mainfrom
feat/ds-5256
Jul 17, 2026
Merged

feat(components): add Sidebar component (DS-5256)#421
KamilEmeleev merged 5 commits into
mainfrom
feat/ds-5256

Conversation

@KamilEmeleev

Copy link
Copy Markdown
Collaborator

No description provided.

@KamilEmeleev KamilEmeleev added the enhancement New feature or request label Jul 15, 2026
@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit af97263):

https://react-koobiq-next--prs-421-5u3ie7yy.web.app

(expires Tue, 21 Jul 2026 12:59:40 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: fc29847d4a9e5cb1adf458c76a9b681c76e2eeff

@KamilEmeleev
KamilEmeleev requested a review from rmnturov July 15, 2026 15:29

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 introduces a new low-level Sidebar layout component to @koobiq/react-components, including its public API surface, styling, Storybook documentation/examples, and unit tests.

Changes:

  • Added Sidebar component implementation with open/close state (controlled + uncontrolled), sizing, placement, and optional global keyboard shortcut toggle.
  • Added supporting types/utils/constants, CSS module styling, Vitest + RTL test suite, and Storybook MDX + stories.
  • Registered Sidebar in exports and API extractor/public API guard, and updated the Storybook roadmap entry.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/public_api_guard/components/Sidebar.api.md New generated API report for the Sidebar public surface.
tools/api-extractor/config.json Included Sidebar in API Extractor component list.
packages/components/src/components/Sidebar/utils.ts Added size normalization + keyboard shortcut / editable-target helpers.
packages/components/src/components/Sidebar/types.ts Added public prop/types definitions for Sidebar.
packages/components/src/components/Sidebar/Sidebar.tsx Added Sidebar component implementation (state, transition, keyboard shortcut).
packages/components/src/components/Sidebar/Sidebar.test.tsx Added unit tests covering state, transitions, sizing, placement, and shortcuts.
packages/components/src/components/Sidebar/Sidebar.stories.tsx Added Storybook stories demonstrating usage patterns and props.
packages/components/src/components/Sidebar/Sidebar.module.css Added CSS module with size transition behavior and placement anchoring.
packages/components/src/components/Sidebar/Sidebar.mdx Added MDX documentation page for Storybook.
packages/components/src/components/Sidebar/index.ts Added component-level barrel exports.
packages/components/src/components/Sidebar/constants.ts Added shared transition timing constants.
packages/components/src/components/index.ts Exported Sidebar from the package components index.
.storybook/components/Roadmap/data.ts Added Sidebar entry to the Storybook roadmap table.

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

Comment thread packages/components/src/components/Sidebar/types.ts
Comment thread packages/components/src/components/Sidebar/Sidebar.tsx
Comment thread packages/components/src/components/Sidebar/Sidebar.stories.tsx

@rmnturov rmnturov 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.

Ты сделал симпотные примеры!

@KamilEmeleev
KamilEmeleev merged commit 071934e into main Jul 17, 2026
6 checks passed
@KamilEmeleev
KamilEmeleev deleted the feat/ds-5256 branch July 17, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants