Skip to content

[Hierarchies-react]: Tree action base allow optional onClick - #1469

Merged
MartynasStrazdas merged 1 commit into
nextfrom
mast/adjust-tree-action-base
Aug 5, 2026
Merged

[Hierarchies-react]: Tree action base allow optional onClick#1469
MartynasStrazdas merged 1 commit into
nextfrom
mast/adjust-tree-action-base

Conversation

@MartynasStrazdas

@MartynasStrazdas MartynasStrazdas commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

In case hide is set to true we should not force consumers to pass in an onClick

@MartynasStrazdas
MartynasStrazdas requested a review from a team as a code owner August 5, 2026 06:39
Copilot AI lite review requested due to automatic review settings August 5, 2026 06:39
@changeset-bot

changeset-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5f814e3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@itwin/presentation-hierarchies-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Updates the @itwin/presentation-hierarchies-react StrataKit tree action base API to allow consumers to omit an onClick handler when rendering TreeActionBase, and aligns the extracted API report and versioning metadata accordingly.

Changes:

  • Made TreeActionBaseProps.onClick optional in TreeActionBase’s public props type.
  • Updated the package API extract report to reflect the signature change.
  • Added a patch changeset documenting the consumer-facing change.

Reviewed changes

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

File Description
packages/hierarchies-react/src/presentation-hierarchies-react/stratakit/TreeAction.tsx Makes onClick optional on TreeActionBaseProps.
packages/hierarchies-react/api/presentation-hierarchies-react-extract.api.md Updates extracted API to match the optional onClick prop.
.changeset/yellow-kings-cut.md Adds a patch changeset describing the optional onClick change.

@MartynasStrazdas
MartynasStrazdas merged commit 69ae66e into next Aug 5, 2026
7 checks passed
@MartynasStrazdas
MartynasStrazdas deleted the mast/adjust-tree-action-base branch August 5, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants