Commit graph

355 commits

Author SHA1 Message Date
Yuya Ochiai ca5632342e Re-enable window.eval()
Close #333
2017-02-03 23:32:23 +09:00
Jonas Schwabe cb84d002c7 Fix inconsistency when new team modal is beeing used to edit teams 2017-01-31 15:26:20 +01:00
Jonas Schwabe 5e55c5496c Fix failig test 2017-01-30 22:28:46 +01:00
Jonas Schwabe d63fdccb00 Add Menu bar option to add a new team 2017-01-30 22:16:16 +01:00
Jonas Schwabe 872959af97 Do not change props inside of component 2017-01-30 21:58:55 +01:00
Jonas Schwabe bb21cf56d3 Use new modal for edit functionality 2017-01-30 21:46:58 +01:00
Jonas Schwabe b94303bfc5 Style error states 2017-01-30 21:19:05 +01:00
Jonas Schwabe 8db1973c9a Display error message in the bottom left corner 2017-01-30 21:11:46 +01:00
Jonas Schwabe c36f7f795d Only validate new team modal input when save has been clicked 2017-01-30 20:45:47 +01:00
Jonas Schwabe be2db91d05 Auto focus newly created server 2017-01-30 20:26:11 +01:00
Jonas Schwabe 9d119274ee Allow new team modal to be closed using key events 2017-01-30 20:26:11 +01:00
Jonas Schwabe 9af3b9598d Change labels and texts according to visual feedback 2017-01-30 20:26:11 +01:00
Jonas Schwabe 8f3f59392d Add specs for new team modal 2017-01-30 20:26:11 +01:00
Jonas Schwabe 42c8f4e2ed Use new team modal in settings view as defined in #400 2017-01-30 20:17:56 +01:00
Jonas Schwabe aa862b293d Persist new Teams 2017-01-30 20:13:27 +01:00
Jonas Schwabe 5f7ab2d9a2 Add an add team button to the TabBar 2017-01-30 20:13:27 +01:00
Yuya Ochiai 396fa378ee Disable close button when no servers have been saved 2017-01-29 20:35:27 +09:00
Yuya Ochiai 6627ec45b0 Prevent settings page to be closed when there are no teams 2017-01-27 23:04:42 +09:00
Yuya Ochiai 66b7765d9b Fix labels 2017-01-27 22:50:17 +09:00
Yuya Ochiai 83a9d21d34 Delete global.Buffer in preload script
http://electron.atom.io/docs/tutorial/security/#buffer-global
2017-01-27 21:46:07 +09:00
Yuya Ochiai ee2e315199 Add "Remove Server" modal 2017-01-25 00:06:42 +09:00
Yuya Ochiai a74c101e11 Count unread teams in team sidebar 2017-01-16 21:27:32 +09:00
Yuya Ochiai 97df4e1c42 Add context menu only once even if after reloading
Close #408
2017-01-11 22:07:06 +09:00
Yuya Ochiai 8d7bc31798 Remove remaining badges after logging out of the team
Close #396
2017-01-11 21:27:25 +09:00
Yuya Ochiai 3bf41ca3e5 Add --data-dir to switch userData directory 2016-12-27 21:19:01 +09:00
Yuya Ochiai 13308f294c Update app dependencies 2016-12-22 21:23:55 +09:00
Jonas Schwabe d4f3ca23d3 Fixes a bug on the settings pane which rendered the notification theme icon as a checkbox 2016-12-11 18:00:15 +01:00
Yuya Ochiai 0ae07b964e Fix "Leave app running in notification area" checkbox not working on macOS 2016-12-07 01:16:00 +09:00
Jason Blais b4e5dec7e4 Merge pull request #372 from yuya-oc/hovering-links
Show URL when hovering over links
2016-11-30 12:30:59 -05:00
Yuya Ochiai b333ca580f Make hovering URL unclickable 2016-11-30 20:27:57 +09:00
Yuya Ochiai 9d3a80a295 Suppress momentary URL disappearance when hovering over multiple links 2016-11-29 22:52:10 +09:00
Yuya Ochiai 14969a8c04 Improve visility of hevering URL
- Add top and bottom padding
- Add border lines
- Truncate long URL using ellipsis
2016-11-29 22:03:20 +09:00
Yuya Ochiai 16cd860901 Suppress yellow halo behind the first tab when devtools is closed 2016-11-29 21:08:37 +09:00
Yuya Ochiai 93c76861ed Add hovering animation 2016-11-26 15:01:09 +09:00
Yuya Ochiai e4e40ec7c0 Show URL when hovering over links 2016-11-26 00:37:32 +09:00
Yuya Ochiai e4f961f2f0 Add constructor to handle this 2016-11-23 21:11:05 +09:00
Yuya Ochiai 1752cec20d Use latest react-bootstrap 2016-11-23 21:11:04 +09:00
Yuya Ochiai 0249c534ee Divide settings.jsx into components 2016-11-23 21:11:03 +09:00
Yuya Ochiai d0f2d74425 Divide index.jsx into components 2016-11-23 21:11:02 +09:00
Jonas Schwabe 3d8d24c2ff Fixes #161 2016-11-16 09:24:35 +01:00
Yuya Ochiai ee06c09237 Rename src/resource to src/assets
- `dist/resources` was not included in linux packages.
- There were two "resources" directories.

