Commit graph

15 commits

Author SHA1 Message Date
epilepticseizureee
313624eab2 admin: gift granting, collectible attribute/number control, and Layer 228 moderation tools
Admin console additions (Layer 228):
- Give Gifts: dedicated tab with sorted Lottie/TGS gift picker + inline form; grant any catalog gift to a user/channel from 777000 (no charge)
- Upgraded/collectible delivery: mint a unique gift with admin-selected model/pattern/backdrop and custom number, or random/auto (DB FK + UNIQUE(gift_id,num) enforce invariants)
- SCAM/FAKE flags for users/channels (migration 0136) with configurable profile warning (TELESRV_SCAM_WARNING/TELESRV_FAKE_WARNING)
- Support toggle, force channel settings incl. gigagroup (migration 0137), username management, cosmetic color/emoji-status
- Emoji admin tab (custom emoji list + document IDs + Lottie/TGS preview)
- Bot management; soft UI / dark theme
Wired through Router -> admin.Service -> adminapi -> BFF -> React panel (en/zh/ru).
2026-07-23 04:00:29 +03:00
epilepticseizureee
9e45da69ef feat(admin): bot management (list, verify, create, delete)
- Add a Bots admin tab: list/search bots with a dedicated read query
  (users.is_bot, excluded from the accounts list), showing owner and
  system-vs-user type
- Create system bots from the admin via a new bot.create command that
  reuses the existing bot provisioning flow; the token is shown once
- Delete user-created bots via a new bot.delete command backed by a
  dedicated Postgres DeleteBotAccount (revokes sessions, purges private
  state, releases username, drops the bots row, tombstones the user);
  system service bots are rejected
- Verified badge toggling reuses the existing set-verified command
- All write paths go through the dry-run/confirm + audit command pipeline
- Rebuild dist bundle
2026-07-23 00:34:05 +03:00
epilepticseizureee
ad9d535edc feat(admin-ui): softer pre-material styling and dark theme
- Rebuild admin console styling on semantic CSS variables (light + dark palettes)
- Soften palette, shadows and corner radii for a calmer pre-material look
- Add theme provider with light/dark toggle in the topbar and login header
- Respect prefers-color-scheme and persist choice, with anti-FOUC inline script
- Polish Russian translations (yo letters, consistent 'Звёзды' currency, wording)
- Rebuild dist bundle to match the updated source
2026-07-22 23:45:09 +03:00
A
de233a4c18 fix: sync collectible upgrade preview pools 2026-07-22 13:06:49 +08:00
A
2848ff0987 feat: sync visible product branding
Sync telesrv c779c48 (feat(branding): unify visible product naming).

Skipped private www files and preserved public README files; mapped orange appearance seed names to public default names.
2026-07-20 16:49:17 +08:00
A
14bf7d1e20 feat: sync official star gift lifecycle tooling
Sync telesrv 4c0e2d9 (feat: complete official star gift lifecycle and admin tooling).

Public adjustments: skipped private docs/deploy-nginx/README source changes, kept iamxvbaba/td public dependency, replaced local/private sample IP and orange seed label.
2026-07-19 03:11:35 +08:00
epilepticseizureee
c4dde636e7 feature: Added Russian language to web admin panel 2026-07-18 09:19:46 +03:00
A
9d889cabf3 fix admin scrolling 2026-07-17 01:15:06 +08:00
A
5ecf4e912d feat: sync collectible star gifts 2026-07-16 12:38:53 +08:00
A
47fcf0ea41 feat: sync account freeze lifecycle 2026-07-15 20:24:37 +08:00
A
e0cabb4930 feat: sync admin stars grant support 2026-07-08 02:30:01 +08:00
A
c5dc2b7e21 config: sync admin and RTMP port defaults 2026-07-06 16:29:29 +08:00
梦渊
6c3707e987 Refactor admin config to use centralized config package
- Import and use internal/config.Load() in telesrv-admin instead of manual env parsing
- Remove envOr() helper function (now consolidated in config package)
- Add comprehensive .env.example documentation for Admin API/UI settings including:
  - TELESRV_ADMIN_API_TOKEN
  - TELESRV_ADMIN_UI_PASSWORD and TELESRV_ADMIN_UI_TOKEN
  - TELESRV_ADMIN_SESSION_KEY with security guidance
  - Optional address configuration parameters
- Improve config validation error handling
2026-07-04 13:05:37 +08:00
A
44e8cde27f admin-ui: sync English localization 2026-07-02 16:53:51 +08:00
A
70b6820474 chore: refresh gramsrv public release 2026-06-30 14:37:43 +08:00