Added host container query param to designer site #8548
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR allows to set a host container by using a query param. This query param should be a number that represents the index on
CardDesigner._hostContainers
array (and the index at Host App Choice Picker at the designer's UI).To do that I created a function that checks that the index is on the valid range and then applies it.
How Verified
How you verified the fix, including one or all of the following:
No tests were added, I didn't know where are
CardDesigner
class tests.I was able to test that the query param works with this url: https://adaptivecards.io/designer?hostContainerIndex=1 but I wasn't able to make work the designer because although I tried to set up the development environment with this instructions and this workaround
Microsoft Reviewers: Open in CodeFlow