Skip to content

docs: add code examples for Scheduler, Select, Sidebar Menu#753

Open
fateeand wants to merge 3 commits into
masterfrom
docs-code-examples-scheduler-select-sidebarmenu
Open

docs: add code examples for Scheduler, Select, Sidebar Menu#753
fateeand wants to merge 3 commits into
masterfrom
docs-code-examples-scheduler-select-sidebarmenu

Conversation

@fateeand

Copy link
Copy Markdown
Collaborator

Adds live code examples to the Scheduler, Select and Sidebar Menu components' documentation pages.

Closes #735
Closes #736
Closes #737

Copilot AI review requested due to automatic review settings July 17, 2026 11:28
@fateeand fateeand added the skip-release-notes No release notes required label Jul 17, 2026
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Coverage report for library

St.
Category Percentage Covered / Total
🟡 Statements 73.33% 6031/8224
🟡 Branches 64.95% 2782/4283
🟡 Functions 73.3% 1123/1532
🟡 Lines 74.39% 5634/7574

Test suite run success

2386 tests passing in 76 suites.

Report generated by 🧪jest coverage report action from 7b1fc82

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds live, copyable code snippets to the composition documentation pages for Scheduler, Select, and Sidebar Menu by introducing per-page *.examples.ts registries and wiring them into the pages via CodeExampleComponent. It also extends CodeExampleComponent with a new previewOutside mode to alter how the preview tab/panel is presented.

Changes:

  • Added new *.examples.ts files for Scheduler, Select, and Sidebar Menu and exposed them on each page component.
  • Updated the three documentation pages’ templates to render examples through <app-code-example>.
  • Enhanced CodeExampleComponent with previewOutside behavior, styling, and unit tests.

Reviewed changes

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

Show a summary per file
File Description
projects/composition/src/app/pages/sidebar-menu-page/sidebar-menu-page.examples.ts Adds Sidebar Menu HTML/TS snippets for the docs code example.
projects/composition/src/app/pages/sidebar-menu-page/sidebar-menu-page.component.ts Wires sidebarMenuExamples and imports CodeExampleComponent.
projects/composition/src/app/pages/sidebar-menu-page/sidebar-menu-page.component.scss Adjusts layout to add a side panel area for info + code snippet.
projects/composition/src/app/pages/sidebar-menu-page/sidebar-menu-page.component.html Adds a code example block for Sidebar Menu.
projects/composition/src/app/pages/select-page/select-page.examples.ts Adds a comprehensive set of Select examples (HTML + TS snippets).
projects/composition/src/app/pages/select-page/select-page.component.ts Wires selectExamples and imports CodeExampleComponent.
projects/composition/src/app/pages/select-page/select-page.component.scss Removes now-unused .selects-group styling.
projects/composition/src/app/pages/select-page/select-page.component.html Refactors the page into multiple <app-code-example> sections.
projects/composition/src/app/pages/scheduler-page/scheduler-page.examples.ts Adds Scheduler HTML/TS snippets for the docs code example.
projects/composition/src/app/pages/scheduler-page/scheduler-page.component.ts Wires schedulerExamples and imports CodeExampleComponent.
projects/composition/src/app/pages/scheduler-page/scheduler-page.component.scss Removes the unused scheduler wrapper styling.
projects/composition/src/app/pages/scheduler-page/scheduler-page.component.html Wraps the Scheduler example in <app-code-example>.
projects/composition/src/app/components/code-example/code-example.component.ts Adds previewOutside input and updates tab initialization logic.
projects/composition/src/app/components/code-example/code-example.component.spec.ts Adds unit tests covering previewOutside behavior.
projects/composition/src/app/components/code-example/code-example.component.scss Adds previewOutside layout styles and copy button deep styling.
projects/composition/src/app/components/code-example/code-example.component.html Conditionally hides the Preview tab and adjusts preview panel ARIA when previewOutside is enabled.

Comment thread projects/composition/src/app/pages/select-page/select-page.examples.ts Outdated
Comment thread projects/composition/src/app/components/code-example/code-example.component.scss Outdated
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Playwright test results

passed  240 passed

Details

stats  240 tests across 5 suites
duration  8 minutes, 50 seconds
commit  7b1fc82
info  For details, download the Playwright report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-release-notes No release notes required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add code examples for Sidebar menu Add code examples for Select Add code examples for Scheduler

2 participants