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/logo.svg Normal file
View File

@@ -0,0 +1,19 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160" role="img" aria-labelledby="title desc">
<title id="title">Telegram Message Hook Logo</title>
<desc id="desc">Circular badge with a paper plane and hook accent</desc>
<defs>
<radialGradient id="bg" cx="50%" cy="30%" r="75%">
<stop offset="0%" stop-color="#45C9FF" />
<stop offset="55%" 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="80" cy="80" r="74" fill="url(#bg)" />
<path d="M120.6 37.8L34.7 72.3c-3.5 1.4-3.4 6.2.2 7.4l22.1 7.1c1.7.5 3.5-.1 4.6-1.4l32-32.6c.8-.8 2 .3 1.3 1.2L75.4 96.9c-.9 1.2-1.2 2.7-.9 4.1l4 24.1c.7 4.1 6.1 4.9 7.7 1l9.8-21.1c.4-.9 1.3-1.6 2.3-1.8l24-5.7c3.5-.8 3.8-5.6.5-7.1l-23.1-9.5 19.7-19.7c3.4-3.4-.7-9-5.1-6.4z" fill="#fff" />
<path d="M115 108c0 19-15.4 34.4-34.4 34.4S46.2 127 46.2 108" fill="none" stroke="url(#hook)" stroke-width="10" stroke-linecap="round" />
<circle cx="46.2" cy="108" r="6.5" fill="#ffffff" />
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB