Skip to content

Commit

Permalink
Merge pull request #107 from lucafoscili/candidate
Browse files Browse the repository at this point in the history
new rel
  • Loading branch information
lucafoscili authored Feb 14, 2025
2 parents 73ceae0 + 32ac78b commit d86212e
Show file tree
Hide file tree
Showing 106 changed files with 1,778 additions and 622 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/bump-candidate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,29 @@ on:

jobs:
version-bump:
if: "${{ ! contains(github.event.head_commit.message, 'chore: bump versions for release candidate') }}"

runs-on: ubuntu-latest
environment: Development
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false

- name: Check if version bump is needed
id: check_bump
run: |
if echo "${{ github.event.head_commit.message }}" | grep -q 'chore: bump versions for release candidate'; then
echo "Skipping version bump"
echo "skip=true" >> $GITHUB_OUTPUT
else
echo "Proceeding with version bump"
echo "skip=false" >> $GITHUB_OUTPUT
fi
- name: Setup and Build
if: steps.check_bump.outputs.skip == 'false'
uses: ./.github/actions/setup
with:
node-version: "18.x"
Expand All @@ -27,28 +38,34 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Configure Git
if: steps.check_bump.outputs.skip == 'false'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Bump Versions with Lerna
if: steps.check_bump.outputs.skip == 'false'
run: |
npx lerna version --conventional-prerelease --preid=rc --no-push --yes
- name: Build Packages
if: steps.check_bump.outputs.skip == 'false'
run: yarn build

- name: Format Code with Prettier
if: steps.check_bump.outputs.skip == 'false'
run: yarn format

- name: Check for Changes
if: steps.check_bump.outputs.skip == 'false'
run: |
if git diff --quiet && git diff --cached --quiet; then
echo "No changes to commit"
exit 0
fi
- name: Create or Update Pull Request
if: steps.check_bump.outputs.skip == 'false'
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore: bump versions for release candidate"
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/bump-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,29 @@ on:

jobs:
version-bump:
if: "${{ ! contains(github.event.head_commit.message, 'chore: bump versions for release') }}"

runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false

- name: Check if version bump is needed
id: check_bump
run: |
if echo "${{ github.event.head_commit.message }}" | grep -q 'chore: bump versions for release'; then
echo "Skipping version bump"
echo "skip=true" >> $GITHUB_OUTPUT
else
echo "Proceeding with version bump"
echo "skip=false" >> $GITHUB_OUTPUT
fi
- name: Setup and Build
if: steps.check_bump.outputs.skip == 'false'
uses: ./.github/actions/setup
with:
node-version: "18.x"
Expand All @@ -27,18 +38,22 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Configure Git
if: steps.check_bump.outputs.skip == 'false'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Bump Versions with Lerna (Release)
if: steps.check_bump.outputs.skip == 'false'
run: |
npx lerna version --conventional-graduate --no-push --yes
- name: Build Packages
if: steps.check_bump.outputs.skip == 'false'
run: yarn build

- name: Create or Update Pull Request
if: steps.check_bump.outputs.skip == 'false'
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore: bump versions for release"
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/component-count.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
update-count:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout candidate branch
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
Expand All @@ -20,18 +21,6 @@ jobs:
git config --global user.name "github-actions[bot]"
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
- name: Fetch All Branches
run: git fetch --all

- name: Checkout or Create Component Count Update Branch
run: |
if git show-ref --verify --quiet refs/heads/component-count-update; then
git checkout component-count-update
git merge origin/candidate
else
git checkout -b component-count-update origin/candidate
fi
- name: Count Components
id: count
run: |
Expand All @@ -48,15 +37,17 @@ jobs:
echo "changes=true" >> $GITHUB_OUTPUT
fi
- name: Commit Component Count
- name: Create Component Count Update Branch and Commit Changes
if: steps.git-check.outputs.changes == 'true'
run: |
# Create (or update) branch 'component-count-update' from candidate HEAD
git checkout -B component-count-update
git add count.json
git commit -m "Update component count to ${{ steps.count.outputs.components }} [skip ci]" || echo "No changes to commit"
- name: Push Changes to Branch
if: steps.git-check.outputs.changes == 'true'
run: git push origin component-count-update
run: git push origin component-count-update --force

- name: Create or Update Pull Request
if: steps.git-check.outputs.changes == 'true'
Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,49 @@

All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.3.2-rc.5](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.4...0.3.2-rc.5) (2025-02-14)

### Bug Fixes

