Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish Desktop apps #69

Merged
merged 54 commits into from
Dec 30, 2018
Merged

Finish Desktop apps #69

merged 54 commits into from
Dec 30, 2018

Conversation

brunolemos
Copy link
Member

@brunolemos brunolemos commented Dec 22, 2018

Closes #2

Pending tasks before launching the desktop apps. Contributions welcome!

  • Merge Desktop #47 (thanks @amorist!)
  • Fix package.json versions (Couldn't find package " @devhub/[email protected]" #72, f8a79db)
  • Reuse the code from web, so we avoid code duplication, get CRA's features like auto reload etc
  • Auto reload Electron on change
  • Make login work on user default browser, so the user can see the url and trust it
  • Implement deep linking
  • Change default menubar window size
  • Change default desktop window size
  • Change app dock icon
  • Change app tray icon
  • [macOS] Make tray icon adapt for dark and light macOS themes
  • When app is on menubar mode, hide icon from dock (by @amorist)
  • Fix arrow not showing
  • Change arrow color based on current theme
  • Change how the arrow was implemented, do it like Harvest, it seems to do it outside of the main BrowserWindow
  • Fix bottom bar label being cut (removing the arrow will fix this)
  • Remove arrow
  • Always horizontal align menubar app in the middle
  • Fix lag after menubar -> desktop mode transition
  • Rethink how this menubar-mode/desktop-mode should work (e.g. currently one can be logged in and the other one logged out, and other bugs caused by multiple BrowserWindow)
  • Change how to switch between desktop/menubar modes; use a menu/tray option instead of the drag-to-specific-position way
  • Make Desktop mode the default one
  • Make Desktop mode be frameless like the menubar
  • Create only one window, reuse between Desktop and Menubar
  • Fix Menu and, by consequence, fix Copy, Paste, Select All, etc
  • Remove empty button from TouchBar
  • Option to make window be always at the center
  • Handle Full Screen Mode
  • Allow showing DevTools on development only
  • Show options on Dock icon, Menu and Tray icon
  • Add menu items to open DevHub on GitHub, Report bug and Send feedback
  • Fix app not reopening after Cmd+W
  • Run sync every time the window is opened/focused (e.g. when changing between apps, make sure the BrowserWindow visibility state goes to hidden; or manually trigger the redux SYNC_DOWN action)
  • Remember last window dimension/position and restore it (and also the "Lock on center" option)
  • Setup publishing binaries to github releases
  • Setup code signing
  • Setup auto updater
  • Sync Saved items between devices (Sync bookmarks between devices #70)
  • [Windows] Fix app.dock crash
  • [Windows] Hide icon from taskbar on menubar mode
  • [Windows] Show window frames
  • [Windows] Fix menubar mode
  • [Windows] Handle all taskbar positions for menubar mode
  • [Windows] Disable lockOnCenter by default
  • [Windows] Fix devhub:// protocol on dev mode
  • [Windows] Fix oauth (devhub:// is opening a new browserwindow and not logging in)
  • [Windows] Change TitleBar color based on current theme
  • Disable nodeIntegration as a security precaution
  • [BUG] App is getting super buggy after login on a production build. The logo image disappears and if you press Reload it will stay stuck on an empty window
  • Test on macOS
  • Test on windows
  • Test on linux (super buggy)
  • Fix buggy linux

@brunolemos brunolemos self-assigned this Dec 22, 2018
@brunolemos brunolemos mentioned this pull request Dec 22, 2018
4 tasks
@brunolemos brunolemos added this to the v0.41.0 milestone Dec 22, 2018
@brunolemos brunolemos changed the title [WIP] Desktop finishes [WIP] Finish Desktop apps Dec 23, 2018
@amorist
Copy link
Contributor

amorist commented Dec 24, 2018

Setup auto updater

https://github.com/electron/update-electron-app

Requirements

Before using this module, make sure your Electron app meets these criteria:

  • Your app runs on macOS or Windows
  • Your app has a public GitHub repository
  • Your builds are published to GitHub Releases
  • Your builds are code signed

@amorist
Copy link
Contributor

amorist commented Dec 24, 2018

When app is on menubar mode, hide icon from dock

#71

Also regenerated icons for all platforms, now with a gradient and better aligment
Desktop mode is now the default one

Desktop mode starts maximized

Desktop mode is now frameless

Create only one window, reuse between Desktop and Menubar

Fix Menu and, by consequence, fix Copy, Paste, Select All, etc

Remove empty button from TouchBar

Option to make window be always at the center

Handle Full Screen Mode

Allow showing DevTools on development only

Show options on Dock icon, Menu and Tray icon

Add menu items to open DevHub on GitHub, Report bug and Send feedback

Fix app not reopening after Cmd+W

Remove arrow
@brunolemos
Copy link
Member Author

@amorist I had to make lot's of changes because having two BrowserWindow was problematic. Also made some fixes, removed the arrow and made the desktop mode the default one.

@brunolemos
Copy link
Member Author

Almost ready. #70 is the only one that should require more work.

@brunolemos
Copy link
Member Author

brunolemos commented Dec 29, 2018

No idea what's causing this:

  • App is getting super buggy after login on a production build. The logo image disappears and if you press Reload it will stay stuck on an empty window

I think it has something to do with the devhub:// protocol, I don't know. After the login this happens.

@brunolemos
Copy link
Member Author

[BUG] App is getting super buggy after login on a production build. The logo image disappears and if you press Reload it will stay stuck on an empty window

Fixed by 3896e8d and aa9dd12.

@brunolemos brunolemos changed the title [WIP] Finish Desktop apps Finish Desktop apps Dec 30, 2018
@brunolemos brunolemos merged commit f2394f3 into master Dec 30, 2018
@brunolemos brunolemos deleted the desktop branch December 30, 2018 23:05
@brunolemos
Copy link
Member Author

#2 (comment)

brunolemos added a commit that referenced this pull request Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Desktop client
2 participants