Render ticket messages cleanly for every channel, not just GitHub
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- markdown, typescript
- Domínio
- frontend
Direção de pesquisa
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/.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
@NathanTarberton 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 |
| 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, andpnpm testandpnpm buildpass.
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 0
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DeadantCo/answerLoopsdev
-
Widget: match the chat bubble color to the rest of the widgetTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend help wanted
Dificuldade 2/5 Meio dia Facilidade para iniciantes 75/100
DeadantCo/answerLoopsdev#68 · 3 comentários ·
-
Widget: make the chat window fit on small phonesTalvez já em andamento @sethr07 assumiu hoje. Abertaenhancement frontend good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
DeadantCo/answerLoopsdev#67 · 9 comentários ·
-
Add 'select all' option to Slack channel picker in SettingsTalvez já em andamento @sethr07 assumiu hoje. Abertafrontend good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DeadantCo/answerLoopsdev#22 · 5 comentários ·
-
backend enhancement frontend help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
DeadantCo/answerLoopsdev#140 ·
-
backend enhancement frontend help wanted notifications
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 42/100
DeadantCo/answerLoopsdev#139 ·
Todas as issues de DeadantCo/answerLoopsdev
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verificationTalvez já em andamento @roboclaw-bot assumiu hoje. Abertaclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
openclaw/openclaw#204323 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
virtue-initiative/virtue-initiative#953 ·
Mantenedores costumam responder em até 1 dia
-
needs-area-label
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
fumicode/bublys-org#261 ·
Mantenedores costumam responder em até 12 dias