Commit graph

36 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
41d6f727e0 Various improvements 2026-04-10 17:21:36 +02:00
Isaac
d575824ab4 Various improvements 2026-04-10 14:30:23 +02:00
Isaac
f34db983e0 Various improvements 2026-03-28 00:11:41 +08:00
Isaac
e4e5142a96 Various improvements 2026-03-10 17:50:37 +01:00
Isaac
26cc304ca0 Fix bg 2026-02-17 10:19:02 +04:00
Isaac
dde740bfe8 Various improvements 2026-02-11 22:04:54 +04:00
Isaac
ca6fdc1629 Glass 2026-01-25 00:31:18 +08:00
Isaac
2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Isaac
4a13c3830a Glass 2025-12-26 20:29:30 +08:00
Isaac
3fd1ef362c Input updates 2025-10-07 21:55:39 +08:00
Isaac
70be4f840f Update localization 2025-10-02 00:48:42 +08:00
Isaac
d5d4bad649 Various improvements 2025-09-26 19:44:40 +08:00
Isaac
1d06c3f058 Bot forums v2 2025-09-05 15:25:50 +02:00
Isaac
ee749050f0 Bot forums 2025-08-19 17:24:33 +02:00
Isaac
ded7e9695e [Temp] Create bot forum on Start 2025-08-15 15:11:12 +02:00
Isaac
826c48a4dc Bot updates 2025-08-15 13:35:06 +02:00
Isaac
b4a0e8809c Temp 2025-08-15 09:18:26 +02:00
Isaac
3ed857bfc3 Various improvements 2025-06-29 18:15:50 +02:00
Isaac
0849431ca9 Updates 2025-06-29 14:01:31 +02:00
Isaac
fd324106e3 Various improvements 2025-06-27 09:58:46 +02:00
Isaac
06eaf81fa9 [WIP] Post suggestion 2025-06-17 13:55:44 +04:00
Isaac
69feac4d97 Various improvements 2025-06-03 23:07:46 +08:00
Isaac
4fdbe44825 Various improvements 2025-05-30 21:08:32 +08:00
Isaac
db34a7c175 Monoforums 2025-05-28 17:05:37 +08:00
Isaac
3cad999c75 Fix monoforum user unread counters 2025-05-27 18:41:24 +08:00
Isaac
5d2b252850 Monoforums 2025-05-27 02:19:48 +08:00
Isaac
c984cb956b Monoforums 2025-05-27 00:56:39 +08:00
Isaac
40e26fc25c Monoforums 2025-05-26 22:07:58 +08:00
Isaac
3910ecdca2 Monoforums 2025-05-23 23:03:52 +08:00
Isaac
f1d0f694f5 [WIP] Monoforums 2025-05-21 00:23:48 +08:00
Isaac
109fa6b537 [Temp] 2025-05-20 17:25:39 +08:00
Isaac
f90402102b [WIP] Monoforums 2025-05-14 00:50:46 +08:00
Isaac
140efd6cfd [WIP] Monoforums 2025-05-10 18:02:55 +01:00
Isaac
a39313a4bb [WIP] Monoforums 2025-05-07 14:47:00 +01:00
Isaac
cbb09e4780 [WIP] Monoforums 2025-05-05 18:02:50 +02:00