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
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# The gate in front of main. Everything it runs lives once in
# CtrlAltDevelop/ci-workflows, so a fix there fixes all of the packages at
# once — format, analyze --fatal-infos, test, the example, a CHANGELOG entry
# for the pubspec version, and the pub.dev score with no points lost.
# Runs the tests on a pull request into main — and on nothing else.
# The job lives once in CtrlAltDevelop/ci-workflows (dart-test.yml).

name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:

concurrency:
group: ci-${{ github.ref }}
Expand All @@ -19,13 +14,11 @@ concurrency:
permissions: {}

jobs:
package:
name: Package
uses: CtrlAltDevelop/ci-workflows/.github/workflows/dart-package.yml@v1.1.0
test:
name: Test
uses: CtrlAltDevelop/ci-workflows/.github/workflows/dart-test.yml@v1.2.0
permissions:
contents: read
with:
sdk: flutter
# Goldens are rasterised, so they are only stable on the platform that
# recorded them.
runs-on: macos-latest
30 changes: 4 additions & 26 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Publishes the example app to https://ctrlaltdevelop.github.io/ohlcv_chart/
# when a pull request is merged into main.
# Repo Settings → Pages → Source must be "GitHub Actions".

name: Pages

on:
push:
branches: [main]
workflow_dispatch:

concurrency:
group: pages
Expand All @@ -15,32 +15,10 @@ concurrency:
permissions: {}

jobs:
build:
runs-on: ubuntu-latest
pages:
name: Pages
uses: CtrlAltDevelop/ci-workflows/.github/workflows/[email protected]
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Build example for web
working-directory: example
run: flutter build web --release --base-href /ohlcv_chart/
- uses: actions/upload-pages-artifact@v3
with:
path: example/build/web

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
76 changes: 8 additions & 68 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
# Publishes the package to pub.dev when a release is created.
# Publishes the package to pub.dev when a version tag is pushed.
#
# Creating a GitHub release from main tags it, and the tag is what starts this:
# `v3.1.0` publishes version 3.1.0. Nothing is published unless the tag is on
# main, matches the version in pubspec.yaml and has its CHANGELOG entry.
#
# One-off setup on pub.dev (package Admin tab > Automated publishing):
# - enable publishing from GitHub Actions for CtrlAltDevelop/ohlcv_chart
# - tag pattern: v{{version}}
# - require the GitHub Actions environment: pub.dev
# and create an environment named `pub.dev` in the repository settings, with
# a required reviewer if every publish should be approved by hand.
# `v<version>` publishes that version. The checks (tag on main, matches the
# pubspec, has a CHANGELOG entry) and the one-off pub.dev setup live in
# CtrlAltDevelop/ci-workflows (dart-publish.yml).

name: Publish

Expand All @@ -20,64 +13,11 @@ on:
permissions: {}

jobs:
verify:
name: Verify the release
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0

- name: The tag is on main
run: |
if ! git merge-base --is-ancestor "$GITHUB_SHA" origin/main; then
echo "::error::$GITHUB_REF_NAME is not on main; release from main."
exit 1
fi

- name: The tag matches the pubspec version
run: |
version=$(sed -n 's/^version: *//p' pubspec.yaml | tr -d '\r')
if [ "v$version" != "$GITHUB_REF_NAME" ]; then
echo "::error::Tag $GITHUB_REF_NAME does not match pubspec version $version."
exit 1
fi

- name: The CHANGELOG has an entry for it
run: |
version="${GITHUB_REF_NAME#v}"
if ! grep -q "^## $version\b" CHANGELOG.md; then
echo "::error::CHANGELOG.md has no '## $version' entry."
exit 1
fi

publish:
name: Publish to pub.dev
needs: verify
runs-on: ubuntu-latest
environment: pub.dev
name: Publish
uses: CtrlAltDevelop/ci-workflows/.github/workflows/[email protected]
permissions:
contents: read
# Lets pub.dev trust this run without a stored secret.
id-token: write
steps:
- uses: actions/checkout@v7

# Sets up the credentials pub.dev issues to this run; the Flutter
# setup below brings the SDK `flutter pub publish` needs.
- uses: dart-lang/setup-dart@v1

- uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- run: flutter pub get

- name: Dry run
run: flutter pub publish --dry-run

- name: Publish
run: flutter pub publish --force
with:
sdk: flutter
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## 3.3.0 - 2026-11-30

### Added

- `ProgressBars.completeColor` — the fill of a row that has reached its total,
so finished goals read at a glance. A row's own `ProgressItem.color` still
wins. `ProgressItem.isComplete` says whether a row is full.

### Changed

- **Faster repaints.** Rich-text indicator legends and the labels of the
heatmap, calendar, footprint, book heatmap, treemap, pie, radar and series
charts are now laid out once and kept in `TextPainterCache` between frames,
rather than measured again on every repaint. Nothing draws differently.
- The README shows the licence, Dart and Flutter requirements and a live-demo
badge.
- The repository is now licensed under AGPL-3.0 (see `LICENSE`); releases up
to 3.2.1 remain MIT.

## 3.2.1 - 2026-11-23

### Fixed
Expand Down
Loading
Loading