@ham2k/extension-sdk 0.12.8 → 0.12.9
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/dist/activityScoring.js +3 -1
- package/dist/index.d.ts +1 -1
- package/docs/hooks.md +1 -0
- package/docs/settings.md +16 -0
- package/package.json +1 -1
package/dist/activityScoring.js
CHANGED
|
@@ -128,8 +128,10 @@ function activityScorer(rules) {
|
|
|
128
128
|
const isDupe = verdict === "duplicate";
|
|
129
129
|
const freshRefOnly = verdict === "ref" && !freshRefRescuesActivation;
|
|
130
130
|
const activationCredit = freshRefOnly ? 0 : activationValue;
|
|
131
|
+
const hasStake = activationValue + huntingValue > 0;
|
|
131
132
|
const score = { value: isDupe ? 0 : activationCredit + huntingValue };
|
|
132
|
-
if (
|
|
133
|
+
if (!hasStake) {
|
|
134
|
+
} else if (isDupe) {
|
|
133
135
|
score.dupe = true;
|
|
134
136
|
score.alerts = ["duplicate"];
|
|
135
137
|
} else if (verdict) {
|
package/dist/index.d.ts
CHANGED
package/docs/hooks.md
CHANGED
|
@@ -2239,6 +2239,7 @@ Consequences worth knowing:
|
|
|
2239
2239
|
|
|
2240
2240
|
| Category | Role | Notes |
|
|
2241
2241
|
|---|---|---|
|
|
2242
|
+
| `chasing` | what each contact counts toward a program's checklist (claims) | [claims.md](https://github.com/ham2k/halo/blob/main/docs/design/claims.md) |
|
|
2242
2243
|
| `confirmation` | QSL/confirmation sources (spot-history cross-checking) | |
|
|
2243
2244
|
| `opSetting` | per-operation settings contributions | |
|
|
2244
2245
|
|
package/docs/settings.md
CHANGED
|
@@ -346,6 +346,12 @@ override) without it cluttering the panel for regular users:
|
|
|
346
346
|
{ type: "field", fieldType: "text", key: "apiEndpointOverride", label: "API Endpoint Override", devMode: true }
|
|
347
347
|
```
|
|
348
348
|
|
|
349
|
+
A panel with nothing to show at the current developer-mode setting is left
|
|
350
|
+
out of the Settings screen's list of categories rather than shown as an empty
|
|
351
|
+
heading, so a panel whose every field is `devMode` appears there only while
|
|
352
|
+
developer mode is on. Its sidebar entry is not: give such a panel
|
|
353
|
+
`sidebar: false`, or the entry opens on an empty page.
|
|
354
|
+
|
|
349
355
|
## `aliases`: short names for the SET command
|
|
350
356
|
|
|
351
357
|
The `SET`, `SHOW` and `HIDE` commands search every declared setting by key,
|
|
@@ -435,6 +441,16 @@ one dialog.
|
|
|
435
441
|
value: false, target: "logging" }
|
|
436
442
|
```
|
|
437
443
|
|
|
444
|
+
The Developer settings panel is another: its "Extension Settings" section
|
|
445
|
+
collects every field tagged `target: 'developer'` — the place for a switch
|
|
446
|
+
only someone working on the extension or its service needs, such as POTA's
|
|
447
|
+
"use the test servers". The section shows only once some field targets it.
|
|
448
|
+
Pair the target with `devMode: true` so the field's home panel hides it too
|
|
449
|
+
(see "`devMode` fields" above), and with `sidebar: false` when that is the
|
|
450
|
+
panel's only field. The section is extension API 8: a bundle relying on it
|
|
451
|
+
declares `"api": 8`, so an older app — which would list the panel as an empty
|
|
452
|
+
heading — is never offered it.
|
|
453
|
+
|
|
438
454
|
`target` is a single target key, or an array when the same field should
|
|
439
455
|
surface under more than one. A `'<target>-extended'` target (e.g.
|
|
440
456
|
`'logging-extended'`) is the same idea, but starts hidden behind that
|