Repository navigation
Conversation
- Render messages with the same BB pipeline as forum posts (TopicNodeBuilder + TopicView): quotes, code, spoilers, lists, colors, images, smiles - Show image attachments inside the bubble with fullscreen viewer, non-image files as download rows; skip ones already referenced in text - New composer: BB panel (b/i/u/s/quote/code) with tag wrapping of selection, autofocus after tag insert, file upload to QMS storage (isQms) - Send uploaded files as message attachments (QMSClient.sendMessage attaches) - Custom message bubble: partner avatar once per group, compact text bubbles with inline time, tinted own messages, grouped spacing - SelectableTextView: public, optional focus binding, clears when content is reset while editing, smart quotes/dashes disabled for BB attributes - QMSParser: don't crash on unknown attachment type Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Доделка QMS из раздела «В планах» README: поддержка файлов и BB-кодов.
Что сделано
Отображение сообщений
TopicNodeBuilder+TopicView) черезmessageBuilderExyteChat. РаньшеQMSBuilderсклеивал узлыBBRendererв плоскую строку: quote/spoiler/code превращались обратно в сырые теги, а списки, выравнивание,[img], смайлы и[hide]пропадали (default: breakвjoined()). Также ExyteChat перекрашивал весь текст, из-за чего терялись[color].DeeplinkHandler.[attachment=...]), не дублируются. В билдер передаются только они — иначе он добавлял лишний спойлер «Прикреплённые изображения».Отправка
SelectableTextView+ кнопка 📎, открывающаяBBPanelViewс уже заготовленным наборомBBPanelType.qms(b/i/u/s/quote/code) и загрузкой файлов. Тег оборачивает выделение, после вставки поле получает фокус.UploadBoxFeature.State.isQms— файлы грузятся в хранилище QMS (UploadRequest(isQms: true)), в QMS-режиме подсказка UploadBox своя и[attachment]в текст не вставляется.QMSClient.sendMessageпринимаетattachments: [Int]→QMSCommand.Message.send(..., attaches:).Прочее
SelectableTextViewсделан public, добавлен опциональныйisFocused, исправлено: при сбросеcontentво время редактирования текст не очищался. Отключены smart quotes/dashes — они ломали[url="..."](затрагивает и форму постов, в лучшую сторону).QMSParser:try!при разборе вложений заменён на безопасный вариант.Проверено
Xcode 27.2, симулятор iPhone 18 Pro (iOS 27.2), реальный аккаунт, тестовый диалог:
[b],[i],[u],[quote],[code]— корректное отображение;Не проверено
fullUrl= nil), поэтому полноэкранно показывается оно же.Независим от #65 (закладки): общий только
Project.swift