be able to add comments to issues #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue details should have an icon to add comments to issues and also a way to edit your own comments from the issue details via a button related to those comments. I want to be able to work on comments and bring them in. Comments should support markdown formatting and the edit screen should have syntax coloring for markdown. no wysiwyg editing, but the editor for comments should be able to switch between editing or showing a preview of the comment.
Implemented in
da0a3ae. Added complete native issue-comment creation and editing: an accessible plus-bubble action on Issue details, per-comment Edit controls only for comments owned by the signed-in account, a Dynamic Type-safe scrollable Markdown composer with syntax-highlighted Write and rendered Preview modes, disabled empty Save, native loading/error handling, cancellation, and detail refresh after persistence. Rust owns validation, Gitea create/edit calls, authenticated ownership checks, and selected-issue scoping; UniFFI records expose comment IDs and editability. Updated TESTING.md.Verified in isolation with cargo fmt --all -- --check; RUSTFLAGS="-D warnings" cargo check --workspace --all-targets; cargo clippy --workspace --all-targets -- -D warnings; cargo test --workspace (22 tests); xcodegen and a signed arm64 iPhone 17 Pro simulator build. In the simulator, created this Markdown comment through Add Comment, confirmed syntax coloring and rendered heading/list/code preview, saved and saw the detail refresh, edited it through its owned-comment button, saved and reloaded the persisted change, confirmed Save is disabled while empty, and confirmed Cancel discards changes. A final ownership-scoped save passed after the completeness review.