Commit Graph

4188 Commits (80d54843252ce0d5fc0d2480777410d09a47f051)
 

Author SHA1 Message Date
Scott Nonnenberg ec3e36824c Remove jscs from the project 7 years ago
Scott Nonnenberg cfe0bd0e79 Move to npm for several dependencies
mustache
jQuery
underscore
backbone
mocha
chai
intl-tel-input
7 years ago
Scott Nonnenberg a593a148e8 Explicitly disable nodeIntegration in service workers 7 years ago
Scott Nonnenberg 01be58acc2 Remove formatting in importError localization string 7 years ago
Scott Nonnenberg ab00c71c46 Remove unused messages.json strings 7 years ago
Scott Nonnenberg 503884dbb6 Remove unused app-migration-screen template 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 32e2c6dcb5 Add form-action: 'self' to CSP for defense in depth 7 years ago
Scott Nonnenberg 9e0f387e80 Print out main process logs if electron unit tests fail 7 years ago
Scott Nonnenberg e2d044e02b Filter file scheme; disable http, https and ftp entirely 7 years ago
Scott Nonnenberg 96bbc9d738 Prevent new BrowserWindows from being created 7 years ago
Scott Nonnenberg 559b2157d4 Disable window.open(); has extra Electron functionalnity
(that we never use)

https://electronjs.org/docs/api/browser-window-proxy
7 years ago
Scott Nonnenberg 91c247ef8d Move all forks to @scottnonnenberg-signal account 7 years ago
Scott Nonnenberg e02887565b
Update to electron v2.0.1 (#2401)
* Remove extra parenthesis causing warnings on latest chromium

* Update to electron 2.0.1

* Move all @types dependencies to devDependencies

* Update electron-builder/electron-updater

* Update to Node.js 8.9.3 to match Electron 2.0.1
7 years ago
Scott Nonnenberg a328a70ba2
Update React-based emoji handling to fix skin tone modifiers (#2399) 7 years ago
riyapenn-signal 4f1df7377f Add another Windows 7 dev setup requirement (#2398)
Updated CONTRIBUTING.MD for an additional Windows 7 requirement for archived SDK's, specifically requested for Windows 7 is the Windows 8.1 SDK https://go.microsoft.com/fwlink/p/?LinkId=323507
7 years ago
Scott Nonnenberg d54aedcefa
A few fixes for the contact detail screen (#2374)
* Only show 'send message' on contact detail when user has account

* Make contact detail headers visible in dark mode

* Fix vertical scrolling for very large contact in detail pane

* Fix a couple comment typos
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 877cbfc338 v1.11.0-beta.5
Fix broken CSP
7 years ago
Scott Nonnenberg a4bc460d4c Fix malformed CSP 7 years ago
Scott Nonnenberg e52c7ca2f3 v1.11.0-beta.4
Move to react for newlines, emoji, and links in message body
7 years ago
Scott Nonnenberg 4e5c8965ff Move to react for newlines, emoji, and links in message body 7 years ago
Scott Nonnenberg 721935b0c8 v1.11.0-beta.3
Update link handling
7 years ago
Scott Nonnenberg c00c939148 Update link handling 7 years ago
Scott Nonnenberg d8e0a489b2 v1.11.0-beta.2
Notification Improvements (#2364)
  - Fixed: The change for production didn't full make it into v1.11.0-beta.1 - this change restores the code which removes the old notification when we add a new one
  - Fixed: Notifications could be orphaned in notification center if they were added/removed quickly
  - Fixed: Notifications weren't removed properly when read on a linked device

Dev: Better logging when we receive a read sync from a linked device (#2364)
7 years ago
Scott Nonnenberg 160de2c924
Notification Improvements (#2364)
Notification Improvements
7 years ago
Scott Nonnenberg b1a54c416f Notifications: All calls are debounced except for shutdown clear 7 years ago
Scott Nonnenberg 18a76ffb49 Debounce notifications so we don't orphan them
Creating/destroying notifications too quickly in testing on macOS would
result in them sticking around forever, requiring manual user dismissal.
We want to dismiss them for the user when we close or our window is
activated. So now we debounce() calls to our notifications code.
7 years ago
Daniel Gasienica 24002149f6 Log read sync reception and remove notification 7 years ago
Daniel Gasienica d434262540 Remove last notification before creating new one 7 years ago
Scott Nonnenberg d9685178d2 v1.11.0-beta.1
Feature: Receive contact (#2349, #2359)

Fixed: Sometimes clicks on quoted message wouldn't work (#2350)

Fixed: In dark theme, it was hard to see a message's triple-dot menu on hover - thanks @PunkChameleon (#2334)

Fixed: Unsupported image and video types were missing from media pane (#2351)

Fixed: On small screens, the media lightbox view would show media off-screen (#2351)

Notification improvements
  - Remove all on remote read, on focus, on exit
  - Show multi-message notifications like '5 new messages'

Media Gallery: A number of small visual fixes (#2351)

Emoji pane: Can now dismiss it by pressing escape key - thanks @tommypacker (#2354, #2357)

Update translations (#2328, #2352)

Dev:
  - Windows 7: Use Electron-native notifications (#2338, #2330)
  - Improve Logging For Disappearing Messages (#2332)
  - Prettier: Continue expanding its coverage of app (#2339, #2324)
  - Document Translations Setup + Remove Unused Strings (#2329)
  - Make Protocol Buffers available to commonjs code (#2347)
7 years ago
Scott Nonnenberg 3ceb8b1803
Fixes for receive contact (#2359)
Fixes for receive contact
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 93d3abbf8d Use contact name when updating last message for a conversation 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
Scott Nonnenberg fffcba0fec Properly handle contact property as an array in MessageReceiver 7 years ago
Scott Nonnenberg d2293d9592 parseAndWriteAvatar: Do shallow copy before omit() call
Otherwise, we get all prototype props/functions, which we can't save in IndexedDB
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 f693c00778
Close Emoji Panel on Escape Key Press (#2357)
Contributed by @tommypacker (#2354).

Closes #2354.
7 years ago
Daniel Gasienica e723484498 Simplify closing emoji panel on escape key down 7 years ago
tommypacker 48708d5738 Close emoji panel on escape press 7 years ago
Daniel Gasienica cb0d60c80d
Media Gallery: Fix Media + Documents Attachment Classification (#2351)
* [x] Introduce schema version 6: Fix media gallery file type classifications:
  * [x] Exclude voice messages from **Documents**.
  * [x] Include all media (images + video), regardless of whether we can
        display it or not.
* [x] Fix lightbox layout for small screens.
* [x] Add support for unsupported file formats in lightbox:
  * [x] Show image icon for unsupported images, e.g. TIFF.
  * [x] Show video icon for unsupported videos, e.g. QuickTime.
  * [x] Show file icon for other unsupported files, e.g. JSON.
* [x] Show all lightbox variants in style guide.
* [x] Don’t show separator for last document list entry
* [x] **Infrastructure:** Port `colorSVG` to CSS-in-JS for React.
7 years ago