Close #360
2016-11-10 22:31:10 +09:00
Yuya Ochiai 4267214a25 Fix jsx files are not tested 2016-11-08 23:54:53 +09:00
Yuya Ochiai efa1171763 Fix eslint error 2016-11-07 23:14:50 +09:00
Yuya Ochiai 16788b5a6f Fix eslint errors 2016-10-28 00:49:52 +09:00
Yuya Ochiai 1f154cf3ac Prettify code 2016-10-28 00:42:31 +09:00
Yuya Ochiai 4ecbc14b06 Merge pull request #324 from itsmartin/fix-linux-tray-settings
Fix linux tray settings
2016-10-28 00:25:03 +09:00
Kolja Lampe 9557ca14bf Use default electron implementation for zoomin, zoomout and resetzoom
See: https://github.com/electron/electron/pull/6777
2016-10-12 21:39:58 +02:00
Yuya Ochiai 6f2d4a6d3d Merge pull request #331 from magicmonty/issue_299
"Cannot connect to Mattermost" is now on top of the page
2016-10-11 23:21:42 +09:00
Martin Gondermann 704282dfff Fixes wrong cursor on settings page
There were wrong href's (hre instead of href) on the links.
Fixes #303
2016-10-05 21:08:41 +02:00
Martin Gondermann ca17edc2e4 "Cannot connect to Mattermost" is now on top of the page 2016-10-05 20:53:33 +02:00
Yuya Ochiai 55ccaf33cd Fix the app window pops up second to foreground when a new message is received 2016-09-29 23:43:10 +09:00
Martin c078d1f607 Use correct terminology for tray setting on Linux 2016-09-29 13:44:32 +01:00
Yuya Ochiai a1b7371c43 Fix Notification shim not working when clicking
Probably this was caused by upgrading Electron
2016-09-20 00:01:35 +09:00
Asaad Mahmood e38dd49d95 Updating styles for error page 2016-09-14 06:25:41 +05:00
Asaad Mahmood 2865ab395a Running prettify 2016-09-13 22:30:04 +05:00
Asaad Mahmood 06a9081f98 Removing unnecessary code from settings page 2016-09-13 22:12:32 +05:00
Asaad Mahmood acf969ccfa Pretifying settings 2016-09-13 21:35:11 +05:00
Asaad Mahmood 1fdb6f3964 PLT-4174 - Settings UI Improvements 2016-09-13 21:35:11 +05:00
Yuya Ochiai 7cfde1e379 Merge pull request #230 from Razzeee/hide-autostart
Hide on autostart
2016-09-14 01:04:01 +09:00
Yuya Ochiai c4b4e2d95d Add missing padding-bottom in Settings UI
For #278
2016-09-14 00:19:01 +09:00
Yuya Ochiai d65c7b30bb Merge pull request #278 from yuya-oc/improve-settings
Improve settings UI
2016-09-13 22:51:33 +09:00
Kolja Lampe bc154f56a7 Hide on autostart
Closes #228
2016-09-12 22:06:08 +02:00
Yuya Ochiai c6ebf4ff36 Prettify codes 2016-09-13 01:02:11 +09:00
Yuya Ochiai 190a7b0ca1 Merge remote-tracking branch 'asaadmahmood/plt-4156' into improve-settings 2016-09-13 00:59:27 +09:00
Asaad Mahmood 71ab644aeb UI Improvements for settings page 2016-09-12 20:53:45 +05:00
Yuya Ochiai 6140628ae2 Merge pull request #275 from jnugh/revertCacheWorkaround
Revert pull #219 "Workaround: Invalidate cache of the main page on load"
2016-09-13 00:45:52 +09:00
Yuya Ochiai fb0b422815 Merge pull request #272 from jnugh/context-menu
Use electron-context-menu insted of bare contextmenu
2016-09-13 00:43:20 +09:00
Yuya Ochiai 7f23c496a2 Improve settings UI 2016-09-12 00:19:35 +09:00
Yuya Ochiai 7eaab5e06a Add simple validation for Name and URL in the settings page 2016-09-10 21:36:49 +09:00
Jonas Schwabe 561a93de8f Revert "add chaneglog for forceReload PR"
This reverts commit 58dfda760e.

