Skip to content

Conversation

pzrq
Copy link
Contributor

@pzrq pzrq commented Feb 17, 2017

Note this is just a POC, if someone else has time to pick this up and properly identify what to test, and which platforms to test it on (please assign yourself and remove this paragraph 🍻) it would be appreciated, otherwise I'll pick this up when it bugs me enough to fix it.

TODO

  • Check COMPASS-586 / COMPASS-586: Improve Linux appearance (logo in popups/about box, ...) #762 for other areas?
  • See if there is a way to pass the icon binary image data already in memory instead of the path into showMessageBox, or if this is an Electron bug (and if it is fixed in a new Electron). (Path is good enough when using BrowserWindow.getFocusedWindow() as first argument to electron.remote.dialog.showMessageBox)
  • Add appropriate (renderer?) tests if possible so we have some test coverage over these dialogs

BEFORE (note the Intercom icon loaded too)

before

AFTER

fixed version

@imlucas
Copy link
Contributor

imlucas commented Feb 21, 2017

Ah perfect. Mind changing this for schema copy Json dialog as well in schema store?
https://github.com/10gen/compass/blob/6dc621c285558b211ff9e59dd5cd458fcf47ac9a/src/internal-packages/schema/lib/store/index.js#L77

Should be all set after that.

@pzrq pzrq force-pushed the COMPASS-788-start branch from 7db6a9c to 129fe0d Compare February 22, 2017 04:14
@pzrq
Copy link
Contributor Author

pzrq commented Feb 22, 2017

@imlucas Thanks! Added a test and fix for Share Schema (as JSON).

New screenshots, following https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/

share schema red hat
connection string red hat
share schema macos

@pzrq pzrq changed the title [WIP] COMPASS-788: mongodb:// in clipboard message has regressed on macOS COMPASS-788: mongodb:// in clipboard message has regressed on macOS / Red Hat Feb 22, 2017
@pzrq pzrq requested a review from imlucas February 22, 2017 04:36
pzrq added 3 commits February 22, 2017 16:44
If you have a string prefixed with `mongodb://`, e.g. every Atlas URL, present in your clipboard.
Not unit testing the Ampersand View clipboard version as I have no idea how to do so.
@pzrq pzrq force-pushed the COMPASS-788-start branch from 129fe0d to 142f35b Compare February 22, 2017 05:44
Copy link
Contributor

@imlucas imlucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pzrq This is beautiful! Thanks! Let's mark this for backport to 1.6 as well

@imlucas imlucas merged commit 82d9645 into master Feb 22, 2017
@pzrq pzrq deleted the COMPASS-788-start branch February 23, 2017 00:14
pzrq added a commit that referenced this pull request Feb 23, 2017
… Red Hat (#787)

* Fix white screen and icon on macOS

If you have a string prefixed with `mongodb://`, e.g. every Atlas URL, present in your clipboard.

* Fix icon on Share Schema as JSON message box

Tested on a Red Hat VirtualBox VM, as per:
https://github.com/10gen/compass-internal-docs/pull/4

* Add regression test for the share-schema-as-json feature

Not unit testing the Ampersand View clipboard version as I have no idea how to do so.
@pzrq
Copy link
Contributor Author

pzrq commented Feb 23, 2017

Thanks @imlucas

Backport: https://jira.mongodb.org/browse/COMPASS-803

pzrq added a commit that referenced this pull request Feb 23, 2017
… Red Hat (#787)

* Fix white screen and icon on macOS

If you have a string prefixed with `mongodb://`, e.g. every Atlas URL, present in your clipboard.

* Fix icon on Share Schema as JSON message box

Tested on a Red Hat VirtualBox VM, as per:
https://github.com/10gen/compass-internal-docs/pull/4

* Add regression test for the share-schema-as-json feature

Not unit testing the Ampersand View clipboard version as I have no idea how to do so.
pzrq added a commit that referenced this pull request Feb 23, 2017
… Red Hat (#787)

* Fix white screen and icon on macOS

If you have a string prefixed with `mongodb://`, e.g. every Atlas URL, present in your clipboard.

* Fix icon on Share Schema as JSON message box

Tested on a Red Hat VirtualBox VM, as per:
https://github.com/10gen/compass-internal-docs/pull/4

* Add regression test for the share-schema-as-json feature

Not unit testing the Ampersand View clipboard version as I have no idea how to do so.
pzrq added a commit that referenced this pull request Feb 23, 2017
… Red Hat (#787)

* Fix white screen and icon on macOS

If you have a string prefixed with `mongodb://`, e.g. every Atlas URL, present in your clipboard.

* Fix icon on Share Schema as JSON message box

Tested on a Red Hat VirtualBox VM, as per:
https://github.com/10gen/compass-internal-docs/pull/4

* Add regression test for the share-schema-as-json feature

Not unit testing the Ampersand View clipboard version as I have no idea how to do so.
imlucas pushed a commit that referenced this pull request Feb 23, 2017
* COMPASS-586: Improve Linux appearance (logo in popups/about box, ...) (#762)

* COMPASS-586: Improve Linux appearance (logo in popups/about box, ...)

* assert.equals => assert.equal

* [Selectively cherry-picked from COMPASS 701 Charts]

* Extract PackageManager setup into its own file

So I can possibly reuse it in tests where I’d like to test our listenToExternalStore wiring.

* Expand the --renderer test so it can handle integration tests

Tried several times to get this into the --unit tests, but our internal-packages tend to depend on “window” and “document” so that is not possible. Both those are genuinely available in the renderer process so it’s definitely a better home for these tests for now. We can decide later when we have more if they can or should be decoupled further.

* COMPASS-788: mongodb:// in clipboard message has regressed on macOS / Red Hat (#787)

* Fix white screen and icon on macOS

If you have a string prefixed with `mongodb://`, e.g. every Atlas URL, present in your clipboard.

* Fix icon on Share Schema as JSON message box

Tested on a Red Hat VirtualBox VM, as per:
https://github.com/10gen/compass-internal-docs/pull/4

* Add regression test for the share-schema-as-json feature

Not unit testing the Ampersand View clipboard version as I have no idea how to do so.

* Update hadron-app => ampersand-app

As we don’t expect to back port b4a5a26

* Add ‘undefined’ to share-schema-as-json test

Not sure why this is ‘undefined’ on this branch but not master, but there’s a lot of hadron-app and other changes floating around so it probably doesn’t matter.
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.

2 participants