Skip to content

Conversation

@ethanlookpotts
Copy link
Contributor

This adds the new Button API type to the TypeScript SDK using the following API: https://github.com/viamrobotics/api/blob/main/proto/viam/component/button/v1/button.proto

This will get used in the new control cards to render a button card and call the Push API.

Change log

  • Bump API version
  • Add Button interface
  • Add ButtonClient implementation
  • Export Button, ButtonClient, and protos from the package

@ethanlookpotts ethanlookpotts requested a review from a team as a code owner January 27, 2025 19:28
}

async press(extra = {}, callOptions = this.callOptions) {
const request = new PushRequest({
Copy link
Member

Choose a reason for hiding this comment

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

Why call the client method press when the API method is push?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lol whoops - I blame Claude/Cursor 🤣 thanks for the catch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ethanlookpotts ethanlookpotts force-pushed the APP-7497/ethanlookpotts/button branch from ee3188e to 9488823 Compare January 28, 2025 18:57
@ethanlookpotts ethanlookpotts merged commit f595ede into main Jan 28, 2025
3 checks passed
@ethanlookpotts ethanlookpotts deleted the APP-7497/ethanlookpotts/button branch January 28, 2025 19:56
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.

4 participants