Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Conversation

@joadoumie
Copy link
Contributor

@joadoumie joadoumie commented Mar 27, 2024

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.
image

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

@joadoumie
Copy link
Contributor Author

@krschau - this is the starting point we can work from, still got some refactoring, UI clean up etc. to finish!

@joadoumie joadoumie mentioned this pull request Apr 3, 2024
3 tasks
@krschau krschau force-pushed the user/joadoumie/file-picker branch 3 times, most recently from 1f64109 to b383d43 Compare April 23, 2024 22:31
@krschau krschau force-pushed the user/joadoumie/file-picker branch from b383d43 to d86f2af Compare May 20, 2024 20:20
@krschau krschau force-pushed the user/joadoumie/file-picker branch from 18d0b93 to a2c75d3 Compare June 3, 2024 17:31
@krschau krschau marked this pull request as ready for review June 3, 2024 19:25
@krschau krschau changed the title feat-file-picker-renderer: First pass at adding a custom file picker … Add Action.ChooseFile for adaptive cards Jun 4, 2024
@krschau krschau requested a review from dhoehna June 4, 2024 19:57

// Parse the JSON properties of the action.
// The Verb ChooseFile is not meant to be localized.
Verb = inputJson.GetNamedString("verb", "ChooseFile"),
Copy link
Contributor

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?

Copy link
Collaborator

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 EricJohnson327 merged commit e5e1a99 into main Jun 5, 2024
@EricJohnson327 EricJohnson327 deleted the user/joadoumie/file-picker branch June 5, 2024 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Widgets] SSH keychain widget requires typing in a path

5 participants