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

Add SDK #2

Merged
merged 5 commits into from
Sep 25, 2023
Merged

Add SDK #2

merged 5 commits into from
Sep 25, 2023

Conversation

sidharthv96
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Sep 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
office-plugin-site ❌ Failed (Inspect) Sep 23, 2023 7:17am

Choose a reason for hiding this comment

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

In function function getOAuthService(), avoid hard-coded .setClientId('f88f1365-dea8-466e-8880-e22211e145bd')

Copy link
Member Author

Choose a reason for hiding this comment

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

That is the google plugin's client ID. It needs to be hard coded. It's hard coded in the server too.

@@ -46,7 +46,7 @@ export function createCatCard(
if (!isHomepage) {
// Create the header shown when the card is minimized,
// but only when this card is a contextual card. Peek headers
// are never used by non-contexual cards like homepages.
// are never used by non-contextual cards like homepages.
const peekHeader = CardService.newCardHeader()
.setTitle('Contextual Cat')
.setImageUrl('https://www.gstatic.com/images/icons/material/system/1x/pets_black_48dp.png')

Choose a reason for hiding this comment

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

Maybe use a constant instead

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed the function.

Choose a reason for hiding this comment

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

Overall: Some of the public functions have a header with documentation and some have not. The naming of the functions are good and as a user you will understand the purpose of the function, but I think would make sense to either skip headers or add headers for all public functions in the file

Copy link
Member Author

Choose a reason for hiding this comment

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

The two functions with comments are the ones that need explanation that they should be overridden when required.

We cannot remove those comments.

There is no need to add verbose comments to each function just because some functions need comments.

Copy link

@pbrolin47 pbrolin47 left a comment

Choose a reason for hiding this comment

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

Just a few comments to be answered

@sidharthv96
Copy link
Member Author

The changes in google folder have nothing to do with the PR, they were just formatting changes when prettier was added.
Forgot to mention that.

I've fixed the raised comments, except the one regarding adding/removing comments to/from all functions.

@knsv knsv merged commit a0cbbb1 into main Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants