Enhance tg-index with performance, UI and monitoring features#72
Open
NOOBGLITCH wants to merge 26 commits into
Open
Enhance tg-index with performance, UI and monitoring features#72NOOBGLITCH wants to merge 26 commits into
NOOBGLITCH wants to merge 26 commits into
Conversation
…pplication Add `replit.md` file detailing project architecture, environment variables, and running instructions. Update `requirements.txt` to include `aiohttp`, `aiohttp-jinja2`, and `telethon`. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 64a33732-ef96-4747-b9e9-6af4995e1825 Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: f8bd2cf2-8612-4593-be08-97e9a0b62846 Replit-Helium-Checkpoint-Created: true
Address a `h` undefined error in `logo_view.py` by using `draw.textbbox`, remove duplicate `toggleTheme` function declaration in `footer.html`, and update frontend templates with DaisyUI for a refreshed look and feel. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: a1c2c5eb-300d-468e-875e-eea935ec1ebd Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/SKyZkgM Replit-Helium-Checkpoint-Created: true
- Add health.py: Health metrics, circuit breaker, request dedup, graceful shutdown - Add backpressure.py: Back pressure controller, optimistic locking - telegram.py: Retry decorator with exponential backoff, request tracking - cache.py: Improved LRU/DiskCache with proper locking, size limits - main.py: Health/ready endpoints, signal handling for graceful shutdown - middlewhere.py: Request ID tracking, enhanced rate limiting, CORS support - index_view.py: Message caching, async timeouts - thumbnail_view.py: ThreadPoolExecutor, preloaded placeholders, ETag support, LRU cache - config.py: New settings for cache, concurrency, compression - requirements.txt: Add psutil, aiodns, Brotli - templates: Yellow highlight color for search results
Improve file viewing by adding efficient prev/next navigation using max_id and min_id queries in info_view.py and updating info.html to display the navigation buttons. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 8828d097-ddb7-4f8e-b9e1-6f5049930d8e Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Xo0O4ZO Replit-Helium-Checkpoint-Created: true
Modify Telegram client connection logic to use `connect()` with retries for `AuthKeyDuplicatedError` and update message retrieval methods to use `get_messages_safe`. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: dccd789e-15d0-41b3-a67a-a86e7604c2cf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Xo0O4ZO Replit-Helium-Checkpoint-Created: true
Revert changes to Telegram client connection logic, update info display template, and remove the 'gh' file. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: b3fd2e9e-9381-4b9d-bdc4-7467def1a4fd Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Xo0O4ZO Replit-Helium-Checkpoint-Created: true
Fixes an issue with video player rendering and adds navigation links for previous and next files in the view. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 2ad4117e-c3ea-4171-844b-468fa15f4b3a Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Xo0O4ZO Replit-Helium-Checkpoint-Created: true
Update info view to fetch entity before getting previous and next messages, and add navigation links to the template. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: af76c65d-f1f3-4470-b0c7-c0be3f7acf44 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Fuj2sZf Replit-Helium-Checkpoint-Created: true
…playback Integrates JW Player for audio playback, replaces native audio tags, and adds a copy button to download links, constructing full URLs client-side. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 2e2cacaf-b169-4b16-aa34-07a9c40db8fa Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/M9txVpj Replit-Helium-Checkpoint-Created: true
Replace the existing Material Symbols 'send' icon in the header with a Telegram icon loaded from a CDN. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: e118a285-554f-4618-9cf3-0215f1323bdb Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/pwjZsBB Replit-Helium-Checkpoint-Created: true
Embed the Telegram SVG inline in `app/templates/header.html` to resolve resolution and clipping issues, replacing the `<img>` tag and associated styling. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: a0483853-fd5e-4503-8ca0-6ca2405547ac Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/nha80l7 Replit-Helium-Checkpoint-Created: true
Embed Telegram SVG directly in the header for proper rendering and remove `hidden sm:inline` class from the "Telegram Index" text to ensure it displays on all screen sizes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: c3ba2794-0f55-42de-8011-43e59b39966b Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/5rq1WkC Replit-Helium-Checkpoint-Created: true
Embed Telegram icon as inline SVG and apply `whitespace-nowrap` to the index text to ensure it remains on a single line with the icon across all screen sizes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 5dd1abc7-968a-4495-a266-b9d0ff702537 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/hYjw0lI Replit-Helium-Checkpoint-Created: true
Replaces the old theme toggle button with a new pill-shaped switch. Removes CSS transitions from the body for instant theme switching and adds new CSS for the toggle's appearance and functionality. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 46dd4f66-6265-4be9-bc16-a4e2bd4cbcb0 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/IoCBqfu Replit-Helium-Checkpoint-Created: true
Install the GitHub CLI (gh) package in the NixOS configuration. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 02a66049-697d-450a-9dac-8bc3842dab45 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/IoCBqfu Replit-Helium-Checkpoint-Created: true
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Files Changed