Commit graph

16 commits

Author SHA1 Message Date
Jamie Kyle
0e490542a7
RTL 2023-04-20 10:03:43 -07:00
Alvaro
99015d7b96
Voice notes drafts 2023-03-02 13:55:40 -07:00
Alvaro
b4c9c3051b
Animated voice-note controls and used image x for playback rate 2022-09-19 17:28:10 -07:00
Alvaro
dd12c4cba3
Fixed playback-speed button bug and updated layout 2022-08-31 14:42:09 -06:00
Alvaro
13046dc020
Added a playback speed button on voice notes 2022-08-18 11:43:44 -04:00
Evan Hahn
cc44dca32b
Left-align audio message countdown and right-align metadata 2022-03-09 15:45:18 -06:00
Fedor Indutny
1191288107
Fix MessageAudio spinner 2021-09-28 15:12:19 -07:00
Evan Hahn
14929fb408
Show "unplayed" dot on outgoing audio messages 2021-07-27 10:42:25 -05:00
Evan Hahn
831ec98418
Audio messages: move countdown under waveform 2021-07-09 13:27:16 -07:00
Josh Perez
28f016ce48
Conversation Colors 2021-05-28 09:15:17 -07:00
Fedor Indutny
8fa5ea6b2b Add outlines for MessageAudio buttons 2021-05-20 17:37:08 -07:00
Fedor Indutny
9e9d1c8e84
Consistent cursors in MessageAudio
Hovering over waveform should display "pointer" cursor, while countdown
should not be user-selectable and thus should display "default" cursor.
2021-03-23 14:03:16 -07:00
Fedor Indutny
d6063d71e5
Change duration to countdown in MessageAudio
Message Audio UI should display remaining time not the duration of the
audio.
2021-03-22 11:15:59 -07:00
Fedor Indutny
4116bce899 Fix cursor over MessageAudio's spinner
It is not a button, so the cursor has to be in `auto` mode.
2021-03-19 16:57:36 -04:00
Fedor Indutny
05f59f3db1 Add download button and pending spinner for audio messages 2021-03-19 16:57:36 -04:00
Fedor Indutny
12d7f24d0f New UI for audio playback and global audio player
Introduce new UI and behavior for playing audio attachments in
conversations. Previously, playback stopped unexpectedly during window
resizes and scrolling through the messages due to the row height
recomputation in `react-virtualized`.

With this commit we introduce `<GlobalAudioContext/>` instance that
wraps whole conversation and provides an `<audio/>` element that
doesn't get re-rendered (or destroyed) whenever `react-virtualized`
recomputes messages. The audio players (with a freshly designed UI) now
share this global `<audio/>` instance and manage access to it using
`audioPlayer.owner` state from the redux.

New UI computes on the fly, caches, and displays waveforms for each
audio attachment. Storybook had to be slightly modified to accomodate
testing of Android bubbles by introducing the new knob for
`authorColor`.
2021-03-19 16:57:35 -04:00