Skip to content

fix(ui): make delivered double-tick legible and stop acks being wiped - #193

Merged
Amirhesp merged 2 commits into
developfrom
fix/delivery-indicator-double-tick
Jul 28, 2026
Merged

Amirhesp merged 2 commits into
developfrom
fix/delivery-indicator-double-tick

Conversation

@MasterK0927

@MasterK0927 MasterK0927 commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

The doubleCheck glyph could not be told apart from a single check. Its 41x22 viewBox was injected into SvgIcon's square h-3 w-3 box, so preserveAspectRatio scaled it by 12/41 and drew it 12x6.4px - 27% shorter than the 30x22 single check drawn in the same box. On top of that the second check was offset by only 11 of its 30 units, so the back tick's rising arm ran straight through the front tick's falling arm with no separating gap and the two welded into a solid "W".

Redraw doubleCheck as two stroked ticks with the back one broken where the front tick crosses, and give the wider glyph a container width to match its aspect ratio so both states render at the same height and stroke weight.

Separately, delivery acks did not survive a restart. MessageDatabase stored rows built by _makeMessageExtended, which hardcodes deliveredTo: [], so a DHT re-fetch bulkPut over an already-acked message dropped its acks; memory was unaffected because both merge helpers skip hashes already present, so the tick stayed double for the session and reverted afterwards. Both write paths now go through one row builder that unions incoming acks with the stored row.

Summary

image

TODO:

  • CHANGELOG updated

The doubleCheck glyph could not be told apart from a single check. Its
41x22 viewBox was injected into SvgIcon's square h-3 w-3 box, so
preserveAspectRatio scaled it by 12/41 and drew it 12x6.4px - 27%
shorter than the 30x22 single check drawn in the same box. On top of
that the second check was offset by only 11 of its 30 units, so the back
tick's rising arm ran straight through the front tick's falling arm with
no separating gap and the two welded into a solid "W".

Redraw doubleCheck as two stroked ticks with the back one broken where
the front tick crosses, and give the wider glyph a container width to
match its aspect ratio so both states render at the same height and
stroke weight.

Separately, delivery acks did not survive a restart. MessageDatabase
stored rows built by _makeMessageExtended, which hardcodes
deliveredTo: [], so a DHT re-fetch bulkPut over an already-acked message
dropped its acks; memory was unaffected because both merge helpers skip
hashes already present, so the tick stayed double for the session and
reverted afterwards. Both write paths now go through one row builder
that unions incoming acks with the stored row.
@MasterK0927

Copy link
Copy Markdown
Contributor Author

@copilot review

Verified against two live agents. The tick advanced correctly, but the
delivered state used text-primary-500 - Volla's brand red #FD3524 -
which on the black chat background reads as a failure rather than a
confirmation. Use the neutral ramp instead: mid grey for sent, and the
higher-contrast end of the ramp for delivered, in both themes.

The indicator also sat in its own flex row below the message with mt-1,
so with the timestamp only rendered on the first message of a group it
floated unanchored and visually split consecutive messages apart. Move
it into the message content element so it flows inline after the last
word and wraps with the text.

Drop both glyphs from 12px to 10px, keeping the double-tick box at the
46:22 aspect ratio so the two states still render at identical ink
height.
@Amirhesp

Copy link
Copy Markdown
Collaborator

@MasterK0927 It's been tested and good to go!

@Amirhesp
Amirhesp merged commit 37e01a3 into develop Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants