feat: Enhance hook management and session handling

- Update hook model to include last_triggered_at field.
- Modify API endpoints to support updating hooks with new fields.
- Implement session management UI improvements with toggle functionality.
- Add new JavaScript functions for better session detail visibility.
- Refactor hook storage logic to handle last triggered timestamps.
- Introduce new favicon and logo for branding.
- Update styles for improved layout and user experience.
- Enhance tests to cover new functionality and ensure reliability.
This commit is contained in:
Andre Beging
2025-10-07 13:39:07 +02:00
parent c7f694d820
commit 1204f5dcde
11 changed files with 559 additions and 134 deletions

19
app/static/favicon.svg Normal file
View File

@@ -0,0 +1,19 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-labelledby="title desc">
<title id="title">Telegram Message Hook Icon</title>
<desc id="desc">Circular badge with a paper plane and hook accent</desc>
<defs>
<radialGradient id="bg" cx="50%" cy="28%" r="70%">
<stop offset="0%" stop-color="#45C9FF" />
<stop offset="60%" stop-color="#2AA3F6" />
<stop offset="100%" stop-color="#1A5DD8" />
</radialGradient>
<linearGradient id="hook" x1="0" x2="1" y1="1" y2="0">
<stop offset="0%" stop-color="#62FFD6" />
<stop offset="100%" stop-color="#42C79B" />
</linearGradient>
</defs>
<circle cx="32" cy="32" r="30" fill="url(#bg)" />
<path d="M50.2 15.6L13.7 30.6c-1.7.7-1.6 3.1.2 3.7l10.8 3.4c.9.3 1.8-.1 2.4-.8l14-14.2c.4-.4 1 .1.6.7l-9.4 15.1c-.4.6-.5 1.3-.4 2l1.8 11.2c.3 1.8 2.7 2.2 3.4.6l4.7-9.8c.2-.5.7-.9 1.2-1l11.4-2.7c1.8-.4 2-3 .3-3.7l-10.7-4.4 9.1-9.1c1.5-1.6-.2-4-2.4-2.9z" fill="#fff" />
<path d="M46 46.5c0 7.7-6.3 14-14 14s-14-6.3-14-14" fill="none" stroke="url(#hook)" stroke-width="4" stroke-linecap="round" />
<circle cx="18" cy="46.5" r="3" fill="#ffffff" />
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB