Commit graph

43 commits

Author SHA1 Message Date
Ilya Laktyushin
45cc8468bb Various fixes 2026-06-04 19:49:04 +02:00
Ilya Laktyushin
11a4dbf0a0 Various improvements 2026-06-02 13:31:23 +02:00
Ilya Laktyushin
91eb779ae2 Merge commit 'c64653ed37' 2026-05-14 12:45:26 +02:00
isaac
86d1456552 Postbox -> TelegramEngine waves 107-137 (squashed)
31 waves of consumer-side migration from `import Postbox` to TelegramEngine
typealiases. Net: 173 import drops + 39 BUILD-dep drops + 1 new typealias
(`EngineStoryId = StoryId`, wave 113).

Wave shapes used:
- Orphan-import sweeps (107, 108, 128): drop `import Postbox` from files
  whose only Postbox-symbol reference was the import line itself, then
  resolve build failures. Methodology requires token-level (`grep -oE`)
  filtering, not line-level, to avoid masking real Postbox usage on lines
  that also contain `Namespaces.X` references.
- Identifier-swap mini-waves (109-127, 129-134, 136-137): rename
  Postbox-typealiased identifiers to engine equivalents
  (PeerId -> EnginePeer.Id, MessageId -> EngineMessage.Id,
  MediaId -> EngineMedia.Id, MessageIndex -> EngineMessage.Index,
  StoryId -> EngineStoryId, ItemCollectionId -> EngineItemCollectionId,
  PreferencesEntry -> EnginePreferencesEntry,
  FetchResourceSourceType/Error -> EngineFetchResourceSourceType/Error,
  MemoryBuffer -> EngineMemoryBuffer, MessageTags -> EngineMessage.Tags,
  MessageAttribute -> EngineMessage.Attribute,
  TempBox -> EngineTempBox).
- Asset-string FP-only orphans (124).
- Typealias addition + drain (113): added `EngineStoryId` typealias to
  TelegramCore, then drained 3+11 consumer sites.

