Commit graph

110 commits

Author SHA1 Message Date
Ilya Laktyushin
7a7333edab Various improvements 2026-05-05 14:57:06 +02:00
isaac
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
53f023ea52 Postbox -> TelegramEngine wave 21: completedResourcePath facade + consumer sweep
Combined wave-19+wave-20 shape. Adds TelegramEngine.Resources.completedResourcePath(id:, pathExtension:)
facade and sweeps 29 consumer sites across 14 files in one atomic commit.

Shape A/B migrated. Shape C (5 sites with raw account: Account) and Shape D
(3 sites with local postbox: Postbox field) intentionally skipped — need
module-scoped init-signature rework rather than per-site sweep.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 03:19:30 +04:00
Ilya Laktyushin
ad0f639fb5 Various fixes 2026-03-02 18:26:12 +04:00
Ilya Laktyushin
2c4c9a9d9b [WIP] Live photos 2026-02-20 13:28:58 +04:00
Ilya Laktyushin
0915a42e64 Various improvements 2025-10-16 05:30:06 +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
a8c7b217a4 Various improvements 2025-04-21 17:02:37 +04:00
Ilya Laktyushin
d1eec8686f Various improvements 2025-01-23 01:37:20 +04:00
Ilya Laktyushin
b0511f146e Various improvements 2025-01-10 05:15:00 +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
1af9eb2806 Various fixes 2024-12-06 18:49:28 +04:00
Ilya Laktyushin
eff6045b90 Various fixes 2024-12-01 14:38:33 +04:00
Ilya Laktyushin
6003931eec Various fixes 2024-11-30 15:47:37 +04:00
Ilya Laktyushin
f81443e438 Various improvements 2024-11-29 21:58:17 +04:00
Ilya Laktyushin
07436e4705 Various fixes 2024-11-29 13:12:12 +04:00
Ilya Laktyushin
d2b5476293 [WIP] Story collage 2024-11-27 18:41:03 +04:00
Ilya Laktyushin
4f255424e5 Various fixes 2024-10-14 21:38:35 +04:00
Ilya Laktyushin
cd810b940a Various fixes 2024-07-26 12:26:37 +02:00
Ilya Laktyushin
4414753d7f Various fixes 2024-07-25 21:44:05 +02:00
Ilya Laktyushin
14d36ceb0e Various fixes 2024-07-25 19:19:31 +02:00
Ilya Laktyushin
b006c36c59 Various improvements 2024-07-24 10:28:56 +04:00
Ilya Laktyushin
3e448e833e Story covers 2024-07-19 17:43:17 +04:00
Ilya Laktyushin
b1f80d475c Sticker cut out for iOS < 17 2024-04-26 14:23:15 +04:00
Ilya Laktyushin
2670be22be Fix converting static sticker to video on editing 2024-04-16 00:30:23 +04:00
Ilya Laktyushin
78a30245e7 [WIP] Stickers editor 2024-04-10 19:40:10 +04:00
Ilya Laktyushin
3e3b04e495 [WIP] Stickers editor 2024-04-10 17:37:37 +04:00
Ilya Laktyushin
a5db741b38 [WIP] Stickers editor 2024-04-08 20:34:00 +04:00
Ilya Laktyushin
f79bbc3eba [WIP] Stickers editor 2024-04-08 03:35:16 +04:00
Ilya Laktyushin
698a74b6b6 Various improvements 2024-04-06 16:38:31 +04:00
Ilya Laktyushin
0598c49a89 Various improvements 2024-04-06 15:01:03 +04:00
Ilya Laktyushin
7301013744 Sticker emoji suggestion 2024-03-31 16:24:25 +04:00
Ilya Laktyushin
8b1bd1dec0 Various improvements 2024-03-12 17:43:21 +04:00
Ilya Laktyushin
3bdcb7f223 [WIP] Sticker editor 2024-03-09 03:19:31 +04:00
Ilya Laktyushin
64eaaae4fd Various improvements 2024-02-29 01:36:56 +04:00
Ilya Laktyushin
e6def24075 [WIP] Stickers editor 2024-02-27 10:42:45 +04:00
Ilya Laktyushin
a3e0c910f7 Video message recording improvements 2024-01-12 14:49:42 +04:00
Ilya Laktyushin
d3faf52a4c Video message recording improvements 2024-01-12 11:16:22 +04:00
Ilya Laktyushin
340cc2c385 Various fixes 2023-12-31 16:31:08 +04:00
Ilya Laktyushin
6dcfc09165 Message to story sharing improvements 2023-12-27 22:27:49 +04:00
Ilya Laktyushin
595dfd18c5 Various fixes 2023-12-18 17:14:00 +04:00
Ilya Laktyushin
7d45c4c9d0 Various improvements 2023-12-16 15:57:24 +04:00
Ilya Laktyushin
60b6d45be5 Various fixes 2023-11-28 20:54:18 +04:00
Ilya Laktyushin
6fc47bed25 Various fixes 2023-11-28 18:42:03 +04:00
Ilya Laktyushin
18f41cd24f Various improvements 2023-11-28 16:03:13 +04:00
Ilya Laktyushin
3a0350ef76 Various fixes 2023-11-28 00:46:08 +04:00
Ilya Laktyushin
920406c136 Various fixes 2023-11-27 20:23:38 +04:00
Ilya Laktyushin
31925248bd Various fixes 2023-11-27 18:35:45 +04:00