Revert "Fix error handler which showed an error on reload, as the cancel event was triggered after the cacheInvalidated property has been set to true"

This reverts commit 93263aea3a.

Revert "Workaround for bad cache handling in mattermost platform, fixes #212"

This reverts commit 61bf5344bf.
2016-09-09 20:42:45 +02:00
Yuya Ochiai bd6982539b Merge pull request #268 from yuya-oc/browser-back-forward
Add back/forward features for the current tab
2016-09-10 00:23:37 +09:00
Yuya Ochiai 52f451e4a8 Merge pull request #254 from Razzeee/improve-error-wording
Changed wording of error page
2016-09-10 00:19:54 +09:00
Yuya Ochiai 93e419b488 Add back/forward features for the current tab
Close #245
2016-09-10 00:13:08 +09:00
Yuya Ochiai d19df3fc29 Merge pull request #273 from Razzeee/search
Move current search in channel function to Shift+CTRL+S

Close #270
2016-09-10 00:04:28 +09:00
Yuya Ochiai c7125a372e Merge pull request #262 from mattermost/fix-focus-of-webview
Fix webview doesn't get focus correctly

Close #231
2016-09-09 23:52:45 +09:00
Kolja Lampe b294a44e9b Updated error page to look nicer and read better 2016-09-07 22:16:42 +02:00
Jonas Schwabe af7dffbe3b Cleanup, remvoe old menu code 2016-09-05 19:18:05 +02:00
Jonas Schwabe 14ee822b0c Use electron-context-menu insted of bare contextmenu.
Fixes #123
2016-09-05 19:17:59 +02:00
Kolja Lampe 1f5546a250 Move current search in channel function to Shift+CTRL+S
Add search in team

Closes #270
2016-09-04 23:56:17 +02:00
Kolja Lampe b59f501a82 Some minor codestyle improvements due to jshint 2016-08-30 15:28:15 +02:00
Yuya Ochiai f16543ca44 Remove failed-to-load notification and reload the error tab on online event 2016-08-26 22:51:02 +09:00
Yuya Ochiai 4d0e263ecd Fix webview doesn't get focus correctly
For #231

webview.focus() was used to focus on the webview, but it's DOM element function.
So only the tag was focused in the host window, and its webContents was not focused.
As the result, the shortcuts of Mattermost server didn't work in some cases.
Electron is upgraded to 1.2.8 because of webContents.isFocused().
2016-08-26 00:49:18 +09:00
Yuya Ochiai f85337db65 Merge pull request #251 from Razzeee/fix-window-state
Improved window state handling
2016-08-22 22:39:29 +09:00
Yuya Ochiai 22208b497e Merge pull request #258 from mattermost/experiment/search-box
CTRL/CMD+F on Desktop app puts cursor in Mattermost search box filtered to channel

