Commit graph

47 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
Isaac
9a4327116d Refactor 2026-03-10 00:38:36 +01:00
Ilya Laktyushin
0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
Isaac
0c3530d8a8 Glass 2025-12-10 00:16:36 +08:00
Ilya Laktyushin
b559663d6a Various improvements 2025-11-06 13:55:58 +04:00
Ilya Laktyushin
0915a42e64 Various improvements 2025-10-16 05:30:06 +04:00
Ilya Laktyushin
8862492480 Update API 2025-06-28 17:38:45 +02:00
Isaac
931e34e1bd Temp 2024-11-27 17:37:21 +04:00
Ilya Laktyushin
551bc89e1c FIx bot app titles in settings 2023-09-29 17:04:15 +04:00
Ilya Laktyushin
441e102b0d Various improvements 2023-02-25 18:00:45 +04:00
Ilya Laktyushin
927f7786a0 Various improvements 2023-02-02 17:17:46 +04:00
Ilya Laktyushin
74cd2b6093 Various fixes 2023-01-27 19:53:44 +04:00
Ilya Laktyushin
bb11c789e2 Translation fixes 2023-01-26 23:20:27 +04:00
Ilya Laktyushin
5e314097a6 Various fixes 2023-01-25 19:54:30 +04:00
Ilya Laktyushin
7d11ba5d5e Various improvements 2023-01-24 22:29:00 +04:00
Ilya Laktyushin
29c7eb0cc0 Translation improvements 2023-01-23 21:10:27 +04:00
Ilya Laktyushin
aeb924b5ff Various fixes 2023-01-23 19:30:19 +04:00
Ilya Laktyushin
cbe32ac94b Various fixes 2022-11-16 01:35:38 +04:00
Ali
dfad27f9e8 Refactoring 2022-05-29 21:09:11 +04:00
Ali
c146d15559 Refactoring 2022-05-29 04:27:40 +04:00
Ilya Laktyushin
71bde57b6a Various Improvements 2022-04-23 05:28:29 +04:00
Ilya Laktyushin
27f0f7c0ba Various fixes 2022-04-20 16:17:41 +04:00
Ilya Laktyushin
65536651de Translation improvements 2022-03-18 22:58:29 +04:00
Ilya Laktyushin
6035a52fd3 Various Improvements 2021-12-21 18:36:44 +04:00
Ilya Laktyushin
fc8787d732 Various Improvements 2021-12-21 05:20:53 +04:00
Ilya Laktyushin
6b589a6e2f Fix localization list top overscroll background 2021-12-02 00:44:21 +04:00
Ilya Laktyushin
1d06d2c013 Various Improvements 2021-11-29 03:34:24 +04:00
Ilya Laktyushin
9e5ed66778 Various Fixes 2021-11-01 01:45:48 +04:00
Ali
1141e09c1b Refactoring 2021-09-07 13:09:06 +04:00
Ali
1a04fb4408 Refactor SyncCore back into TelegramCore 2021-07-21 21:43:20 +02:00
Ali
7bed1728bb Refactor string generation 2021-07-20 11:57:50 +02:00
Ilya Laktyushin
4a853bf13d Add stickerpack strip expansion 2021-07-07 03:12:07 +03:00
Ali
1b48517f12 Refactoring 2021-04-26 02:00:48 +04:00
Ilya Laktyushin
0f9d40016f Various Improvements 2021-03-17 09:19:57 +04:00
Ilya Laktyushin
afdd1462da Various Fixes 2021-03-14 18:08:43 +04:00
Ilya Laktyushin
e673a3153f Added list view accessibility scrolling localization 2021-02-19 20:27:25 +04:00
Ilya Laktyushin
78c90bceaf Search filters fixes 2020-09-28 22:56:49 +04:00
Ilya Laktyushin
10de5d8932 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2020-09-21 21:26:08 +03:00
Ali
d3091f0abe Improve Dynamic Type 2019-11-26 20:44:48 +04:00
Ilya Laktyushin
7ef1f54f4e Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2019-11-20 07:38:29 +04:00
Ilya Laktyushin
b1602e651a Cleanup ListView layout animation duration and curve calculations 2019-11-20 07:25:59 +04:00
Ali
eaa8bcb08e Support Dynamic Type 2019-11-19 23:28:36 +04:00
Peter
10692a323e Refactor SyncCore 2019-10-21 16:58:00 +04:00
Peter
5fed1fbeb1 Temp 2019-10-07 17:03:41 +04:00
Ilya Laktyushin
5bb1ba67b7 Wallet improvements 2019-09-27 08:54:38 +03:00
Peter
c3bd5685eb Refactor SettingsUI and related modules 2019-08-17 20:31:41 +03:00
Renamed from submodules/TelegramUI/TelegramUI/LocalizationListControllerNode.swift (Browse further)