Files
plugins/packages/day-card/package.json
T
yetone f8a52a2477 day-card 0.2.1: the blur and dim sliders stay put while a slider is dragged (#957)
paintPicker called pop.classList.toggle("photo", B.meta(bg.bg).photo).
A pattern's photo was undefined, not false, and toggle(name, undefined)
flips the class. So each input event of the margin or blur slider hid
or showed the blur and dim sliders in turn. The reporter saw both
states with the teal backdrop picked.

Every backdrop's photo is now a boolean, and the toggle asks for
=== true.

Run, on mote:
- bun test packages/day-card: 15 pass. bun scripts/check.mjs: exit 0.
- A Playwright repro (not committed) loads the page with a stub bridge,
  picks teal, fires input on the margin slider four times, then picks
  alpine and drags blur, then goes back to teal. In Chromium and WebKit
  the old page shows blur as false,true,false,true,false. The new page
  keeps it hidden on teal and shown on alpine on every tick.

Broken by hand: with backgrounds.js from main, the new test goes red
(1 of 15).

Not tried: in magpie's own window on Windows, where the reporter is.

Reported-by: lbjxr
2026-11-11 10:10:36 +08:00

20 lines
870 B
JSON

{
"name": "@magpie-community/page-day-card",
"version": "0.2.1",
"description": "A page in magpie's window that draws a day of your AI usage as a card: tokens, cost, each agent and its models, your streak and your average day. Copy it as a picture or save it as a PNG",
"files": ["page", "README.md"],
"keywords": ["magpie", "magpie-page", "usage", "tokens", "cost", "card"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/day-card" },
"engines": { "magpie": ">=0.1.3427" },
"magpie": {
"page": {
"title": "Day card",
"titles": { "zh": "每日用量卡", "zh-TW": "每日用量卡", "ja": "1日の使用量カード", "de": "Tageskarte" },
"file": "page/index.html",
"icon": "page/icon.svg"
},
"permissions": ["usage:day"]
}
}