Skip to content

Store and serve webhook template logos from this repository #103

@KrishnaIyer

Description

@KrishnaIyer

Summary

Store and serve webhook template logos from this repository.

Why do we need this?

Currently the webhook template repo includes links to logos. There are a couple of issues with this.

  1. The image behind the link can be changed at anytime and there's no traceability.
  2. Images are sometimes moved and the link is broken.

What is already there? What do you see now?

Logos are loaded from TTS using the link in logo-url.

What is missing? What do you want to see?

Logos loaded from the repo. This means that logos can only be updated on a new release but this is the same as updating a field in the yml.

How do you propose to implement this?

  1. Add folders with the exact same name as the webhook template. Ex: akenza.yml -> akenza. If exists, TTS will ignore the value in logo-url.
  2. Allow users to submit images with a similar constraint as https://github.com/TheThingsNetwork/lorawan-devices?tab=readme-ov-file#end-device-image
  3. In TTS:
    a. Check if a folder corresponding to the template exists.
    b. If yes, check and validate the image in it.
    c. Load this image when the template is loaded.

@johanstokking; thoughts?

Can you do this yourself and submit a Pull Request?

Yes, maybe.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions