Commit Graph
108 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
isaacisaacClaude Opus 4.7
8408e0ae19 Postbox -> TelegramEngine waves 27-36
Consumer-sweep, facade-addition, and Peer→EnginePeer migrations:

- Wave 27: preferencesView consumer sweep
- Wave 28: resourceData consumer sweep
- Wave 29: resourceStatus consumer sweep
- Wave 30: _asStatus() bridge cleanup
- Wave 31: unused-import sweep re-run
- Wave 32: resourceStatus residue sweep
- Wave 33: loadedPeerWithId consumer sweep
- Wave 34: FoundPeer.peer Peer -> EnginePeer
- Wave 35: SendAsPeer.peer Peer -> EnginePeer
- Wave 36: ContactListPeer.peer Peer -> EnginePeer

Also includes per-wave specs, implementation plans, outcome logs, and
a CLAUDE.md wave-counter update.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 11:24:13 +04:00
IsaacandIsaac 4a13c3830a Glass 2025-12-26 20:29:30 +08:00
Ilya Laktyushin a443df81dd Various improvements 2025-11-15 02:12:21 +04:00
Ilya Laktyushin 5e17b321f8 Various improvements 2025-11-13 22:06:24 +04:00
Ilya Laktyushin e9a3e599a1 Various improvements 2025-11-13 15:16:41 +04:00
Ilya Laktyushin e680691988 Update API 2025-11-12 22:06:23 +04:00
Ilya Laktyushin bdcc80e649 Various improvements 2025-11-12 18:20:38 +04:00
Ilya Laktyushin 412e02ef00 Gift auctions 2025-11-12 04:46:02 +04:00
Ilya Laktyushin e7c698d5f1 Various fixes 2025-08-23 21:40:21 +04:00
Ilya Laktyushin a60a437206 Various improvements 2025-08-22 21:46:07 +04:00
Ilya Laktyushin 0bac271cdb [WIP] Saved music 2025-08-21 09:08:35 +04:00
Ilya Laktyushin 88405d99ec Various improvements 2025-06-13 18:19:01 +02:00
IsaacandIsaac d486f529a3 Various improvements 2025-06-06 20:20:42 +08:00
IsaacandIsaac f1d0f694f5 [WIP] Monoforums 2025-05-21 00:23:48 +08:00
IsaacandIsaac 109fa6b537 [Temp] 2025-05-20 17:25:39 +08:00
IsaacandIsaac 4bbea1f0d0 Conference improvements 2025-04-18 17:56:24 +04:00
IsaacandIsaac ebdd7b37ed Fix call panel 2025-04-17 22:01:19 +04:00
IsaacandIsaac aaf52d4282 Conference calls 2025-03-30 02:06:50 +04:00
IsaacandIsaac 3e74304640 [WIP] Conference calls 2025-02-06 21:12:05 +04:00
IsaacandIsaac 8103b08ec0 Update localization 2024-11-15 00:52:38 +04:00
IsaacandIsaac 3797f3af4f Video improvements 2024-11-08 16:26:01 +01:00
IsaacandIsaac de6836fa5d Various improvements 2024-11-05 15:33:17 +01:00
Ilya Laktyushin 6109477015 Various improvements 2024-08-11 00:14:00 +02:00
Ilya Laktyushin 39598deb04 Add reply action in gallery 2024-07-03 21:43:18 +04:00
IsaacandIsaac 27c5ca7474 Various improvements 2024-01-29 22:23:50 +01:00
IsaacandIsaac d4f7440703 Saved message improvements 2024-01-29 21:23:19 +01:00
IsaacandIsaac 5e4a9cff28 [WIP] Saved tags 2024-01-10 00:45:01 +04:00
Ilya Laktyushin f11c070862 [WIP] View-once audio messages 2023-12-29 04:50:22 +04:00
AliandAli af8474aca5 [WIP] Quotes and link previews 2023-10-18 01:11:23 +04:00
AliandAli 34e8c54bb0 Stories 2023-06-20 12:26:09 +03:00
AliandAli 39b395c2fa Stories 2023-06-19 23:59:38 +03:00
AliandAli 6a548e11a6 Refactoring [skip ci] 2023-04-19 23:47:38 +04:00
Ilya Laktyushin 272f538060 Various improvements 2023-03-22 16:11:37 +04:00
Ilya Laktyushin ce5053c6ff Various fixes 2023-03-05 17:30:36 +04:00
Ilya Laktyushin 1502134ca6 Audio rate fixes 2023-03-02 11:04:50 +04:00
Ilya Laktyushin 441e102b0d Various improvements 2023-02-25 18:00:45 +04:00
Ilya Laktyushin 064fb7ae3e Various improvements 2023-02-14 22:44:44 +04:00
Ilya Laktyushin 88dd028371 Improve audio playback rate controls 2023-02-10 07:48:41 +04:00
Ilya Laktyushin 78b02192cf Various improvements 2023-02-06 18:28:18 +04:00
AliandAli 38912b874e [WIP] Topics 2022-10-24 22:37:59 +04:00
Ilya Laktyushin bb06841df3 Various improvements 2022-08-28 15:07:00 +02:00
AliandAli e8d124c812 Refactoring 2022-05-28 18:26:23 +04:00
AliandAli af1b794332 Refactoring 2022-05-26 23:11:44 +04:00
AliandAli a9c595a640 Another feed experiment 2022-03-18 22:55:06 +04:00
AliandAli 089642a0bb Stream improvements 2022-02-26 02:22:10 +04:00
AliandAli baec592ca1 Streaming improvements 2022-02-24 01:13:10 +04:00
AliandAli 6e5c503338 Refactoring 2021-09-20 14:51:46 +03:00
AliandAli 1141e09c1b Refactoring 2021-09-07 13:09:06 +04:00
AliandAli 235934ae8a Separate channel voice chat localization 2021-08-29 18:13:57 +04:00