<!-- doc: docs/parity/social.md | version: 1.0 | updated: 29-11-2026 -->
# Parity: social area (Messages, Conversation, Notifications, Profile)
Scope: INV-social sections 11 to 16 and 21, 22 (shell.md 3, 4, 8 for the shell contract). No Apple reference renders exist
(SPEC A-02): "PASS" means checked against the numeric spec values and the Swift source, in a headless render, a unit test
or a smoke script, never pixel identity with an iOS device. Swift wins over the inventories; where they disagree the row says so.
Evidence: `./build-social/app_tests social` (30 cases of this area, part of the green suite of 194), `tests/e2e/social-*.script`
(`tools/smoke.sh` picks them up), screenshots in `docs/parity/shots/social/` (`<screen>-<dark|light>-<width>[x2].png`, 430x900
and 320x568 points, scale 1 and 2).
## Messages list (INV-social 11)
| iOS screen/feature | C++ file:line | Status | Reason | Screenshot |
|---|---|---|---|---|
| Title "Messages", large title, BG_2 | src/screens/messages/MessagesScreen.cpp:35, :74 | PASS | NavLargeTitle in the scroll content | shots/social/messages-dark-430.png |
| Reload button / spinner while reloading | src/screens/messages/MessagesScreen.cpp:39 | PASS | icon button arrow.clockwise, ProgressSpinner(20) while isReloading | shots/social/messages-dark-430.png |
| Pull to refresh | src/screens/messages/MessagesScreen.cpp:74 | PASS | ScrollOptions.onRefresh calls reload() | shots/social/messages-dark-430.png |
| Card BG_1, radius 12, rows with dividers, padding 16 | src/screens/messages/MessagesScreen.cpp:52 | PASS | BoxView(pad none) + clipRounded(12), Divider between rows | shots/social/messages-dark-430.png |
| ConversationRow: avatar 42, username semibold, wide relative time, last message 15 FG_2 one line | src/screens/components/ConversationRow.cpp:12 | PASS | HStack(top, 10), padding 12; raw `lastMessageAt` shown when it is not ISO 8601 | shots/social/messages-dark-430.png |
| Username and time share a text baseline | src/screens/components/ConversationRow.cpp:21 | DIFF | VAlign has no baseline alignment, bottom alignment used (differs by about 1 pt) | shots/social/messages-dark-430.png |
| Unread dot 8x8 accent, top padding 6, tint accent 0.08 | src/screens/components/ConversationRow.cpp:28 | PASS | matches spec values | shots/social/messages-dark-430.png |
| Tap row pushes conversation | src/screens/messages/MessagesScreen.cpp:58 | PASS | navigator()->push(makeConversationScreen), smoke script taps alice | shots/social/conversation-dark-430.png |
| Not signed in / loading / empty states with verbatim strings | src/screens/messages/MessagesScreen.cpp:44 | PASS | "Sign in required", "No conversations" texts verbatim; icon 44 and title 20 are estimates (UNVERIFIED) | shots/social/messages-signed-out-dark-430.png |
| Load on appear, on login change, error alert keeps old data | src/screens/messages/MessagesModel.cpp:17, :35 | PASS | unit test social_messages_model_load_and_logged_out | none |
| Unread counts refreshed after load | src/screens/messages/MessagesModel.cpp:44 | PASS | AppState::loadUnreadCounts | none |
## Conversation (INV-social 12, 13, 14)
| iOS screen/feature | C++ file:line | Status | Reason | Screenshot |
|---|---|---|---|---|
| Inline title = username, reload toolbar button | src/screens/conversation/ConversationScreen.cpp:126 | PASS | TitleMode::Inline | shots/social/conversation-dark-430.png |
| Bubble max width: 300 until measured, then max(width - 24 - 48, 120) | src/screens/conversation/ConversationScreen.cpp:74 | PASS | WidthProbe feeds the previous frame width; unit test social_render_conversation_screen_states | shots/social/conversation-dark-430.png |
| Message list VStack(12), padding h 12 v 16, pinned to the bottom, short content sits at the bottom | src/screens/conversation/ConversationScreen.cpp:161 | DIFF | ScrollOptions.anchorBottom; bottom alignment of short content is the documented behaviour of defaultScrollAnchor(.bottom) but UNVERIFIED on a device | shots/social/conversation-dark-430.png |
| Auto scroll to bottom while within 80 pt of it | src/ui/Views.cpp:569 (additive framework option) | PASS | anchorThreshold 80, scroll view keeps identity while overlays appear (overlay layers always present) | shots/social/conversation-over-limit-dark-430.png |
| Scroll to latest button: chevron.down accent circle, padding 16, scale+opacity 0.35 s, scrolls with default animation | src/screens/conversation/ConversationScreen.cpp:152, :141 | DIFF | scroll animation is ease in/out 0.35 s (SwiftUI default animation curve not measured) | shots/social/conversation-scrolled-dark-430.png |
| Typing indicator overlay bottom, opacity transition 0.35 s, dots 5 pt, easeInOut 0.6 s repeat, delay index*0.2 | src/screens/components/TypingIndicator.cpp:12, :62 | PASS | unit tests social_typing_dot_opacity_curve, social_render_typing_indicator_metrics | none (see tests/unit/SocialRenderTest.cpp, SOCIAL_SHOT_DIR) |
| Composer: BG_1 bar with top divider, field BG_0 radius 14, 1 to 6 lines, counter, small uploader, send circle | src/screens/conversation/ConversationScreen.cpp:226 | PASS | TextEditor min 1 max 6 lines | shots/social/conversation-over-limit-dark-430.png |
| Send button aligned to the bottom of the field (composerInput guide) | src/screens/conversation/ComposerRow.cpp:13 | PASS | unit test social_render_composer_row_aligns_send_button_with_field_bottom | shots/social/conversation-over-limit-dark-430.png |
| Counter "<n>/2,000", count red when below the minimum or above 2000 | src/screens/conversation/ConversationScreen.cpp:233 | PASS | ui CharacterCounter; smoke script expects 8/2,000 and 2,009/2,000 | shots/social/conversation-over-limit-dark-430.png |
| Validation: UTF-16 units, min 1 (0 with attachments), max 2000, whitespace allowed | src/screens/conversation/ConversationModel.cpp:43 | PASS | unit tests social_conversation_draft_validation_counts_utf16_units, social_conversation_attachments_lower_the_minimum | none |
| Send button disabled and opacity 0.4 when cannot send, spinner while sending | src/screens/conversation/ConversationScreen.cpp:217 | PASS | matches spec values | shots/social/conversation-dark-430.png |
| Send over the socket: client id (UUID), optimistic bubble, echo replaces it | src/screens/conversation/ConversationModel.cpp:108, :285 | PASS | unit test social_conversation_socket_send_is_optimistic_and_echo_replaces | none |
| REST fallback: send, 500 ms, reload, remove optimistic, restore draft on error | src/screens/conversation/ConversationModel.cpp:133 | PASS | unit test social_conversation_rest_fallback_when_socket_not_connected; smoke script social-messages | shots/social/conversation-sent-dark-430.png |
| Socket failed frame: remove bubble, alert with server text | src/screens/conversation/ConversationModel.cpp:326 | DIFF | Swift quirk reproduced on purpose: removeOptimistic clears pendingSends first, so the documented "restore draft and attachments" branch never runs (inventory 12.9 says it does; Swift wins) | none |
| Typing sender throttled to 1.5 s, only when connected | src/screens/conversation/ConversationModel.cpp:201 | PASS | unit tests social_conversation_typing_sender_is_throttled_to_1_5_seconds, social_conversation_typing_not_sent_without_connected_socket | none |
| Read receipts: read frame on ready and on incoming, read event marks own messages | src/screens/conversation/ConversationModel.cpp:244, :320 | PASS | unit test social_conversation_read_event_marks_only_own_messages | none |
| Other typing for 4 s, only for the other user | src/screens/conversation/ConversationModel.cpp:312 | PASS | unit test social_conversation_typing_event_sets_indicator_for_other_user_only (the 4 s timer uses dp::Timer) | none |
| Incoming message filter, upsert by uid, sort ascending | src/screens/conversation/ConversationModel.cpp:285 | PASS | unit test social_conversation_incoming_message_sends_read_and_ignores_strangers | none |
| Reload keeps pending optimistic bubbles | src/screens/conversation/ConversationModel.cpp:95 | PASS | unit test social_conversation_reload_keeps_pending_optimistic_bubble | none |
| Unsent attachments deleted on disappear | src/screens/conversation/ConversationModel.cpp:209, ConversationScreen.cpp:117 | PASS | unit test social_conversation_unsent_attachments_are_cleared_on_delete | none |
| Socket start after load on appear, stop on disappear | src/screens/conversation/ConversationScreen.cpp:79, :85, :117 | PASS | Navigator::pop now calls onDisappear (framework fix, see below) | none |
| Socket stop and restart on foreground / background (scenePhase) | src/screens/conversation/WindowFocusWatcher.cpp:21 | DIFF | SDL window focus lost / gained stands in for the scene phase | none |
| Socket stop when another tab is selected (TabView onDisappear) | src/screens/conversation/ConversationScreen.cpp:96 | DIFF | the shell builds only the selected tab; a 1 s watchdog stops the session when body() has not run for 2.5 s and reconnects on the next body() | none |
| Bubble shape: radii 16 with a 4 tail corner, gradient fill, 1 pt border FG_2 0.12 | src/screens/components/MessageBubble.cpp:26, :99 | PASS | unit test social_bubble_gradient_matches_spec_mixes checks all eight mix values | shots/social/conversation-light-430.png |
| Bubble hugs its content up to the max width | src/screens/components/MessageBubble.cpp:87 | DIFF | HugContent caps the markdown block at its ideal width; whether MarkdownUI itself hugs is UNVERIFIED | shots/social/conversation-dark-430.png |
| Double checkmark only when read, accent, 10 pt semibold, offsets -3 and 2 | src/screens/components/MessageBubble.cpp:99 | PASS | matches spec values (Lucide check icon instead of SF Symbol, DIFF-06) | shots/social/conversation-dark-430.png |
| Long press opens the raw text popover with copy and "Insert as quote" appending to the draft | src/screens/components/MessageBubble.cpp:108, ConversationScreen.cpp:161 | PASS | QuoteComposer(active) calls model.appendToDraft; popover is the shared compose component | none |
| Attachments in bubbles | src/screens/components/MessageBubble.cpp:114 | PASS | shared AttachmentViewer, image tile visible in the screenshot | shots/social/conversation-dark-430.png |
| Tap on the message area dismisses the keyboard | none | DIFF | no soft keyboard on desktop, focus stays on the field | none |
| Alerts for load errors | src/screens/conversation/ConversationModel.cpp:84 | PASS | AlertMessage::presentedError through AlertPresenter | none |
## Notifications (INV-social 15)
| iOS screen/feature | C++ file:line | Status | Reason | Screenshot |
|---|---|---|---|---|
| Title, "Mark all read" only when signed in | src/screens/notifications/NotificationsScreen.cpp:39, :47 | PASS | ToolbarTextButton | shots/social/notifications-dark-430.png |
| Group label headline FG_2, card BG_1 radius 12, spacing 20 and 8, padding 16 | src/screens/notifications/NotificationsScreen.cpp:70, :90 | PASS | matches spec values | shots/social/notifications-dark-430.png |
| Row: optional actor avatar, message 15, narrow relative time, unread dot and tint | src/screens/components/NotificationRow.cpp:12 | PASS | row without actor has no avatar | shots/social/notifications-dark-430.png |
| Open: GET open/<uid>, route, reload, recount | src/screens/notifications/NotificationsModel.cpp:110 | PASS | unit test social_notification_model_load_open_and_mark_all_read | none |
| Route priority: message+actor, badge, issue, redirect with posts slug and comment | src/screens/notifications/NotificationRoute.cpp:98 | PASS | unit tests social_notification_route_priority_order, social_notification_redirect_parsing_slug_and_comment (fragment prefixes, query names, comments segment) | none |
| Perform route: Router::openPost / openConversation / openOwnProfile / openUrl | src/screens/notifications/NotificationsScreen.cpp:52 | PASS | smoke run through the shell opened the conversation of a message notification | none |
| Mark all read: optimistic, POST, recount, alert + reload on error | src/screens/notifications/NotificationsModel.cpp:145 | PASS | smoke script social-notifications | shots/social/notifications-read-dark-430.png |
| markRead(uid) exists without UI, as in Swift | src/screens/notifications/NotificationsModel.cpp:132 | PASS | not wired to a view, same as iOS | none |
| Load more: footer spinner appears, `before=<cursor>`, merge by label, dedupe by id, cap 5000 entries | src/screens/notifications/NotificationsModel.cpp:82, :162 | PASS | unit test social_notification_merge_groups_dedupe_and_cursor; no retry loop behind an error (loadMoreFailed_, cleared by refresh) | none |
| Pull to refresh, reselect at top, window focus gained refresh | src/screens/notifications/NotificationsScreen.cpp:43, :19, :102 | PASS | scroll offset 0 tracked through ScrollOptions.onGeometry | none |
| Empty, signed out and loading states | src/screens/notifications/NotificationsScreen.cpp:62 | PASS | strings verbatim ("You're all caught up." with ASCII apostrophe) | shots/social/notifications-signed-out-dark-430.png |
| Relative time labels refresh while the screen is idle | none | DIFF | labels are computed when the frame is built; an idle list redraws on the next event (the conversation redraws every second through its watchdog) | none |
## Profile (INV-social 16)
| iOS screen/feature | C++ file:line | Status | Reason | Screenshot |
|---|---|---|---|---|
| Title: username ?? profile username ?? "Profile" | src/screens/profile/ProfileModel.cpp:13 | PASS | unit test social_profile_title_rules | shots/social/profile-dark-430.png |
| Own and other users, blank until loaded, no pull to refresh | src/screens/profile/ProfileScreen.cpp:79 | PASS | nothing rendered while profile is null | shots/social/profile-dark-430.png |
| Avatar large 100, stats Posts/Level/Stars/Rank (rank only if present, "#n", grouped numbers) | src/screens/profile/ProfileScreen.cpp:86, src/screens/components/ProfileViews.cpp:39 | PASS | unit test social_profile_number_grouping | shots/social/profile-dark-430.png |
| Progress row 12 pt FG_2 with percent and linear bar | src/screens/components/ProfileViews.cpp:60 | DIFF | bar height 4 and track color are estimates of the native ProgressView | shots/social/profile-dark-430.png |
| Bio, Location, Git Link, Website rows with dividers, links only when the string forms a URL | src/screens/components/ProfileViews.cpp:67, :75 | PASS | UrlSyntax::valid models URL(string:) | shots/social/profile-dark-430.png |
| Bio rendered with the DevPlace markdown theme | src/screens/profile/ProfileScreen.cpp:92 | DIFF | Swift uses the MarkdownUI default theme here (inline code and quote styling differ), the shared MarkdownView has only the DevPlace theme | shots/social/profile-dark-430.png |
| Follow, Block, Mute gradient buttons, max 150 wide, equal width, only for other users | src/screens/profile/ProfileScreen.cpp:70 | PASS | smoke script social-profile | shots/social/profile-other-dark-430.png |
| Button row becomes an "Actions" dropdown when the three buttons do not fit | src/screens/profile/ProfileScreen.cpp:57, :70 | DIFF | not in iOS; added for small windows (project rule: button groups become dropdowns); ViewThatFits keeps the row down to 320 pt with default text | shots/social/profile-other-dark-320.png |
| Follow toggles directly; Block and Mute ask for confirmation, unblock and unmute directly | src/screens/profile/ProfileScreen.cpp:27, :41, :46 | PASS | strings verbatim, destructive first button and Cancel; smoke script social-profile | shots/social/profile-actions-dark-430.png |
| Flags flip only on success, errors raise an alert | src/screens/profile/ProfileModel.cpp:38 | PASS | unit test social_profile_actions_flip_flags_on_success_only | none |
| Badges in a centered VFlowStack (spacing 8), "web app" footer link | src/screens/profile/ProfileScreen.cpp:109, src/screens/components/ProfileViews.cpp:87 | PASS | shared VFlowStack and UserBadgeView | shots/social/profile-other-dark-430.png |
| Projects and gists sections (task text) | none | PASS | the Swift ProfileView renders no projects or gists section and inventory 16.2 lists none; nothing to port | none |
| Light appearance, 320 pt width, scale 2 | n/a | PASS | rendered and inspected | shots/social/profile-other-light-430.png, shots/social/profile-dark-320.png, shots/social/profile-dark-430x2.png |
## Cross cutting
| iOS screen/feature | C++ file:line | Status | Reason | Screenshot |
|---|---|---|---|---|
| Screen ids messages, conversation, notifications, profile, profile-other (needsLogin per iOS) | src/screens/messages/Register.cpp:20 | PASS | `--list-screens`; profile-other needs no login | none |
| Icon-only buttons (Reload, Send message, Scroll to latest) carry accessibility labels | none | DIFF | the view toolkit has no accessibility label modifier; the strings live in spec/SocialSpec.hpp | none |
| Constants, strings and metrics in spec/ | spec/SocialSpec.hpp | PASS | no literal metrics in the screens | none |
| Mock profile for other users | src/api/mock/MockDevPlaceApi.cpp (profile) | DIFF | the Swift mock ignores the username; the C++ mock returns a non-owner profile for another user so profile-other can show the action buttons | shots/social/profile-other-dark-430.png |
## Framework changes made for this area
- `src/ui/Views.hpp`, `Views.cpp`, `View.hpp`: `ScrollOptions.anchorBottom`, `anchorThreshold`, `onGeometry` and `Slot.lastMax` (bottom anchored chat scrolling, scroll position reports).
- `src/ui/Navigation.cpp`: `Navigator::pop` calls `onDisappear` on the popped screen (syncLifecycle cannot reach screens that left the stack).
- `src/api/mock/MockDevPlaceApi.cpp`: non-owner profile for another username (see above).