Release: markdown descriptions (#114) and MCP comment edit/delete (#121) #122

Merged
jared merged 5 commits from development into main 2026-11-25 17:30:25 -05:00
5 Commits
Author SHA1 Message Date
jared 13ffc51cb7 Merge pull request 'MCP: edit_comment and delete_comment tools' (#121) from mcp-comment-edit-delete into development
Lint / JS (eslint) (push) Successful in 17s
Lint / PHP (phpcs PSR-12) (push) Successful in 42s
Lint / PHP requirements (version + extensions) (push) Successful in 41s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Successful in 8s
Lint / PHP (phpcs PSR-12) (pull_request) Successful in 35s
Lint / JS (eslint) (pull_request) Successful in 12s
Security / PHP Security (semgrep) (push) Successful in 1m48s
Lint / PHP requirements (version + extensions) (pull_request) Successful in 44s
Lint / Deploy (pull_request) Skipped
Lint / Notify on failure (pull_request) Skipped
Security / PHP Security (semgrep) (pull_request) Successful in 1m51s
2026-11-25 17:27:41 -05:00
jaredandClaude Opus 5.5 a819b1cb49 MCP get_ticket: say which tools take a comment_id
Lint / PHP (phpcs PSR-12) (push) Successful in 35s
Lint / JS (eslint) (push) Successful in 12s
Lint / PHP requirements (version + extensions) (push) Successful in 33s
Lint / Deploy (push) Skipped
Lint / Notify on failure (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 12s
Lint / PHP (phpcs PSR-12) (pull_request) Successful in 29s
Lint / PHP requirements (version + extensions) (pull_request) Successful in 35s
Lint / Deploy (pull_request) Skipped
Lint / Notify on failure (pull_request) Skipped
Security / PHP Security (semgrep) (push) Successful in 2m18s
Security / PHP Security (semgrep) (pull_request) Successful in 2m4s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:22:59 -05:00
jaredandClaude Opus 5.5 450b2fac3b MCP: edit_comment and delete_comment tools
Lint / JS (eslint) (push) Successful in 14s
Lint / PHP (phpcs PSR-12) (push) Successful in 35s
Lint / PHP requirements (version + extensions) (push) Successful in 34s
Lint / Deploy (push) Skipped
Lint / Notify on failure (push) Skipped
Lint / PHP (phpcs PSR-12) (pull_request) Successful in 1m0s
Security / PHP Security (semgrep) (push) Successful in 2m44s
Lint / PHP requirements (version + extensions) (pull_request) Successful in 1m9s
Lint / JS (eslint) (pull_request) Successful in 14s
Lint / Deploy (pull_request) Skipped
Lint / Notify on failure (pull_request) Skipped
Security / PHP Security (semgrep) (pull_request) Successful in 1m44s
Two new tickets:write tools, on the same code path as the web UI's comment
edit/delete. The access check, owner-or-admin rule and audit entry moved
out of api/update_comment.php and api/delete_comment.php into
CommentService::updateComment/deleteComment (as add_comment did in #111),
and both endpoints now call it; their responses and status codes are
unchanged apart from extra ticket_id/replies_removed fields.

- edit_comment: replace a comment's text (own comments; admins any).
- delete_comment: delete a comment; replies go with it
  (fk_parent_comment ON DELETE CASCADE), so the result and the audit
  entry report replies_removed.
- A comment on a ticket the user can't see reads as "Comment N not
  found", like a missing one, so restricted tickets stay hidden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:19:54 -05:00
jared bdc6028572 Merge pull request 'Render ticket descriptions as markdown (#114)' (#119) from fix-114-description-markdown into development
Lint / JS (eslint) (push) Successful in 14s
Lint / PHP (phpcs PSR-12) (push) Successful in 31s
Lint / PHP requirements (version + extensions) (push) Successful in 36s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Successful in 3s
Security / PHP Security (semgrep) (push) Successful in 2m33s
2026-11-23 18:40:38 -05:00
jaredandClaude Opus 5.5 fb2df0ee49 Render ticket descriptions as markdown (#114)
Lint / JS (eslint) (push) Successful in 17s
Lint / PHP requirements (version + extensions) (push) Successful in 39s
Lint / JS (eslint) (pull_request) Successful in 33s
Lint / PHP (phpcs PSR-12) (pull_request) Successful in 1m3s
Lint / PHP requirements (version + extensions) (pull_request) Successful in 58s
Lint / Deploy (pull_request) Skipped
Lint / Notify on failure (pull_request) Skipped
Security / PHP Security (semgrep) (push) Successful in 2m52s
Security / PHP Security (semgrep) (pull_request) Successful in 3m2s
Lint / PHP (phpcs PSR-12) (push) Successful in 48s
Lint / Deploy (push) Skipped
Lint / Notify on failure (push) Skipped
The ticket page escaped descriptions to plain text, so headings, lists,
tables, bold and code from Gandalf, MCP and manual tickets showed raw.
renderDescriptionView() now uses parseMarkdown(), the same sanitising
parser as comments, and the view drops pre-wrap for normal white space
like markdown comments do. The edit view still shows the raw source.

The parser also no longer treats underscores inside words as emphasis,
so identifiers like node_network_up stay literal (in comments too).

hwmonDaemon's fixed-width box layout loses its alignment as markdown;
LotusGuild/hwmonDaemon#38 switches it to markdown and converts its past
tickets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 01:02:02 -05:00