Commit graph

121 commits

Author SHA1 Message Date
isaac
cbf8f6b3f4 Filter url 2026-06-04 01:46:25 +02:00
Ilya Laktyushin
3e6363abf9 Various improvements 2026-05-28 16:50:05 +02:00
Ilya Laktyushin
91eb779ae2 Merge commit 'c64653ed37' 2026-05-14 12:45:26 +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
493f3103b3 Postbox -> TelegramEngine waves 37-43 + wave 44 design/plan (squashed)
Squashes 20 commits — the implementation and outcome commits of
waves 37 through 43 plus wave 44's spec and implementation-plan
docs — into a single commit. Per-wave lessons remain recorded in
docs/superpowers/postbox-refactor-log.md. The unrelated "Add swift
svg" commit is preserved separately outside this squash.

Wave 37 — peerTokenTitle: peer Peer → EnginePeer (1 file)
Wave 38 — canSendMessagesToPeer: peer Peer → EnginePeer (12 files)
Wave 39 — AccountContext.makePeerInfoController: peer Peer → EnginePeer (52 files)
Wave 40 — makeChatQrCodeScreen + makeChatRecentActionsController bundle (8 files)
Wave 41 — RenderedChannelParticipant.peer: Peer → EnginePeer (28 files)
Wave 42 — PeerInfoScreenData.peer: Peer? → EnginePeer? (17 files)
Wave 43 — PeerInfoScreen 6 helpers: peer Peer? → EnginePeer? (12 files)
Wave 44 — RenderedChannelParticipant.peers design doc + implementation plan
         (impl and outcome land in subsequent commits, not part of squash)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 23:19:43 +04:00
isaac
524c29cbe3 Various improvements 2026-04-22 00:32:34 +04:00
Isaac
bc7858ad2b AI editing 2026-03-20 18:23:45 +01:00
Ilya Laktyushin
e12e096919 Various fixes 2026-02-27 00:53:51 +04:00
Ilya Laktyushin
1d80861e09 Various improvements 2026-02-23 13:51:13 +04:00
Ilya Laktyushin
0d12dd29ad Various improvements 2026-01-25 22:17:49 +04:00
Ilya Laktyushin
2edce5ebf2 Alerts 2025-12-22 00:19:11 +04:00
Ilya Laktyushin
28d4e1e171 Various improvements 2025-12-16 20:05:44 +04:00
Ilya Laktyushin
412e02ef00 Gift auctions 2025-11-12 04:46:02 +04:00
Ilya Laktyushin
76757b5f3d Login email setup 2025-10-31 00:07:28 +04:00
Ilya Laktyushin
94ee23649d Various improvements 2025-09-09 20:39:17 +04:00
Ilya Laktyushin
bdaf5f5a02 Various fixes 2025-08-18 17:33:54 +04:00
Ilya Laktyushin
72c58813a8 Various improvements 2025-08-01 23:25:24 +02:00
Ilya Laktyushin
7a99577093 Merge branches 'master' and 'master' of gitlab.com:peter-iakovlev/telegram-ios 2025-07-29 17:47:08 +02:00
Ilya Laktyushin
3c87b308f8 Various improvements 2025-07-29 17:39:46 +02:00
Isaac
e91809a683 Various improvements 2025-07-29 14:36:00 +02:00
Ilya Laktyushin
81e11d6d36 Various improvements 2025-05-20 22:30:48 +02:00
Ilya Laktyushin
874fac0c63 Various fixes 2025-05-01 20:38:45 +04:00
Isaac
aaf52d4282 Conference calls 2025-03-30 02:06:50 +04:00
Ilya Laktyushin
8f0481be16 Various fixes 2025-02-09 00:38:53 +04:00
Ilya Laktyushin
cdc82e4235 Update API 2025-01-06 16:00:43 +04:00
Isaac
c229c3c94f Stars ref 2024-11-29 18:04:15 +04:00
Isaac
931e34e1bd Temp 2024-11-27 17:37:21 +04:00
Ilya Laktyushin
8180c08855 Various improvements 2024-11-11 23:37:33 +04:00
Ilya Laktyushin
bd1cbdae5a Various improvements 2024-10-29 13:46:22 +04:00
Ilya Laktyushin
1cb85c3d73 Various fixes 2024-08-16 19:29:16 +02:00
Ilya Laktyushin
2bf11a6279 Various improvements 2024-08-09 17:43:47 +02:00
Ilya Laktyushin
28728b2ece Various fixes 2024-08-02 16:27:56 +02:00
Ilya Laktyushin
076bfc4ebd Various fixes 2024-08-01 12:01:00 +02:00
Ilya Laktyushin
f03f0ab40a Various fixes 2024-08-01 11:57:20 +02:00
Ilya Laktyushin
606e33607a Browser improvements 2024-07-25 14:39:07 +02:00
Ilya Laktyushin
1c7834ad57 Various improvements 2024-07-23 22:01:56 +04:00
Ilya Laktyushin
4e46697a66 Browser improvements 2024-07-22 20:03:13 +04:00
Ilya Laktyushin
345616704a Browser improvements 2024-07-22 07:11:46 +04:00
Ilya Laktyushin
e4d9d2e53a Various improvements 2024-07-16 17:39:42 +04:00
Isaac
692931b27b Merge commit '1969d38e0f'
# Conflicts:
#	submodules/TelegramUI/Sources/OpenUrl.swift
2024-07-16 13:34:34 +08:00
Ilya Laktyushin
ada188209e Various improvements 2024-07-16 06:41:23 +04:00
Isaac
db1541b2c4 tonsite url handling 2024-07-16 08:10:10 +08:00
Isaac
649b7e4ee6 Various improvements 2024-07-12 13:37:14 +04:00
Ilya Laktyushin
cf49acb4aa Various fixes 2024-04-29 17:45:32 +04:00
Isaac
e9f4fd3a25 - forwarded from improvements
- sticker categories
2024-04-22 16:43:18 +04:00
Isaac
9173f973a3 Test UI 2024-04-04 16:55:10 +04:00
Isaac
7e1ebdbc8c Merge commit '40007ea9d0'
# Conflicts:
#	submodules/TelegramUI/Sources/OpenUrl.swift
2024-03-28 16:03:19 +04:00
Isaac
d192889e0e Improvements 2024-03-28 16:02:30 +04:00
Ilya Laktyushin
f81856351a Various improvements 2024-03-28 13:23:23 +04:00
Ilya Laktyushin
7772e257b2 Various improvements 2024-03-20 17:21:16 +04:00