Commit graph

43 commits

Author SHA1 Message Date
Ilya Laktyushin
622f9d970a Various fixes 2026-05-31 17:35:32 +02:00
Ilya Laktyushin
e0f4655cc5 Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios 2026-05-29 09:24:16 +02:00
Ilya Laktyushin
3e6363abf9 Various improvements 2026-05-28 16:50:05 +02:00
isaac
81e3be1923 InstantPage list checkboxes (task-list style): parse, serialize, render
Add a first-class `checked: Bool?` to InstantPageListItem (orthogonal to the
ordered-list `num`), replacing the prior sentinel-string-in-num prototype.

- Data model: enum third associated value on .text/.blocks; Postbox + a new
  FlatBuffers `checkState` tri-state field (0=nil,1=unchecked,2=checked,
  backward-compatible); Equatable.
- Transmission: read/write the native API `checkbox`=flags.0 / `checked`=flags.1
  bits on all four PageListItem / PageListOrderedItem constructors, so checkbox
  state survives the server round-trip for sender and recipients.
- Markdown: forward parser routes detected `[ ]`/`[x]` into `checked` (keeping
  the real number for ordered items); reverse converter emits `- [ ]`/`- [x]`
  so editing a rich message round-trips.
- Display: V1 + V2 layout detect via `item.checked`; the V2 renderer draws real
  CheckNode artwork (was a placeholder); preview text shows a checkbox glyph
  instead of leaking the old sentinel.

Spec: docs/superpowers/specs/2026-05-27-instantpage-list-checkbox-design.md
Plan: docs/superpowers/plans/2026-05-27-instantpage-list-checkbox.md

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 16:44:47 +02:00
isaac
fdb2f369ec Rich bubble: scrollToAnchor + getAnchorRect
Adds a base getAnchorRect on ChatMessageBubbleContentNode, the rich-bubble
override (including titleHeight in details recursion), bubble-item
forwarding to content nodes, ChatControllerInteraction.scrollToMessageIdWithAnchor,
and a scrollToAnchor that lands the anchor at the top of the content area /
its line. Threads anchor/scroll params through ChatController and related
call sites.
2026-05-02 00:36:34 +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
Ilya Laktyushin
f41630083a Various improvements 2026-04-24 03:16:14 +02:00
Ilya Laktyushin
dbd40fe7d3 Various improvements 2026-04-22 23:03:51 +02:00
Isaac
4ae15b42a7 Postbox -> TelegramEngine wave 3: MediaBox fetch/status/data facades + SaveToCameraRoll
Adds three thin forwarding methods on TelegramEngine.Resources
(fetch, status, data) over MediaBox, then migrates SaveToCameraRoll's
three public functions to use them, drops import Postbox from the
module (source + Bazel dep), and updates all 23 call sites across 14
caller files atomically.

Bundled: spec + fix + plan + C1 facades + C2 SaveToCameraRoll rewrite
+ BUILD dep drop + CLAUDE.md outcome.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 23:45:34 +02:00
Isaac
16c630b946 Refactoring 2026-04-03 15:50:39 +08:00
Isaac
2db08cde89 Glass 2026-01-13 19:21:49 +04:00
Ilya Laktyushin
966182bd2f Various improvements 2025-12-29 10:05:51 +04:00
Isaac
1fb93ab298 Various improvements 2025-02-25 14:46:07 +00:00
Ilya Laktyushin
4f42e41180 Update API [skip ci] 2025-02-21 17:23:25 +04:00
Ilya Laktyushin
d167aa4b0e Update API [skip ci] 2025-02-18 10:09:58 +04:00
Isaac
4ac6d40d44 Merge commit 'e3ee1dde7e'
# Conflicts:
#	Telegram/Telegram-iOS/en.lproj/Localizable.strings
#	submodules/TelegramApi/Sources/Api0.swift
#	submodules/TelegramApi/Sources/Api15.swift
#	submodules/TelegramCore/Sources/ApiUtils/TelegramMediaAction.swift
2024-12-27 20:11:21 +08:00
Ilya Laktyushin
6e850130fd Update API [skip ci] 2024-12-26 07:27:14 +04:00
Isaac
df9e27f4fb [Temp] video v2 2024-12-25 00:18:02 +08:00
Ilya Laktyushin
dce651616e Update API [skip ci] 2024-12-18 21:40:23 +04:00
Ilya Laktyushin
bd1cbdae5a Various improvements 2024-10-29 13:46:22 +04:00
Ilya Laktyushin
060c2e9c37 Various improvements 2024-10-14 18:41:24 +04:00
Ilya Laktyushin
ef51bad0be Various fixes 2024-09-03 17:18:22 +04:00
Ilya Laktyushin
707d5137ca Various improvements 2024-08-30 16:07:11 +04:00
Ilya Laktyushin
5978a5278d Local instant view 2024-08-29 11:44:05 +04:00
Ilya Laktyushin
d4b769f5a1 Various fixes 2024-08-23 01:45:37 +04:00
Ilya Laktyushin
ab19c3d8fb Various fixes 2024-08-02 11:04:10 +02:00
Ilya Laktyushin
4928372289 Various fixes 2024-08-02 10:38:08 +02:00
Ilya Laktyushin
f6b2464ace Various fixes 2024-07-26 14:31:17 +02:00
Ilya Laktyushin
e0f95989d4 Browser improvements 2024-07-25 17:04:44 +02:00
Ilya Laktyushin
606e33607a Browser improvements 2024-07-25 14:39:07 +02:00
Ilya Laktyushin
8120dde68c Various improvements 2024-07-25 00:54:36 +02:00
Ilya Laktyushin
b006c36c59 Various improvements 2024-07-24 10:28:56 +04:00
Ilya Laktyushin
1c7834ad57 Various improvements 2024-07-23 22:01:56 +04:00
Ilya Laktyushin
3a38e70fda Various fixes 2024-07-18 19:39:49 +04:00
Isaac
a4b4bb5a82 [WIP] Bot previews 2024-07-16 19:12:26 +08:00
Ilya Laktyushin
b4cc4e0bd0 Various improvements 2024-07-16 02:41:00 +04:00
Ilya Laktyushin
1466cd82fe Various improvements 2024-07-14 21:59:25 +04:00
Ilya Laktyushin
4216ee3933 Various improvements 2024-07-13 18:13:58 +04:00
Ilya Laktyushin
f5092b8d8d Web app improvements 2024-07-02 21:03:22 +04:00
Isaac
9a075fa39e Refactoring 2024-06-12 23:04:04 +04:00
Ali
99047a4de4 Context menu pagination 2023-10-24 12:59:28 +04:00
Ilya Laktyushin
bc1930be7c Initial in-app browser implementation 2023-02-18 00:59:18 +04:00
Ilya Laktyushin
9dddffe708 Add bot to chat improvements 2022-03-16 01:17:28 +04:00