Commit Graph

173 Commits

Author SHA1 Message Date
Kiran Niranjan
d61473febe
fix: SDA-1890 (Fix auto launch on startup for cloud config) (#934)
* SDA-1890 - Fix auto launch on start up for cloud config

* SDA-1890 - Fix unit tests
2020-03-20 10:38:38 +05:30
Kiran Niranjan
996bd858a7
SDA-1880 & SDA-1882 - Fix background throttling issue (#925) 2020-03-18 19:50:27 +05:30
Vishwas Shashidhar
82543debfb
feat: SDA-1838: upgrade electron framework to 8.x (#895)
* add support for electron 8.x

* update node-abi to latest

* 8.x: fix unit tests

* upgrade dependencies

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* SDA-1838: removed unwanted console log

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* SDA-1838: refactor code

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>
2020-03-06 14:37:18 +05:30
Vishwas Shashidhar
5504a8e8ca
fix: [SDA-1567] add menu item for disable gpu (#884)
* SDA-1567: upgrade electron to 6.1.7

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* SDA-1567: add menu item for managing gpu

* SDA-1567: add documentation for dialog-handler.ts

* SDA-1567: fix chrome flags unit test

* SDA-1567: update package-lock.json

* SDA-1567: add disable gpu menu item

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* SDA-1567: fix unit tests and update dialog-handler.ts

- Fix unit tests
- Update dialog handler to write to config file regardless of user restarting the app immediately

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* SDA-1567: revert electron upgrade

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>

* SDA-1567: fix translations

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>
2020-03-04 17:49:43 +05:30
Kiran Niranjan
3b94161e59
feat: SDA-1814 (Redesign about Symphony window) (#880)
* SDA-1814 - Redesign about symphony window

* SDA-1814 - text align right

* SDA-1748 - Update design changes

* SDA-1748 - Update window height
2020-03-03 11:53:32 +05:30
Kiran Niranjan
45cfbbdd6b
feat: SDA-1748 (Add support for Cloud Config) (#878)
* SDA-1748 - Initial Cloud config

* SDA-1748 - Read menu items enabled values from filtered cloud config

* SDA-1748 - Fix unit tests

* SDA-1748 - Fix issues with custom title bar and devtools

* SDA-1748 - Fix unit tests
2020-03-03 11:15:27 +05:30
Kiran Niranjan
21b7e20e9e SDA-1395 - Disable context menu for action buttons (#858) 2020-01-27 11:15:20 +05:30
Kiran Niranjan
a9fc026df9 SDA-1651 - Temporarily disable AOT when screen snippet is open (#842) 2020-01-08 17:18:03 +05:30
Kiran Niranjan
5c32143856 fix: SDA-1546 (Update SDA Icons) (#840)
* SDA-1546 - Update app icons

* SDA-1546 - fix unit tests

* SDA-1546 - Fix icns file for MacOS
2020-01-04 14:18:02 +05:30
Johan Kwarnmark
d2e825601f Show SFE version in about-window 2019-11-06 14:49:23 +01:00
Johan Kwarnmark
9845cf3dc1 Merge remote-tracking branch 'upstream/master' 2019-10-30 16:40:08 +01:00
Kiran Niranjan
0431a9f5ad fix: Upgrade master to 6.x (#795)
* Upgrade Electron version to 6.x

* fix: SDA-1347 (Group multiple processes into a single task bar icon) (#778)

* update mac build script

* update mac packager

* feat: ELECTRON-1462 (Combine more information into about app window) (#777)

* ELECTRON-1462 - Merge more info window in to about app window

* ELECTRON-1462 - Adjust window size

* ELECTRON-1462 - Add line space

* ELECTRON-1462 - Resize for windows

* ELECTRON-1462 - Add translation for swift search

* ELECTRON-1462 - Adjust width for Windows OS

* ELECTRON-1462 - Add about app snapshots file

* SDA-1347 - Group multiple processes into single task bar icon

* Change dependency from gulp-tsc to gulp-typescript

* 6.x Update activity detection api

* 6.x Update aip file to remove unwanted spellchecker files

* 6.x Update electron version to 6.1.2

* 6.x Update SDA version and change spellchecker base

* 6.x Update electron-builder version to support 6.x

* 6.x fix escape char for window build command

* 6.x Optimize log path set and get methods

* 6.x Change yml to json

* 6.x Make Window local path as default user data path
2019-10-30 20:58:25 +05:30
Johan Kwarnmark
0d97cf2890 Add new layout of screen sharing indicator + update test 2019-10-30 12:55:25 +01:00
Vishwas Shashidhar
67553d7b46
fix: SDA-1526: remove support for opening non http(s) links (#786)
* SDA-1526: add logic to ignore non http or https urls

* SDA-1526: update unit test
2019-09-27 12:01:05 +05:30
Kiran Niranjan
073450ab7f feat: ELECTRON-1462 (Combine more information into about app window) (#777)
* ELECTRON-1462 - Merge more info window in to about app window

* ELECTRON-1462 - Adjust window size

* ELECTRON-1462 - Add line space

* ELECTRON-1462 - Resize for windows

* ELECTRON-1462 - Add translation for swift search

* ELECTRON-1462 - Adjust width for Windows OS

* ELECTRON-1462 - Add about app snapshots file
2019-09-04 17:58:43 +05:30
Vishwas Shashidhar
c09eabbc8b
feat: ELECTRON-1463: support linux build (#770)
* ELECTRON-1463: support linux build

* ELECTRON-1463: add scripts for linux build

* ELECTRON-1463: fix unit tests

* ELECTRON-1463: fix logger issue

* ELECTRON-1463: fix menu not showing up

* ELECTRON-1463: add screen-snippet functionality for linux

* ELECTRON-1463: fix log path for linux

* ELECTRON-1463: fix config path for linux

* ELECTRON-1463: fix config path for linux

* ELECTRON-1463: fix path in spellchecker

* ELECTRON-1463: fix log path issues

* ELECTRON-1463: remove unneeded dependencies and support rpm
2019-08-20 14:30:13 +05:30
Kiran Niranjan
f24498699a fix: ELECTRON-1171 (Sets font-family dynamically based on locale) (#765)
* ELECTRON-1171 - Apply font-family dynamically based on locale

* ELECTRON-1171 - Reset font family for network error
2019-08-16 12:12:01 +05:30
Kiran Niranjan
b872370418 ELECTRON-1464 - Update custom title bar's title correctly (#755) 2019-08-01 21:25:50 +05:30
Kiran Niranjan
d5d59d3861 fix: ELECTRON-1426 (Update custom title bar icon and fix Symphony icons) (#749)
* ELECTRON-1426 - Update custom title bar icon and fix Symphony icons

* ELECTRON-1426 - Bump screen snippet version to 1.0.7 to support new icon
2019-07-24 00:18:49 +05:30
Kiran Niranjan
d54b5b2ae7 ELECTRON-1409 - Identify screens based on name instead of display_id for Windows (#745) 2019-07-19 22:22:11 +05:30
Vishwas Shashidhar
e1f7fa53d0
fix: ELECTRON-1431: add logic to update pod version dynamically (#743)
* ELECTRON-1431: add logic to update pod version dynamically

* ELECTRON-1431: refactor the code to keep version handler simple

* ELECTRON-1431: add safety check for setting about panel on macOS

* Merge branch 'master' into ELECTRON-1431

# Conflicts:
#	src/app/window-handler.ts
2019-07-19 18:48:01 +05:30
Kiran Niranjan
abfda29141 ELECTRON-1368 - Fix SnackBar & DownloadManager in pop-out (#740) 2019-07-19 14:30:07 +05:30
Kiran Niranjan
7a1ded34b2 fix: ELECTRON-1380 (Show pop-up menu only on main window) (#732)
* ELECTRON-1380 - Show pop-up menu only on main window

* ELECTRON-1380 - Fix unit tests
2019-07-16 10:59:50 +05:30
Kiran Niranjan
486d345dc4
fix: ELECTRON-1382 (Fix notification z-index when alwaysOnTop is enabled) (#727)
* ELECTRON-1382 - Fix notification z-index when alwaysOnTop is enabled
2019-07-12 21:25:48 +05:30
Vishwas Shashidhar
36a68ec01b
fix: ELECTRON-1379: fix localisation for "Version" string (#726)
* ELECTRON-1379: fix localisation for "Version" string

* ELECTRON-1379: update jest snapshot
2019-07-12 16:34:20 +05:30
Kiran Niranjan
15bd87613c fix: ELECTRON-1371 (Fix Custom title bar title margin issue) (#715)
* ELECTRON-1371 - Fix title bar title margin issue

* ELECTRON-1371 - Fix spec for Windows title bar
2019-07-11 15:46:12 +05:30
Kiran Niranjan
b0bd60fa6d fix: ELECTRON-1365 & ELECTRON-1350 (fix issues with logo) (#711)
* ELECTRON-1365 - Fix logo in the custom title bar

* ELECTRON-1350 - Fix about app text color

* ELECTRON-1365 - Remove png file

* ELECTRON-1365 - Update windows title bar snapshot
2019-07-09 19:20:44 +05:30
Vishwas Shashidhar
5faa766f07
fix: ELECTRON-1338: fix download manager issues (#707)
* ELECTRON-1338: add electron-dl logic to handle automatic file downloading

* ELECTRON-1338: fix download count issue

* ELECTRON-1338: group import statements
2019-07-09 11:34:22 +05:30
Vishwas Shashidhar
11f69f47ac
feat: ELECTRON-1357: show version info from pod (#703)
* ELECTRON-1357: implement getting dynamic version

* ELECTRON-1357: add support for more info window

* ELECTRON-1357: add unit tests for version handler

* ELECTRON-1357: delete unwanted files

* Delete .gulp-tsc-tmp-11966-41547-768xt5.masn2.ts

* Delete .gulp-tsc-tmp-11966-10574-1bhy8kw.k21y.ts

* ELECTRON-1357: caching server data

* ELECTRON-1357: refactor code to remove event emitter and use net module

* ELECTRON-1357: set version info asynchronously

* ELECTRON-1357: add checks for failed requests
2019-07-08 20:35:57 +05:30
Kiran Niranjan
5402d90ac9 feat: ELECTRON-1331 (Add new performance settings and add support for BI APIs) (#695)
* ELECTRON-1331 - Add new performance settings and add support for BI APIs

* ELECTRON-1331 - Resolve conflicts

* ELECTRON-1331 - Fix unit test cases

* ELECTRON-1331 - Fix unit test cases and typo
2019-07-04 12:11:29 +05:30
Vishwas Shashidhar
918c5741a6
fix: ELECTRON-1243: fix chrome flags tests (#696)
* ELECTRON-1243: add support to control throttling

* ELECTRON-1243: fix chrome flags tests

* ELECTRON-1243: refactor code and address PR comments
2019-07-02 16:24:17 +05:30
Kiran Niranjan
2bddbc56ec fix: Typescript (Fix issues with notification, menu & logger modules) (#682)
* Typescript - Fix issues with notification, menu & logger

* Typescript - Update unit test case and fix logger circular import

* Typescript - Fix the notification argument issue
2019-06-14 15:32:32 -04:00
Kiran Niranjan
1e953b0092 fix: ELECTRON-1022 (Fix issues with notification and origin) (#673)
* ELECTRON-1022 - Fix issues with notification and origin

* Typescript - Add Notification APIs to window.ssf object

* Typescript - Fix unit test

* Typescript - Fix notification bg color issue
2019-06-10 22:14:44 +05:30
Kiran Niranjan
10d3d49c44 fix: Typescript (Fix throttle issue and update stats logs) (#671)
* Typescript - Fix throttle issue and update stats logs

* Typescript - Fix unit tests
2019-06-10 22:13:59 +05:30
Vishwas Shashidhar
7a94ad31f8
feat: ELECTRON-1204 - add support for ttl (#668)
* ELECTRON-1204: implement ttl logic

* ELECTRON-1204: rebase with master

* ELECTRON-1204: remove redundant comma
2019-06-03 14:19:05 +05:30
Kiran Niranjan
cc451cb46f Typescript - Change network error logic and remove loading screen (#666) 2019-05-31 17:52:18 +05:30
Kiran Niranjan
a084735ce5 ELECTRON-771 (Fix custom title bar button titles & localization) (#651)
* ELECTRON-771 - Fix custom title bar button titles

* ELECTRON-771 - Update unit test cases
2019-05-17 16:14:44 +05:30
Kiran Niranjan
a053faedda Typescript (Change title-bar from className to id ) (ELECTRON-748) (#647)
* ELECTRON-748 - Change title-bar from className to id
Fix linter issues

* ELECTRON-748 - Fix unit tests cases
2019-05-15 18:21:52 +05:30
Vishwas Shashidhar
5adc162b2e fix auto launch controller failing test 2019-05-07 14:16:59 +05:30
Vishwas Shashidhar
9e347bab77 refactor code and remove old JS code 2019-05-07 13:26:57 +05:30
Kiran Niranjan
9b202bb95e Typescript (Fix localization and custom title bar) (#631)
* Typescript - Fix localization for screen picker & spellchecker modules

* Typescript - Fix custom title bar menu item

* Typescript - Updated screen picker unit tests

* Typescript - Update appName place holder

* Typescript - Add backward compatibility support for screen snippet

* Typescript - Optimize and refactor code
2019-05-02 17:43:50 +05:30
Kiran Niranjan
6aca522a1e Typescript (Optimize loading styles & register global shortcuts) (#629)
* Typescript - Optimize loading styles and register global shortcuts

* Typescript - Update version info logic to support BC

* Typescript - Implement memory refresh logic

* Typescript - Optimize memory refresh, devtools & appBridge code

* Typescript - Mock window-handler to fix unit tests

* Typescript - Change logic to remove if else and early exit
2019-04-12 16:11:04 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
b9bc65008d mocking updateUserConfig on autoLaunchController unit test (#630) 2019-04-08 21:21:55 +05:30
Kiran Niranjan
f65fa74057 Typescript (Fix bound changes and update child window security) (#628)
* Typescript - Update child window security and permissions

* Typescript - Update bound change logic

* Typescript - Update unit tests

* Typescript - Update aip files and package.json

* Typescript - Fix unit tests for child window handler
2019-04-08 13:05:14 +05:30
Kiran Niranjan
1b10648d6b Typescript (Added logic to clean up child windows) (#627)
* Typescript - Fix string formatter function and update snack bar style

* Typescript - Update string formatter unit test

* Typescript - Fix screen snippet

* Typescript - Add logic to clean up child windows on before unload

* Typescript - Add logic to check for screen sharing media permissions

* Typescript - Fix display selecting option in notification settings
2019-04-05 10:50:54 +05:30
Kiran Niranjan
efe15967b5 Typescript (Fix spellchecker issue and bump electron version) (#626)
* Typescript - Fix spellchecker issues and bump electron version to 5.x

* Typescript - Update unit test cases
2019-04-03 18:25:27 +05:30
Kiran Niranjan
e8cb240b92 Typescript (Fix issues and add support for BC) (Bring to front & More Info) (#625)
* Typescript - Bring to front - Fix issue with bring to front

* Typescript - Remove memory refresh from app menu

* Typescript - Add icons for loading screen network issue

* Typescript - Update and fix more info view

* Typescript - Update unit test to remove memory refresh
2019-04-02 10:58:41 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
0340cf18e2 main api handler unit test (#624) 2019-04-02 10:58:41 +05:30
Kiran Niranjan
8adabfebda Typescript (Fix issues and add support for BC) (#617)
* Typescript - Fix Auto launch, first time launch, pick safety checks

* Typescript - Fix basic auth issue

* Typescript - Add demo content for desktop capturer

* Typescript - Add BC support for Desktop capturer

* Typescript - Update code documentation

* Typescript - Add whitelisting logic and certificate verifying proxy

* Typescript - Fix console log and safety checks

* Typescript - Add screens to display loading failure and bugs fixes

* Typescript - Update unit test case for loading screen and app menu

* Typescript - Rename isCustomTitleBarAndWindowOS to isCustomTitleBar

* Typescript - Downloader Manager - Fix flashing issue and add demo
2019-04-02 10:58:41 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
4316d82931 dialog handler unit test (#623) 2019-04-02 10:58:40 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
1276f066f4 Typescript chromeflags unittest (#612)
* fixing electron mock

* chrome flags unit test
2019-04-02 10:58:40 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
bb9d547ae3 child window handle unit test (#610) 2019-04-02 10:58:40 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
de6502035b Typescript autolaunch unittest (#608)
* mocking electron-log

* auto launch controller unit test
2019-04-02 10:58:40 +05:30
Kiran Niranjan
82b57abaa7 Typescript (About app for Windows) (#611)
* Typescript - Complete about app screen for Windows

* Typescript - Fix unit test for about app component

* Typescript - Add safety checks for window validation
2019-04-02 10:58:40 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
f565f394b4 app menu unit test (#607) 2019-04-02 10:58:40 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
b04aee5b9e app cache handler unit test (#604) 2019-04-02 10:58:09 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
49a96d5e9f utils unit test (#603) 2019-04-02 10:58:09 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
9dfe055045 windows title bar unit test (#597) 2019-04-02 10:58:09 +05:30
Kiran Niranjan
13e82bac00 Merge TS context isolation branch onto Typescript master branch (#598)
* Typescript 🎉

* Typescript 🎉 (logger, get-guid, string-format and throttle)

* Refactor typescript code

* consolidate all the utility functions to one file

* refactor protocol handler feature

* Typescript:

Add code documentation
Add pre-commit hooks

* Typescript: Fix logger formatting

* Typescript: Add support for react

* Typescript: Completed about app

* Typescript: Completed about app

* Typescript: Completed about app

* Typescript - Fix issues with about-app and add login to convert less to css

* Typescript - Fix loading screen

* Typescript - Add custom title bar

* Typescript - Add method to get locale

* Typescript - Add logic to clean up old logs

* Typescript - Add set badge count api

* Typescript - Complete application menu

* Typescript - Add logic to translate menu items

* Typescript - freeze window.ssf api

* Typescript - Handle popup menu on alt key press

* Typescript - Completed activity detection

* Typescript - Completed screen snippet

* Typescript - Add login to close screen snippet

* Typescript - Completed window actions & snackbar, Updated i18n module

* Typescript - Completed native crypto implementation & fixed bugs

* Typescript - Completed Desktop capturer & screen picker implementation

* Typescript - Optimize window actions

* Typescript - Add support for child window

* Typescript - fix pop url validation issue & browserify preload

* Typescript - Completed context menu implementation and fixed screen snippet

* Typescript - Completed screen sharing indicator and fixed i18n usage issue

* Typescript - Fix i18n locale setting issue

* Typescript - Completed download manager

* Typescript - Completed Basic auth

* Typescript - Network connectivity dialog

* Typescript - Handle certificate error

* Typescript - Add translation for certificate error dialog buttons

* Typescript - Add gulp tasks to compile less, typescript and copy files

* Typescript - Fix some issues with custom title bar, loading screen & screen snippet

* Typescript - Remove ES2015 lib

* :typescript: - Do not inject custom title bar for mac

* :typescript: - Fix screen sharing indicator text and format string

* Typescript - Fix esc to full screen

* Typescript - handle multiple/single instance of the client and add safety checks

* Typescript - Refactor code base

* Typescript - Optimize window validation and fix screen picker issue

* Typescript - Optimize protocol handler

* typescript: logger unit test

* typescript: activityDetection unit test (#560)

* ELECTRON-1022 - Create app bridge that communicates between renderer and preload via postMessage

* ELECTRON-1024 - Add support for screen share and screen sharing indicator

* config unit test (#566)

* ELECTRON-1024 - Fix screen sharing indicator close issue

* ELECTRON-1022 - Bump Symphony version to 5.0.0 (1.55)

* fixing jest coverage output report (#575)

* protocol handle unit test (#576)

* Typescript - Remove unwanted checks in protocol handler and add test cases

* added more tests to increase coverage to 100 for protocol handler

* Typescript download manager unit test (#579)

* adding enzyme

* download manager unit test

* Typescript - Completed notification workflow

* about app unit test

* Typescript - Fix notification styles

* fixing Compiler error: Generic type ReactElement<P, T> (#583)

* fix app path on windows (#580)

* basic auth unit test (#582)

* screen picker unit test (#587)

* screen picker unit test

* screen sharing indicator unit test

* loading screen unit test (#588)

* improving snapshot using snapshotSerializers to remove unnecessary things (#596)

* Typescript - Enforce braces for if/for/do/while statements.

* Typescript - Fix Lint issues and Unit test

* Typescript - Enable eofline (Ensure the file ends with a newline.)

* Typescript - Update logger logic and format

* Typescript - Provide option for user to set custom log path

* Typescript - Fix eofline in css files

* Typescript - ignore spec from compiling and remove unwanted rebuild command
2019-04-02 10:58:09 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
e3f4830c4a snack bar unit test (#594) 2019-04-02 10:57:27 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
e352363848 improving snapshot using snapshotSerializers to remove unnecessary things (#596) 2019-04-02 10:57:27 +05:30
Victor R. Braga de Sales Mascarenhasm
600da210cd about app unit test 2019-04-02 10:57:26 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
663b512dc3 loading screen unit test (#588) 2019-04-02 10:57:26 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
e950a39a48 screen picker unit test (#587)
* screen picker unit test

* screen sharing indicator unit test
2019-04-02 10:57:26 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
8d2fa4f049 basic auth unit test (#582) 2019-04-02 10:57:26 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
e2dbf4087d fix app path on windows (#580) 2019-04-02 10:57:26 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
670735a4e9 Typescript download manager unit test (#579)
* adding enzyme

* download manager unit test
2019-04-02 10:57:26 +05:30
Vishwas Shashidhar
68efbfa0e8 added more tests to increase coverage to 100 for protocol handler 2019-04-02 10:57:26 +05:30
Kiran Niranjan
7ee09ab787 Typescript - Remove unwanted checks in protocol handler and add test cases 2019-04-02 10:57:26 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
05b52380ed protocol handle unit test (#576) 2019-04-02 10:57:26 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
44a96e12c5 config unit test (#566) 2019-04-02 10:57:26 +05:30
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS
7de0f1f529 typescript: activityDetection unit test (#560) 2019-04-02 10:57:26 +05:30
Victor R. Braga de Sales Mascarenhas
a0a3d77ca0 typescript: logger unit test 2019-04-02 10:57:26 +05:30