Widget customization: upload a logo (Pro)

Offen
#72 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
28/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DeadantCo/answerLoopsdev

Alle Issues in DeadantCo/answerLoopsdev

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.