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 new tab with message binding to channel documentation and a… #1

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sam0r040
Copy link
Owner

…dd header and message binding example to example tab

@netlify
Copy link

netlify bot commented Jan 12, 2023

Deploy Preview for rainbow-profiterole-502abf ready!

Name Link
🔨 Latest commit 967a029
🔍 Latest deploy log https://app.netlify.com/sites/rainbow-profiterole-502abf/deploys/640b42c5988c790008264b20
😎 Deploy Preview https://deploy-preview-1--rainbow-profiterole-502abf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

[value]="defaultExample?.value"
(keyup)="recalculateLineCount('example', exampleTextArea.value)"
></textarea>
<div [hidden]="isEmptyObject(operation.message.bindings.get(protocolName))" fxLayout="column" fxLayoutGap="5px">
Copy link
Owner Author

Choose a reason for hiding this comment

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

I thought it might be a good idea to hide elements if they are not part of the spec (for headers and message binding). [hidden] is used instead of *ngif because ngif will not even render the components, which will result in issues with other code (ie reseting to default values)

[value]="headersExample?.value"
(keyup)="recalculateLineCount('headers', headersTextArea.value)"
></textarea>
<app-json [json]="headersExample?.value"></app-json>
Copy link
Owner Author

Choose a reason for hiding this comment

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

I switched the editable example to the message view and changed it to readonly here.


ngOnInit(): void {
this.json = JSON.stringify(this.data, null, 2);
this.json = this.json === undefined ? JSON.stringify(this.data, null, 2) : this.json;
Copy link
Owner Author

Choose a reason for hiding this comment

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

I changed the component so that it can render object or json to make it more flexible for different use cases

sam0r040 and others added 5 commits March 10, 2023 15:45
…dd header and message binding example to example tab
…he backend can use the message binding to construct a message
… creates a specification without message binding
Regression: Previously included mapped ui attributes
chore: Improve [protocol: string]: any typings

Co-authored-by: [email protected]
@sam0r040 sam0r040 force-pushed the feature/add_message_binding_to_channel_documentation branch from 3ffd54e to 967a029 Compare March 10, 2023 14:46
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.

2 participants