Daniel Gasienica
347fc8287a
Add yarn format
to autoformat code
...
Uses Prettier under the hood. Requires opt-in via `@prettier` pragma:
https://prettier.io/docs/en/options.html#require-pragma
2018-04-25 15:24:51 -04:00
Daniel Gasienica
56a5006392
Remove duplicate @types/lodash
dependency
2018-04-25 15:24:51 -04:00
Daniel Gasienica
8edbd06e43
TSLint: Enforce UNIX line breaks
2018-04-25 15:24:51 -04:00
Daniel Gasienica
a8bca9b8eb
TSLint: Enforce indentation with 2 spaces
...
Not sure if this rule actually works.
2018-04-25 15:24:51 -04:00
Daniel Gasienica
04acdebe48
TSLint: Align various syntax elements
2018-04-25 15:24:51 -04:00
Daniel Gasienica
9858e0e680
Fix translation description
2018-04-25 15:24:51 -04:00
Daniel Gasienica
39d5f3c413
Enable strict type checking features
2018-04-25 15:24:51 -04:00
Daniel Gasienica
99921ed848
Enable strict null
checks
2018-04-25 15:24:51 -04:00
Daniel Gasienica
3a8c3ccdab
Add prettier
2018-04-25 15:24:51 -04:00
Daniel Gasienica
f367a9b059
Move private
method below public
ones
2018-04-25 15:24:51 -04:00
Daniel Gasienica
832b6309a2
Limit line length
2018-04-25 15:24:51 -04:00
Daniel Gasienica
cf1d621bce
Allow line breaks in long import
statements
2018-04-25 15:24:51 -04:00
Daniel Gasienica
3d70e46aea
Calculate dates in UTC
2018-04-25 15:24:51 -04:00
Daniel Gasienica
d7b21ef5dc
Render attachments grouped by date
2018-04-25 15:24:51 -04:00
Daniel Gasienica
e34347f290
Add groupMessagesByDate
2018-04-25 15:24:51 -04:00
Daniel Gasienica
9053b6acfc
Remove unused style
2018-04-25 15:24:51 -04:00
Daniel Gasienica
ae419764bf
Use arrow function over .bind
2018-04-25 15:24:51 -04:00
Daniel Gasienica
a86a596f34
Add translations for section headers in media gallery
2018-04-25 15:24:51 -04:00
Daniel Gasienica
66516fd36a
Use short format for dates
2018-04-25 15:24:51 -04:00
Daniel Gasienica
923d5ff088
Add missingCaseError
function
2018-04-25 15:24:51 -04:00
Daniel Gasienica
fc1c3aabf5
Add scaffolding for media gallery
2018-04-25 15:24:51 -04:00
Daniel Gasienica
a8be4f2d8d
Expose Lodash in style guide
2018-04-25 15:24:51 -04:00
Daniel Gasienica
8ef04cb1fd
Move @types/*
dependencies to devDependencies
2018-04-25 15:24:51 -04:00
Daniel Gasienica
10bede85c9
Add filesize
dependency
2018-04-25 15:24:50 -04:00
Daniel Gasienica
94ef3bab80
Move test file
2018-04-25 15:24:50 -04:00
Daniel Gasienica
272c49c5bf
Use existing ReactWrapper
2018-04-25 15:24:50 -04:00
Daniel Gasienica
32a3ef518b
Render media gallery placeholder panel
2018-04-25 15:24:50 -04:00
Daniel Gasienica
f9e4613395
Move TS test for message migration
2018-04-25 15:24:50 -04:00
Daniel Gasienica
5f220a7b2c
Add migration for media gallery indices
2018-04-25 15:24:50 -04:00
Daniel Gasienica
273248d3fd
Wire up ‘View All Media’ menu item
2018-04-25 15:24:50 -04:00
Daniel Gasienica
d14761087a
Add schema version 4: Attachment metadata
2018-04-25 15:24:50 -04:00
Scott Nonnenberg
7d11efc50b
ConversationView: Add 'View All Media' menu item
2018-04-25 15:24:50 -04:00
Daniel Gasienica
867bece952
Add Message.initializeAttachmentMetadata
2018-04-25 15:24:50 -04:00
Daniel Gasienica
c5352cf26c
Separate required from optional Message
keys
2018-04-25 15:24:50 -04:00
Daniel Gasienica
fc12353bb8
Add Attachment.isVisualMedia
2018-04-25 15:24:50 -04:00
Daniel Gasienica
47cc701e72
Add GoogleChrome
module
...
Helps us determine which media we can natively display / play back in Electron.
2018-04-25 15:24:50 -04:00
Daniel Gasienica
9533c09707
Add @types/lodash
2018-04-25 15:24:50 -04:00
Daniel Gasienica
6ff82adf0a
Add MIME.isImage
and MIME.isVideo
2018-04-25 15:24:50 -04:00
Daniel Gasienica
df2e6e7864
Port MIME
module to TypeScript
2018-04-25 15:24:50 -04:00
Daniel Gasienica
6a63e427c8
Use is
instead of Lodash is*
2018-04-25 15:24:50 -04:00
Scott Nonnenberg
4852a9dee0
Fix rendering issue with iOS quote preview ( #2292 )
...
Fix rendering issue with iOS quote preview (in composition mode)
2018-04-25 12:20:49 -07:00
Scott Nonnenberg
7038202a1a
Fix rendering issue with iOS quote preview (in composition mode)
2018-04-25 11:51:30 -07:00
Scott Nonnenberg
adf91ee84c
Enable sending quoted replies, two fixes ( #2284 )
...
Enable sending quoted replies, two fixes
2018-04-25 09:09:30 -07:00
Scott Nonnenberg
9619e5b66d
Fix quote thumbnail flickering issue
...
Turns out that we reload thumbnails for every message when any new
message is added to the conversation. This fix prevents that by actually
checking for the proper sentinel on the message model
2018-04-24 18:33:10 -07:00
Scott Nonnenberg
b0b1dc6be8
Apply iOS theme after link
2018-04-24 18:32:47 -07:00
Scott Nonnenberg
c614c3968b
Enable the sending of quoted replies
2018-04-24 14:46:00 -07:00
Scott Nonnenberg
fc757d4e29
Add border-radius to iOS quoted-message to fix MacOS render bug ( #2282 )
...
Add border-radius to iOS quoted-message to fix MacOS render bug
2018-04-24 14:38:20 -07:00
Scott Nonnenberg
43ed2c67e1
Add border-radius to iOS quoted-message to fix MacOS render bug
2018-04-24 14:08:42 -07:00
Scott Nonnenberg
0738a43ead
Send quoted replies and message/quote visual updates ( #2273 )
...
Currently disabled: the ability to send quoted replies.
Quote-related functionality changes:
- We generate thumbnails for quoted attachments, so a receiving client doesn't need the original message to see the thumbnail
- Support for exporting and importing messages with quote thumbnails
Other visual changes:
- Big refactor of CSS to ensure that quote rules apply both inside of a message and in the message composition area:
- Emoji support in quotations consistent with normal message rendering
- Android theme: Tightened up spacing at the top of chat bubbles (fixes #2259 )
- iOS theme: Center attachment images
- iOS theme: Proper treatment of small image attachments with no caption
- iOS theme: Proper treatment of small image attachments with quote
- When quote thumbnails are not square, make them fill the whole square space
- Better icon for videos when we don't have a thumbnail
- Android dark theme: Improved contrast for outgoing quotes
Dev changes:
- conversation_view.js and backup_test.js were eslint-ified
- Quite a few more message examples in the style guide: all of the visual issues addressed above, messages with errors, notifications (timer changes, safety number warnings, etc.)
- Full end-to-end test for export and import
2018-04-24 10:06:39 -07:00
Scott Nonnenberg
ef1d568a80
Restore rendering of group update and end session messages
...
The previous work to refactor bubbles broke rendering for these message
types. :0/
2018-04-23 19:16:00 -07:00