37 Commits

Author SHA1 Message Date
isaac 301be02a89 Update localization 2026-04-29 21:23:36 +04:00
isaac 96089108ca Fixes 2026-04-29 16:55:37 +04:00
isaac d83734eb46 Various improvements 2026-04-28 19:00:04 +04:00
isaac 027ac77ad7 Various improvements 2026-04-28 16:58:04 +04:00
isaac 55b2b47797 Various improvements 2026-04-28 00:44:54 +04:00
isaac d1aa0db537 Postbox -> TelegramEngine waves 46-93 (squashed)
Squash of 63 commits spanning waves 46-93 (plus interspersed docs commits)
of the gradual Postbox->TelegramEngine consumer-side migration.

Scope: 139 files changed, 2123 insertions(+), 452 deletions(-).

## Themes by wave-block

**Waves 46-58 — Peer field migrations + facade additions**
Foundational EnginePeer convenience init additions (PeerReference, RenderedPeer,
SelectivePrivacyPeer). Multiple `peer: Peer` field migrations across PeerInfo,
ChatList, and SettingsUI components.

**Waves 59-73 — peer field cascade + EnginePeer wrap drops**
Series of single- to two-file peer-field migrations; consumer-side wrap
removal (`EnginePeer(peer)` -> direct EnginePeer use); `as? TelegramUser`
cast conversion to `case let .user(...)` enum match. Wave 64: RenderedPeer
convenience init. Wave 68: SelectivePrivacyPeer convenience init.

**Waves 74-83 — controller-Node bridge cleanup + small migrations**
Wave-71 shadow-pattern cleanup at controller->Node bridges. Migrations of
ChatRecentActionsController.peer (74), PeerInfoMember (75), MentionChatInputPanelItem
(76), PassportUI SecureIdAuthController (77), AccountWithInfo + ShareController
(78), peerInputActivitiesPromise (79), InactiveChannel (80), BlockedPeers (81),
openHashtag resolveSignal (82), NotificationExceptionsList (83).

**Waves 84-90 — TelegramEngine.Resources facade migrations**
Per-method Shape-A/B sweeps converting `<ctx>.account.postbox.mediaBox.X(...)`
to `<ctx>.engine.resources.X(...)`. Wave 90 was a single-commit big sweep:
40 fetchedMediaResource sites in 25 files migrated to engine.resources.fetch
facade in one atomic pass with first-pass-clean build.

Methods covered: storeResourceData, completedResourcePath, cancelInteractiveResourceFetch,
resourceRangesStatus, resourceStatus, fetch (fetchedMediaResource).

**Waves 91-92 — additional type migrations**
Wave 91: ItemListWebsiteItem.peer + RecentSessionsController enum-case payload
+ openWebSession callback Peer? -> EnginePeer?.
Wave 92: ChatListController StateHolder.EntryContext status type
MediaResourceStatus -> EngineMediaResource.FetchStatus.

**Wave 93 — speculative `import Postbox` drop sweep**
Drop import from 7 wave-touched files where it became unused; restore in 5
files where bare PeerId/Message/MediaId/StoryId references escaped the
pre-flight regex. Includes one MediaId(...) -> EngineMedia.Id(...) swap in
InAppPurchaseManager to unlock its import drop.

## Build state

Final state at squash: clean Telegram/Telegram build at debug_sim_arm64.

## Persistent-state notes

- Pre-existing WIP unchanged across the squashed range:
  - build-system/bazel-rules/sourcekit-bazel-bsp submodule marker
  - Untracked: build-system/tulsi/, submodules/TgVoip/, third-party/libx264/

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 20:48:15 +04:00
isaac 68a95f53f2 Various improvements 2026-04-24 23:21:05 +04: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 684796144c TextProcessing: style create/edit/delete, AI previews, and integration
Wires up TextProcessingScreen to the edit/delete AI text style facades,
renders AI text style webpage previews in chat bubbles, and exposes a
shared makeEmojiStatusSelectionController on SharedAccountContext so
the screen can present the emoji picker when assigning a style emoji.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 23:45:18 +02:00
Isaac 0095bfad39 Temp 2026-04-15 13:18:46 +02:00
Isaac 16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Isaac 337ffb691e Improvements 2026-03-28 21:31:09 +08:00
Isaac 14ae9a0bf5 Merge commit '784b43934a3d952fedd106b08673d7f8c1c7cbb9' 2026-03-28 21:13:42 +08:00
Isaac 6257031092 Temp 2026-03-28 21:13:25 +08:00
Ilya Laktyushin 784b43934a Update text styles data 2026-03-27 22:59:36 +01:00
Isaac 0b878e4d24 Various improvements 2026-03-28 00:52:16 +08:00
Isaac f34db983e0 Various improvements 2026-03-28 00:11:41 +08:00
Isaac c9add89043 More ai button fixes 2026-03-27 22:33:54 +08:00
Isaac 51d1b693d1 Updates 2026-03-27 20:16:52 +08:00
Isaac fe791128d6 Various improvements 2026-03-27 00:46:53 +08:00
Isaac c3181ed97e Adjust spacing 2026-03-26 00:41:21 +08:00
Isaac 90844063f7 Update 2026-03-25 00:40:04 +08:00
Isaac f48617fbec Update 2026-03-25 00:18:11 +08:00
Isaac 93bf472472 Text selection 2026-03-24 22:51:44 +08:00
Isaac a0a2f9f6bf Various improvements 2026-03-24 16:47:36 +08:00
Isaac f437e0bd04 Text editor 2026-03-24 01:39:53 +08:00
Isaac 1a17e97a7c Temp 2026-03-23 23:37:31 +08:00
Isaac 0aac8d47ac Temp 2026-03-23 21:33:34 +08:00
Isaac 675696da2b Update animation 2026-03-22 05:20:26 +03:00
Isaac b2ca658489 Translation improvements 2026-03-22 05:17:29 +03:00
Isaac 9110dda4b4 Fix color 2026-03-22 01:55:00 +03:00
Isaac 28323206b3 Temp 2026-03-22 01:41:58 +03:00
Isaac bc7858ad2b AI editing 2026-03-20 18:23:45 +01:00
Isaac 8919596469 Temp 2026-03-19 22:27:08 +01:00
Isaac 8d4926bca2 Fix 2026-03-18 01:03:20 +01:00
Isaac a2d5c530a5 Various improvements 2026-03-18 00:27:13 +01:00