Commit Graph
22 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 1d06c3f058 Bot forums v2 2025-09-05 15:25:50 +02:00
IsaacandIsaac 905a46e6cc Update API 2025-08-11 16:54:32 +02:00
IsaacandIsaac 5d2b252850 Monoforums 2025-05-27 02:19:48 +08:00
IsaacandIsaac b752a49432 Update API 2025-05-15 00:54:50 +08:00
Ilya Laktyushin d167aa4b0e Update API [skip ci] 2025-02-18 10:09:58 +04:00
Ilya Laktyushin 6e850130fd Update API [skip ci] 2024-12-26 07:27:14 +04:00
Ilya Laktyushin dce651616e Update API [skip ci] 2024-12-18 21:40:23 +04:00
Ilya Laktyushin dc68eab568 Merge branch 'master' into stars-subscriptions 2024-07-30 11:29:42 +02:00
IsaacandIsaac 09e025e985 [WIP] Channel appearance 2023-12-15 22:59:33 +04:00
IsaacandIsaac b66f748969 [WIP] Channel appearance 2023-12-15 15:13:40 +04:00
IsaacandIsaac 66b3d8b874 [WIP] Colored profiles 2023-11-22 01:05:47 +04:00
Ilya Laktyushin 137c3d9101 Update API 2023-10-16 13:20:46 +04:00
AliandAli 8130d9e937 Stories 2023-08-29 20:38:55 +04:00
AliandAli 377148194a Fix notification exceptions 2023-07-01 00:13:41 +02:00
AliandAli 2e83cef3f7 Stories 2023-06-30 02:38:24 +02:00
AliandAli d5e010b510 Stories 2023-06-23 18:13:28 +03:00
AliandAli e5d948d90a Stories 2023-06-19 00:36:06 +03:00
AliandAli 95947fdb99 Refactoring [skip ci] 2023-04-20 18:43:29 +04:00
AliandAli 6847dbb4c3 [WIP] Topics 2022-10-18 16:56:27 +04:00
AliandAli 02b28ee6fc [WIP] Topics 2022-10-18 01:08:49 +04:00
AliandAli df35dcf3c4 [WIP] API update 2022-10-17 17:16:50 +04:00