From 87fda50d3ac8a610544ebe22c73bbd5a4f7a64c7 Mon Sep 17 00:00:00 2001 From: Martin Donadieu Date: Thu, 21 May 2026 23:28:58 +0200 Subject: [PATCH 1/2] docs add widget screenshots --- README.md | 29 ++++++++++++ docs/screenshots/android-app-widget.svg | 37 ++++++++++++++++ docs/screenshots/dynamic-island-widget.svg | 37 ++++++++++++++++ docs/screenshots/home-screen-widget.svg | 44 +++++++++++++++++++ .../screenshots/lock-screen-live-activity.svg | 36 +++++++++++++++ 5 files changed, 183 insertions(+) create mode 100644 docs/screenshots/android-app-widget.svg create mode 100644 docs/screenshots/dynamic-island-widget.svg create mode 100644 docs/screenshots/home-screen-widget.svg create mode 100644 docs/screenshots/lock-screen-live-activity.svg diff --git a/README.md b/README.md index cd00b37..dad362e 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,35 @@ Create Home Screen WidgetKit, ActivityKit, and Android widget experiences from C Demo of capacitor-widget-kit in action +## Widget Screenshots + + + + + + + + + + +
+ iOS Home Screen / SpringBoard widget screenshot +
+ iOS Home Screen / SpringBoard +
+ iOS Lock Screen Live Activity widget screenshot +
+ iOS Lock Screen / Live Activity +
+ iOS Dynamic Island widget screenshot +
+ iOS Dynamic Island +
+ Android AppWidget screenshot +
+ Android AppWidget +
+ The plugin has two implementation paths: - SVG template widgets: store Home Screen, Lock Screen, Dynamic Island, and Android layouts with optional named frames, hotspots, declarative state patches, pause/resume timers, and interaction events. Use this when your widget can be driven by resolved SVG output. diff --git a/docs/screenshots/android-app-widget.svg b/docs/screenshots/android-app-widget.svg new file mode 100644 index 0000000..9558080 --- /dev/null +++ b/docs/screenshots/android-app-widget.svg @@ -0,0 +1,37 @@ + + Android AppWidget screenshot + An Android launcher screen with a Capgo workout AppWidget rendered from an SVG template. + + + + + + + + + + + + + + + 9:41 + + + + + + + + + + + Workout widget + Bench Press + Next: incline press + 01:12 + + OK + + Android AppWidget + diff --git a/docs/screenshots/dynamic-island-widget.svg b/docs/screenshots/dynamic-island-widget.svg new file mode 100644 index 0000000..da03061 --- /dev/null +++ b/docs/screenshots/dynamic-island-widget.svg @@ -0,0 +1,37 @@ + + iOS Dynamic Island widget screenshot + An iPhone with an expanded Dynamic Island template showing workout progress and action buttons. + + + + + + + + + + + + + + + + + + + Live + Bench Press + Set 3 active + 01:12 + + DONE + + + + + + + + + Dynamic Island + diff --git a/docs/screenshots/home-screen-widget.svg b/docs/screenshots/home-screen-widget.svg new file mode 100644 index 0000000..b84ff1b --- /dev/null +++ b/docs/screenshots/home-screen-widget.svg @@ -0,0 +1,44 @@ + + iOS Home Screen widget screenshot + An iPhone Home Screen with a Capgo workout widget rendered from an SVG template. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Chest Day + Bench Press + 4 x 8 at 185 lb + 01:12 rest + + OK + + + Home Screen / SpringBoard + diff --git a/docs/screenshots/lock-screen-live-activity.svg b/docs/screenshots/lock-screen-live-activity.svg new file mode 100644 index 0000000..f32d672 --- /dev/null +++ b/docs/screenshots/lock-screen-live-activity.svg @@ -0,0 +1,36 @@ + + iOS Lock Screen Live Activity screenshot + An iPhone Lock Screen with a Capgo Live Activity banner rendered from an SVG template. + + + + + + + + + + + + + + + 9:41 + Thursday, May 21 + + + + + + + + Chest Day + Bench Press + Set 3 of 4 + 01:12 + + OK + + + Lock Screen / Live Activity + From dba084ead240d57cb78020d7711cbf6c23eb1e9f Mon Sep 17 00:00:00 2001 From: Martin Donadieu Date: Sun, 24 May 2026 12:00:05 +0200 Subject: [PATCH 2/2] chore: sync local updates --- .github/workflows/pr_beta_prompt.yml | 4 ++-- .github/workflows/pr_beta_publish.yml | 15 ++++++++------- src/helpers/workout.ts | 2 -- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr_beta_prompt.yml b/.github/workflows/pr_beta_prompt.yml index 4cfb089..ff34d3b 100644 --- a/.github/workflows/pr_beta_prompt.yml +++ b/.github/workflows/pr_beta_prompt.yml @@ -18,11 +18,11 @@ jobs: timeout-minutes: 10 steps: - name: Setup Node.js - uses: actions/setup-node@v6 + uses: actions/setup-node@v6.4.0 with: node-version: 24.x - name: Upsert beta publish comment - uses: actions/github-script@v8 + uses: actions/github-script@v9.0.0 env: IS_SAME_REPO: ${{ github.event.pull_request.head.repo.full_name == github.repository && 'true' || 'false' }} with: diff --git a/.github/workflows/pr_beta_publish.yml b/.github/workflows/pr_beta_publish.yml index e346c2f..70259b5 100644 --- a/.github/workflows/pr_beta_publish.yml +++ b/.github/workflows/pr_beta_publish.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Resolve PR and access checks id: pr - uses: actions/github-script@v8 + uses: actions/github-script@v9.0.0 with: script: | const prNumber = context.eventName === 'workflow_dispatch' @@ -107,7 +107,7 @@ jobs: core.setOutput('head_sha', pr.head.sha); - name: Mark publish as running - uses: actions/github-script@v8 + uses: actions/github-script@v9.0.0 with: script: | const marker = ''; @@ -154,13 +154,14 @@ jobs: }); - name: Check out PR head - uses: actions/checkout@v6 + uses: actions/checkout@v6.0.2 with: ref: ${{ steps.pr.outputs.head_sha }} fetch-depth: 0 filter: blob:none + persist-credentials: false - - uses: oven-sh/setup-bun@v2 + - uses: oven-sh/setup-bun@v2.2.0 - name: Install dependencies run: bun i @@ -194,7 +195,7 @@ jobs: run: bun run build - name: Setup Node.js for npm publish - uses: actions/setup-node@v6 + uses: actions/setup-node@v6.4.0 with: node-version: 24.x registry-url: 'https://registry.npmjs.org' @@ -211,7 +212,7 @@ jobs: - name: Publish success comment if: ${{ success() }} - uses: actions/github-script@v8 + uses: actions/github-script@v9.0.0 with: script: | const marker = ''; @@ -272,7 +273,7 @@ jobs: - name: Publish failure comment if: ${{ failure() && steps.pr.outputs.pr_number != '' }} - uses: actions/github-script@v8 + uses: actions/github-script@v9.0.0 with: script: | const marker = ''; diff --git a/src/helpers/workout.ts b/src/helpers/workout.ts index d0a2355..69eff2b 100644 --- a/src/helpers/workout.ts +++ b/src/helpers/workout.ts @@ -143,7 +143,6 @@ export function createWorkoutTemplateActivity(session: WorkoutTemplateSession): svg: ` - {{state.session.title}} {{state.currentExercise.title}} {{state.currentExercise.subtitle}} @@ -171,7 +170,6 @@ export function createWorkoutTemplateActivity(session: WorkoutTemplateSession): svg: ` - {{state.session.title}} {{state.currentExercise.title}} {{state.currentExercise.subtitle}}