Hard blockers identified during these waves (must restore `import Postbox`
when present): MediaResource[A-Za-z]* (any suffix -- the literal
`MediaResource` matches don't catch MediaResourceData/MediaResourceId/etc.),
Postbox/MediaBox/MediaResource raw types, PostboxCoding/PostboxEncoder/
PostboxDecoder, TempBoxFile, ValueBoxKey, PostboxView, combinedView,
HashFunctions, postboxLog, openPostbox, declareEncodable, PeerView,
MessageHistoryView, MessageHistoryThreadData, CachedPeerData, RenderedPeer,
SelectivePrivacyPeer, SimpleDictionary, ItemCollectionInfosView,
ItemCollectionItem, ItemCollectionItemIndex, ItemCollectionViewEntryIndex,
ChatListIndex, ChatListEntrySummaryComponents, CodableEntry,
MessageHistoryThread, MessageHistoryAnchorIndex,
MessageHistoryEntryLocation, PeerStoryStats, PeerNameIndex,
PeerSummaryCounterTags, ChatListTotalUnreadStateCategory/Stats,
arePeersEqual. Protocol-shape blockers: bare `Peer`/`Message`/`Media`
in function signatures, generic args, enum-case payloads, or dict value
types (e.g., `[PeerId: Peer]`, `case messages([Message])`,
`Signal<(Peer?, ...), NoError>`).

`replace_all PeerId -> EnginePeer.Id` is dangerous: mangles compound
names like `failedPeerId`, `ContactListPeerId`, `nextRemoteMediaId`,
`replyToMessageId`. Pre-flight grep `\b[a-z][a-zA-Z]*PeerId\b` and only
replace_all if 0 matches.

Also removes unneeded design/plan docs from a separate (link-highlighting)
feature branch:
- docs/superpowers/plans/2026-05-02-link-highlighting-modern-path-fixes.md
- docs/superpowers/specs/2026-05-02-link-highlighting-modern-path-fixes-design.md

Squashed commits: 6d82c2980d..e6de5d53a3 (59 commits, including
per-wave content commits and per-wave CLAUDE.md bumps).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 10:28:50 +02:00
Ilya Laktyushin
d25010c1cb Various fixes 2026-04-29 12:46:08 +02:00
Ilya Laktyushin
5d7edcf36f Various fixes 2026-04-29 04:35:17 +02:00
Ilya Laktyushin
837acfa784 Various fixes 2026-04-29 04:26:58 +02:00
Ilya Laktyushin
ea090a6858 Various improvements 2026-04-28 23:53:26 +02:00
isaac
027ac77ad7 Various improvements 2026-04-28 16:58:04 +04:00
Ilya Laktyushin
2c002ba3a7 Various fixes 2026-04-27 03:07:38 +02:00
Ilya Laktyushin
96b1432434 Various improvements 2026-04-24 04:55:22 +02:00
isaac
a0ba3fa29c Postbox -> TelegramEngine wave 24: moveResourceData facades + consumer sweep
Adds two TelegramEngine.Resources.moveResourceData overloads and migrates 6 Shape-A sites
across 4 consumer files.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 04:04:08 +04:00
Ilya Laktyushin
b138b9f549 Stickers & emoji search pagination 2026-04-19 18:32:40 +02:00
Ilya Laktyushin
0df319742a Update API 2026-04-16 01:18:22 +02:00
Ilya Laktyushin
8f1e024aef Various fixes 2026-04-15 23:12:53 +02:00
Ilya Laktyushin
ae6d05c49d Various fixes 2026-04-07 06:36:13 +02:00
Ilya Laktyushin
86e521c3cb Various fixes 2026-04-07 01:44:04 +04:00
Ilya Laktyushin
65872a4a59 Poll improvements 2026-04-04 10:11:30 +02:00
Ilya Laktyushin
0fecd9a535 Fix 2026-03-31 15:38:13 +02:00
Ilya Laktyushin
6df559ff97 Various fixes 2026-03-28 20:47:35 +01:00
Ilya Laktyushin
e0ec4d9c31 Various fixes 2026-03-27 18:45:53 +01:00
Isaac
d11a967936 Merge commit 'fd68aed766' 2026-03-27 19:24:49 +08:00
Isaac
2907ddbe46 Unseen polls 2026-03-27 18:30:01 +08:00
Ilya Laktyushin
8a523bc1cd Update localization 2026-03-27 02:32:43 +01:00
Ilya Laktyushin
a1c4e02a06 Various fixes 2026-03-27 01:46:27 +01:00
Ilya Laktyushin
ed55943a44 Various improvements 2026-03-27 01:13:38 +01:00
Ilya Laktyushin
25762d1133 Various fixes 2026-03-24 17:21:46 +01:00
Ilya Laktyushin
67f45ba06d Various improvements 2026-03-24 06:54:30 +01:00
Ilya Laktyushin
e11c9899e6 Various fixes 2026-03-23 15:03:50 +01:00
Ilya Laktyushin
9a9665ce54 Various improvements 2026-03-23 12:04:16 +01:00
Ilya Laktyushin
5ed2f0ad1e Various fixes 2026-03-23 00:17:18 +01:00
Ilya Laktyushin
d0e26af8b1 Various fixes 2026-03-22 18:05:56 +01:00
Ilya Laktyushin
8098f24f4e Various improvements 2026-03-22 16:41:22 +01:00
Ilya Laktyushin
66d08c0e1b Various improvements 2026-03-22 13:44:04 +01:00
Ilya Laktyushin
ea4bcd9a46 Various improvements 2026-03-21 09:47:17 +01:00
Ilya Laktyushin
34f5b9d4c2 Update API 2026-03-20 12:48:05 +01:00
Ilya Laktyushin
e7a334364c [WIP] Polls 2026-03-20 12:15:27 +01:00
Ilya Laktyushin
433237d1e9 [WIP] Polls 2026-03-20 10:15:00 +01:00
Ilya Laktyushin
c32f645f5e [WIP] Polls 2026-03-17 16:32:49 +01:00
Ilya Laktyushin
6519b5c84d [WIP] Polls 2026-03-17 11:12:58 +01:00
Ilya Laktyushin
a171e30532 [WIP] Polls 2026-03-14 00:07:57 +01:00
Ilya Laktyushin
950d99eea7 [WIP] Polls 2026-03-13 14:11:19 +01:00
Ilya Laktyushin
cbc5a49507 [WIP] Polls 2026-03-13 11:04:33 +01:00