The owner asked for an elegant sponsor button at the right of the Add
sheet's Partners heading (在右边加上一个优雅精致的我要赞助的按钮). It is a
quiet pill with an accent heart outline: 我要赞助 / 我要贊助 /
スポンサーになる / Sponsor werden. Hover changes colour and border with
`ease`, gated to a fine pointer, and :active scales to .97.
A click opens the same mail usemagpie.ai's "Become a sponsor" writes
(mailto:yetoneful@gmail.com?subject=Sponsoring%20magpie). /api/open lets
through that one exact link (sponsorMail), not mailto: at large. Web mode
sets location to it.
The heading and the button share a .kind-row. The heading keeps its own
box, so the Partners shine still wraps only the words. The shine test now
finds the tiles after that row.
Run on mica (mote was at load 33-57):
- node --test add-sponsor-me, add-partners-shine, add-sheet: Chromium and
WebKit, en/zh/ja/de at 900 and 440px. The new file and the shine file
are green.
- add-sheet chromium is red 1 of 3 with "Cannot read properties of null
(reading 'serverPin')". It is red 1 of 3 on untouched origin/main
f0571d7da too, and is filed as #6216.
- i18n-keys and i18n-en-no-cjk pass.
- go test ./internal/gui -run 'Budget|Sponsor|LoginNeeds' passes
(TestCoreScriptBudget included).
- go vet ./internal/gui passes on darwin, on GOOS=windows, and on
GOOS=linux with -tags nogui. gofmt -l is empty.
- Screenshots: zh light and dark at 900, en and de at 440, at rest and
on hover.
Broken by hand, on mica at the rebased head (1f9d2c36c):
- With the allow taken out of /api/open and the constant changed,
TestSponsorMailOpensThatAddressOnly goes red. It reports that the link
opened nothing and that app.js doesn't name the link.
- Its cases also check that another address, a changed subject, an
appended body and MAILTO in capitals stay closed.
- At the rebased head, go test -run 'Budget|Sponsor|LoginNeeds' passes
again.
Not run: the whole GUI suite. mica was running another session's suite
and mote was over its cores. Not tried in the real Wails app: whether
the system's mail client opens.