# Parity: compose area (CreatePost, editor, popover, emoji, attachments, mentions, poll creation) Sources: INV-social 9, 10, 17..20 and Appendix A, INV-posts 4, 6, 10 and the Swift files they cite. No Apple reference renders exist (A-02): PASS means "matches spec values" (numbers, strings, flows checked in code, tests and the screenshots listed), never pixel identity. Screenshots: `docs/parity/shots/compose/`. Tests: `tests/unit/Compose*Test.cpp`, scripts: `tests/e2e/compose-*.script`. Extra harness ids (not in Swift): `compose-lab`, `attachment-viewer`, `uploader`. | iOS screen/feature | C++ file:line | PASS or DIFF | reason | screenshot path | |---|---|---|---|---| | CreatePost layout tree (topic, title, message, attachments, poll, project; spacing 14, padding 16) | src/screens/create/CreatePostScreen.cpp:248 | PASS | matches spec values | docs/parity/shots/compose/create-post.png | | Nav title Create New Post / Edit Post, Close, Create (send icon) / Save (check icon) | src/screens/create/CreatePostScreen.cpp:178 | PASS | strings and icons per INV-posts 4.1 | docs/parity/shots/compose/edit-post.png | | Topic picker (7 topics, capitalized, default Random) | src/screens/create/CreatePostScreen.cpp:189 | DIFF | menu shows "Topic" plus the selected value only; SwiftUI menu picker rendering outside a Form is not measured (A-02) | docs/parity/shots/compose/create-post.png | | Title field (devPlace style), placeholder, counter 0/500 (padding 11) | src/screens/create/CreatePostScreen.cpp:197 | DIFF | placeholder uses the framework text field opacity 0.6 instead of FG_2 at 0.5; counter PASS | docs/parity/shots/compose/create-post.png | | Message editor initialLineCount 7, counter min 10 max 125000 red when out of range | src/screens/create/CreatePostScreen.cpp:209 | PASS | counters count UTF-16 units (TextCount::utf16), test compose_create_validation_uses_utf16_units | docs/parity/shots/compose/create-poll.png | | canSubmit (title <= 500, message 10..125000) and disabled submit | src/screens/create/CreatePostScreen.cpp:75 | PASS | unit tested incl. emoji surrogate pairs | docs/parity/shots/compose/create-post.png | | Drafts: create mode persists title and message on every change, edit mode never | src/screens/create/CreatePostScreen.cpp:84 | PASS | test compose_create_drafts_persist_only_in_create_mode | docs/parity/shots/compose/create-post.png | | Submit flow (clean title, createPost / editPost, loadFeed ignored errors, reset, dismiss, onComplete, error alert) | src/screens/create/CreatePostScreen.cpp:136 | PASS | test compose_create_submit_resets_fields_and_calls_back, script compose-lab.script | docs/parity/shots/compose/create-post.png | | Edit prefill (topic fallback Random, title, content), project not prefilled, project_uid "" when none | src/screens/create/CreatePostScreen.cpp:56 | PASS | per INV-posts 4.3 | docs/parity/shots/compose/edit-post.png | | Projects load on appear (api.profile), failure only logged, row hidden when empty | src/screens/create/CreatePostScreen.cpp:109 | PASS | cap 200 projects (hard cap, not in Swift) | docs/parity/shots/compose/create-post.png | | Unsubmitted attachments deleted on disappear | src/screens/create/CreatePostScreen.cpp:105 | PASS | also on destruction (sheet closed by Esc or tap outside) | docs/parity/shots/compose/create-poll.png | | Add Poll / Remove Poll toggle pads 2 options | src/screens/create/CreatePostScreen.cpp:224 | PASS | test compose_create_poll_toggle_pads_two_options | docs/parity/shots/compose/create-poll.png | | CreatePollView (question, divider, 2..6 options, trash > 2, Add option < 6, return advances focus) | src/screens/components/CreatePoll.cpp:43 | PASS | rules unit tested (compose_poll_rules) | docs/parity/shots/compose/create-poll.png | | DevPlaceTextEditor container (BoxView BG_1, border 0.5, radius 14, padding none, text inset 10/10) | src/screens/components/DevPlaceTextEditor.cpp:145 | PASS | matches spec values | docs/parity/shots/compose/create-poll.png | | DevPlaceTextEditor placeholder (FG_2 at 0.5, padding 8/5 plus 5/2) | src/screens/components/DevPlaceTextEditor.cpp:158 | PASS | placeholder layer keeps the input id (focus survives the first character) | docs/parity/shots/compose/create-post.png | | DevPlaceTextEditor resize band 24 pt, grip, min one line, fill mode | src/screens/components/DevPlaceTextEditor.cpp:73 | PASS | test compose_editor_keeps_focus_and_resizes_with_the_band; a tap in the band is forwarded to the input | docs/parity/shots/compose/create-post.png | | DevPlaceTextEditor animatesHeightChanges, TextSelection binding | src/screens/components/DevPlaceTextEditor.hpp:1 | DIFF | height never animates; caret exposed through ui::TextInputHandle instead of a selection binding | docs/parity/shots/compose/create-post.png | | SelectableTextPopover long press 0.5 s, raw text, select first word, select all, copy, insert as quote | src/screens/components/SelectableTextPopover.cpp:168 | PASS | test compose_popover_long_press_copy_and_quote; quote string "> text\n\n" | docs/parity/shots/compose/popover.png | | SelectableTextPopover selection and chrome | src/screens/components/SelectableTextPopover.cpp:77 | DIFF | mouse drag and double click select (no iOS handles); popover is the Overlays card, not a UIKit popover with arrow; icons are Lucide (first word uses map-pin) | docs/parity/shots/compose/popover.png | | QuoteComposer (active, insert) | src/screens/components/QuoteComposer.hpp:1 | PASS | plain struct passed explicitly instead of an environment value | docs/parity/shots/compose/popover.png | | EmojiCatalog data: 9 categories, 827 emojis, same order | src/screens/components/EmojiCatalog.cpp:1 | PASS | generated from EmojiCatalog.swift, counts tested | docs/parity/shots/compose/emoji-picker.png | | Emoji search by Unicode character name substring | src/screens/components/EmojiCatalogSearch.cpp:11 | DIFF | names come from the Unicode database of the generating Python (not Apple's Unicode version); result capped at 900 | docs/parity/shots/compose/emoji-search-320-light.png | | EmojiPicker layout (cell 44, spacing 4, padding 8, font 30, columns formula, Recent section, uppercase headers) | src/screens/components/EmojiPicker.cpp:20 | PASS | formula unit tested | docs/parity/shots/compose/emoji-picker.png | | EmojiPicker category bar (BG_1, 9 icons, scroll to section) and recents (30) | src/screens/components/EmojiPicker.cpp:92 | DIFF | scroll jumps without animation; icons are Lucide (hand, leaf, utensils, activity, plane, lightbulb, hash added to assets/icons) | docs/parity/shots/compose/emoji-picker.png | | EmojiPicker search field and "No emoji found" | src/screens/components/EmojiPicker.cpp:109 | DIFF | field sits under the nav bar instead of .searchable chrome | docs/parity/shots/compose/emoji-search-320-light.png | | presentEmojiPicker sheet, Close button, pick records recent and dismisses | src/screens/components/EmojiPicker.cpp:175 | PASS | script compose-lab.script | docs/parity/shots/compose/emoji-picker.png | | AttachmentViewer image tile (RemoteImage fit, spinner placeholder, tap opens fullscreen) | src/screens/components/AttachmentViews.cpp:48 | PASS | `/` prefix resolves to https://devplace.net, tested | docs/parity/shots/compose/attachment-viewer.png | | AttachmentViewer video tile (16:9 BG_2 tile, play badge 60) | src/screens/components/AttachmentViews.cpp:41 | DIFF | no frame thumbnail (no AVFoundation), tap opens the URL in the system player through Router::openUrl instead of an in-app player | docs/parity/shots/compose/attachment-viewer.png | | Audio and files render nothing | src/screens/components/AttachmentViews.cpp:65 | PASS | as in Swift (no file chip) | docs/parity/shots/compose/attachment-viewer.png | | FullscreenImageViewer (Done, Share after load, spinner until loaded) | src/screens/components/AttachmentViewerScreen.cpp:83 | PASS | script compose-attachments.script | docs/parity/shots/compose/fullscreen-viewer.png | | ZoomableImage 1x to 5x, pan only when zoomed, reset at 1x | src/screens/components/AttachmentViewerScreen.cpp:23 | DIFF | zoom by ctrl+wheel and + / - buttons (no pinch); reset is immediate (no easeOut 0.2) | docs/parity/shots/compose/fullscreen-viewer.png | | Share (ShareLink) | src/screens/components/AttachmentViewerScreen.cpp:109 | DIFF | menu with Save image (SDL save dialog, download via NetworkService, cap 32 MiB) and Copy link | docs/parity/shots/compose/fullscreen-viewer.png | | FullscreenVideoPlayer | src/screens/components/AttachmentViews.cpp:41 | DIFF | not implemented in-app, see video tile | docs/parity/shots/compose/attachment-viewer.png | | AttachmentUploader box, rows (icon, filename, trash), spinner while busy, Add Attachment | src/screens/components/AttachmentUploader.cpp:190 | PASS | matches spec values | docs/parity/shots/compose/create-poll.png | | AttachmentUploader small variant (icon only paperclip) | src/screens/components/AttachmentUploader.cpp:190 | PASS | isSmall option | docs/parity/shots/compose/uploader.png | | Add dialog (Photo Library, Files, From URL, Cancel) | src/screens/components/AttachmentUploader.cpp:160 | DIFF | Photo Library opens the file dialog filtered to images and videos (no camera roll) | docs/parity/shots/compose/add-dialog.png | | Add from URL alert (title, message, field, Cancel, Add; trim; empty ignored) | src/screens/components/AttachmentUploader.cpp:142 | PASS | script compose-create-post.script | docs/parity/shots/compose/add-dialog.png | | Upload file via SDL dialog (thread marshalled through UiQueue), mime from extension | src/screens/components/AttachmentFileDialogs.cpp:1 | DIFF | files above 20 MB are rejected client side (Swift has no limit; hard cap rule) | docs/parity/shots/compose/uploader.png | | Delete attachment (guard busy, remove on success, alert on failure), cap 10 | src/screens/components/AttachmentUploader.cpp:99 | PASS | tests compose_uploader_state_machine, compose_uploader_caps_at_ten | docs/parity/shots/compose/create-poll.png | | MentionToken detection | src/screens/components/MentionSuggestions.cpp:45 | PASS | tests compose_mention_token_* | docs/parity/shots/compose/mentions.png | | MentionSuggestions view model (empty query shows participants, 300 ms debounce, stale dropped, current user excluded) | src/screens/components/MentionSuggestions.cpp:99 | PASS | tests compose_mention_empty_query..., compose_mention_query_debounces_then_searches | docs/parity/shots/compose/mentions.png | | MentionSuggestions list (BoxView border 0.5, radius 14, height 50..164, rows 30 avatar, close button, shadow) | src/screens/components/MentionSuggestions.cpp:146 | DIFF | no .smooth(0.25) height animation; the list sits in the parent flow so MentionListHeightKey is not needed | docs/parity/shots/compose/mentions.png | | insertMention text edit ("@name " rule, caret) | src/screens/components/MentionSuggestions.cpp:173 | PASS | test compose_mention_complete_inserts_username_and_space | docs/parity/shots/compose/mentions.png | | Responsive (320 pt phone, light appearance) | src/screens/create/CreatePostScreen.cpp:248 | PASS | scrolls, content column max 700 | docs/parity/shots/compose/create-post-320-light.png | | Retina scale 2 render | src/screens/create/CreatePostScreen.cpp:248 | PASS | --scale 2 | docs/parity/shots/compose/create-post-scale2.png |