Persistent text, records and messaging¶
The common UI rules cover responsive editing and stable selection. Add a durable record model when text must survive closing the app. A conversation/message model is needed only for a communications app.
Persistence and identity¶
Use stable record IDs, bound total bytes/records and make the real state owner responsible for committed saves/deletions. Keep draft-only, pinned and cleared records reachable independently of received content. Do not use vector positions as identities across callbacks or configuration changes.
Define RAM-only versus disk history, what re-enabling storage saves, and deletion semantics. Metadata such as record/contact identifiers and pins can be sensitive even without message text. Test raw persisted rows after opt-out/restart. Private permissions are not encryption and logical deletion does not erase every flash, WAL or backup copy. See security.
Transport-specific results¶
Define each transport stage honestly: queued, accepted by a local API, transmitted, acknowledged by a relay/recipient, failed or unknown. A transport ACK is not a read receipt. Match replies to a stable message and a particular attempt; ignore stale ACKs and validate their source. Preserve confirmed results through reconnects. Never automatically replay an uncertain or failed send after restart.
For Mesh, changing channel keys/names can change a routing identity. Archive the old context instead of silently sending its drafts to a replacement channel. A DM draft belongs to both its peer and selected channel. Those rules must be adapted explicitly for a different transport rather than inheriting LoRa fields.
Search behavior¶
When search is offered, define which names, content and drafts it covers and how capitalization is handled. Test a match in an older saved item, a draft-only record, mixed capitalization and clearing the filter. Keep the search/display normalization separate from stored text and stable record IDs.
ASCII-only case matching is not full Unicode case folding. State that limit rather than claiming every language is handled; if broader matching is needed, choose an appropriate Unicode implementation and test accented text and supported scripts. Mesh 0.1.15 deliberately ignores English-letter capitalization while other characters still match exactly. Other applications should decide their own language requirements.
Acceptance checks¶
Cover interrupted saves/sends, delayed and wrong-source replies, retries, reconnect snapshots, cap reductions, multiple clients and storage re-enable with existing RAM drafts followed by immediate restart. Check quiet hours across midnight only if notifications exist. Detailed Mesh lessons retain the concrete failure cases and acknowledgment distinctions.