Skip to content

Unblock apps to call dialog.url.submit in mobile #2788

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

Merged
merged 5 commits into from
May 14, 2025

Conversation

lakhveerk
Copy link
Contributor

@lakhveerk lakhveerk commented Apr 25, 2025

For more information about how to contribute to this repo, visit this page.

Description

Unblocked apps on Mobile to call dialog.url.submit from dialog by allowing this API from FrameContext.content.\nThere is a bug in Teams mobile that returns frameContext.content in dialog instead of frameContext.task`. Once the bug is fixed, this change will be reverted.

If this Pull Request should close/resolve any issues when merged, use the special syntax for that here.

Main changes in the PR:

  1. <Change 1>
  2. <Change 2>

Validation

Validation performed:

  1. <Step 1>
  2. <Step 2>

Unit Tests added:

Unit tests are required for all changes. If no unit tests were added as part of this change, please explain why they aren't necessary.

<Yes/No>

End-to-end tests added:

<Yes/No>

Additional Requirements

Change file added:

Ensure the change file meets the formatting requirements.

<Yes/No>

Related PRs:

Remove this section if n/a

Next/remaining steps:

List the next or remaining steps in implementing the overall feature in subsequent PRs (or is the feature 100% complete after this?).

Remove this section if n/a

  • Item 1
  • Item 2

Screenshots:

Remove this section if n/a

Before After
< image1 > < image2 >

@lakhveerk lakhveerk requested a review from a team as a code owner April 25, 2025 21:54
Copy link
Contributor

github-actions bot commented Apr 25, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/teams-js/dist/esm/packages/teams-js/src/index.js 186.93 KB (+0.2% 🔺) 3.8 s (+0.2% 🔺) 147 ms (-1.34% 🔽) 3.9 s

@@ -83,11 +89,19 @@ export function botUrlOpenHelper(
}

export function urlSubmitHelper(apiVersionTag: string, result?: string | object, appIds?: string | string[]): void {
ensureInitialized(runtime, FrameContexts.task);
// FrameContext content should not be here because dialog.submit can be called only from inside of a dialog (FrameContext task)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to create a TODO to track?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, do we know if Teams mobile has a ETA to fix it properly on their end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jekloudaMSFT do you know about the ETA? I have created a work item here:
https://office.visualstudio.com/MetaOS/_workitems/edit/10134868

Copy link
Contributor

Choose a reason for hiding this comment

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

Teams mobile already has a work item for this, I'll see if I can link ours to theirs

@lakhveerk lakhveerk enabled auto-merge (squash) May 14, 2025 21:34
@lakhveerk lakhveerk merged commit fda12a0 into main May 14, 2025
58 checks passed
@lakhveerk lakhveerk deleted the lakhveer/dialogSubmitContext branch May 14, 2025 22:58
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.

5 participants