docs: add code examples for Scheduler, Select, Sidebar Menu#753
Open
fateeand wants to merge 3 commits into
Open
docs: add code examples for Scheduler, Select, Sidebar Menu#753fateeand wants to merge 3 commits into
fateeand wants to merge 3 commits into
Conversation
fateeand
requested review from
TerranceKhumalo-absa,
korel-san and
lukasmatta
as code owners
July 17, 2026 11:28
Contributor
Coverage report for library
Test suite run success2386 tests passing in 76 suites. Report generated by 🧪jest coverage report action from 7b1fc82 |
Contributor
There was a problem hiding this comment.
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.tsfiles 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
CodeExampleComponentwithpreviewOutsidebehavior, 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. |
Contributor
Playwright test resultsDetails
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds live code examples to the Scheduler, Select and Sidebar Menu components' documentation pages.
Closes #735
Closes #736
Closes #737