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
Owner

Promotes development to production. Everything here is already deployed on beta.

What's in it

  • #119 (closes #114): ticket descriptions render as markdown, the same as comments. Underscores inside words (node_network_up) stay literal, in comments too.
  • #121: MCP edit_comment and delete_comment tools. Comment edit and delete now go through CommentService, which both the web UI and MCP use. Deleting a comment reports the replies removed with it.

Known side effect

hwmonDaemon's 154 tickets use a fixed-width box layout, which renders jumbled as markdown until LotusGuild/hwmonDaemon#38 lands:

  • new descriptions as markdown;
  • open tickets refresh on their next report;
  • closed tickets need a one-off DB rewrite.

Merged to prod now at the owner's request, ahead of #38.

After deploy

  • Remove the "not deployed yet" / "coming with the next deploy" wording from the wiki pages Architecture/mcp-servers and Services/service-mcp-servers.
  • Connected Claude Code sessions need /mcp → reconnect to see the new tools.

🤖 Generated with Claude Code

Promotes `development` to production. Everything here is already deployed on beta. ## What's in it - **#119 (closes #114):** ticket descriptions render as markdown, the same as comments. Underscores inside words (`node_network_up`) stay literal, in comments too. - **#121:** MCP `edit_comment` and `delete_comment` tools. Comment edit and delete now go through `CommentService`, which both the web UI and MCP use. Deleting a comment reports the replies removed with it. ## Known side effect hwmonDaemon's 154 tickets use a fixed-width box layout, which renders jumbled as markdown until LotusGuild/hwmonDaemon#38 lands: - new descriptions as markdown; - open tickets refresh on their next report; - closed tickets need a one-off DB rewrite. Merged to prod now at the owner's request, ahead of #38. ## After deploy - Remove the "not deployed yet" / "coming with the next deploy" wording from the wiki pages `Architecture/mcp-servers` and `Services/service-mcp-servers`. - Connected Claude Code sessions need `/mcp` → reconnect to see the new tools. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 5 commits 2026-11-25 17:30:16 -05:00
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
fb2df0ee49
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>
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
bdc6028572
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
450b2fac3b
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>
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
a819b1cb49
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
13ffc51cb7
jared merged commit afe8116bbb into main 2026-11-25 17:30:25 -05:00
Sign in to join this conversation.