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