Skip to content

docs: add code examples for Textarea, Timepicker, Tag, Switch#755

Open
fateeand wants to merge 1 commit into
masterfrom
docs-code-examples-textarea-timepicker-tag-switch
Open

docs: add code examples for Textarea, Timepicker, Tag, Switch#755
fateeand wants to merge 1 commit into
masterfrom
docs-code-examples-textarea-timepicker-tag-switch

Conversation

@fateeand

Copy link
Copy Markdown
Collaborator

Adds live code examples to the Textarea, Timepicker, Tag and Switch components' documentation pages.

Closes #741
Closes #742
Closes #743
Closes #738

Copilot AI review requested due to automatic review settings July 17, 2026 14:19
@github-actions

Copy link
Copy Markdown
Contributor

Coverage report for library

St.
Category Percentage Covered / Total
🟡 Statements 73.7% 6031/8183
🟡 Branches 65.14% 2782/4271
🟡 Functions 73.64% 1123/1525
🟡 Lines 74.73% 5634/7539

Test suite run success

2386 tests passing in 76 suites.

Report generated by 🧪jest coverage report action from 9d1db75

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’s documentation pages for Textarea, Timepicker, Tag, and Switch by adding live, copyable code examples via the existing CodeExampleComponent, and centralizing the example source strings in new *.examples.ts files (closing #738, #741, #742, #743).

Changes:

  • Added new *.examples.ts files to store HTML/TS snippet strings for each component page.
  • Updated each page template to wrap each demo in <app-code-example> and wire htmlCode/tsCode inputs to the new examples map.
  • Removed now-unneeded “group” wrapper styles/classes (spacing is handled by CodeExampleComponent).

Reviewed changes

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

Show a summary per file
File Description
projects/composition/src/app/pages/timepicker-page/timepicker-page.examples.ts Adds timepicker example HTML/TS snippet definitions.
projects/composition/src/app/pages/timepicker-page/timepicker-page.component.ts Imports CodeExampleComponent and exposes examples for template binding.
projects/composition/src/app/pages/timepicker-page/timepicker-page.component.html Wraps each timepicker demo in <app-code-example> and binds snippet strings.
projects/composition/src/app/pages/timepicker-page/timepicker-page.component.scss Removes obsolete .timepickers-group styling.
projects/composition/src/app/pages/textarea-page/textarea-page.examples.ts Adds textarea example HTML/TS snippet definitions.
projects/composition/src/app/pages/textarea-page/textarea-page.component.ts Imports CodeExampleComponent and exposes examples for template binding.
projects/composition/src/app/pages/textarea-page/textarea-page.component.html Wraps each textarea demo in <app-code-example> and binds snippet strings.
projects/composition/src/app/pages/textarea-page/textarea-page.component.scss Removes obsolete .textarea-group styling.
projects/composition/src/app/pages/tag-page/tag-page.examples.ts Adds tag example HTML/TS snippet definitions.
projects/composition/src/app/pages/tag-page/tag-page.component.ts Imports CodeExampleComponent and exposes examples for template binding.
projects/composition/src/app/pages/tag-page/tag-page.component.html Wraps each tag demo in <app-code-example> and binds snippet strings.
projects/composition/src/app/pages/tag-page/tag-page.component.scss Removes obsolete .tags-group styling.
projects/composition/src/app/pages/switch-page/switch-page.examples.ts Adds switch example HTML/TS snippet definitions.
projects/composition/src/app/pages/switch-page/switch-page.component.ts Imports CodeExampleComponent and exposes examples for template binding.
projects/composition/src/app/pages/switch-page/switch-page.component.html Wraps each switch demo in <app-code-example> and binds snippet strings.
projects/composition/src/app/pages/switch-page/switch-page.component.scss Removes obsolete .switches-group styling.

@github-actions

Copy link
Copy Markdown
Contributor

Playwright test results

passed  240 passed

Details

stats  240 tests across 5 suites
duration  9 minutes, 5 seconds
commit  9d1db75
info  For details, download the Playwright report

@fateeand fateeand added the skip-release-notes No release notes required label Jul 17, 2026
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 Timepicker Add code examples for Textarea Add code examples for Tag Add code examples for Switch

2 participants