diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ba09f6..a3a7b96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,13 +13,13 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v6 with: node-version: ${{ env.NODE_VERSION }} - name: Cache Node.js modules - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: node_modules key: ${{ runner.OS }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }} @@ -36,13 +36,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v6 with: node-version: ${{ env.NODE_VERSION }} - name: Cache Node.js modules - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: node_modules key: ${{ runner.OS }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }} @@ -60,7 +60,7 @@ jobs: #mkdocs: # runs-on: ubuntu-latest # steps: - # - uses: actions/checkout@v5 + # - uses: actions/checkout@v6 # - name: Setup python ${{ env.PYTHON_VERSION }} # uses: actions/setup-python@v6 # with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b19937..dc21053 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,11 @@ name: Release on: workflow_dispatch +permissions: + contents: write + issues: write + pull-requests: write + env: NODE_VERSION: '24.x' PYTHON_VERSION: '3.13' @@ -16,13 +21,13 @@ jobs: new_release_version: ${{ steps.semantic.outputs.new_release_version }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v6 with: node-version: ${{ env.NODE_VERSION }} - name: Cache Node.js modules - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: node_modules key: ${{ runner.OS }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }} diff --git a/CHANGELOG.md b/CHANGELOG.md index ffca234..216bc92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## [1.1.1-dev.1](https://github.com/Lint-Free-Technology/flipdown-timer-card/compare/v1.1.0...v1.1.1-dev.1) (2026-02-11) + +### Bug Fixes + +* Styling button width fails when buttons are placed at bottom. ([b1d363c](https://github.com/Lint-Free-Technology/flipdown-timer-card/commit/b1d363c7babf5ad63edeebbdebd353bf6c4bc9fb)), closes [#13](https://github.com/Lint-Free-Technology/flipdown-timer-card/issues/13) + +### Miscellaneous + +* Add context for rollup to fix formatjs warning/issue ([03a1f71](https://github.com/Lint-Free-Technology/flipdown-timer-card/commit/03a1f7137efa8580185eae4711a556223320fbc7)) +* Fix links in package.json ([4990551](https://github.com/Lint-Free-Technology/flipdown-timer-card/commit/49905511d405fabb91e5a2adc9fa5992435689f2)) +* Update console installed notification branding ([c25cb70](https://github.com/Lint-Free-Technology/flipdown-timer-card/commit/c25cb70bcb2beeff79537f04824ddb6506def9d4)) + ## [1.1.0](https://github.com/dcapslock/flipdown-timer-card/compare/v1.0.1...v1.1.0) (2025-11-07) ### Features diff --git a/package.json b/package.json index 679d8be..a0f0a17 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flipdown-timer-card", - "version": "1.1.0", + "version": "1.1.1-dev.1", "description": "Flipdown timer card for lovelace", "main": "dist/flipdown-timer-card.js", "type": "module", @@ -15,7 +15,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/dcapslock/flipdown-timer-card.git" + "url": "git@github.com:Lint-Free-Technology/flipdown-timer-card.git" }, "keywords": [ "lovelace" @@ -26,9 +26,9 @@ ], "license": "MIT", "bugs": { - "url": "https://github.com/dcapslock/flipdown-timer-card/issues" + "url": "https://github.com/Lint-Free-Technology/flipdown-timer-card/issues" }, - "homepage": "https://github.com/dcapslock/flipdown-timer-card#readme", + "homepage": "https://github.com/Lint-Free-Technology/flipdown-timer-card#readme", "devDependencies": { "@babel/core": "^7.12.3", "@babel/plugin-proposal-class-properties": "^7.12.1", diff --git a/release.config.cjs b/release.config.cjs index c9bcf25..dff661d 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -13,12 +13,17 @@ module.exports = { preset: 'conventionalcommits', presetConfig: { types: [ - { type: 'feat', section: 'Features' }, - { type: 'fix', section: 'Bug Fixes' }, - { type: 'Fix', section: 'Bug Fixes' }, - { type: 'doc', hidden: false, section: 'Documentation' }, - { type: 'docs', hidden: false, section: 'Documentation' }, - { type: 'chore', hidden: true, section: 'Chores' }, + { type: 'feat', section: '⭐ New Features' }, + { type: 'fix', section: '🐞 Bug Fixes' }, + { type: 'Fix', section: '🐞 Bug Fixes' }, + { type: 'perf', hidden: false, section: '⚡ Performance Improvements' }, + { type: 'doc', hidden: false, section: '📔 Documentation' }, + { type: 'docs', hidden: false, section: '📔 Documentation' }, + { type: 'chore', hidden: true, section: '🔧 Chores' }, + { type: 'build', hidden: false, section: '⚙️ Miscellaneous' }, + { type: 'ci', hidden: false, section: '⚙️ Miscellaneous' }, + { type: 'refactor', hidden: false, section: '⚙️ Miscellaneous' }, + { type: 'test', hidden: false, section: '⚙️ Miscellaneous' }, ], }, }, @@ -44,5 +49,5 @@ module.exports = { ], ], preset: 'conventionalcommits', - branches: [{ name: 'master' }, { name: 'dev', channel: 'beta', prerelease: true }], + branches: [{ name: 'master' }, { name: 'dev', channel: 'beta', prerelease: 'beta' }], }; diff --git a/rollup.config.js b/rollup.config.js index c78c9c1..130f5da 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -49,5 +49,6 @@ export default [ watch: { exclude: 'node_modules/**', }, + context: 'window', }, ]; diff --git a/src/flipdown-timer-card.ts b/src/flipdown-timer-card.ts index 60e8297..3c1c661 100755 --- a/src/flipdown-timer-card.ts +++ b/src/flipdown-timer-card.ts @@ -11,11 +11,12 @@ import { FlipDown } from './library/flipdown.js'; import { styles } from './styles'; /* eslint no-console: 0 */ -console.info( - `%c FLIPDOWN-TIMER-CARD \n%c ${localize('common.version')} ${pjson.version} `, - 'color: orange; font-weight: bold; background: black', - 'color: white; font-weight: bold; background: dimgray', +console.groupCollapsed( + `%c💡 FLIPDOWN-TIMER-CARD ${pjson.version} IS INSTALLED 💡`, + 'color: white; background-color: #CE3226; padding: 2px 5px; font-weight: bold; border-radius: 5px;', ); +console.log('Readme:', 'https://github.com/Lint-Free-Technology/flipdown-timer-card'); +console.groupEnd(); // This puts your card into the UI card picker dialog (window as any).customCards = (window as any).customCards || []; diff --git a/src/styles.ts b/src/styles.ts index 6db7834..6c7518a 100755 --- a/src/styles.ts +++ b/src/styles.ts @@ -270,10 +270,9 @@ export const styles = css` .flipdown .button-group.button-bottom .btn-top, .flipdown .button-group.button-bottom .btn-bottom { overflow: hidden; - width: var( - var(--flipdown-button-width, var(--button-width, 50px)), - calc(var(--flipdown-rotor-width, var(--rotor-width, 50px)) * 2 + 5px) - ); + --flipdown-calculated-button-width: calc(var(--flipdown-rotor-width, var(--rotor-width, 50px)) * 2 + 5px); + --flipdown-styled-button-width: var(--flipdown-button-width, var(--button-width)); + width: var(--flipdown-styled-button-width, var(--flipdown-calculated-button-width)); margin: 0px; height: var(--flipdown-button-height, var(--button-height, 20px)); padding: 0px;