Commit graph

32 commits

Author SHA1 Message Date
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
16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Ilya Laktyushin
bbad57434f Various fixes 2026-02-02 15:54:43 +04:00
Ilya Laktyushin
4d64ba28a5 Various improvements 2026-01-29 02:48:56 +04:00
Ilya Laktyushin
142d59cf8f Various improvements 2026-01-27 22:24:31 +04:00
Ilya Laktyushin
0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
Isaac
bc6b472960 Temp glass UI 2026-01-20 22:30:38 +08:00
Isaac
1b52877d0b Fix build 2026-01-16 21:48:09 +08:00
Mikhail Filimonov
db93244583 update api (rarities, crafted) 2026-01-16 16:20:08 +04:00
Isaac
2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin
dbd5dd9912 Fix auction gift resale 2026-01-08 18:46:37 +04:00
Ilya Laktyushin
1a1f08de64 Various improvements 2025-12-17 14:31:54 +04:00
Ilya Laktyushin
7621e2f8de Various fixes 2025-12-06 02:17:23 +04:00
Ilya Laktyushin
3b1b668fe4 Fix 2025-12-06 00:04:28 +04:00
Ilya Laktyushin
2cb0c7f147 Various improvements 2025-12-04 07:56:44 +04:00
Ilya Laktyushin
4660f67271 Update localization 2025-12-03 22:25:26 +04:00
Ilya Laktyushin
6a09d2e4e6 Various improvements 2025-12-03 17:59:09 +04:00
Ilya Laktyushin
0044bde566 Various improvements 2025-12-02 23:02:12 +04:00
Ilya Laktyushin
ecb12a784e Various improvements 2025-12-02 19:22:06 +04:00
Ilya Laktyushin
653ee1b299 Update API 2025-12-02 14:28:47 +04:00
Ilya Laktyushin
50fe471cb6 Show extended auction round info 2025-12-02 13:02:06 +04:00
Ilya Laktyushin
5046aab8ff Update API 2025-12-02 12:36:05 +04:00
Ilya Laktyushin
6bc1fe1939 Various improvements 2025-12-01 19:54:58 +04:00
Ilya Laktyushin
74b761c53f Various improvements 2025-11-16 01:22:06 +04:00
Ilya Laktyushin
a443df81dd Various improvements 2025-11-15 02:12:21 +04:00
Ilya Laktyushin
82addaa434 Various improvements 2025-11-15 01:14:50 +04:00
Ilya Laktyushin
09bbf8df9c Various fixes 2025-11-14 14:35:42 +04:00
Ilya Laktyushin
5e17b321f8 Various improvements 2025-11-13 22:06:24 +04:00
Ilya Laktyushin
e680691988 Update API 2025-11-12 22:06:23 +04:00
Ilya Laktyushin
ac28ed9d74 Various improvements 2025-11-12 17:47:34 +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