Widget customization: upload a logo (Pro)

Đang mở
#72 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Start with CONTRIBUTING.md in the upstream answerLoops repository for local setup and pull request rules, then look at the Widget appearance page from #347, which this work depends on and which is where the upload control and saved settings belong. The work spans upload validation, image re-encoding, database storage and a cached serving route, so it is not a first-timer task. Done means a Pro owner can upload, replace and remove a logo, bad files are rejected with clear messages, and tests cover those checks.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

backend enhancement frontend help wanted

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

Copied from https://github.com/answerLoops/answerLoops/issues/349 — originally opened by @NathanTarbert on 2026-10-08

The problem today

The widget shows the answerLoops logo. A business wants its own.

What to build

A logo upload on the Widget appearance page (#347). The logo shows in the chat header, next to every reply and on the chat bubble.

  • Accepts a small 1:1 aspect ratio (square) image: PNG, JPEG or WebP, under 1 MB. SVG is not accepted because it carries scripts.
  • We crop it square, shrink it, and re-encode it, then store the small result in the database we already use. No new storage service, and it works for self-hosted installs too.
  • Served from a fast, cached address so the chat doesn't slow down.
  • Bad uploads (wrong type, too large, corrupted) are rejected with a clear message. Removing the logo goes back to the default.
  • Pro and above only.

Done when

  • A Pro owner can upload, replace and remove a logo and see it on the live widget
  • Wrong type, too large and corrupted files are rejected with clear messages
  • The stored image is the re-encoded small version, never the original upload
  • The logo address is cached and only serves a business's own logo
  • Looks right at 375 pixels wide; tests cover the checks above

Depends on

  • #347 (the page and where settings are saved)

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.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DeadantCo/answerLoopsdev

Tất cả issue của DeadantCo/answerLoopsdev

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.