feat: allow users to add a description to the sensitive content warning

- Add contentWarningReason() helper to TagArrayExt and EventExt for reading the reason from existing events
- Add contentWarningDescription state to ShortNotePostViewModel, wired into event building and draft load/save/reset
- Update ContentSensitivityExplainer to accept description state and render an OutlinedTextField for user input
- Pass description state from ShortNotePostScreen to ContentSensitivityExplainer
- Add "Reason (optional)" placeholder string resource

https://claude.ai/code/session_01P2nkYdNiWXiAcfMPTRTVEW
This commit is contained in:
Claude
2026-03-11 16:51:37 +00:00
parent 2312bea10d
commit 2b0518a675
6 changed files with 33 additions and 3 deletions
+1
View File
@@ -962,6 +962,7 @@
<string name="lack_location_permissions">No Location Permissions</string>
<string name="add_sensitive_content_explainer">Adds sensitive content warning before showing your content. This is ideal for any NSFW content or content some people may find offensive or disturbing</string>
<string name="add_sensitive_content_description_placeholder">Reason (optional)</string>
<string name="new_feature_nip17_might_not_be_available_title">New Feature</string>
<string name="new_feature_nip17_might_not_be_available_description">Activating this mode requires Amethyst to send a NIP-17 message (GiftWrapped, Sealed Direct and Group Messages). NIP-17 is new and most clients have not implemented it yet. Make sure the receiver is using a compatible client.</string>