Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .changeset/all-paths-dance.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/many-sheep-yell.md

This file was deleted.

14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# CHANGELOG

## 0.88.0

### Minor Changes

- [#475](https://github.com/opf/primer_view_components/pull/475) [`971cce2`](https://github.com/opf/primer_view_components/commit/971cce293e17f5d50e171aa8bfe17a39d2353ae7) Thanks [@HDinger](https://github.com/HDinger)! - Fix selection of nodes with the same path in Primer::Alpha::TreeView

When a `[role=treeitem]` element carries a `data-node-id` attribute, that id is now included as `nodeId` in the hidden form input payload (`{path, nodeId?, value?}`). Trees with duplicate-path nodes should set `data-node-id` to a stable unique identifier so the server can distinguish which node was selected.

**Breaking change in `TreeViewElement#checkOnlyAtPath`:** if the given path is not found the method is now a no-op. Previously it would uncheck all active nodes before failing to check the missing node, which could be used as an indirect "clear selection" mechanism. Use explicit `setNodeCheckedValue(node, 'false')` calls if that behaviour is needed.

### Patch Changes

- [#477](https://github.com/opf/primer_view_components/pull/477) [`5877f1b`](https://github.com/opf/primer_view_components/commit/5877f1bf19827ab15f4f6ea3617a761c429db467) Thanks [@HDinger](https://github.com/HDinger)! - Align Primer::OpenProject::InputGroup with error messages

## 0.87.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
openproject-primer_view_components (0.87.0)
openproject-primer_view_components (0.88.0)
actionview (>= 7.2.0)
activesupport (>= 7.2.0)
openproject-octicons (>= 19.34.0)
Expand Down
2 changes: 1 addition & 1 deletion demo/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
openproject-primer_view_components (0.87.0)
openproject-primer_view_components (0.88.0)
actionview (>= 7.2.0)
activesupport (>= 7.2.0)
openproject-octicons (>= 19.34.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/primer/view_components/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Primer
module ViewComponents
module VERSION
MAJOR = 0
MINOR = 87
MINOR = 88
PATCH = 0

STRING = [MAJOR, MINOR, PATCH].join(".")
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openproject/primer-view-components",
"version": "0.87.0",
"version": "0.88.0",
"description": "ViewComponents of the Primer Design System for OpenProject",
"main": "app/assets/javascripts/primer_view_components.js",
"module": "app/components/primer/primer.js",
Expand Down
Loading