Skip to content

docs: add code examples for Menu, Notifications, Paginator#751

Open
fateeand wants to merge 5 commits into
masterfrom
docs-code-examples-menu-notifications-paginator
Open

docs: add code examples for Menu, Notifications, Paginator#751
fateeand wants to merge 5 commits into
masterfrom
docs-code-examples-menu-notifications-paginator

Conversation

@fateeand

Copy link
Copy Markdown
Collaborator

Adds live code examples to the Menu, Notifications and Paginator components' documentation pages.

Closes #729
Closes #730
Closes #731

Copilot AI review requested due to automatic review settings July 17, 2026 09:49
@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 75.02% 6031/8039
🟡 Branches 66.7% 2782/4171
🟡 Functions 75.07% 1123/1496
🟡 Lines 76.18% 5634/7396

Test suite run success

2386 tests passing in 76 suites.

Report generated by 🧪jest coverage report action from 1ddc95f

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 enhances the Composition app documentation by adding “live” code blocks (via CodeExampleComponent) to the Menu, Notification, and Paginator documentation pages, so users can see rendered examples alongside the corresponding HTML/TS snippets.

Changes:

  • Added new *.examples.ts files that define HTML/TS snippet strings for each docs page.
  • Updated the Menu, Notification, and Paginator docs pages to render examples inside <app-code-example>.
  • Simplified related page styling to match the new example layout.

Reviewed changes

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

Show a summary per file
File Description
projects/composition/src/app/pages/paginator-page/paginator-page.examples.ts Adds code-snippet definitions for paginator usage.
projects/composition/src/app/pages/paginator-page/paginator-page.component.ts Wires CodeExampleComponent and examples data into the paginator docs page.
projects/composition/src/app/pages/paginator-page/paginator-page.component.html Wraps the paginator demo in <app-code-example>.
projects/composition/src/app/pages/notification-page/notification-page.examples.ts Adds multiple notification service usage snippets (HTML + TS).
projects/composition/src/app/pages/notification-page/notification-page.component.ts Wires CodeExampleComponent and examples data into the notification docs page.
projects/composition/src/app/pages/notification-page/notification-page.component.scss Updates styles for section titles in the new layout.
projects/composition/src/app/pages/notification-page/notification-page.component.html Replaces the old button groups with multiple <app-code-example> blocks.
projects/composition/src/app/pages/menu-page/menu-page.examples.ts Adds menu usage snippets (HTML + TS) for multiple scenarios.
projects/composition/src/app/pages/menu-page/menu-page.component.ts Wires CodeExampleComponent and examples data into the menu docs page.
projects/composition/src/app/pages/menu-page/menu-page.component.scss Removes old group layout styles no longer used by the template.
projects/composition/src/app/pages/menu-page/menu-page.component.html Wraps each menu scenario in <app-code-example> blocks.

Comment thread projects/composition/src/app/pages/menu-page/menu-page.component.ts 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  9 minutes, 4 seconds
commit  1ddc95f
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 Paginator Add code examples for Notifications Add code examples for Menu

2 participants