This repository was archived by the owner on Jun 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Add Action.ChooseFile for adaptive cards #2477
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Author
|
@krschau - this is the starting point we can work from, still got some refactoring, UI clean up etc. to finish! |
krschau
reviewed
Mar 27, 2024
tools/Dashboard/DevHome.Dashboard/ViewModels/WidgetViewModel.cs
Outdated
Show resolved
Hide resolved
joadoumie
commented
Mar 28, 2024
joadoumie
commented
Mar 28, 2024
3 tasks
1f64109 to
b383d43
Compare
b383d43 to
d86f2af
Compare
…renderer in the dev home widget AC Host... Includes changes to the SSH Keychain core widget to include the file picker action
18d0b93 to
a2c75d3
Compare
guimafelipe
approved these changes
Jun 5, 2024
|
|
||
| // Parse the JSON properties of the action. | ||
| // The Verb ChooseFile is not meant to be localized. | ||
| Verb = inputJson.GetNamedString("verb", "ChooseFile"), |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The verb in this case is always intended to be "ChooseFile"? Should the user be able to use a different string for this verb?
Collaborator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should get the verb specified in the card, and if one is not specified, use the default of "ChooseFile".
EricJohnson327
approved these changes
Jun 5, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary of the pull request
The Action.ChooseFile adaptive card element allows a card author to launch a File Picker from Dev Home and obtain the chosen file. If no file is chosen, the "FilePath" field will be null. The author may use the action as an "inlineAction" on a Text input. The SSH Keychain widget uses the action this way.

This action is experimental while it goes through API review.
References and relevant issues
Detailed description of the pull request / Additional comments
Validation steps performed
PR checklist