Attachment pastes render an empty code area in the paste view #249
Notifications
Total Time Spent: 27 minutes
fen
27 minutes
No due date set.
Dependencies
No dependencies set.
Reference: poslop/palette#249
Reference in New Issue
Block a user
Noted during v0.4.0 screenshot capture (README release prep): a paste created via multipart /api/pastes renders an empty code area in the paste view on dev tip
53e7a97. Attachments keep row.Content empty by design, so the view template likely renders the code block unconditionally instead of only showing the attachment pill/preview.Verify with a fresh attachment paste on palette-dev and inspect the rendered DOM: codebody should be absent or hidden for file-only pastes.
QA PASS (fix attempt 1). Merged PR #254 into dev (
ca785f5), CI docker success, deployed to palette-dev (fresh pod).Verified live:
Template now gates the code block on {{if not .Attachment}} (web.go sets .Attachment for every file paste), so any file-only paste shows only the chip/preview.