Commit Graph
20 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 1a17e97a7c Temp 2026-03-23 23:37:31 +08:00
IsaacandIsaac 2c53fd2273 Update API 2025-06-13 02:15:04 +08:00
IsaacandIsaac 8d65fb3495 Monoforums 2025-05-27 23:37:35 +08:00
Ilya Laktyushin 8d7f9bf372 Various improvements 2025-02-22 19:17:36 +04:00
Ilya Laktyushin d2deea0ea2 Various fixes 2024-09-03 15:48:15 +04:00
Ilya Laktyushin f5092b8d8d Web app improvements 2024-07-02 21:03:22 +04:00
Ilya Laktyushin e47b5a89ef Paid media improvements 2024-06-24 04:06:57 +04:00
IsaacandIsaac d7bb7d55b4 - Story search UI
- Delete message confirmation
2024-06-04 19:18:41 +04:00
IsaacandIsaac 586428cfa9 Fix scheduled effectcs 2024-05-31 22:26:32 +04:00
IsaacandIsaac d6ebf1b4ff Edit message media preview 2024-05-26 20:42:43 +04:00
IsaacandIsaac 667aa0349a [WIP] Edit message preview 2024-05-26 18:59:44 +04:00
IsaacandIsaac fe788ed9ea Message preview and effect improvements 2024-05-21 00:02:55 +04:00
IsaacandIsaac 378b7e8ed5 Message preview improvements 2024-05-17 17:10:19 +04:00
IsaacandIsaac 304ce900c1 Audio send message preview 2024-05-14 12:36:13 +04:00
IsaacandIsaac 3da1b96775 [WIP] Video message send context menu 2024-05-13 23:37:30 +04:00
IsaacandIsaac 7ef63a81df [WIP] Message effects 2024-05-10 20:57:12 +04:00
IsaacandIsaac 16faaa4575 [WIP] Send message effects 2024-05-03 22:56:50 +04:00
IsaacandIsaac e0c2800e8f [WIP] Message context menu 2024-04-30 23:40:55 +04:00
AliandAli ab5e3ae947 Various improvements 2023-10-22 22:06:14 +04:00