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

Teams mobile doc improvements #2154

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

JoshuaPartlow
Copy link
Contributor

Description

Documentation update to add links for Teams mobile clarifications

Main changes in the PR:

  1. Adds links to clarifying articles to API documentation comments.
  2. Corrects some minor formatting and linking issues.

Validation

n/a

Unit Tests added:

No

End-to-end tests added:

No

Additional Requirements

Change file added:

Yes

@AE-MS
Copy link
Contributor

AE-MS commented Feb 1, 2024

Thanks for helping update these docs!

@@ -814,6 +814,10 @@ export namespace app {

/**
* Notifies the frame that app has loaded and to hide the loading indicator if one is shown.
*
* @remarks
* For information about mobile behavior, see the [Content pages](https://learn.microsoft.com/microsoftteams/platform/tabs/how-to/create-tab-pages/content-page?tabs=teamsjs-v2#show-a-native-loading-indicator) article.
Copy link
Contributor

Choose a reason for hiding this comment

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

For information about mobile behavior

What should we expect developers to see when they go to that URL? Here is where I think I would be confused: is that page telling me that... I shouldn't call methods like notifyAppLoaded() when I'm on mobile?

I think the answer is "No, your app should always call these methods and you don't need to write special code, but just know that the loading indicator behavior may be different on mobile." Is that correct? If so it's not totally clear from these comments or that doc page.

@@ -814,6 +814,10 @@ export namespace app {

/**
* Notifies the frame that app has loaded and to hide the loading indicator if one is shown.
*
* @remarks
Copy link
Contributor

Choose a reason for hiding this comment

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

@remarks

Should these remarks be specifically on the notifyAppLoaded method like this? It seems like the documentation is generally about how loading indicator is handled and not specific to this one function.

* @returns true if the user has granted the app permission to media information, false otherwise
* @remarks
* For additional information about deivce permissions, see the Learn articles:
* - [Integrate QR or barcode scanner capability](https://learn.microsoft.com/microsoftteams/platform/concepts/device-capabilities/qr-barcode-scanner-capability)
Copy link
Contributor

Choose a reason for hiding this comment

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

Integrate QR or barcode scanner capability

Following this link takes me to a page which provides great information about barcode scanning -- but that page then links to a function in the older (1.x) version of teamsjs and a different capability than this one (it links to media) -- is it weird that this capability and function links to docs that don't mention this function at all?

@@ -63,7 +63,12 @@ export namespace barCode {
/**
* Checks whether or not media has user permission
*
* @returns true if the user has granted the app permission to media information, false otherwise
* @remarks
* For additional information about deivce permissions, see the Learn articles:
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be more appropriate if this documentation was on the barCode namespace rather than each function in it? Since the documentation is an overview of the functionality and not specific to each function?

* - [Integrate QR or barcode scanner capability](https://learn.microsoft.com/microsoftteams/platform/concepts/device-capabilities/qr-barcode-scanner-capability)
* - [Request device permissions for your Teams app](https://learn.microsoft.com/microsoftteams/platform/concepts/device-capabilities/native-device-permissions?tabs=mobile%2Cteamsjs-v2%2Cmobile1#specify-permissions)
*
* @returns `true` if the user has granted the app permission to media information, `false` otherwise. The **media** permission refers to both camera and gallery.
Copy link
Contributor

Choose a reason for hiding this comment

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

The media permission refers to both camera and gallery

Can you say more about what this means? I'm not sure I understand this part. Specifically what does "both camera and gallery" mean here? Does that refer to a permission offered from the OS that the app is running on?

@@ -756,6 +756,9 @@ export namespace media {
/**
* Select an attachment using camera/gallery
*
* @remarks
Copy link
Contributor

Choose a reason for hiding this comment

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

remarks

Would it be more appropriate to put this on the media namespace rather than this one function? Presumably this applies to other functions in this file?

Copy link
Contributor

@AE-MS AE-MS left a comment

Choose a reason for hiding this comment

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

🕐

@@ -0,0 +1,7 @@
{
"type": "patch",
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be type "none" since the docs only changes won't affect the behavior of the library at all.

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.

None yet

3 participants