Skip to content

docs: add code examples for Tree Select, Tree Autocomplete, Tooltip#756

Open
fateeand wants to merge 1 commit into
masterfrom
docs-code-examples-treeautocomplete-treeselect-tooltip
Open

docs: add code examples for Tree Select, Tree Autocomplete, Tooltip#756
fateeand wants to merge 1 commit into
masterfrom
docs-code-examples-treeautocomplete-treeselect-tooltip

Conversation

@fateeand

Copy link
Copy Markdown
Collaborator

Adds live code examples to the Tree Select, Tree Autocomplete, Tooltip components' documentation pages.

Closes #744
Closes #745
Closes #746

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

Copy link
Copy Markdown
Contributor

Coverage report for library

St.
Category Percentage Covered / Total
🟡 Statements 74.65% 6031/8079
🟡 Branches 66.6% 2782/4177
🟡 Functions 74.03% 1123/1517
🟡 Lines 75.8% 5634/7433

Test suite run success

2386 tests passing in 76 suites.

Report generated by 🧪jest coverage report action from 72e97e9

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

Adds live, copyable HTML/TS code examples (via CodeExampleComponent) to the Composition documentation pages for Tree Select, Tree Autocomplete, and Tooltip, aligning these pages with the rest of the component docs that already use the code-example pattern.

Changes:

  • Introduces new *.examples.ts example registries for Tree Select, Tree Autocomplete, and Tooltip pages.
  • Updates each page template to wrap each demo in <app-code-example> and wires examples into the page components.
  • Simplifies page SCSS by removing now-unneeded grouping wrappers/styles after switching to CodeExampleComponent layout.

Reviewed changes

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

Show a summary per file
File Description
projects/composition/src/app/pages/tree-select-page/tree-select-page.examples.ts Adds Tree Select HTML/TS snippets for the code example viewer.
projects/composition/src/app/pages/tree-select-page/tree-select-page.component.ts Imports CodeExampleComponent, exposes examples to the template.
projects/composition/src/app/pages/tree-select-page/tree-select-page.component.html Wraps each Tree Select demo in <app-code-example> and binds example code.
projects/composition/src/app/pages/tree-select-page/tree-select-page.component.scss Removes obsolete group layout styles after template refactor.
projects/composition/src/app/pages/tree-autocomplete-page/tree-autocomplete-page.examples.ts Adds Tree Autocomplete HTML/TS snippets for the code example viewer.
projects/composition/src/app/pages/tree-autocomplete-page/tree-autocomplete-page.component.ts Imports CodeExampleComponent, exposes examples to the template.
projects/composition/src/app/pages/tree-autocomplete-page/tree-autocomplete-page.component.html Wraps each Tree Autocomplete demo in <app-code-example> and binds example code.
projects/composition/src/app/pages/tree-autocomplete-page/tree-autocomplete-page.component.scss Removes obsolete group layout styles after template refactor.
projects/composition/src/app/pages/tooltip-page/tooltip-page.examples.ts Adds Tooltip directive usage snippets (positions, triggers, delays, persistent HTML, disabled state).
projects/composition/src/app/pages/tooltip-page/tooltip-page.component.ts Imports CodeExampleComponent, exposes examples to the template.
projects/composition/src/app/pages/tooltip-page/tooltip-page.component.html Wraps each Tooltip demo in <app-code-example> and binds example code.
projects/composition/src/app/pages/tooltip-page/tooltip-page.component.scss Refactors styles to match new structure (removes obsolete wrapper styles).

@fateeand fateeand added the skip-release-notes No release notes required label Jul 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Playwright test results

passed  240 passed

Details

stats  240 tests across 5 suites
duration  8 minutes, 44 seconds
commit  72e97e9
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 Tree select Add code examples for Tree autocomplete Add code examples for Tooltip directive

2 participants