- **card:** fixed unscrollable description ([3e53ed7](https://github.com/lucafoscili/lf-widgets/commit/3e53ed71da916d3b829f20c5ba34fd5a28aa7ff2))
- **chart:** increased tooltip's background alpha ([8d8a2b7](https://github.com/lucafoscili/lf-widgets/commit/8d8a2b71a7b14f739f3c1fa8207fbd78dfcb065e))
- **code:** adjusted style ([e0735ee](https://github.com/lucafoscili/lf-widgets/commit/e0735eeba9c9df65b601f565b8955de076f7fdb1))
- **shapes:** extracted from framework, moved to core ([dcb112a](https://github.com/lucafoscili/lf-widgets/commit/dcb112a9858bfe2bf17bf6b5aa4dc75a850eed3e))

## [0.3.2-rc.4](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.3...0.3.2-rc.4) (2025-02-13)

### Bug Fixes

- **shapes:** correctly imported shapes in related consumers ([72a2792](https://github.com/lucafoscili/lf-widgets/commit/72a2792e06dc716b094aecec038c115c8826a53b))

## [0.3.2-rc.3](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.2...0.3.2-rc.3) (2025-02-13)

### Bug Fixes

- **progressbar:** fixed radial state colors ([959aef3](https://github.com/lucafoscili/lf-widgets/commit/959aef3160046a02626b7f914b5255b8dd0ec410))
- replaced composed tagnames with direct h() invocation ([7751582](https://github.com/lucafoscili/lf-widgets/commit/7751582ccc86a8bbd0c6266396a7a4be2c01c1ec))

## [0.3.2-rc.2](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.1...0.3.2-rc.2) (2025-02-13)

### Bug Fixes

- **cicd:** improved component count action ([0d5b604](https://github.com/lucafoscili/lf-widgets/commit/0d5b604a410cc881a27fa4a48e94b5ed3a91134e))
- **image:** improved RegEx to catch images ([834a1f3](https://github.com/lucafoscili/lf-widgets/commit/834a1f36398b7f03c1d1cb75d8d8274f27b955bf))
- **lifecycle:** added safeguard to Watchers preventing early executions ([17146b0](https://github.com/lucafoscili/lf-widgets/commit/17146b0685e03f3925880e83ca02844c63aca765))

## [0.3.2-rc.1](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.0...0.3.2-rc.1) (2025-02-13)

### Bug Fixes

- **assets:** added history icon ([5b605c4](https://github.com/lucafoscili/lf-widgets/commit/5b605c43dddbe0568752231b449cfadc3606b33d))

## [0.3.2-rc.0](https://github.com/lucafoscili/lf-widgets/compare/0.3.1...0.3.2-rc.0) (2025-02-13)

### Bug Fixes

- **cicd:** updated workflows to never skip ([4718440](https://github.com/lucafoscili/lf-widgets/commit/471844062410ab4dccf0e145fb37695ed7f2059a))
- **code:** removed margin bottom ([4a52057](https://github.com/lucafoscili/lf-widgets/commit/4a5205788a857b13905a1e7c74bf79f97359b3f3))

## [0.3.1](https://github.com/lucafoscili/lf-widgets/compare/0.3.1-rc.3...0.3.1) (2025-02-12)

**Note:** Version bump only for package @lf-widgets/root
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"npmClient": "yarn",
"version": "0.3.1",
"version": "0.3.2-rc.5",
"command": {
"publish": {
"conventionalCommits": true,
Expand Down
26 changes: 26 additions & 0 deletions packages/assets/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.3.2-rc.5](https://github.com/lucafoscili/lf-assets/compare/0.3.2-rc.4...0.3.2-rc.5) (2025-02-14)

**Note:** Version bump only for package @lf-widgets/assets

## [0.3.2-rc.4](https://github.com/lucafoscili/lf-assets/compare/0.3.2-rc.3...0.3.2-rc.4) (2025-02-13)

**Note:** Version bump only for package @lf-widgets/assets

## [0.3.2-rc.3](https://github.com/lucafoscili/lf-assets/compare/0.3.2-rc.2...0.3.2-rc.3) (2025-02-13)

**Note:** Version bump only for package @lf-widgets/assets

## [0.3.2-rc.2](https://github.com/lucafoscili/lf-assets/compare/0.3.2-rc.1...0.3.2-rc.2) (2025-02-13)

**Note:** Version bump only for package @lf-widgets/assets

## [0.3.2-rc.1](https://github.com/lucafoscili/lf-assets/compare/0.3.2-rc.0...0.3.2-rc.1) (2025-02-13)

### Bug Fixes

- **assets:** added history icon ([5b605c4](https://github.com/lucafoscili/lf-assets/commit/5b605c43dddbe0568752231b449cfadc3606b33d))

## [0.3.2-rc.0](https://github.com/lucafoscili/lf-assets/compare/0.3.1...0.3.2-rc.0) (2025-02-13)

**Note:** Version bump only for package @lf-widgets/assets

## [0.3.1](https://github.com/lucafoscili/lf-assets/compare/0.3.1-rc.3...0.3.1) (2025-02-12)

**Note:** Version bump only for package @lf-widgets/assets
Expand Down
7 changes: 7 additions & 0 deletions packages/assets/assets/svg/history.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Luca Foscili",
"url": "https://www.lucafoscili.com"
},
"version": "0.3.1",
"version": "0.3.2-rc.5",
"publishConfig": {
"access": "public"
},
Expand Down
39 changes: 39 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,45 @@

All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.3.2-rc.5](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.4...0.3.2-rc.5) (2025-02-14)

### Bug Fixes

- **card:** fixed unscrollable description ([3e53ed7](https://github.com/lucafoscili/lf-widgets/commit/3e53ed71da916d3b829f20c5ba34fd5a28aa7ff2))
- **chart:** increased tooltip's background alpha ([8d8a2b7](https://github.com/lucafoscili/lf-widgets/commit/8d8a2b71a7b14f739f3c1fa8207fbd78dfcb065e))
- **code:** adjusted style ([e0735ee](https://github.com/lucafoscili/lf-widgets/commit/e0735eeba9c9df65b601f565b8955de076f7fdb1))
- **shapes:** extracted from framework, moved to core ([dcb112a](https://github.com/lucafoscili/lf-widgets/commit/dcb112a9858bfe2bf17bf6b5aa4dc75a850eed3e))

## [0.3.2-rc.4](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.3...0.3.2-rc.4) (2025-02-13)

### Bug Fixes

- **shapes:** correctly imported shapes in related consumers ([72a2792](https://github.com/lucafoscili/lf-widgets/commit/72a2792e06dc716b094aecec038c115c8826a53b))

## [0.3.2-rc.3](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.2...0.3.2-rc.3) (2025-02-13)

### Bug Fixes

- **progressbar:** fixed radial state colors ([959aef3](https://github.com/lucafoscili/lf-widgets/commit/959aef3160046a02626b7f914b5255b8dd0ec410))
- replaced composed tagnames with direct h() invocation ([7751582](https://github.com/lucafoscili/lf-widgets/commit/7751582ccc86a8bbd0c6266396a7a4be2c01c1ec))

## [0.3.2-rc.2](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.1...0.3.2-rc.2) (2025-02-13)

### Bug Fixes

- **image:** improved RegEx to catch images ([834a1f3](https://github.com/lucafoscili/lf-widgets/commit/834a1f36398b7f03c1d1cb75d8d8274f27b955bf))
- **lifecycle:** added safeguard to Watchers preventing early executions ([17146b0](https://github.com/lucafoscili/lf-widgets/commit/17146b0685e03f3925880e83ca02844c63aca765))

## [0.3.2-rc.1](https://github.com/lucafoscili/lf-widgets/compare/0.3.2-rc.0...0.3.2-rc.1) (2025-02-13)

**Note:** Version bump only for package @lf-widgets/core

## [0.3.2-rc.0](https://github.com/lucafoscili/lf-widgets/compare/0.3.1...0.3.2-rc.0) (2025-02-13)

### Bug Fixes

- **code:** removed margin bottom ([4a52057](https://github.com/lucafoscili/lf-widgets/commit/4a5205788a857b13905a1e7c74bf79f97359b3f3))

## [0.3.1](https://github.com/lucafoscili/lf-widgets/compare/0.3.1-rc.3...0.3.1) (2025-02-12)

**Note:** Version bump only for package @lf-widgets/core
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Luca Foscili",
"url": "https://www.lucafoscili.com"
},
"version": "0.3.1",
"version": "0.3.2-rc.5",
"publishConfig": {
"access": "public"
},
Expand Down
15 changes: 9 additions & 6 deletions packages/core/src/components/lf-accordion/lf-accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
VNode,
} from "@stencil/core";
import { awaitFramework } from "../../utils/setup";
import { LfShape } from "../../utils/shapes";

/**
* Represents an accordion-style component that displays a list of data items,
Expand Down Expand Up @@ -394,17 +395,19 @@ export class LfAccordion implements LfAccordionInterface {
return nodes;
}
#prepCell = (node: LfDataNode): VNode => {
const { data } = this.#framework;
const { decorate } = data.cell.shapes;

const { cells } = node;
const key = cells && Object.keys(cells)[0];
const cell = cells?.[key];

const shape = decorate(cell.shape, [cell], async (e) =>
this.onLfEvent(e, "lf-event"),
return (
<LfShape
cell={cell}
index={0}
shape={cell.shape}
eventDispatcher={async (e) => this.onLfEvent(e, "lf-event")}
framework={this.#framework}
></LfShape>
);
return shape[0];
};
//#endregion

Expand Down
Loading

0 comments on commit d86212e

Please sign in to comment.