Skip to content

Commit 577b795

Browse files
authored
Merge pull request #289 from eccenca/maintain/mergeReleaseTag-v24.2.0
Release process changes from v24.2.0
2 parents bfb1af1 + d69410a commit 577b795

File tree

7 files changed

+29
-12
lines changed

7 files changed

+29
-12
lines changed

.github/workflows/publish-final-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
6464
- name: Push tag and changes
6565
run: |
66+
git checkout -b maintain/mergeReleaseTag-v${{ steps.package-version.outputs.version }}
6667
git push origin v${{ steps.package-version.outputs.version }}
6768
git push origin maintain/mergeReleaseTag-v${{ steps.package-version.outputs.version }}
6869
- name: Create pull request merge back release process changes
@@ -71,12 +72,12 @@ jobs:
7172
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7273
head: maintain/mergeReleaseTag-v${{ steps.package-version.outputs.version }}
7374
base: ${{ steps.dispatched-branch.outputs.targetbranch }}
74-
title: Release process changes from v${{ steps.create-version.outputs.version }}
75+
title: Release process changes from v${{ steps.package-version.outputs.version }}
7576
draft: true
7677
reviewers: ${{ github.actor }}
7778
body: |
7879
Created by Github workflow.
79-
After merging this PR the "publish final release" action can be triggered on `${{ steps.dispatched-branch.outputs.targetbranch }}`.
80+
Necessary to merge back all changes that had to be done during release process.
8081
8182
publish-package:
8283
needs: publish-final-release

.github/workflows/push-tagged-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,13 @@ jobs:
7777
if: inputs.onlyNpmPush != true
7878
run: |
7979
touch ./releasecontent.md
80+
CHANGELOG=$(cat <<"EOL"
81+
${{ steps.info-changelog.outputs.changes }}
82+
EOL
83+
)
8084
echo "* NPM package: https://www.npmjs.com/package/@eccenca/gui-elements/v/${{ steps.info-vars.outputs.version }}" >> ./releasecontent.md
8185
$( if [[ ! "${{ inputs.sectionChangelog }}" =~ ^(Unreleased)$ ]]; then echo "* Storybook: ${{ steps.chromatic-upload.outputs.storybookUrl }}" >> ./releasecontent.md; fi )
82-
$( if [[ ! "${{ inputs.sectionChangelog }}" =~ ^(Unreleased)$ ]]; then echo "${{ steps.info-changelog.outputs.changes }}" >> ./releasecontent.md; else echo "* Changelog: https://github.com/eccenca/gui-elements/blob/${{ inputs.ref }}/CHANGELOG.md#unreleased" >> ./releasecontent.md; fi )
86+
$( if [[ ! "${{ inputs.sectionChangelog }}" =~ ^(Unreleased)$ ]]; then echo "${CHANGELOG}" >> ./releasecontent.md; else echo "* Changelog: https://github.com/eccenca/gui-elements/blob/${{ inputs.ref }}/CHANGELOG.md#unreleased" >> ./releasecontent.md; fi )
8387
- name: Publish release
8488
# only use for final releases and RCs -- other pre-releases do not need an official announcement
8589
if: inputs.onlyNpmPush != true

.github/workflows/test-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "🛑 Test: project conventions"
1+
name: "👀 Test: project conventions"
22

33
on:
44
push:

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
66

77
## [Unreleased]
88

9+
## [24.2.0] - 2025-06-04
10+
911
### Added
1012

1113
- `<ContextOverlay />`
@@ -17,14 +19,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1719
- `<OverviewItemActions />`
1820
- `delayDisplayChildren` property: set a time (in ms) to delay the actual rendering of elements inside the actions container. When enabled the containing `OverviewItem` can be displayed faster. Can be used e.g. to boost performance when rendering `OverviewItemActions` with `hiddenInteractions` set to `true`.
1921
- `delaySkeleton` property to set the placeholder/skeleton as long as the delayed display is waiting to get processed
20-
- `intent` property to `Button`, `FieldItem`, `FieldSet`, `Notification`, and `Spinner`
2122
- `<Button />`, `<FieldItem />`, `<FieldSet />`, `<Notification />`, `<Spinner />`
2223
- `intent` property: align intent state usage with other components
2324

2425
### Deprecated
2526

2627
- `<Markdown />`
2728
- `reHypePlugins` property now use `PluggableList` from the unified package. This may require changes if you previously used plugins not conforming to the stricter unified typings. Backward compatibility with the old plugin list type will be removed in the next major version.
29+
- `<FieldSet />`, `<FieldItem />`, `<MultiSelect />`, `<Button />`
30+
- `hasStatePrimary`, `hasStateSuccess`, `hasStateWarning` and `hasStateDanger` properties will be removed, use `intent` property instead
31+
- `<Notification />`
32+
- `neutral`, `success`, `warning` and `danger` properties will be removed, use `intent` property instead
33+
- `<MultiSelect />`
34+
- `data-test-id` for clearance button won't be set automatically, only if a test id for `MultiSelect` is given
2835

2936
### Fixed
3037

@@ -36,6 +43,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
3643
- some more interfaces are exposed:
3744
- `IntentBlueprint`: BlueprintJS intent types, also available by `DefinitionsBlueprint`
3845
- `TableDataContainerProps`, `TableSimpleContainerProps`, `TableHeadProps`, `TableBodyProps`, `TableExpandedRowProps`, `TableHeaderProps` and `DataTableRenderProps` as interfaces for diverse table components
46+
- `<CodeAutocompleteField />`
47+
- memorize `handleChange` handler to prevent unwanted re-renders
3948

4049
### Usage with old application bundlers
4150

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@eccenca/gui-elements",
33
"description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
4-
"version": "24.1.0",
4+
"version": "24.2.0",
55
"license": "Apache-2.0",
66
"homepage": "https://github.com/eccenca/gui-elements",
77
"bugs": "https://github.com/eccenca/gui-elements/issues",

src/components/AutoSuggestion/AutoSuggestion.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,12 +448,14 @@ const AutoSuggestion = ({
448448
[asyncHandleEditorInputChange, autoCompletionRequestDelay]
449449
);
450450

451-
const handleChange = (val: string) => {
452-
value.current = val;
453-
checkValuePathValidity.cancel();
454-
checkValuePathValidity(value.current);
455-
onChange(val);
456-
};
451+
const handleChange = React.useMemo( () => {
452+
return (val: string) => {
453+
value.current = val;
454+
checkValuePathValidity.cancel();
455+
checkValuePathValidity(value.current);
456+
onChange(val);
457+
}
458+
}, [onChange, checkValuePathValidity]);
457459

458460
const handleCursorChange = (cursor: number, coords: Rect, scrollinfo: HTMLElement, view: EditorView) => {
459461
//cursor here is offset from line 1, autosuggestion works with cursor per-line.

src/components/Icon/canonicalIconNames.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ const canonicalIcons = {
129129
"operation-filteredit": icons.FilterEdit,
130130
"operation-filterremove": icons.FilterRemove,
131131
"operation-filter": icons.Filter,
132+
"operation-focus": icons.CenterSquare,
132133
"operation-format-codeblock": icons.CodeBlock,
133134
"operation-format-text-code": icons.Code,
134135
"operation-format-text-bold": icons.TextBold,

0 commit comments

Comments
 (0)