Hi all,
As many of you have now publicly heard, there are some upcoming changes to Gmail's UI. We wanted to share how the InboxSDK will handle the new Gmail design.
First and foremost, we're committed to ensuring that any app written on using the SDK will automatically be compatible with the new Gmail UI. You will not need to change your app in any way for your app to work in the new UI. Even better, the SDK will continue to support the old UI so your app will not have to do anything special to handle a user ramp up of the new UI.
The only exception to this is if you are not using the SDK for 100% of your functionality. We highly recommend not doing this, but if you currently inject into the DOM or listen to ajax requests, your app will likely break with the new UI. We highly recommend you use the InboxSDK functionality directly as it has support for both new and old Gmail.
Lastly, there have been some minor changes to the SDK that may affect you (they won't break your app) and you may want to take action on these:
1) Thread View Sidebars - when adding sidebars to threads using ThreadView.addSidebarContentPanel, your element is now give you the complete width of the sidebar and you should add your own padding that makes sense for your app. Previously the SDK added padding on your behalf and it wasn't adjustable. Please note that it is very possible that your element will show up in sidebars with different widths and your UI should be flexible to that.
2) MessageView.getRecipients is deprecated - in order to solve some performance issues with the new Gmail we've had to deprecate this method. Instead you should use MessageView.getRecipientEmailAddresses to get just the email addresses of the recipients or use MessageView.getRecipientsFull to get more complete information including names (note that this method differs from the old getRecipients because it returns a promise instead). These newer methods are both documented and are available to use now. The old getRecipients is deprecated and will eventually just return email addresses only.
3) Global Sidebar - we're adding an API to add a sidebar to Gmail that isn't tied to a specific thread. Instead it can be permanently visible and is collapsible by the user if desired. This API will only work in the new Gmail. It hasn't been documented but please let us know if you're interested in trying it out.
Hope this clears up any questions you might have about the new Gmail + the SDK.
-aleem