Commit Graph

212 Commits (80d54843252ce0d5fc0d2480777410d09a47f051)

Author SHA1 Message Date
Scott Nonnenberg 445839770b
Fix width of message detail screen (#2478) 7 years ago
Scott Nonnenberg 951ae6d52c Disable inline rendering of SVG attachments
Like TIFF, they are now treated as binary files.
7 years ago
Scott Nonnenberg 925e02e397 Fix lint error in OS.ts 7 years ago
Scott Nonnenberg 34f423b52c Remove unused code; move signal.js to js/modules for eslint
(noticed as I was doing this that signal.js doesn't get eslint coverage)
7 years ago
Scott Nonnenberg 9dedda84e2 Add style guide examples for ContactName and ConversationTitle 7 years ago
Scott Nonnenberg 2988da0981 Turn on all of Microsoft's recommend lint rules
Biggest changes forced by this: alt tags for all images, resulting in
new strings added to messages.json, and a new i18n paramter/prop added
in a plot of places.

Another change of note is that there are two new tslint.json files under
ts/test and ts/styleguide to relax our rules a bit there. This required
a change to our package.json script, as manually specifying the config
file there made it ignore our tslint.json files in subdirectories
7 years ago
Scott Nonnenberg 23586be6b0 Add emojification to contact names shown in quotes 7 years ago
Scott Nonnenberg 548c8e69cf Emojification now all done with react via a few new components
Three locations were changed:
  1. a group update, which lists a set of contacts
  2. the contact name in the left pane
  3. the conversation title

Three new components were added to window.Signal.Components to support
these scenarios, respectively:
  1. Emojify
  2. ContactName
  3. ConversationTitle

Note that there are a number of other places in the app that should be
emojified, but never have been before. Essentially any place that a
contact name might be shown. A non-exhaustive list:
  - Show group members
  - Show safety number
  - Verified change notification
  - Disappearing timer change notification
  - Contact verification notification
  - Quote contact name
7 years ago
Scott Nonnenberg d9e5338dff Refactor link/emoji/newline components for composability 7 years ago
Scott Nonnenberg a5416e42c4 Refactor all emoji utility methods into window.Signal.Emoji 7 years ago
Scott Nonnenberg a328a70ba2
Update React-based emoji handling to fix skin tone modifiers (#2399) 7 years ago
jython234 84759d813e Modify OS.isWindows to check platform before version (#2407)
* Modify OS.isWindows to check if OS is Windows first before checking version.

Previously OS.isWindows checked if the windows version matched the one required. This worked fine, except for the fact that it would end up comparing a linux kernel version to a windows version as it didn't check if the platform was Windows in the first place before.

This caused issues as it would throw an error when comparing with non-semver linux kernels (such as Fedora). Now it checks if the current platform is Windows first, and if not, immediately returns false.

Resolves: #2396

* Fix formatting for OS.ts
7 years ago
Scott Nonnenberg 4e5c8965ff Move to react for newlines, emoji, and links in message body 7 years ago
Scott Nonnenberg 8f934251ae Fix a few types: relax contact, Email->Phone 7 years ago
Scott Nonnenberg 80b069e9b6 Move phone number format/parse into ts/types/PhoneNumber 7 years ago
Scott Nonnenberg aa13a2c6f7 Parse phone numbers into e164 as part of schema upgrade 7 years ago
Scott Nonnenberg 8cb1f1f532 Fall back on givenName/familyName if no displayName/organization 7 years ago
Scott Nonnenberg eafa038ba4 Use backup labels if custom contact type labels are missing 7 years ago
Daniel Gasienica 3bf8a8966a Notification improvements
- Remove on read, on focus, and on exit.
- Show multi-message notifications like '5 new messages'.
7 years ago
Daniel Gasienica d349dd903d Add `AttachmentSection` to style guide 7 years ago
Daniel Gasienica 121bb0ecef Style guide: Fix empty state 7 years ago
Daniel Gasienica f19e6ea93d Wrap JSX siblings in container 7 years ago
Daniel Gasienica a8cd0b782e Rename `DocumentListItem::isLast` to `shouldShowSeparator` 7 years ago
Daniel Gasienica 05f67dc04a Hide separator for last document list entry 7 years ago
Daniel Gasienica fd883b2896 Fix `LightboxGallery` style guide entry 7 years ago
Daniel Gasienica bfe7eb7d5e Consolidate styles 7 years ago
Daniel Gasienica 90329a2764 Display icon for unsupported file formats
Still allows users to download media.
7 years ago
Daniel Gasienica 623bdd9284 Port `colorSVG` from Sass to TypeScript (React) 7 years ago
Daniel Gasienica 16bc1d34c6 Message schema 6: Change classification of media and documents
For an easier implementation, we change our original definition of
`initializeAttachmentMetadata`. This means we have to re-run it marked as
version 6 and mark schema version 5 as deprecated as its definition has changed.
7 years ago
Daniel Gasienica f4a5bc9907 Add new MIME types 7 years ago
Daniel Gasienica 63bd9dcc61 Add tests for `Attachment.isVisualMedia` 7 years ago
Daniel Gasienica 53918d68de Add `Attachment.isFile` definition 7 years ago
Daniel Gasienica 20246c4d07 Classify all images and videos as visual media
Even if we can’t play it back. Handle that in the lightbox.

Also: Exclude voice messages.
7 years ago
Scott Nonnenberg 0282635142 Remove Object.assign still hanging around in typescript 7 years ago
Scott Nonnenberg 1918a88722 Drop ifTruthy suffix 7 years ago
Scott Nonnenberg 1fd487be3f Refactor to remove duplicated code, lint/prettier fixes 7 years ago
Scott Nonnenberg f628df1035 Eliminate arrows in the standalone Lightbox component examples 7 years ago
Scott Nonnenberg 8beeef4d10 Show contact name when you reply to message with a contact 7 years ago
Scott Nonnenberg 9d1847a7e5 Pull all setup in preload.js into signal.js. goal: webpackable 7 years ago
Scott Nonnenberg 30cb673405 Fix style guide for LightboxGallery component 7 years ago
Scott Nonnenberg 37821e5a1b Wire up all contact behaviors, refactor Contact type/selector 7 years ago
Scott Nonnenberg 41be7f126b Visuals for embedded contacts as well as contact detail screen 7 years ago
Daniel Gasienica daa4a3d63f Compile all protocol buffers 7 years ago
Daniel Gasienica 15759f0db5 Normalize package naming 7 years ago
Daniel Gasienica f88ebdf8b7 Compile protocol buffers as part of `yarn grunt dev` 7 years ago
Daniel Gasienica 38f3ad6518 Use `SignalService` vs `textsecure` for protobuf 7 years ago
Daniel Gasienica 6589247750 Expose `SignalService` to style guide 7 years ago
Daniel Gasienica 86346ee239 Expose `Signal.Types.Attachment` to style guide 7 years ago
Daniel Gasienica 5789b3eb75 Add `Attachment.isVoiceMessage` 7 years ago
Daniel Gasienica fa4c3fda2b Extract common MIME types 7 years ago