Commit graph

59 commits

Author SHA1 Message Date
83f209e44a chore: bump version to 1.2 2026-06-30 15:01:22 +03: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
de21dedbe3 Fix offsets 2026-04-24 23:42:53 +04:00
isaac
4e192fda4d Fix reply panel animation 2026-04-24 23:24:20 +04:00
isaac
6c2f370a8f Fix fast-send morph starting position
The bubble-in-text-input morph ran concurrently with listNode's
scroll-to-item sublayerTransform animation, but its source rect was
computed via CALayer.convert which uses model transforms only and so
missed the pending additive sublayerTransform. The morph's `from`
ended up calibrated to the post-scroll state while playback started
from the pre-scroll state, offsetting the bubble at t=0.

Add convertAnimatingSourceRectFromWindow: walks the layer chain
top-down and at each parent->child step subtracts the parent's pending
additive sublayerTransform translation in the parent's bounds space
before descending, so the result reflects the t=0 presentation state
even through rotations/scales later in the chain. Parent
animatingItemNode under itemNode so listNode is on its ancestor chain
and its pending sublayerTransform is picked up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 23:21:04 +04:00
Isaac
d575824ab4 Various improvements 2026-04-10 14:30:23 +02:00
Isaac
72fbe5d7a7 Various improvements 2026-03-13 14:54:44 +01:00
Ilya Laktyushin
c654227b83 Various fixes 2026-01-05 15:14:19 +04:00
Isaac
06936fa06c Text input updates 2025-10-03 18:47:47 +08:00
Isaac
09c49d47d9 [WIP] Monoforums 2025-05-16 21:03:00 +08:00
Isaac
1b1846dc63 Draw effects on top of the keyboard 2024-06-11 17:54:13 +04:00
Isaac
fe788ed9ea Message preview and effect improvements 2024-05-21 00:02:55 +04:00
Isaac
9cfdc27443 Various improvements 2024-03-27 19:00:12 +04:00
Isaac
d8026b4009 [WIP] Premium setup 2024-03-15 15:10:58 +04:00
Isaac
f2ff2e9f3a Saved messages tab improvements 2024-01-29 00:09:32 +01:00
Ilya Laktyushin
42421342b8 Video message recording improvements 2024-01-14 17:31:02 +04:00
Ali
165b23570b Refactoring [skip ci] 2023-11-16 19:37:07 +04:00
Ali
d367d66899 Refactoring 2023-10-15 15:56:50 +04:00
Ali
8e566ed820 Refactoring [skip ci] 2023-10-15 14:47:43 +04:00
Ali
b995c69020 Refactoring [skip ci] 2023-10-15 00:15:49 +04:00
Ali
2f700ac59c Refactoring 2023-10-14 23:50:34 +04:00
Ali
abacd0654b Refactoring 2023-10-14 22:48:53 +04:00
Ali
b17138d501 [WIP] Quotes 2023-10-09 20:46:17 +04:00
Ilya Laktyushin
6c7b921030 Fix stickers search 2023-07-12 20:17:01 +02:00
Ali
7dd76ef329 [WIP] Stories 2023-04-28 20:20:46 +04:00
Ilya Laktyushin
77df1cf45a Various improvements 2022-12-17 15:35:00 +04:00
Ali
131be5aaab Input node improvements 2022-06-28 22:54:05 +02:00
Ali
0f1b382265 [Temp] Input panel progress 2022-06-21 21:47:01 +01:00
Ali
cff972c968 Sticker refactoring 2022-06-08 20:44:14 +04:00
Ilya Laktyushin
7ecbf5338a Attachment menu improvements 2022-03-10 13:30:15 +04:00
Ilya Laktyushin
c7c46e23b0 Attachment menu improvements 2022-03-09 14:07:37 +04:00
Ilya Laktyushin
8f44a8fee6 Attachment menu improvements 2022-03-08 20:44:45 +04:00
Ali
62cebdbc2d Reaction improvements 2021-12-23 22:30:30 +04:00
Ali
f830972d32 Reaction improvements 2021-12-21 17:56:56 +04:00
Ali
fb6f97202f Context menu improvements 2021-12-21 14:19:16 +04:00
Ali
7c8315218a Reaction improvements 2021-12-15 02:05:14 +04:00
Ali
9ad9720707 LottieMesh experiment 2021-10-12 15:07:00 +04:00
Ilya Laktyushin
2f3bdcead2 Fix emoji animations positioning on iPad 2021-09-15 02:34:21 +03:00
Ilya Laktyushin
d022ad7d91 Various Fixes 2021-09-14 11:31:49 +03:00
Ilya Laktyushin
705bcfc496 Various Fixes 2021-09-11 13:49:54 +03:00
Ilya Laktyushin
655600adb3 Emoji animations improvements 2021-09-10 23:26:54 +03:00
Ali
6aa79050b0 Fix message animations on iPad 2021-06-13 01:50:23 +04:00
Ali
d0d06bc650 Fix gradient background animation 2021-06-11 01:28:48 +04:00
Ali
a6f39e5a77 UI and theme improvements 2021-05-21 20:42:10 +04:00
Ali
a984721970 Update animations 2021-05-20 03:37:33 +04:00
Ali
99dc1a8743 Blur and background updates 2021-05-18 19:30:41 +04:00
Ali
858febd263 Debugging 2021-05-08 01:16:31 +04:00
Ali
a5f4d23489 UI combo update 2021-05-07 18:10:31 +04:00
Ilya Laktyushin
ff7fc4b142 Upgrade greeting sticker to new transition animation 2021-05-05 19:11:18 +04:00
Ali
c07f1f4631 WIP 2021-04-27 18:38:00 +04:00