docs: automation-contract.md omits the NWC wallet and pay identifiers
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 73/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- dart
- Domain
- documentation
Research direction
Start with docs/automation-contract.md and compare its tables with the identifiers in lib/core/automation/automation_ids.dart; check for an existing test that verifies the document against those identifiers. Document the listed IDs and their state labels, then add the Connected wallet (NWC) transitions and timing. Done means the contract covers the connect, payment, and buyer invoice outcomes described in the issue.
Written by the indexing model from the issue text.
Description
Context
docs/automation-contract.md is the contract black-box harnesses (Mortsom) build on. Changing what it lists requires coordinated review. Several identifiers the NWC flows use are defined in lib/core/automation/automation_ids.dart and used by the app, but are not in the document.
What happens
Not documented at main 0293bd44:
| Identifier | Where |
|---|---|
settings.wallet |
settings entry that opens the wallet screen |
wallet.nwc.uri |
connect form URI field |
wallet.nwc.paste |
connect form paste action |
wallet.nwc.connect |
connect button |
wallet.settings.disconnect |
disconnect on the connected wallet screen |
pay.nwc |
"pay with wallet" button on the pay screen in wallet mode |
pay.cancel |
cancel-trade link on the manual pay screen |
The behaviour around them is not documented either, and automation has to discover it:
- The connect form carries
wallet.connectionlabelleddisconnected. It keeps that label while the app waits for the wallet's info event, up to about 10 s. On success the screen pops back to settings rather than relabelling. A harness that reads the label right after tapping connect always seesdisconnected. Mortsom did exactly this until a live run showed it. - With a wallet connected, the seller's pay screen shows
pay.nwcandpay.order_id, and no QR. After a successful payment the app moves to the trade detail. After a failed one it switches to the manual screen, withoutpay.nwcand withpay.invoice.text. - With a wallet connected, the buyer's invoice is requested and submitted the moment the order is taken. The trade then shows
trade.payout=scheduledand offers notrade.addInvoice.
How to fix
Add the identifiers to the tables in docs/automation-contract.md, with their labels where they carry state. Add a short "Connected wallet (NWC)" section that describes the transitions above, including the timing of the connect form and where each outcome lands. If there is a test that checks the doc against automation_ids.dart, extend it to these ids.
- Dominant language
- Dart
- Stars
- 11
- Forks
- 9
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 16
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MostroP2P/app
-
area: ui bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
area: ui bug priority: high
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Bug: Button "Share logs" does nothingPossibly taken @Luquitasjeffrey claimed this 7 days ago. Open
Difficulty 2/5 Half a day Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
area: rust-core bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
Similar issues
-
Python example: list a model's scenes and their camerasPossibly taken @rudraparmar76 claimed this today. Opendocumentation good first issue python
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
iamahsanmehmood/openskp#796 · 1 comment ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Plural rendering: first matching part wins, but gen-l10n lets the last one win (=1 shadows one)Openbug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
crowdin/flutter-sdk#97 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
MrSpideyNihal/lockfeed#16 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
InlitX/GymMane#529 · 1 comment ·
Maintainers usually reply within 1 day