Skip to content

fix(comments): render text + attachment together; show [[Name]] as 'via Altair · Name'#521

Open
KossaiSbai wants to merge 8 commits intoPeppermint-Lab:mainfrom
S7-Lab-Health:feat/altair-customizations
Open

fix(comments): render text + attachment together; show [[Name]] as 'via Altair · Name'#521
KossaiSbai wants to merge 8 commits intoPeppermint-Lab:mainfrom
S7-Lab-Health:feat/altair-customizations

Conversation

@KossaiSbai
Copy link
Copy Markdown

Summary

  • CommentContent extracts the [[Name]]\n prefix and renders it as via Altair · Jane Admin — admins still see who posted
  • Text before the attachment line is now rendered above the image (was dropped entirely before)
  • Attribution label applies to all comment types: plain text, bold, debug context, and attachment

Before / After

Before: [[Jane Admin]]\nfejofjqefqfjepjef\n\n📎 Attachment: [img.png](url) → only the image, no text, raw [[Jane Admin]] shown in other comments.

After: via Altair · Jane Admin label → text → image thumbnail, for all comment types.

Test plan

  • Reply with text + attachment → shows attribution label, text, then image
  • Reply with attachment only → attribution label + image (no empty text block)
  • Reply with text only → attribution label + text
  • Old comments without [[Name]] prefix render unchanged

🤖 Generated with Claude Code

KossaiSbai and others added 6 commits April 14, 2026 03:52
- Switch storage controller from fastify-multer to @fastify/multipart
  (fixes 415 Unsupported Media Type on file upload)
- Add file serving endpoint GET /api/v1/storage/ticket/:id/file/:fileId
- CommentContent component renders attachment links as clickable
  image previews and markdown bold text
- GitHub Actions workflow builds and pushes to acraltairprod.azurecr.io
- Fire ALTAIR_COMMENT_WEBHOOK_URL on comment creation and status changes
  so BFF can email ticket submitters via Azure Communication Services
- Add HMAC signature (ALTAIR_WEBHOOK_SECRET) on all outbound webhooks
- Fix Peppermint UI scrollability (shad.tsx layout)
- Add CI workflow: TypeScript build check on PRs and main
- Update deploy workflow: SHA-pinned actions, split build/deploy jobs,
  update ACA Container App via az containerapp update after image push

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
apps/client has react-spinners@0.11.0 which requires react@^16/17 but
the workspace uses react@18. The CI job runs from apps/api working-directory
but npm resolves deps at the workspace root, hitting the conflict.
--legacy-peer-deps bypasses the peer dep check without changing package behavior.
* feat: fix file upload, add image preview in comments, CI/CD to ACR

- Switch storage controller from fastify-multer to @fastify/multipart
  (fixes 415 Unsupported Media Type on file upload)
- Add file serving endpoint GET /api/v1/storage/ticket/:id/file/:fileId
- CommentContent component renders attachment links as clickable
  image previews and markdown bold text
- GitHub Actions workflow builds and pushes to acraltairprod.azurecr.io

* feat: Altair customizations — webhooks, scrollability, CI/CD

- Fire ALTAIR_COMMENT_WEBHOOK_URL on comment creation and status changes
  so BFF can email ticket submitters via Azure Communication Services
- Add HMAC signature (ALTAIR_WEBHOOK_SECRET) on all outbound webhooks
- Fix Peppermint UI scrollability (shad.tsx layout)
- Add CI workflow: TypeScript build check on PRs and main
- Update deploy workflow: SHA-pinned actions, split build/deploy jobs,
  update ACA Container App via az containerapp update after image push

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(ci): add --legacy-peer-deps to npm install

apps/client has react-spinners@0.11.0 which requires react@^16/17 but
the workspace uses react@18. The CI job runs from apps/api working-directory
but npm resolves deps at the workspace root, hitting the conflict.
--legacy-peer-deps bypasses the peer dep check without changing package behavior.

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…ion prefix

- CommentContent now extracts text before the attachment line and renders it above the image/link
- Strip [[Name]]\n prefix from comment text before rendering so admins don't see raw attribution tags

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…me]] as 'via Altair · Name'

- CommentContent now extracts [[Name]]\n prefix and renders it as a small
  'via Altair · Name' label so admins can see which Altair user posted
- Text before the attachment line is rendered above the image (was dropped before)
- Attribution label applies to all comment types: plain, bold, debug context, attachment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 17, 2026

@KossaiSbai is attempting to deploy a commit to the peppermint labs Team on Vercel.

A member of the Team first needs to authorize it.

KossaiSbai and others added 2 commits April 17, 2026 02:48
… wiped in merge conflict)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant