29 Commits
Author SHA1 Message Date
isaacandClaude 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
Isaac a7385ad068 Update 2025-09-30 17:41:32 +08:00
Isaac 5a8bd1d98d Temp 2025-09-16 10:11:54 +04:00
Isaac 6c4070eb52 Serialization update 2025-02-14 19:11:58 +04:00
Isaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Isaac 8e043a3a7d Various improvements 2024-04-23 12:57:38 +04:00
Ilya Laktyushin f81856351a Various improvements 2024-03-28 13:23:23 +04:00
Ilya Laktyushin 3bdcb7f223 [WIP] Sticker editor 2024-03-09 03:19:31 +04:00
Ilya Laktyushin b4b90b090c Group boosts 2024-02-05 16:18:02 +04:00
Isaac 66b3d8b874 [WIP] Colored profiles 2023-11-22 01:05:47 +04:00
Ilya Laktyushin 74faad7a03 Various improvements 2023-08-05 15:32:12 +02:00
Ilya Laktyushin b70586eb28 Story location picking 2023-07-30 15:01:25 +02:00
Ilya Laktyushin a4297cf1c5 Various fixes 2023-07-06 21:28:29 +02:00
Ilya Laktyushin 9d5f5c137d Various improvements 2023-07-04 03:18:54 +02:00
Ilya Laktyushin 5b51f35b36 Various improvements 2023-07-03 11:52:02 +02:00
Ilya Laktyushin 6389d9040d Various fixes 2023-06-25 00:33:07 +02:00
Ilya Laktyushin 803b887a2e Camera and editor improvements 2023-06-21 16:54:12 +04:00
Ilya Laktyushin 09e2e5bdc2 Story caption improvements 2023-06-20 18:05:20 +04:00
Ali cfe7f43e0d Various improvements 2023-04-14 18:59:33 +04:00
Ali 7be540c30b Add emoji tab loading indicator 2023-01-31 20:05:20 +01:00
Ali 4b2902ac71 UI improvements 2023-01-31 12:42:37 +01:00
Ali b65d4c2243 UI improvements 2023-01-27 17:16:26 +01:00
Ali b3140ffed9 Add emoji search result cache 2023-01-27 14:06:44 +01:00
Ali 05b4d6f3ca UI improvements 2023-01-27 11:21:05 +01:00
Ali 2a0ab901ae UI improvements 2023-01-27 02:32:01 +01:00
Ali 686339aa56 UI improvements 2023-01-25 16:28:01 +01:00
Ali b92d21f9d7 Emoji UI improvements 2023-01-24 14:25:26 +01:00
Ali d1b88c20d7 Fix build 2023-01-23 14:39:39 +04:00
Ali 3b42f14613 UI improvements 2023-01-23 14:36:47 +04:00