be able to add comments to issues #4

Closed
opened 2026-07-31 07:21:04 +00:00 by hugo · 1 comment
Owner

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.

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.
hugo added this to the first feature complete release milestone 2026-07-31 07:21:07 +00:00
hugo added the enhancement label 2026-07-31 07:21:11 +00:00
Author
Owner

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.

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.
hugo closed this issue 2026-07-31 13:17:36 +00:00
Sign in to join this conversation.