Commit graph

170 commits

Author SHA1 Message Date
iamxvbaba
0dcfaf0a65 fix: sync remote authorization revoke logout 2026-07-24 21:39:00 +08:00
iamxvbaba
b4aaf57d6b fix: sync public channel preview updates 2026-07-24 14:50:17 +08:00
iamxvbaba
2289a31f46 fix: sync same-port transport detection 2026-07-24 14:50:17 +08:00
iamxvbaba
840ef6237c fix: sync DrKLO report selection support 2026-07-24 11:57:01 +08:00
iamxvbaba
70e57b4d07 fix: sync non-PTS moderation updates 2026-07-24 11:57:00 +08:00
iamxvbaba
cc76cd3679 fix: sync non-PTS privacy updates 2026-07-24 11:57:00 +08:00
iamxvbaba
6cafa40c7b fix: sync moderation refresh cache bypass 2026-07-24 11:57:00 +08:00
iamxvbaba
3dd9c345d7 fix: sync moderation flag convergence 2026-07-24 11:57:00 +08:00
iamxvbaba
5d5883a3d1 feat: sync privacy read-model rules 2026-07-24 11:56:59 +08:00
iamxvbaba
9f467f4be7 feat: sync durable moderation and appeals 2026-07-24 11:56:59 +08:00
iamxvbaba
e1a95c7318 fix: sync contact phone privacy disclosure 2026-07-24 11:56:58 +08:00
iamxvbaba
0e2fcdf9c8 chore: sync td v1.1.5 dependency 2026-07-23 15:09:34 +08:00
iamxvbaba
a08c3f848e test: sync fresh Stickers bot reply wait 2026-07-23 15:08:02 +08:00
yialdd
b2ae0f64b0
Merge pull request #13 from epilepticseizureee/feature/admin-soft-ui-dark-theme
Admin panel: Layer 228 moderation, gift granting, bot management, UI updates, QA fixes, and maintainer-reviewed correctness fixes.`n`nMerged with commit history preserved so the original contributor remains attributed.
2026-07-23 13:33:53 +08:00
iamxvbaba
234061ef83 fix(admin): close PR review blockers
Keep bot credentials out of durable command results, fail bot deletion closed when session revocation fails, reject invalid scam/fake states at every write boundary, and make direct collectible grants a single replayable PostgreSQL aggregate.

