Commit Graph
177 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
Ilya Laktyushin 7ab4685940 Various fixes 2026-04-29 03:52:19 +02:00
Ilya Laktyushin 22df2dbdb9 Various fixes 2026-04-14 03:33:34 +02:00
Ilya Laktyushin 4203d70414 Various improvements 2026-02-23 18:45:47 +04:00
Ilya Laktyushin 2c4c9a9d9b [WIP] Live photos 2026-02-20 13:28:58 +04:00
Ilya Laktyushin 0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
IsaacandIsaac 2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin b80fb9acc9 Various fixes 2026-01-02 16:57:34 +04:00
Ilya Laktyushin da23f7798d Various fixes 2026-01-02 16:51:41 +04:00
Ilya Laktyushin 966182bd2f Various improvements 2025-12-29 10:05:51 +04:00
IsaacandIsaac b40513ac37 Glass 2025-12-20 03:24:48 +08:00
Ilya Laktyushin 28d4e1e171 Various improvements 2025-12-16 20:05:44 +04:00
Ilya Laktyushin c7556cedf9 Remove story live mode in groups 2025-11-15 20:47:37 +04:00
Ilya Laktyushin 6a030345d0 Save privacy on live stream start 2025-11-14 16:45:48 +04:00
Ilya Laktyushin cbf23d0df5 Various fixes 2025-11-14 02:08:00 +04:00
Ilya Laktyushin ee50fdcd14 Various fixes 2025-11-13 22:40:12 +04:00
Ilya Laktyushin 5e17b321f8 Various improvements 2025-11-13 22:06:24 +04:00
Ilya Laktyushin 29b24d9d57 Various improvements 2025-11-13 01:29:20 +04:00
Ilya Laktyushin c6acd92aed Fix iPad camera 2025-11-12 23:04:30 +04:00
Ilya Laktyushin e680691988 Update API 2025-11-12 22:06:23 +04:00
Ilya Laktyushin b0f4ca9ad9 Various improvements 2025-11-12 18:41:57 +04:00
Ilya Laktyushin 412e02ef00 Gift auctions 2025-11-12 04:46:02 +04:00
Ilya Laktyushin ea8dc07b23 Update API 2025-11-10 18:58:38 +04:00
Ilya Laktyushin fbf7473892 Various improvements 2025-11-09 20:16:32 +04:00
Ilya Laktyushin b76c6c9b3c Update API 2025-11-08 23:17:00 +04:00
Ilya Laktyushin 7b5f9a89b2 Various improvements 2025-11-07 17:46:11 +04:00
Ilya Laktyushin 22945ebb31 Various improvements 2025-11-07 14:13:09 +04:00
Ilya Laktyushin b559663d6a Various improvements 2025-11-06 13:55:58 +04:00
Ilya Laktyushin bda836f032 Various improvements 2025-11-05 20:25:07 +04:00
IsaacandIsaac b427a8d4ca Stories 2025-11-04 17:26:02 +04:00
Ilya Laktyushin 6f5cd84019 Various improvements 2025-11-04 14:43:17 +04:00
Ilya Laktyushin 5877f2c20d Various improvements 2025-10-29 17:20:36 +04:00
Ilya Laktyushin c014d0b333 Various improvements 2025-10-22 21:12:38 +04:00
Ilya Laktyushin 0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
IsaacandIsaac ebcd0557e5 Temp 2025-09-12 10:54:22 +02:00
Ilya Laktyushin 2fc5a19f50 Various fixes 2025-05-07 16:17:40 +04:00
Ilya Laktyushin ee38ee55d4 Various fixes 2025-05-05 18:42:51 +04:00
Ilya Laktyushin 9e0600edfa Various fixes 2025-04-25 18:13:30 +04:00
Ilya Laktyushin 2962851527 Various improvements 2025-04-22 21:06:46 +04:00
Ilya Laktyushin d8dd96e39e [WIP] Multiple story upload 2025-04-18 13:47:15 +04:00
Ilya Laktyushin 746239cf69 Various improvements 2025-04-17 16:28:59 +04:00
Ilya Laktyushin a43e5fc16b Various improvements 2025-04-16 13:54:14 +04:00
Ilya Laktyushin 3cc5231185 Various fixes 2025-04-08 20:36:32 +04:00
Ilya Laktyushin c5168b8905 Various improvements 2025-04-03 17:06:20 +04:00
Ilya Laktyushin cdc82e4235 Update API 2025-01-06 16:00:43 +04:00
Ilya Laktyushin 5451053195 Various improvements 2024-12-22 17:16:14 +04:00
Ilya Laktyushin 6003931eec Various fixes 2024-11-30 15:47:37 +04:00
Ilya Laktyushin 7dd7a6ba69 Story collage improvements 2024-11-30 04:06:13 +04:00
Ilya Laktyushin f81443e438 Various improvements 2024-11-29 21:58:17 +04:00
Ilya Laktyushin 06defbb3f6 Various fixes 2024-11-29 14:40:02 +04:00