@supersuit/suggest-a-change 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/client/context.js +1 -1
- package/package.json +1 -1
- package/src/client/context.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.2 (2026-10-26)
|
|
4
|
+
|
|
5
|
+
- The pixel ratio in a report's context is rounded to two places (it read `1.600000023841858x` on a real Mac).
|
|
6
|
+
|
|
3
7
|
## 0.2.1 (2026-10-26)
|
|
4
8
|
|
|
5
9
|
- **The sheet says when a relay opens the issue.** `Destination` takes `via: 'direct' | 'relay'` and `relayApp` (the relay's app name as people see it). With `via: 'relay'`, `destinationWords` says "Opened by the Supersuit Suggestions app on GitHub, which says it came from <name>." instead of naming a GitHub account that does not open it ("Filed from <account>'s GitHub account."); without a name it says "came from you", without an app name "a suggestions app". The Helm is the first user: its own Mac's account usually cannot push to the repo, so Supersuit files through the relay.
|
package/dist/client/context.js
CHANGED
|
@@ -239,7 +239,7 @@ export async function collectContext(o = {}) {
|
|
|
239
239
|
add('device', 'Your device', await deviceWords(o.userAgent), 'so the fixer can try it on the same kind of device and browser');
|
|
240
240
|
if (typeof window !== 'undefined') {
|
|
241
241
|
const s = typeof screen === 'undefined' ? null : screen;
|
|
242
|
-
add('screen', 'Screen and window', `${s ? `${s.width}x${s.height} screen, ` : ''}${window.innerWidth}x${window.innerHeight} window, ${window.devicePixelRatio || 1}x pixels`, 'how things are laid out depends on the size of the screen and window');
|
|
242
|
+
add('screen', 'Screen and window', `${s ? `${s.width}x${s.height} screen, ` : ''}${window.innerWidth}x${window.innerHeight} window, ${Math.round((window.devicePixelRatio || 1) * 100) / 100}x pixels`, 'how things are laid out depends on the size of the screen and window');
|
|
243
243
|
const look = [media('(prefers-color-scheme: dark)') ? 'dark mode' : 'light mode', ...(media('(prefers-reduced-motion: reduce)') ? ['reduced motion'] : [])];
|
|
244
244
|
add('appearance', 'Appearance', look.join(', '), 'some problems only show in dark mode or with animations turned down');
|
|
245
245
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersuit/suggest-a-change",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The report format and flow behind a Suggest a change button: what a report is, who acts at each step, the screens, and the check every app runs. The contract has zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/client/context.ts
CHANGED
|
@@ -211,7 +211,7 @@ export async function collectContext(o: CollectOptions = {}): Promise<ReportCont
|
|
|
211
211
|
add('device', 'Your device', await deviceWords(o.userAgent), 'so the fixer can try it on the same kind of device and browser')
|
|
212
212
|
if (typeof window !== 'undefined') {
|
|
213
213
|
const s = typeof screen === 'undefined' ? null : screen
|
|
214
|
-
add('screen', 'Screen and window', `${s ? `${s.width}x${s.height} screen, ` : ''}${window.innerWidth}x${window.innerHeight} window, ${window.devicePixelRatio || 1}x pixels`, 'how things are laid out depends on the size of the screen and window')
|
|
214
|
+
add('screen', 'Screen and window', `${s ? `${s.width}x${s.height} screen, ` : ''}${window.innerWidth}x${window.innerHeight} window, ${Math.round((window.devicePixelRatio || 1) * 100) / 100}x pixels`, 'how things are laid out depends on the size of the screen and window')
|
|
215
215
|
const look = [media('(prefers-color-scheme: dark)') ? 'dark mode' : 'light mode', ...(media('(prefers-reduced-motion: reduce)') ? ['reduced motion'] : [])]
|
|
216
216
|
add('appearance', 'Appearance', look.join(', '), 'some problems only show in dark mode or with animations turned down')
|
|
217
217
|
}
|