Close #229
2016-08-22 20:27:37 +09:00
Kolja Lampe 7429df05f5 Improved window state handling
Closes #249
2016-08-21 09:53:29 +02:00
Yuya Ochiai e377d33652 Fill the search box with the current channel name at the shortcut
For #229
2016-08-21 16:07:26 +09:00
Yuya Ochiai f18710991f Merge pull request #255 from Razzeee/bump-prettify
Bump prettify dependencies and apply prettification
2016-08-21 15:33:14 +09:00
Yuya Ochiai 8c19c33911 Prevent updating window title by deactivated tabs 2016-08-20 22:45:30 +02:00
Kolja Lampe 5a5095de54 Prettified project after prettify bump 2016-08-20 22:38:34 +02:00
Kolja Lampe f01b6a98f2 Change window title to the one that's set from the platform for the current channel 2016-08-19 20:39:12 +02:00
Yuya Ochiai 647e396fad Focus the search box on Ctrl/Cmd+F shortcut
For #229
2016-08-14 22:06:27 +09:00
Yuya Ochiai 1d851fd6de Merge pull request #219 from jnugh/forceReload
Workaround: Invalidate cache of the main page on load
2016-08-13 10:50:25 +09:00
Yuya Ochiai 312d34706b Merge pull request #187 from Razzeee/improve-menus
Improve menus due to improvements in electron
2016-08-13 10:46:49 +09:00
Jonas Schwabe 93263aea3a Fix error handler which showed an error on reload, as the cancel event was triggered after the cacheInvalidated property has been set to true 2016-08-09 15:27:56 +02:00
Jonas Schwabe 61bf5344bf Workaround for bad cache handling in mattermost platform, fixes #212 2016-08-09 15:27:49 +02:00
Kolja Lampe 932f756570 Use the default electron roles and their naming/implemenation
See: https://github.com/electron/electron/pull/6190/files
2016-08-08 18:58:12 +02:00
Yuya Ochiai eac17decf6 Merge branch 'security-improvements'
For #220
2016-08-09 01:11:06 +09:00
Yuya Ochiai ce6cf485f6 Implementation and further tests for #220 2016-08-09 00:04:36 +09:00
Yuya Ochiai 611f52647b Merge pull request #199 from jnugh/unityMessageBadge
Ubuntu Unity counter badge
2016-08-04 23:04:31 +09:00
Yuya Ochiai dcbf18e863 Merge branch 'improve-reloading'
Close #213 and #223
2016-08-03 23:27:37 +09:00
Yuya Ochiai 3e2d6be87e Merge pull request #201 from Razzeee/unread-badge
Make unread badge configurable
2016-08-01 12:17:25 +09:00
Kolja Lampe 51d828aa1a Make unread badge configurable 2016-07-28 18:00:15 +02:00
Yuya Ochiai bd354f21a5 Merge pull request #216 from Razzeee/align-unread-tabbar
Bold unread tabitem if there are unread messages
2016-07-28 23:02:00 +09:00
Yuya Ochiai 3feb833537 Refresh the inside of the current tab when reloading in the main window
For #213 and #223

As the side effect, this doesn't reload the settings page.
But it will not be problem in most cases.
2016-07-28 22:57:30 +09:00
Kolja Lampe 54849d6859 Added two security improvements as mentioned at http://electron.atom.io/docs/all/#checklist 2016-07-24 22:44:38 +02:00
Kolja Lampe 8c8df7086e Align unread tabbar to current display on task bar 2016-07-24 21:57:47 +02:00
Yuya Ochiai 74f78a918c Fix Windows 10 desktop notifications have black Mattermost logo
Electron can't know the background color of Windows 10.
So replace the icon with resources/appicon.png in override of notification.js.

Close #218
2016-07-24 22:26:28 +09:00
Jonas Schwabe 028d0ac7f8 implements #122, urgent hint on linux 2016-07-23 14:03:53 +02:00
Jonas Schwabe 54f6447712 Implements #176 2016-07-17 14:15:14 +02:00
Yuya Ochiai 88f7bf20ca Revert "Merge pull request #145 from Razzeee/align-taskbar-to-trayicon"
This reverts commit 8d4f725556, reversing
changes made to 81bc16ca6e.

