Telegram-iOS/submodules/TelegramStringFormatting/Sources
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
..
Birthday.swift Various improvements 2025-01-27 23:44:07 +04:00
ContactInfoStrings.swift
CurrencyFormat.swift Update API 2025-08-25 17:23:25 +04:00
DataSizeFormat.swift Various Improvements 2021-03-21 17:27:32 +05:00
DateFormat.swift Update API 2026-02-10 12:58:04 +04:00
DeviceType.swift
Geo.swift Various fixes 2023-10-24 15:13:42 +04:00
GiftFormat.swift Gift format 2025-08-08 15:23:59 +04:00
InstantPagePreviewText.swift InstantPage list checkboxes (task-list style): parse, serialize, render 2026-05-27 16:44:47 +02:00
Locale.swift
MessageContentKind.swift Make rich messages editable via InstantPage↔markdown round-trip 2026-05-26 23:10:48 +02:00
NumberFormat.swift
PeerDisplayName.swift Bug fixes 2026-02-06 17:14:35 +04:00
PeerNotificationSoundStrings.swift Various improvements 2025-03-07 17:52:50 +01:00
PresenceStrings.swift Various fixes 2026-03-03 20:26:45 +04:00
ServiceMessageStrings.swift Update API 2026-03-26 09:26:15 +01:00
StringForDuration.swift
TonFormat.swift Various improvements 2026-01-25 22:17:49 +04:00
WeatherFormat.swift Various fixes 2024-08-04 20:35:09 +02:00