Repository navigation
fix(ui): make delivered double-tick legible and stop acks being wiped - #193
Merged
Merged
Conversation
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.
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.
Collaborator
|
@MasterK0927 It's been tested and good to go! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
TODO: