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

feat: add support for Q&A Schema App input #539

Merged
merged 1 commit into from Aug 21, 2023

Conversation

rossiam
Copy link
Collaborator

@rossiam rossiam commented Aug 17, 2023

Add support for Q&A input for Schema Apps.

Checklist

  • I have read the CONTRIBUTING document
  • Any required documentation has been added
  • My code follows the code style of this project (npm run lint produces no warnings/errors)
  • I have added tests to cover my changes

@rossiam rossiam requested a review from bflorian August 17, 2023 18:35
@changeset-bot
Copy link

changeset-bot bot commented Aug 17, 2023

🦋 Changeset detected

Latest commit: 72ec19d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@smartthings/cli-lib Minor
@smartthings/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@bflorian bflorian left a comment

Choose a reason for hiding this comment

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

A couple of nits and a small UI suggestion

oAuthClientId: stringDef('Partner OAuth Client Id'),
oAuthClientSecret: stringDef('Partner OAuth Client Secret'),
oAuthTokenUrl: stringDef('Partner OAuth Refresh Token URL', { validate: httpsURLValidate }),
oAuthScope: stringDef('Partner OAuth Scope'),
Copy link
Contributor

Choose a reason for hiding this comment

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

The scope is actually optional. I imagine most real integrations will have it, but Viper doesn't require it and examples sometimes omit it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

icon3x: optionalStringDef('3x Icon URL', { validate: httpsURLValidate }),
oAuthClientId: stringDef('Partner OAuth Client Id'),
oAuthClientSecret: stringDef('Partner OAuth Client Secret'),
oAuthTokenUrl: stringDef('Partner OAuth Refresh Token URL', { validate: httpsURLValidate }),
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor UI point, but I think it's easier if oauthTokenUrl immediately follows oauthAuthorizationUrl since they are both likely to be copied and pasted from the same root URL.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.


const helpText = awsHelpText
const initiallyActive = initialValue?.hostingType === 'lambda'
console.error(`initiallyActive is ${initiallyActive} for ${name} because initialValue?.hostingType = ${initialValue?.hostingType}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this temporary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, meant to take that out. Fixed.

}

const initiallyActive = initialValue?.hostingType === 'webhook'
console.error(`initiallyActive is ${initiallyActive} for Webhook URL because initialValue?.hostingType = ${initialValue?.hostingType}`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this temporary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oops, didn't mean to leave that in. Fixed.

@rossiam
Copy link
Collaborator Author

rossiam commented Aug 21, 2023

A couple of nits and a small UI suggestion

Not nits at all. Glad to fix those things!

@rossiam rossiam merged commit a427e34 into SmartThingsCommunity:main Aug 21, 2023
4 checks passed
@rossiam rossiam deleted the schema-app-qa-input branch August 21, 2023 16:41
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

2 participants