For #194
2016-07-13 01:22:03 +09:00
Yuya Ochiai 227bda3a93 Fix authentication dialog not working for proxy 2016-07-13 00:41:31 +09:00
Kolja Lampe 58687c955c Improved settings casing 2016-07-11 23:17:31 +02:00
Kolja Lampe ffb61c2c7c Rephrased wording of a setting
https://github.com/mattermost/desktop/issues/193#issuecomment-231553779
2016-07-11 23:14:49 +02:00
Yuya Ochiai b13a5ab687 Fix that the hidden main window doesn't appear when clicking toast notifications in Windows 10
Only in Windows 10, focus() was used to keep aero snap state.
2016-07-07 22:37:37 +09:00
Yuya Ochiai ad7f63127f Add feature to hide window into system tray in Linux 2016-07-06 22:31:35 +09:00
Yuya Ochiai f8194f80c1 Merge pull request #179 from magicmonty/HideWindowOnMinimize
Hide window to system tray on minimize/close in Windows/OSX
2016-07-04 22:56:21 +09:00
Martin Gondermann 04cbec9a5d Makes the check for the tray icon a bit more lightweight 2016-07-03 23:04:36 +02:00
Martin Gondermann 3c0c448502 Fix behaviour, if "Show icon on menu bar" was previously not selected 2016-07-03 22:13:48 +02:00
Yuya Ochiai 17949d34ae Reset team edit form on clicking edit button 2016-07-04 00:12:58 +09:00
Yuya Ochiai 19134b08b0 Fix team edit form is not closed after submitting changes 2016-07-03 23:59:52 +09:00
Martin Gondermann 2b4ee5f0bc Readded the Option to hide the window on close for OSX 2016-07-03 16:12:04 +02:00
Martin Gondermann b3dd5e28e9 Reverted an obsolete change 2016-07-03 15:03:38 +02:00
Martin Gondermann 2919b1af5f Removed option to minimize to tray, this is now the default behaviour 2016-07-03 14:58:48 +02:00
Martin Gondermann 865b08105a OSX: Added Option to hide Window from dock on close 2016-06-30 22:17:31 +02:00
Martin Gondermann 0f6688b4cf The toggle setting is now independent of the "minimize to tray" setting 2016-06-30 18:04:05 +02:00
Martin Gondermann cdd1583e35 Match wording for minimize to tray with slack wording 2016-06-28 23:05:42 +02:00
Martin Gondermann 729f5a5511 Prettified results 2016-06-28 15:10:20 +02:00
Martin Gondermann 1f312e1f7f Add setting for "Toggle the window on tray icon click" 2016-06-28 15:07:29 +02:00
Martin Gondermann d6de73458c MinimizeToTray-Setting is only shown on Windows 2016-06-27 09:36:22 +02:00
Martin Gondermann db4bdd0a9b Window is hidden also on minimize and a click on the tray icon toggles the window 2016-06-27 09:06:20 +02:00
Yuya Ochiai 4fca00ec9d Add tests for settings 2016-06-23 00:03:04 +09:00
Yuya Ochiai 2347d5e299 Add tests for disablewebsecurity (Allow mixed contents) 2016-06-22 00:33:14 +09:00
Yuya Ochiai eda5d56d78 Refine headers and notifications config 2016-06-18 21:46:31 +09:00
Yuya Ochiai b91e44a5fe Prettify code 2016-06-18 20:40:12 +09:00
Yuya Ochiai 3650967f4c Fix that edited team is adeed to bottom of the list 2016-06-18 00:53:03 +09:00
Yuya Ochiai 96e52b6e85 Update config of main process when the config file is updated 2016-06-17 23:50:41 +09:00
Yuya Ochiai 517cc16835 Merge branch 'master' into dev 2016-06-17 23:39:45 +09:00
Yuya Ochiai 3061598935 Merge pull request #159 from MetalCar/blinkNotification 2016-06-17 21:29:12 +09:00
Yuya Ochiai 722807a5cb Refactor notification to simplify event handling 2016-06-16 23:01:37 +09:00
Kolja Lampe 447f6ec41d Adds a setting to launch the app on system login 2016-06-15 17:23:10 +02:00
Yuya Ochiai de5e6cf2ca Reload the tab after 30 sec when failed to load
Close #127
2016-06-13 23:55:26 +09:00
Yuya Ochiai f2e3b58e04 Fix obsolete 'shell' API 2016-06-12 22:56:22 +09:00
Carmine D'Amico 73a11ea398 added todo for idle notification and add a text to explain notification config 2016-06-07 22:42:36 +02:00
Carmine D'Amico 84d3c377b4 first implementation for flash notification and settings to configure these 2016-06-07 22:39:58 +02:00
Yuya Ochiai 5841231477 Suppress the second icon on OS X notification for #151 2016-06-08 00:45:10 +09:00
Yuya Ochiai 479b789629 Merge branch 'master' into dev 2016-06-06 21:30:23 +09:00
Yuya Ochiai 20d94a5985 Merge pull request #158 from Razzeee/improve-tray
Change tooltip text on mentions/unread
2016-06-05 20:19:37 +09:00
Kolja Lampe a2713885ab Improved badge descriptions 2016-06-04 01:41:15 +02:00
Yuya Ochiai 20450916f9 Merge pull request #152 from MetalCar/editTeamsInSettings
Edit teams in settings window
2016-06-04 01:46:31 +09:00
Carmine D'Amico 9677607ae4 move "Add Team"-Button nearer to the "Teams" headline 2016-06-03 18:21:15 +02:00