Also lock admin gift sender/message limits and add regression coverage for rollback, replay, moderation constraints, and credential redaction.
2026-07-23 13:29:04 +08:00
epilepticseizureee
90792cdfab fix(admin): resolve moderation, gift, and admin-panel bugs from QA
- scam/fake: enforce mutual exclusivity (scam precedence) at TL conversion, admin command, and UI toggles; both flags could render as neither
- scam/fake flicker: persist scam/fake in the Redis user base cache so cache hits no longer drop the flags
- getSavedStarGifts: hidden (unsaved) gifts are now force-excluded for non-owner viewers; same guard for get-by-ref
- convertStarGift: map already-upgraded/owner-invalid/unavailable to a clean client error instead of 500
- channel force-settings: send only changed fields (partial patch) and re-sync toggles after reload, so one setting no longer resets another
- give gifts: removed custom collectible numbers (auto sequential only); locked sender to the system account 777000
- give gifts UI: fixed picker card spacing/right gap; static (hover-play) Lottie previews on emoji + picker to stop render lag; fixed emoji ID field overflow
2026-07-23 06:24:53 +03:00
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
045e0f6db4 fix: sync StarGift prepaid upgrade message refs 2026-07-22 21:44:33 +08:00
A
8cfb6f74c1 feat: sync host-based public app links 2026-07-22 21:43:56 +08:00
A
10de462191 fix: sync web page preview pending deadline 2026-07-22 21:42:52 +08:00
A
76e7efd6cc docs: sync OTP delivery guide 2026-07-22 16:09:42 +08:00
A
6e49d83fee fix: sync typed-nil dependency validation 2026-07-22 16:09:27 +08:00
A
401a8f148e fix: sync monoforum suggested post flow 2026-07-22 16:08:44 +08:00
A
511f25efc2 fix: sync Android join RPC admission 2026-07-22 13:08:55 +08:00
A
8e00a58112 fix: sync owner-only megagroup creation 2026-07-22 13:07:37 +08:00
A
de233a4c18 fix: sync collectible upgrade preview pools 2026-07-22 13:06:49 +08:00
A
eba402946a fix: sync account freeze peer visibility 2026-07-22 02:03:00 +08:00
A
d9875b5caa feat: sync bot setup and webhook diagnostics 2026-07-22 00:51:52 +08:00
A
f53579416e feat: sync HTTP callback OIDC setup 2026-07-21 18:18:33 +08:00
A
bf72c246b6 fix: sync call ringing device scope 2026-07-21 17:25:53 +08:00
A
27ec9dce33 chore: sanitize public sync references 2026-07-21 15:50:40 +08:00
A
40743dfb09 fix: sync contact note projection 2026-07-21 15:48:33 +08:00
A
d69a34a4a8 fix: sync StarGift lifecycle hardening 2026-07-21 15:47:55 +08:00
A
bfdfe825f6 docs: sync Telegram Login demo validation notes 2026-07-21 15:47:16 +08:00
A
6f2662b58c fix: sync Telegram Login mobile popup delivery 2026-07-21 15:46:52 +08:00
A
ebead9e98c feat: sync Telegram Login OIDC provider 2026-07-21 15:46:24 +08:00
A
30774f8c39 fix: sync StarGift private message references 2026-07-21 15:45:16 +08:00
A
1a2d03f529 feat: sync bot rich messages and inline menus 2026-07-21 15:44:43 +08:00
A
2965f5d47d feat: sync bot api formatted text parse modes
Sync telesrv 00630bc (feat(botapi): support formatted text parse modes).

Skipped telesrv docs changes per public sync rules.
2026-07-20 20:23:47 +08:00
A
afc73ca761 chore: sync td v1.1.3 dependency
Sync telesrv 64f5d95 (chore(protocol): upgrade td to v1.1.3).

Kept the published github.com/iamxvbaba/td dependency and no local replace.
2026-07-20 20:22:59 +08:00
A
a6fe2574fe fix: sync system identity upsert idempotency
Sync telesrv c7c5a3d (fix(auth): make system identity upsert idempotent).

Skipped telesrv docs changes per public sync rules.
2026-07-20 16:51:55 +08:00
A
004365ed48 chore: sync td exact-layer projection
Sync telesrv 9e68b9b (chore(protocol): consume td exact-layer projection).

Updates the public iamxvbaba/td dependency to v1.1.2 without a local replace.
2026-07-20 16:51:28 +08:00
A
08c763b683 fix: sync legacy community projection
Sync telesrv 07644e0 (fix(communities): hide aggregates from legacy layers).
2026-07-20 16:50:37 +08:00
A
ba82fbccd6 fix: sync collectible document role validation
Sync telesrv d8ad5cc (fix(stargifts): validate collectible document roles).

Skipped telesrv docs changes per public sync rules.
2026-07-20 16:50:05 +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
da6a57e1a3 feat: sync community aggregates
Sync telesrv 36eda30 (feat(communities): implement Layer 228 community aggregates).

Skipped telesrv docs changes per public sync rules; normalized the public appearance seed label.
2026-07-20 16:46:02 +08:00
A
7de1766941 feat: sync ephemeral bot demo commands
Sync telesrv 172a86e (feat(bot-demo): echo ephemeral group commands).

Skipped telesrv docs changes per public sync rules.
2026-07-20 16:44:09 +08:00
A
f49c817def feat: sync ephemeral transient messages
Sync telesrv 570ccf8 (feat(ephemeral): implement Layer 228 transient messages).

Skipped telesrv docs changes per public sync rules; normalized the public appearance seed label.
2026-07-20 16:43:27 +08:00