# Parity: posts area (Feed, Post detail, post parts, comments, reactions, votes, polls, report) Sources: INV-posts sections 1 to 3, 5 to 9, 11 to 13, INV-social 1, 19, INV-shell 4 and 9, and the Swift files they cite under `DevPlaceIOS/DevPlaceIOS/UI/**` (Swift wins where the inventory is off). No Apple reference renders exist (A-02): PASS means "matches spec values" (numbers, strings, flows checked in code, unit tests, e2e scripts and the screenshots listed), never pixel identity. Screenshots: `docs/parity/shots/posts/` (dark 430x900 unless the name says otherwise; `-320` is 320x568 light at scale 2). Tests: `tests/unit/PostsPresenterTest.cpp`, `tests/unit/PostsLayoutTest.cpp`; scripts: `tests/e2e/posts-*.script`. Screen ids: `feed`, `post`, `report`, `comment-editor` (src/screens/feed/Register.cpp). Constants: `spec/PostsSpec.hpp`. Reproduce the shots: `devplaceapp --mock --as-user --screen --screenshot --size 430x900` (also `--light`, `--scale 2`); interactive shots come from the scripts' `tap-text`, `scroll` and `shot` commands. | iOS screen/feature | C++ file:line | PASS or DIFF | reason | screenshot path | |---|---|---|---|---| | Feed screen: inline title "Posts", BG_2, scroll of cards | src/screens/feed/FeedScreen.cpp:156 | PASS | strings and structure per INV-posts 1.1, 1.2; script posts-feed.script | docs/parity/shots/posts/feed-dark-430.png | | Feed card spacing between cards | src/screens/feed/FeedScreen.cpp:153 | PASS | 8 pt: Swift `LazyVStack {` has no spacing argument (default 8); the inventory text "no gap" is off | docs/parity/shots/posts/feed-dark-430.png | | Feed lazy loading | src/screens/feed/FeedScreen.cpp:126 | DIFF | not lazy: every card (cap 2000) is built per frame, the host culls drawing outside the viewport | docs/parity/shots/posts/feed-dark-430.png | | Feed light, 320 points wide | src/screens/feed/FeedScreen.cpp:156 | PASS | stacks and truncation follow the SwiftUI proposal protocol (names truncate at 320 like the Spacer split in Swift) | docs/parity/shots/posts/feed-light-320.png | | Wide windows | src/screens/feed/FeedScreen.cpp:153 | DIFF | content column capped at 700 points (UX-RESP-01, DIFF-02) | docs/parity/shots/posts/feed-dark-430.png | | Pull to refresh (refresh, publish 300 ms later, error alert) | src/screens/feed/FeedScreen.cpp:46 | DIFF | PASS for the flow (test posts_feed_refresh_publishes_after_delay_and_load_more_guards); the spinner is the framework ScrollView spinner, not UIRefreshControl | docs/parity/shots/posts/feed-dark-430.png | | Infinite scroll spinner row with onAppear -> loadMore, isLoadingMore guard | src/screens/feed/FeedScreen.cpp:68 | PASS | spinner drawn when nextCursor exists; OnAppearView fires when the row is drawn after an absence (src/screens/feed/OnAppearView.cpp:5) | docs/parity/shots/posts/feed-dark-430.png | | Load more duplicate guard (AppState::loadMoreFeed) and stall stop | src/screens/feed/FeedScreen.cpp:68 | PASS | test posts_feed_refresh_publishes_after_delay_and_load_more_guards; extra hard cap: a page without new posts stops auto loading until refresh | docs/parity/shots/posts/feed-dark-430.png | | Tab reselect: refresh when at top (Swift), else scroll to top (parent in Swift) | src/screens/feed/FeedScreen.cpp:86 | PASS | Screen::onReselect; at-top test from layout marks (src/screens/post/ScrollDriver.hpp:28); test posts_scroll_driver_offsets_from_anchor_marks | docs/parity/shots/posts/feed-dark-430.png | | Empty feed: blank screen with the new post button, no empty view | src/screens/feed/FeedScreen.cpp:156 | PASS | Swift has no empty state (INV-posts 1.3) | docs/parity/shots/posts/feed-load-error-430.png | | Feed error: alert "Error" / "OK" with the mapped message | src/screens/feed/FeedScreen.cpp:42 | PASS | AlertPresenter + AlertMessage rules (INV-shell 9) | docs/parity/shots/posts/feed-load-error-430.png | | Standalone first page load | src/screens/feed/FeedScreen.cpp:35 | DIFF | Swift loads the first page in the shell; makeFeedScreen() does not load, only the `feed` harness id does (nothing else loads when a single screen is hosted) | docs/parity/shots/posts/feed-dark-430.png | | New post button (plus, accentGradient circle, padding 16, hidden while composing) | src/screens/feed/FeedScreen.cpp:105 | DIFF | PASS for size, gradient, tap and hiding (test script posts-feed.script); scale and opacity transition replaced by an immediate show and hide | docs/parity/shots/posts/feed-bottom-fab-430.png | | New post opens the create screen full screen (makeCreatePostScreen) | src/screens/feed/FeedScreen.cpp:103 | PASS | Overlays::sheet FullScreen | docs/parity/shots/posts/feed-bottom-fab-430.png | | Tap card pushes PostView(slug, scrollToCommentId) | src/screens/feed/FeedScreen.cpp:91 | PASS | script posts-feed.script ends on the post detail | docs/parity/shots/posts/post-deeplink-comment-430.png | | Mention list height change scrolls the composer anchor to the bottom | src/screens/feed/FeedScreen.cpp:112 | DIFF | PASS for the rule; runs one frame after the change (positions come from the previous layout) | docs/parity/shots/posts/feed-reply-composer-430.png | | FeedPostView card (hairline, header, content, poll, first attachment, footer, composer, comments, hairline) | src/screens/feed/FeedPostView.cpp:40 | PASS | spacing 8, padding 16, hLine FG_2 at 0.3 and height 1 per INV-posts 3.1; settings gates showFeedAttachments / showFeedComments | docs/parity/shots/posts/feed-dark-430.png | | Card gestures: double tap own = edit, others = optimistic vote; single tap opens; both off while a composer is open | src/screens/feed/FeedPostView.cpp:58 | PASS | test posts_feed_double_tap_post_votes_others_and_edits_own (incl. rollback) | docs/parity/shots/posts/feed-dark-430.png | | Single tap timing with a double tap handler | src/screens/post/TapGesture.cpp:9 | DIFF | single tap waits 300 ms (SwiftUI waits a system defined interval) | docs/parity/shots/posts/feed-dark-430.png | | Feed card actions are silent (log only): delete post, comment create, edit, delete, reaction, vote | src/screens/feed/FeedPostActions.cpp:17 | PASS | INV-posts 3.1 and 14 (no alert in the feed) | docs/parity/shots/posts/feed-dark-430.png | | Feed reply composer on a post, draft kept in SettingsStore, attachments, submit clears draft only on success | src/screens/feed/FeedPostView.cpp:90 | PASS | test posts_session_reply_edit_and_quote_rules; script posts-feed.script | docs/parity/shots/posts/feed-reply-composer-430.png | | Feed recent comments (base level 1, one attachment max, dividers with leading divider) | src/screens/feed/FeedPostView.cpp:108 | PASS | props per INV-posts 3.1 | docs/parity/shots/posts/feed-dark-430.png | | Edit post from the feed (full screen cover, reload feed afterwards) | src/screens/feed/FeedScreen.cpp:96 | DIFF | Routes.hpp has no onComplete: the feed reloads when the edit sheet closes, also when cancelled | docs/parity/shots/posts/feed-dark-430.png | | Post screen: loading spinner until the detail is set, title fallback "Post", inline title | src/screens/post/PostScreen.cpp:46 | PASS | INV-posts 2.1 and 2.3 | docs/parity/shots/posts/post-load-error-430.png | | Post load failure: alert, screen stays on the spinner | src/screens/post/PostScreen.cpp:66 | PASS | test posts_post_screen_failed_load_alerts | docs/parity/shots/posts/post-load-error-430.png | | Post body (header with comment count, topic capsule, title .title, markdown, poll, all attachments, footer, padding 16, BG_1) | src/screens/post/PostScreen.cpp:243 | PASS | per INV-posts 2.2 | docs/parity/shots/posts/post-dark-430.png | | Post screen light, 320 points | src/screens/post/PostScreen.cpp:369 | PASS | matches spec values | docs/parity/shots/posts/post-light-320.png | | Comments section header "Comments" (.title3 semibold, padding 16 horizontal and top) | src/screens/post/PostScreen.cpp:287 | PASS | hidden when there are no comments | docs/parity/shots/posts/post-comments-tree-430.png | | Bottom "Comment" button (form style) and bottom composer "Write a comment..." | src/screens/post/PostScreen.cpp:316 | PASS | script posts-post.script | docs/parity/shots/posts/post-bottom-composer-430.png | | Reload toolbar item (icon, spinner while reloading, guard) | src/screens/post/PostScreen.cpp:333 | PASS | arrow.clockwise is rotate-cw (Lucide, DIFF-06); test posts_post_screen_loads_votes_and_reacts | docs/parity/shots/posts/post-dark-430.png | | Post double tap: own = edit sheet, others = upvoteForeignPost | src/screens/post/PostScreen.cpp:148 | PASS | test posts_post_screen_loads_votes_and_reacts | docs/parity/shots/posts/post-dark-430.png | | Delete post: confirmation, delete, loadFeed, pop | src/screens/post/PostScreen.cpp:111 | PASS | confirmation "Delete this post?" with Delete (destructive) and Cancel | docs/parity/shots/posts/delete-post-confirmation-430.png | | Edit post sheet then reload | src/screens/post/PostScreen.cpp:217 | DIFF | reload runs when the sheet closes (no onComplete in Routes.hpp) | docs/parity/shots/posts/post-dark-430.png | | Comment mutations: API, reload detail, loadFeed, alert on any error; no optimistic text change | src/screens/post/PostScreen.cpp:97 | PASS | INV-posts 2.4 | docs/parity/shots/posts/comment-edit-inline-430.png | | Reply to post composer (anchor .post, default placeholder) and reply to comment (anchor per comment) | src/screens/post/PostScreen.cpp:225 | PASS | one composer at a time; epoch keys restart the fade | docs/parity/shots/posts/post-reply-to-post-430.png | | Unsubmitted reply attachments deleted on disappear, begin and cancel | src/screens/post/PostScreen.cpp:55 | PASS | test posts_session_cancel_deletes_unsubmitted_attachments | docs/parity/shots/posts/post-reply-to-post-430.png | | Scroll to comment (deep link): 50 ms after appearing, animated to the comment top | src/screens/post/PostScreen.cpp:338 | DIFF | PASS for target and delay; the 0.35 s ease is a smoothstep, SwiftUI's default animation curve is not exposed | docs/parity/shots/posts/post-deeplink-comment-430.png | | Optimistic double tap vote on a comment and reactions with rollback | src/screens/post/PostScreen.cpp:162 | PASS | tests posts_post_screen_double_tap_comment_votes_only_others, posts_feed_reaction_toggle_is_optimistic_and_rolls_back | docs/parity/shots/posts/post-comments-tree-430.png | | PostHeaderView (avatar links to the profile where allowed, time, comment count with accessibility label) | src/screens/post/PostHeaderView.cpp:14 | PASS | count hidden at 0; time label narrow relative format (shared component) | docs/parity/shots/posts/post-dark-430.png | | PostContentView (topic capsule, title, markdown, long press popover) | src/screens/post/PostContentView.cpp:11 | DIFF | PASS for structure and popover; the title goes through MarkdownView (inline plus block markdown), Swift LocalizedStringKey renders inline markdown only | docs/parity/shots/posts/post-dark-430.png | | Long press popover must not swallow taps | src/screens/post/PressProxyView.cpp:20 | PASS | PressProxyView forwards tap gestures and the long press, no framework change | docs/parity/shots/posts/feed-dark-430.png | | PostFooterView (vote, reactions, spacer, reply, report, edit, delete; spacing 12 and 24) | src/screens/post/PostFooterView.cpp:23 | PASS | edit and delete only for own posts; reply hidden while replying | docs/parity/shots/posts/feed-poll-footer-430.png | | Delete confirmation dialog | src/screens/post/PostFooterView.cpp:16 | PASS | title "Delete this post?" / "Delete this comment?", Delete (destructive), Cancel | docs/parity/shots/posts/delete-post-confirmation-430.png | | Icon only buttons with accessibility labels | src/screens/post/ActionIconButton.cpp:11 | DIFF | labels exposed to --dump-a11y and the scripts through AccessibleView (INV-posts labels verbatim); Lucide icons replace SF Symbols (DIFF-06) | docs/parity/shots/posts/feed-poll-footer-430.png | | CommentsView (depth first rows, base level, own comments get edit and delete) | src/screens/comments/CommentsView.cpp:27 | PASS | test posts_comments_flatten_depth_first_with_levels | docs/parity/shots/posts/post-comments-tree-430.png | | CommentView layout (guide lines 16 pt per level, dashed at level 3, divider alignment, padding 16 / 8) | src/screens/comments/CommentView.cpp:128 | PASS | tests posts_comment_levels_and_divider_alignment, posts_layout_comments_list_rows_do_not_overlap_next_section | docs/parity/shots/posts/post-comments-tree-430.png | | Guide lines drawn behind the row | src/screens/comments/CommentView.cpp:39 | DIFF | drawn as a background at the row's full height instead of a stretching shape: this layout engine would inflate rows otherwise | docs/parity/shots/posts/post-comments-tree-430.png | | Comment actions: reply, report (others), edit, delete (own) | src/screens/comments/CommentView.cpp:64 | PASS | strings "Reply to comment", "Edit comment", "Delete comment" | docs/parity/shots/posts/post-comments-tree-430.png | | Comment gestures: double tap edits own, votes others; single tap only when idle | src/screens/comments/CommentView.cpp:141 | PASS | script posts-feed.script (tap into the post) | docs/parity/shots/posts/post-deeplink-comment-430.png | | Inline comment edit (editor with initial height = measured text, "Edit your comment...", pending quote) | src/screens/comments/CommentView.cpp:85 | PASS | submit calls onEdit and closes at once, old text stays until the refetch | docs/parity/shots/posts/comment-edit-inline-430.png | | Inline reply to a comment | src/screens/comments/CommentView.cpp:108 | PASS | focus after 50 ms, 3 initial lines | docs/parity/shots/posts/post-bottom-composer-430.png | | Reply and edit transitions (.smooth 0.28, opacity) | src/screens/comments/FadeInView.cpp:9 | DIFF | fade in only; removal is immediate and height changes do not animate | docs/parity/shots/posts/comment-edit-inline-430.png | | CommentEditorView (mentions, editor BG_0, counter min 3 max 125000, uploader small and full, cancel, submit) | src/screens/comments/CommentEditor.cpp:66 | PASS | canSubmit by UTF-16 units; test posts_comment_editor_submit_bounds_use_utf16_units; script posts-comment-editor.script | docs/parity/shots/posts/comment-editor-dark-430.png | | Editor uploader switch (small while empty, full below once attachments exist) | src/screens/comments/CommentEditor.cpp:50 | PASS | uploader objects are swapped when the list changes (compose component API) | docs/parity/shots/posts/post-reply-to-post-430.png | | Mention participants (post author and nested comment authors, no self, deduplicated, cap 200) | src/screens/comments/MentionParticipants.cpp:17 | PASS | test posts_mention_participants_exclude_self_and_dedupe | docs/parity/shots/posts/post-reply-to-post-430.png | | Quote composer (insert into reply draft, or pending edit quote) | src/screens/comments/CommentsSession.cpp:75 | PASS | test posts_session_reply_edit_and_quote_rules | docs/parity/shots/posts/feed-reply-composer-430.png | | Comment editor harness screen | src/screens/comments/CommentEditorScreen.cpp:14 | PASS | extra harness id from FR-CLI-02 | docs/parity/shots/posts/comment-editor-dark-430.png | | ReactionChipStyle (padding 10/5, capsule fill and border, mine = accent) | src/screens/reactions/ReactionChip.cpp:11 | PASS | values from spec/PostsSpec.hpp | docs/parity/shots/posts/feed-poll-footer-430.png | | ReactionView (emoji 14, count 14 medium) | src/screens/reactions/ReactionView.cpp:12 | DIFF | PASS for sizes; monospacedDigit is not available in Inter, digits are proportional | docs/parity/shots/posts/reactions-overflow-popover-430.png | | ReactionsStack sorting (count desc, emoji asc) and hidden when empty | src/screens/reactions/ReactionsStack.cpp:21 | PASS | test posts_reactions_sorted_by_count_then_emoji | docs/parity/shots/posts/feed-poll-footer-430.png | | ReactionRowLayout truncation with "..." chip | src/screens/reactions/ReactionRowView.cpp:14 | PASS | test posts_reaction_row_plan_truncates_with_more_chip; off screen chips parked at x = -100000 | docs/parity/shots/posts/feed-poll-footer-430.png | | "Show all reactions" popover, width 300, flow layout of chips | src/screens/reactions/ReactionsStack.cpp:55 | DIFF | PASS for content, width, padding and tap to toggle; the card is the Overlays popover, not a UIKit popover with an arrow | docs/parity/shots/posts/reactions-overflow-popover-430.png | | ReactionsBar add button (face.smiling 15) and emoji picker sheet | src/screens/reactions/ReactionsBar.cpp:16 | DIFF | PASS for the flow (script posts-reactions.script); the add button and the "..." chip do not dim while pressed | docs/parity/shots/posts/emoji-picker-sheet-430.png | | VoteView (minus, count 14 semibold, plus; spacing 10; accent when active) | src/screens/components/VoteView.cpp:34 | DIFF | PASS for sizes and colors; plain icons are Lucide circle-plus and circle-minus, the filled variants are drawn as a disc with bars | docs/parity/shots/posts/feed-poll-footer-430.png | | Vote view model: optimistic, count delta, tapped direction sent, rollback with alert, ignored while loading, props overwrite, disabled when logged out | src/screens/components/VoteViewModel.cpp:60 | PASS | tests posts_vote_* | docs/parity/shots/posts/feed-poll-footer-430.png | | Disabled vote buttons (logged out) | src/screens/components/VoteView.cpp:26 | DIFF | dimmed to 0.4 by the framework (iOS dims disabled buttons itself) | docs/parity/shots/posts/feed-dark-430.png | | PollView (BoxView, question headline, option rows radius 10, result bars 0.2 and 0.3, check, percent, votes line) | src/screens/components/PollView.cpp:59 | PASS | draw order bg BG_1, bar, content, border; script posts-post.script | docs/parity/shots/posts/feed-poll-footer-430.png | | Poll view model: single choice toggle, recompute (half away from zero), rollback with alert, ignored when logged out, "1 vote" singular | src/screens/components/PollViewModel.cpp:77 | PASS | tests posts_poll_* | docs/parity/shots/posts/feed-poll-footer-430.png | | Poll rows when logged out | src/screens/components/PollView.cpp:34 | PASS | rows are plain views, no hit target (allowsHitTesting false) | docs/parity/shots/posts/feed-dark-430.png | | ReportButton visibility (setting, logged in, not own) | src/screens/components/ReportButton.cpp:15 | PASS | flag icon, label "Report post" / "Report comment" | docs/parity/shots/posts/post-comments-tree-430.png | | Report sheet: title, Cancel, Report (spinner while submitting), reasons form, selection check | src/screens/components/ReportScreen.cpp:51 | DIFF | PASS for strings, enabling rules and flow (script posts-report-flow.script); the Form is composed from the shared grouped card, not a UIKit Form | docs/parity/shots/posts/report-selected-details-430.png | | Report details field (3 to 8 lines, counter max 2000) | src/screens/components/ReportScreen.cpp:68 | PASS | counter from ui::CharacterCounter; limit 2000 UTF-16 units | docs/parity/shots/posts/report-selected-details-430.png | | Report light, 320 | src/screens/components/ReportScreen.cpp:68 | PASS | matches spec values | docs/parity/shots/posts/report-light-320.png | | Reasons load failure: "Couldn't load reasons", description, Retry | src/screens/components/ReportScreen.cpp:93 | DIFF | PASS for strings and retry; ContentUnavailableView is approximated by a centered stack and a capsule button | docs/parity/shots/posts/report-failed-430.png | | Report submit: trimmed detail or none, success closes the sheet and shows "Thank you", failure alerts and keeps the sheet | src/screens/components/ReportScreen.cpp:32 | PASS | tests posts_report_* ; alert text "This post has been reported for review." | docs/parity/shots/posts/report-thank-you-430.png | | Report view model (reasons loaded once, canSubmit, prepareForPresentation) | src/screens/components/ReportViewModel.cpp:48 | PASS | tests posts_report_detail_trim_and_limits, posts_report_loads_reasons_once_and_submits, posts_report_failure_flags_and_retry | docs/parity/shots/posts/report-dark-430.png | | Character counters (UTF-16 units, grouping, red out of range) | src/screens/comments/CommentEditor.cpp:97 | PASS | ui::CharacterCounter with TextCount::utf16 | docs/parity/shots/posts/feed-reply-composer-430.png | | AppState model updates and optimistic helpers used by all of the above | src/screens/feed/FeedPostActions.cpp:17 | PASS | AppState::performVoteToggle / performReactionToggle (tested in the data layer) | docs/parity/shots/posts/feed-dark-430.png | | Alerts through Overlays + AlertMessage (error, thank you, delete confirmation) | src/screens/components/ReportScreen.cpp:43 | PASS | AlertPresenter for errors, AlertSpec for the thank you | docs/parity/shots/posts/report-thank-you-430.png | | Fonts | src/screens/post/PostContentView.cpp:11 | DIFF | Inter replaces SF Pro (DIFF-01) | docs/parity/shots/posts/post-dark-430.png | | Icons | src/screens/post/ActionIconButton.cpp:11 | DIFF | Lucide replaces SF Symbols (DIFF-06); no thumbs or smile fills | docs/parity/shots/posts/feed-poll-footer-430.png | ## Framework changes None. Everything that was missing (double tap, long press that keeps taps, programmatic scroll, onAppear, anchors, fade in) is implemented in `src/screens/post` and `src/screens/feed` on top of the existing views. ## Known gaps - The tab reselect behavior (scroll to top when not at the top) is an addition on top of Swift, where the parent does it. - `makeCreatePostScreen` has no completion callback: feed and post reload when the sheet closes. - Wide window column (700 points) applies to the feed and post lists (DIFF-02).