Skip to content

Branding: Rebrand UI to 360Hub and improve file/post handling (title normalization, poster fetching) - #10

Open
SasukeXDev wants to merge 2 commits into
codex/redesign-surf-tg-website-ui-for-ott-platformfrom
codex/fix-channel-loading-issues-and-remove-sources-d0mhce
Open

SasukeXDev wants to merge 2 commits into
codex/redesign-surf-tg-website-ui-for-ott-platformfrom
codex/fix-channel-loading-issues-and-remove-sources-d0mhce

Conversation

@SasukeXDev

Copy link
Copy Markdown
Owner

Motivation

  • Update the web UI from previous Surf-TG/AniHix branding to 360Hub with improved metadata and UX touches.
  • Make file/post titles more consistent and safer to display by normalizing filenames and captions.
  • Move poster fetching off the event loop and build post/search entries asynchronously to improve responsiveness and reliability.

Description

  • Rebranded multiple server templates and fragments (home.html, index.html, dl.html, login.html, playlist.html, list.html, video.html) to use "360Hub", added meta descriptions and Open Graph tags, and tweaked navigation/hero copy and footer links.
  • Updated channel and media card HTML in bot/helper/chats.py to add data attributes for platform selection, replace lazy-loading placeholder GIFs with direct poster endpoints, and add onerror fallbacks and card CSS tweaks.
  • Introduced normalize_post_title in bot/helper/index.py and refactored message/file processing to use _build_post_entry with to_thread(fetch_poster) and gather to fetch posters off the event loop and apply a FALLBACK_POSTER when needed, and updated get_files to build posts from fetched history.
  • Added similar asynchronous entry building in bot/helper/search.py via _build_search_entry and switched search to gather-built results, while keeping size/type/hash extraction and caching behavior intact.

Testing

  • No automated test suite was present for these changes, so no unit tests were executed.
  • Changes were implemented to be non-blocking and use to_thread + gather for poster fetches to avoid blocking the event loop (manual smoke checks recommended after deployment).

Codex Task

@vercel

vercel Bot commented Mar 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hub360 Ready Ready Preview, Comment Mar 22, 2026 7:05pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant