Repository navigation
fix: advance delivery indicator past Sent and add distinct double-tick - #171
Conversation
The notify_message_delivery zome input uses serde rename_all=camelCase, so it expects messageRecord, but the client sent message_record. The payload failed to deserialize, the call threw, delivery acks were never recorded, and the indicator was stuck on a single tick. Send messageRecord to match. Also render a dedicated double-check glyph for delivered messages instead of overlapping two single checks.
There was a problem hiding this comment.
Pull request overview
Fixes delivery-ack payload deserialization by aligning the UI payload shape with the backend’s serde(rename_all = "camelCase") expectations, and improves the UI delivery indicator by using a dedicated double-check glyph.
Changes:
- Send
messageRecord(camelCase) instead ofmessage_recordwhen callingnotify_message_delivery, so acks can be recorded and delivery status can advance beyond “Sent”. - Update the delivery status UI to render a single icon that switches between
checkMarkanddoubleCheck. - Add a new
doubleCheckSVG icon asset.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| ui/src/store/ConversationMessageStore.ts | Updates zome call payload key to messageRecord so delivery notifications deserialize correctly. |
| ui/src/routes/conversations/[id]/DeliveryStatusIndicator.svelte | Switches from overlapping two checkmarks to selecting a single icon (checkMark / doubleCheck) and adjusts sizing/spacing. |
| ui/src/lib/types.ts | Renames NotifyMessageDeliveryInput field to messageRecord to match the backend payload shape. |
| ui/src/lib/svgIcons.ts | Adds a doubleCheck SVG icon for delivered states. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@MasterK0927 Thanks for the PR. Could you please create a dev releas(v0.12.7-dev) to test the message delivery feature and also check that the synchronization is intact? |
|
@MasterK0927 Thanks for working on this. During code review and local testing of PR #171, It discovered that real-time messaging is broken on the develop branch. Messages sent between two agents do not appear until the app is manually reloaded. This was introduced by PR #161. How confirmed it: fix/scroll-bug (branched before PR #161) -> real-time messaging works Root cause: PR #161 introduced two concurrent delivery paths that conflict with each other:
Both paths call What needs to be resolved:
|
| $: showCount = | ||
| status === DeliveryStatus.DeliveredPartial && recipientCount > 1; | ||
|
|
||
| $: showCount = status === DeliveryStatus.DeliveredPartial && recipientCount > 1; |
There was a problem hiding this comment.
Please avoid redundant diffs
create_message signals recipients again so messages arrive live; notify_message_delivery stays for the delivery acknowledgement. Trim unrelated formatting churn in DeliveryStatusIndicator.
|
Sync issue is resolved but delivery tick icon has some issues that will be fixed in a follow up PR. |
The notify_message_delivery zome input uses serde rename_all=camelCase, so it expects messageRecord, but the client sent message_record. The payload failed to deserialize, the call threw, delivery acks were never recorded, and the indicator was stuck on a single tick. Send messageRecord to match.
Also render a dedicated double-check glyph for delivered messages instead of overlapping two single checks.
Summary
TODO: