2ff85f8a2bc33f87aa1fdfefce580433afff76e3
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
8e44c2f351 |
gui: the dot on Plugins says what it is, and leads to the plugins with an update
The owner, on the sidebar's dot beside Plugins: no one can tell what it means, and once they click it, they should see which plugins need updating. It meant "a plugin update is waiting", said only in a hover title, and Plugins opened on whatever tab was last open. - Sidebar: under Plugins, Installed reads "1 update" / "N updates" in the dot's colour in place of its count, with a title saying where to update. - Opening Plugins while an update waits lands on Installed. - Installed names the plugins with a newer version in a bar above the list, with Update all beside them (moved there from the footer). Each row still shows its own "vX out" and Update. - Strings in zh, zh-TW, ja and de; the docs (en, zh, ja) say the same. Run: - plugin-updates.test.cjs: chromium and webkit, en zh zh-TW ja de, at 1024 (sidebar) and 600 (tab bar), 22 ok. Also ok in both engines: plugin-git, plugin-update-button, plugin-check-updates, plugin-card-update, plugin-prerelease, nav-sub-unroll, sidebar, builtins, i18n-keys. go test ./internal/gui/ -run 'TestCoreScriptBudget' ok. - Broken by hand, each red: no sidebar label (the 1024 cases), no jump to Installed, no bar (every case). - Looked at in WebKit screenshots, zh at 1024 and de at 600. Full run, with the rest of its series: this series (P5, the Plugins dot, the probe test, P6, and a built-ins-on commit since dropped for main's own |
||
|
|
e9b16ca184 |
gui: a plugin's Update is a button the size of Install, in green, on its card, its row and Update all (#1587, timonwong)
timonwong saw a plugin update announced on Plugins but the button that
brings it hard to find: on a card it was a small chip among the meta
chips ("Update to v0.0.9"), on the Installed row a text link, and Update
all a text link in the footer.
- One updateButton() makes every plugin Update: .pm-act (Install's height,
min width, padding, font and corners) with .pm-up, green-soft with
green text, filled green on hover (the app's own tokens; no stripes).
Its title says the version (or the repo's newer commit for a git one),
and for a community package that magpie updates by itself within the
hour.
- A card's one button is Update in place of Signed in / Installed, as an
app store's Update takes Open's place, and the card's version reads
"v0.0.7 → v0.0.9" then. Sign in, not done yet, and Move keep their
place; the Installed row offers Update then. The plugin's page uses the
same button (actionFor).
- The Installed row's Update and the footer's Update all are the same
green button.
- The class is pm-up, not update: the title bar's app-update pill owns
.update (margin, height 22px), which the first try picked up.
Tests:
- new plugin-update-button.test.cjs: at 520px, Chromium and WebKit, en,
zh, zh-TW, ja, de: the card's Update, the row's Update and Update all
have Install's height, min width, padding, font, corners and margins,
are at least Install's width, have a colour that isn't Install's, fit in
the card, no sideways scroll. On the old plugins.js/css 7/7 fail; with
the class named update the margins check fails.
- plugin-card-update.test.cjs follows the chip to the card's button.
- every plugin*.test.cjs, both engines: 274/274. The
first run caught Update taking Sign in's place on the plugin's page
(plugin-market), fixed by the order above.
JS/CSS only; no Go changed.
|