Commit Graph
35 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 96b1432434 Various improvements 2026-04-24 04:55:22 +02:00
Ilya Laktyushin 8f1e024aef Various fixes 2026-04-15 23:12:53 +02:00
IsaacandIsaac 1a728382c4 Disable AI button in secret chats 2026-04-03 13:15:06 +08:00
IsaacandIsaac 337ffb691e Improvements 2026-03-28 21:31:09 +08:00
IsaacandIsaac c9add89043 More ai button fixes 2026-03-27 22:33:54 +08:00
Ilya Laktyushin d9d1210c1d Various improvements 2026-02-19 21:53:26 +04:00
Ilya Laktyushin 96bb624b2d Merge branch 'formatted-date-api' 2026-02-06 14:25:09 +04:00
IsaacandIsaac 2db08cde89 Glass 2026-01-13 19:21:49 +04:00
IsaacandIsaac f468cea13c Update API 2025-10-15 17:06:40 +08:00
Ilya Laktyushin cb523192d5 Various improvements 2025-09-17 20:58:42 +04:00
Ilya Laktyushin b2351194d4 Various fixes 2025-02-24 17:11:08 +04:00
Ilya Laktyushin 103b244216 Various improvements 2025-01-22 20:33:42 +04:00
Ilya Laktyushin eff6045b90 Various fixes 2024-12-01 14:38:33 +04:00
Ilya Laktyushin f81443e438 Various improvements 2024-11-29 21:58:17 +04:00
Ilya Laktyushin d2b5476293 [WIP] Story collage 2024-11-27 18:41:03 +04:00
Ilya Laktyushin 3d03fc94c6 Various improvements 2024-10-25 19:09:31 +04:00
IsaacandIsaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Ilya Laktyushin cf49acb4aa Various fixes 2024-04-29 17:45:32 +04:00
IsaacandIsaac d9fec0a500 [WIP] Business 2024-02-13 20:13:40 +04:00
IsaacandIsaac d1e9e04dc1 [WIP] Call UI 2023-12-08 22:33:07 +04:00
Ilya Laktyushin 90f09a13e4 Various improvements 2023-11-22 03:24:33 +04:00
Ilya Laktyushin 713336a13f Giveaway improvements 2023-10-08 14:12:39 +04:00
Ilya Laktyushin a6785d7d94 Various fixes 2023-09-16 01:25:01 +04:00
Ilya Laktyushin fa57a05bcb Media editor improvements 2023-09-09 20:49:46 +04:00
Ilya Laktyushin 28dd60b887 Secret media improvements 2023-09-09 19:38:57 +04:00
Ilya Laktyushin f13b1da0bb Web app improvements 2023-09-09 17:34:49 +04:00
Ilya Laktyushin 2364234f04 Various improvements 2023-09-08 21:58:28 +04:00
Ilya Laktyushin ada47a4be5 Web app improvements 2023-09-08 15:52:11 +04:00
Ilya Laktyushin 1113279e17 Various fixes 2023-09-07 18:59:52 +04:00
Ilya Laktyushin 650ec2296e Fix initial caption setup 2023-09-01 15:45:46 +04:00
Ilya Laktyushin 46f9dd3af2 Various fixes 2023-09-01 03:33:28 +04:00
Ilya Laktyushin 4b5ccefbc8 Various improvements 2023-09-01 00:02:49 +04:00
Ilya Laktyushin 0c2266aa73 Hide timer option for non-users 2023-08-31 02:40:01 +04:00
Ilya Laktyushin b1f40bf0aa Media caption input panel improvements 2023-08-30 19:26:07 +04:00