Test that the About screen credits every package the app ships
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 76/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- node.js, react-native, typescript
Rechercherichtung
Start with apps/mobile/src/licenses.test.ts and read its current dependency checks, then inspect the package.json files for the @hermit/* packages used by the app and apps/mobile/worklets/wallet/package.json. Add a test that checks each third-party dependency has a matching packages entry in apps/mobile/src/licenses.ts, and update missing entries. Run pnpm --filter @hermit/mobile test; done means the test passes and the README Credits section still matches.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Why
README.md says the About screen credits the open-source projects Hermit is built on, with their licenses, and MIT and Apache-2.0 ask for their notices to ship with the app. Today apps/mobile/src/licenses.test.ts checks only the app's direct dependencies in apps/mobile/package.json. A package that ships through one of Hermit's own packages, or through the wallet worklet, can be missed without a test failing. (#10 added the ones missing today: noble-curves, noble-hashes, the WDK wallet, bare-crypto, bare-node-runtime and bip39.)
What to do
- Test first, in
apps/mobile/src/licenses.test.ts. Collect the third-party dependencies of every@hermit/*package the app depends on (each one'spackages/<name>/package.json), plusapps/mobile/worklets/wallet/package.json. For each, expect an entry inLICENSES(apps/mobile/src/licenses.ts) whosepackagescovers it. Watch it fail for the entries that have nopackageslist yet. - Add the matching
packagesto those entries, for example["@noble/curves"]on noble-curves. - Stretch, and say so in the pull request if you try it: transitive dependencies too, from
pnpm-lock.yamlandapps/mobile/worklets/wallet/package-lock.json. Describe your approach before you write much code.
Done when
- The test fails when a workspace package or the worklet adds a third-party dependency with no line in
licenses.ts, and passes on the default branch. - The Credits section in README.md still matches.
How to check
pnpm --filter @hermit/mobile test
Keep in mind
- Names and SPDX ids aren't translated, so no copy keys change.
- Read package files with
node:fs, as the test does today. No new dependency. - One issue per pull request.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 11
- Forks
- 0
- Ø Merge
- 10 Min.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DojoCodingLabs/hermit
-
docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
DojoCodingLabs/hermit#73 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
DojoCodingLabs/hermit#45 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
DojoCodingLabs/hermit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DojoCodingLabs/hermit#43 ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent-friendly docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
DojoCodingLabs/hermit#39 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in DojoCodingLabs/hermit
Ähnliche Issues
-
bug zoo
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
software-mansion/runntime#151 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 86/100
sidebandstudio/clawtrate#728 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement github_actions help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug tooling
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
endora-commerce/endora-commerce#1978 ·
Maintainer antworten meist innerhalb von 1 Tag