Commit graph

24 commits

Author SHA1 Message Date
Ilya Laktyushin
ec8bd9acdd Various improvements 2026-06-04 01:44:36 +02:00
Ilya Laktyushin
3e6363abf9 Various improvements 2026-05-28 16:50:05 +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
Ilya Laktyushin
d88a29b378 Various improvements 2026-04-18 08:41:08 +02:00
Isaac
7f59789ffc Fix more elements 2026-01-25 00:55:04 +08:00
Isaac
ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Isaac
3f87ee8321 Fix buttons 2025-12-26 23:15:01 +08:00
Isaac
4a13c3830a Glass 2025-12-26 20:29:30 +08:00
Isaac
b9b38e5fbf Various improvements 2025-10-11 00:56:21 +08:00
Isaac
d5d4bad649 Various improvements 2025-09-26 19:44:40 +08:00
Isaac
3684c6ca15 Various improvements 2025-09-23 20:49:12 +08:00
Isaac
d4a4305f5b Various improvements 2025-09-19 15:36:36 +04:00
Isaac
04765e0c36 Update 2025-09-17 11:18:26 +04:00
Ilya Laktyushin
fdb4b80e27 Various improvements 2024-12-06 09:31:49 +04:00
Isaac
bdfe639f3e Various improvements 2024-08-20 18:16:59 +08:00
Isaac
05372b578c [WIP] Stars reactions 2024-07-30 23:44:19 +08:00
Isaac
7ef63a81df [WIP] Message effects 2024-05-10 20:57:12 +04:00
Isaac
bd4a534097 Various improvements 2024-02-02 14:32:13 +01:00
Isaac
30e7056c21 Update localization 2024-01-30 19:18:04 +01:00
Isaac
0f2eca17bd Various improvements 2024-01-30 14:53:23 +01:00
Isaac
27c5ca7474 Various improvements 2024-01-29 22:23:50 +01:00
Isaac
ca4eb2cb69 Saved message search 2024-01-28 00:15:21 +01:00
Isaac
953e1598f7 [WIP] Release changes 2024-01-26 15:33:01 +01:00
Ali
165b23570b Refactoring [skip ci] 2023-11-16 19:37:07 +04:00