Skip to content

feat(widgets): native templates, Style option, thumbnails, stale label (R14-B) - #87

Merged
jiunbae merged 3 commits into
mainfrom
feat/r14b-widget-templates
Oct 4, 2026
Merged

jiunbae merged 3 commits into
mainfrom
feat/r14b-widget-templates

Conversation

@jiunbae

@jiunbae jiunbae commented Oct 4, 2026

Copy link
Copy Markdown
Member

R14-B: desktop widgets drawn in native templates instead of a shrunk copy of the popup.

What changes

  • Summaries (Core): each shared item is boiled down to title, value, fraction, tone, detail, status, and metrics (SharedShelfSummary.swift, 7 tests).
  • Templates (extension): Big Number, Meters (rings in small), List (group headings and detail in large), and Grid (thumbnails). The automatic choice is grid if items have files, meters if each item is one reading, list otherwise; small turns a list into one big number.
  • Style option in Edit Widget: Automatic / Big Number / Meters / List / Grid, with Korean strings.
  • Thumbnails: BarShelf exports 128 pt PNGs (at most 12 per widget) into images/<widget>/ in the App Group and removes unused ones. Cloud placeholders fall back to the file icon. Local paths are never shared.
  • Staleness: the header shows an orange clock and relative time only after staleAfter (2× the refresh interval or the manifest's staleAfterSec, at least 30 min). The timeline adds an entry at that moment, so this needs no reload. The small size shows the clock only.
  • Docs: GETTING-STARTED desktop widget section.

Checked

  • swift test: 566 tests, 0 failures. Both extension schemes build.
  • Rendered with BarShelfWidgetsPreview against real shared data (aas, System, Sensors, Codex Reset, Stashbar files).
  • Signed Developer ID build installed on june-mba. Snapshots carry summary/staleAfter, and thumbnails land in the group container.

🤖 Generated with Claude Code

jiunbae and others added 3 commits October 4, 2026 17:26
Each shared item is boiled down to a summary (title, value, fraction,
tone, detail) and the extension lays it out in one of four templates —
Big Number, Meters, List, Grid — chosen automatically or by the new
Style option. File widgets share small thumbnails through the App
Group, pruned when unused. The header shows how old a reading is only
once it is stale.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…hour at least

Quick Look has no preview for cloud placeholders, so ask for any
representation and get the file icon instead of a blank tile. A short
manifest staleAfterSec no longer marks a desktop widget old all the
time, and the small size shows the stale clock without the time.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jiunbae
jiunbae merged commit d796b23 into main Oct 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant