-
Notifications
You must be signed in to change notification settings - Fork 132
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
Adding .NET docs for Events to API reference #1441
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for fdc3 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Co-authored-by: Brian Ingenito <[email protected]>
Co-authored-by: Brian Ingenito <[email protected]>
Co-authored-by: Brian Ingenito <[email protected]>
Sorry @bingenito, had to resolve the merge conflicts, could please re-review? |
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 tab selection headers are not appearing on Events.md, e.g.:
https://deploy-preview-1441--fdc3.netlify.app/docs/next/api/ref/Events
vs.
https://deploy-preview-1441--fdc3.netlify.app/docs/next/api/ref/DesktopAgent
That's probably because that page needs the following to be added at the top, right after the metadata block:
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
See DesktopAgent.md for an example.
Regarding the definitions contained in the PR, all looks good to me, but I wonder if the Details
class might need a better-scoped name such as EventDetails
or Fdc3EventDetails
. There are already two different sub-classes (both called Details
currently) for the channel changed event and Private Channel addContextListener
/unsubscribe
events, should they be better namespaced? Happy to defer to you and @bingenito on that, but thought to ask.
Co-authored-by: Kris West <[email protected]>
Thanks for the review @kriswest! Fixed the imports. I like the EventDetails idea, however, would love to hear also what @bingenito thinks! Thanks both |
I favor Fdc3EventDetails but this is also a placeholder. I've started the implementation of this (copying these as the definition) and will work out where it makes sense to change once we write tests against it and get a feel for naming. We can then circle back and update the docs to match? |
Thanks, @bingenito. Works for me, do you want to keep this open until then, or should we merge as is and it will be updated later? |
@kemerava let's hold off a bit. As I'm implementing this I'm thinking of mirroring context types and having |
Describe your change
Adding .NET docs for Events to API reference
@bingenito hope I did not steal your issue! :) I really wanted to try to give it a go, could you please review it, as I was not sure if there are better ways of implementing it in some places.
Related Issue
resolves #1318
Contributor License Agreement
Review Checklist
DesktopAgent
,Channel
,PrivateChannel
,Listener
,Bridging
)?JSDoc comments on interfaces and types should be matched to the main documentation in /docs
Conformance test definitions should cover all required aspects of an FDC3 Desktop Agent implementation, which are usually marked with a MUST keyword, and optional features (SHOULD or MAY) where the format of those features is defined
The Web Connection protocol and Desktop Agent Communication Protocol schemas must be able to support all necessary aspects of the Desktop Agent API, while Bridging must support those aspects necessary for Desktop Agents to communicate with each other
npm run build
) run and the results checked in?Generated code will be found at
/src/api/BrowserTypes.ts
and/or/src/bridging/BridgingTypes.ts
BaseContext
schema applied viaallOf
(as it is in existing types)?title
anddescription
provided for all properties defined in the schema?npm run build
) run and the results checked in?Generated code will be found at
/src/context/ContextTypes.ts