Commit Graph
38 Commits
Author SHA1 Message Date
isaacisaacClaude Opus 4.7
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
IsaacandIsaac 6c4070eb52 Serialization update 2025-02-14 19:11:58 +04:00
Ilya Laktyushin b0511f146e Various improvements 2025-01-10 05:15:00 +04:00
Ilya Laktyushin 70eef8ecac [WIP] Stickers editor 2024-04-09 00:50:37 +04:00
Ilya Laktyushin 0598c49a89 Various improvements 2024-04-06 15:01:03 +04:00
Ilya Laktyushin 7772e257b2 Various improvements 2024-03-20 17:21:16 +04:00
Ilya Laktyushin 3bdcb7f223 [WIP] Sticker editor 2024-03-09 03:19:31 +04:00
AliandAli b324029366 Energy settings 2023-02-14 23:12:59 +04:00
AliandAli 614c74b0b0 [WIP] Modern cache 2022-12-17 00:17:31 +04:00
Ilya Laktyushin bb06841df3 Various improvements 2022-08-28 15:07:00 +02:00
AliandAli 83363104ee Various improvements 2022-08-03 23:43:28 +04:00
AliandAli 3fa28db792 Always display premium icon 2022-08-03 22:02:01 +04:00
Ilya Laktyushin ac36f81827 Various fixes 2022-07-25 06:03:58 +03:00
Ilya Laktyushin f21265881e Various improvements 2022-07-16 15:21:52 +02:00
AliandAli 131be5aaab Input node improvements 2022-06-28 22:54:05 +02:00
AliandAli cff972c968 Sticker refactoring 2022-06-08 20:44:14 +04:00
Ilya Laktyushin 9740eff548 Various improvements 2022-05-28 14:58:27 +04:00
Ilya Laktyushin 4b41660767 Various improvements 2022-05-20 23:11:45 +04:00
Ilya Laktyushin 70ae305e99 Various improvements 2022-04-30 03:52:31 +04:00
Ilya Laktyushin d36b6b0b7f Various fixes 2022-04-28 19:28:30 +04:00
Ilya Laktyushin 7b95219e14 Various Improvements 2022-04-27 00:55:00 +04:00
Ilya Laktyushin 71bde57b6a Various Improvements 2022-04-23 05:28:29 +04:00
Ilya Laktyushin e2ca4e989c Various Fixes 2022-01-31 23:55:18 +03:00
Ilya Laktyushin b618777883 Various Fixes 2022-01-28 20:34:05 +03:00
Ilya Laktyushin bbc082e991 Reimplement video stickers 2022-01-27 13:06:44 +03:00
Ilya Laktyushin 47363cb2e3 Video Stickers Improvements 2022-01-14 22:32:45 +03:00
AliandAli 1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ilya Laktyushin 3992f1c8b3 Various fixes 2021-02-25 23:12:58 +04:00
Ilya Laktyushin 2ac3467f00 Update sticker shimmer effects 2020-12-10 19:16:02 +04:00
AliandAli 7f02fb759a Assorted fixes 2020-04-10 13:19:37 +04:00
AliandAli 78e12ad45e Sticker pack preview updates 2020-04-07 17:55:39 +04:00
AliandAli a66f13d969 Support PixelDimensions 2019-11-03 00:44:55 +04:00
PeterandPeter 10692a323e Refactor SyncCore 2019-10-21 16:58:00 +04:00
PeterandPeter d2c54825f0 Refactor wallet-related modules 2019-10-08 14:30:24 +04:00
PeterandPeter 5fed1fbeb1 Temp 2019-10-07 17:03:41 +04:00
Ilya Laktyushin cfb5d2027a Various UI fixes 2019-08-23 06:55:33 +03:00
PeterandPeter 606edad6cd Reactions in context menu 2019-08-20 23:17:09 +03:00
PeterandPeter 519e74f476 Refactor HashtagSearchUI, StickerPackPreviewUI and related modules [skip ci] 2019-08-15 00:56:18 +03:00