Render ticket messages cleanly for every channel, not just GitHub

オープン
#141 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
markdown, typescript
領域
frontend

調査の方向性

Start in components/tickets/ticket-content.tsx, where the plain-text path lives, and compare it with the GitHub formatted path added in #579. Then check what each channel stores, including lib/circle/client.ts, before choosing a treatment for each one. Done means every channel in the table is checked and noted in the PR, the Discord and Discourse Markdown cases render, Slack syntax is converted, raw HTML is never rendered, and pnpm test and pnpm build pass with new tests in tests/unit/.

索引モデルが issue の本文から書いたものです。

説明

enhancement frontend help wanted

Copied from DeadantCo/answerLoops#131 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/636 — originally opened by @NathanTarbert on 2026-11-20

Problem

#579 made GitHub tickets show formatted text in the "Original Message" card. Tickets from the other channels still go through the plain-text path in components/tickets/ticket-content.tsx, so any formatting the sender used shows up as literal characters. For example, a Discord or Discourse ticket shows raw **bold**, backticks and [label](url), and a Slack ticket shows its own link and mention syntax like <https://example.com|label> and <@​U123>.

Scope

Make every channel's ticket message look clean in the dashboard. The work is mostly checking what each channel actually stores, then picking the right treatment:

Channel What to check Likely treatment
Discord Stores Markdown Use the existing Markdown renderer
Discourse Webhook sends both a raw (Markdown) and a rendered (HTML) body; check which one is stored Markdown renderer if raw Markdown is stored
Slack Stores Slack's own message syntax, which is not Markdown A small converter for links, mentions, channel names, bold, italic and code, then plain text
Telegram Stores the message text without its formatting entities Confirm; likely plain text is already right
Email HTML is converted to plain text on the way in Confirm; likely already right
Google Chat Text plus attachment lines Confirm which formatting Google Chat sends in text
Circle Normalized in lib/circle/client.ts Check what the normalized content looks like
MCP Content comes from the calling agent Decide whether it should be treated as Markdown

Add a short note to the PR listing what each channel stores and which treatment you chose. Keep the existing [Attachment: name] — url handling, keep raw HTML from being rendered, and keep plain-text channels looking as they do today. Dashboard-relative links should not be generated; show them as text.

Done when

  • Each channel in the table has been checked, with what it stores written down in the PR.
  • Discord and Discourse tickets show headings, lists, bold, italic, code and links formatted, not as raw characters.
  • Slack links, mentions and basic formatting show as readable text or links, not as raw <...> syntax.
  • Channels that store plain text look unchanged.
  • Raw HTML in a message is never rendered as HTML, and links open in a new tab with rel="noopener noreferrer".
  • Tests in tests/unit/ cover each channel treatment, and pnpm test and pnpm build pass.

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

主要言語
TypeScript
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DeadantCo/answerLoopsdev のほかの issue

DeadantCo/answerLoopsdev の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。