40 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 08fae7b3c3 Update 2025-10-02 00:14:52 +08:00
Isaac c2c99edf89 Emoji bottom panel 2025-10-01 00:10:10 +08:00
Isaac cfbd75f03d Fix entity inputs 2025-09-29 00:51:42 +08:00
Isaac 5a8bd1d98d Temp 2025-09-16 10:11:54 +04:00
Isaac c7a2fe5d3e Update to iOS 13 2025-06-11 16:59:53 +08:00
Isaac 894e0e4705 Various improvements 2025-02-27 12:23:14 +01:00
Isaac 54ee2c17aa Rewrite gif rendering 2025-02-19 13:22:12 +01:00
Isaac f17ead143a Various improvements 2025-02-18 14:43:23 +01:00
Isaac 9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Isaac 8e043a3a7d Various improvements 2024-04-23 12:57:38 +04:00
Ali 6910ec9334 Story improvements 2023-09-08 19:22:12 +04:00
Ilya Laktyushin b71304a3d2 GIFs in media editor
Image search in media editor
2023-08-07 08:38:02 +02:00
Ilya Laktyushin 84bdc0afb8 Entities keyboard for story replies 2023-06-23 15:58:26 +04:00
Ilya Laktyushin 09e2e5bdc2 Story caption improvements 2023-06-20 18:05:20 +04:00
Ali b3140ffed9 Add emoji search result cache 2023-01-27 14:06:44 +01:00
Ali 16048d4d77 Search progress 2023-01-26 13:10:05 +01:00
Ali b92d21f9d7 Emoji UI improvements 2023-01-24 14:25:26 +01:00
Ali 3b42f14613 UI improvements 2023-01-23 14:36:47 +04:00
Ali 263778c906 UI improvements 2023-01-20 18:18:44 +04:00
Ali dac58e50b3 UI fixes 2023-01-19 17:50:17 +04:00
Ali 6d8c7243e5 Permission and search UI improvements 2023-01-17 23:02:57 +04:00
Ali 808f5b80ff Storage improvements 2022-12-24 00:04:48 +04:00
Ali 614c74b0b0 [WIP] Modern cache 2022-12-17 00:17:31 +04:00
Ilya Laktyushin 67a600a705 Various fixes 2022-11-28 15:20:36 +04:00
Ilya Laktyushin 8f459a5104 Various emoji search fixes 2022-11-27 23:24:25 +04:00
Ilya Laktyushin d1ef404d37 Emoji search improvements 2022-11-18 20:00:13 +04:00
Ali 97239853a2 [WIP] Custom reactions 2022-08-12 23:36:56 +04:00
Ali d7a851d61f Gif improvements 2022-07-24 16:14:16 +02:00
Ali 3347f0514e Emoji improvements 2022-07-24 03:15:19 +02:00
Ali 7b663a3445 Emoji input improvements 2022-07-22 02:12:10 +02:00
Ali 806536a4cd Emoji input improvements 2022-07-21 03:30:22 +02:00
Ali c141531c7b Animated emoji improvements 2022-07-19 03:38:07 +02:00
Ali 2a5b45883d Emoji fixes 2022-07-16 02:02:39 +02:00
Ali 0577baac79 Emoji input improvements 2022-07-15 03:37:03 +02:00
Ali c51b58ca72 [WIP] Entity input panel 2022-07-13 01:21:54 +02:00
Ali 1ac654e8b2 [Temp] custom emoji layouts 2022-07-08 15:09:55 +02:00
Ali e99cefa2d6 Ongoing work on the updated entity input 2022-07-05 19:16:06 +02:00
Ali 087bf3352e Sticker input rewrite continued 2022-07-02 00:04:43 +02:00
Ali 0f1b382265 [Temp] Input panel progress 2022-06-21 21:47:01 +01:00