-
Notifications
You must be signed in to change notification settings - Fork 33
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
[MOB-9676] docs and doc generator #610
[MOB-9676] docs and doc generator #610
Conversation
…ackage.json for documentation generation; make properties in IterableInAppMessage optional for better flexibility.
…; update ESLint configuration to include TSDoc syntax rule
…and to package.json; enhance Iterable class documentation and export additional types for improved type safety.
…ing; update README and configuration files accordingly.
…config.mjs with updated settings; enhance README and add comments to IterableAuthResponseResult enum
… improve usability and clarity
…p descriptions and examples for IterableInbox, IterableInboxEmptyState, IterableInboxMessageCell, IterableInboxMessageDisplay, and IterableInboxMessageList to improve clarity and usability.
…n hooks: add detailed comments, examples, and interface definition for better clarity and usability.
…ions and comments for IterableInboxImpressionRowInfo, IterableInboxRowViewModel, and IterableInboxCustomizations interfaces to improve clarity and usability.
…classes: add detailed descriptions, constructor comments, and improve clarity for properties. Update IterableInboxImpressionRowInfo interface documentation.
…bleLogger, and IterableUtil classes: add detailed descriptions, constructor comments, and examples to improve clarity and usability.
…e class: add detailed descriptions, constructor comments, and examples to improve clarity and usability. Documentation based on iterable public documentation.
…ep linking examples, and update parameter descriptions for better understanding.
…d update Iterable example formatting
… descriptions, clarify usage, and improve overall clarity and usability.
…or IterableInAppTrigger, IterableInAppContentType, IterableInAppTriggerType, and IterableInAppContent; update package.json for simplified docs command.
…ndleAuthFailureCalled description
…prove usability, and remove TODOs for better understanding.
…et notDocumented to true
…0.0-alpha/MOB-9676-new-doc-generator
…0.0-alpha/MOB-9676-new-doc-generator
…0.0-alpha/MOB-9676-new-doc-generator
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.
Generally looks good. Lots of nit picks and small changes.
saveToInbox: boolean; | ||
inboxMetadata: { | ||
createdAt?: number; | ||
expiresAt?: number; |
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.
In the android SDK, createdAt, expiresAt, customPayload, and priorityLevel are non null. We need to think about if we want to make these optional.
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.
GREAT point. Let me think about it. I'll likely change.
type IterableInboxCustomizations, | ||
type IterableInboxEmptyStateProps, | ||
type IterableInboxImpressionRowInfo, | ||
type IterableInboxMessageCellProps, | ||
type IterableInboxProps, |
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.
Strange why were all these imports added here?
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.
These were needed for the docs generator. It will only document public components.
typedoc.json
Outdated
"excludeReferences": false, | ||
"includeFolders": false | ||
}, | ||
} |
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.
What is this for?
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.
This is configuration for the documentation generator
@@ -115,7 +115,7 @@ export class IterableInAppManager { | |||
* If set to false, the SDK will immediately retrieve and process in-app messages from the message queue. | |||
* The default value of isAutoDisplayPaused is false (in the native code). | |||
* | |||
* @param {boolean} paused whether the automatic displaying should be paused |
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.
Is there a reason all the types were removed from description?
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.
They're meant to be left out in typescript -- the doc generator adds them automatically
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.
Added pic for reference for IterableAction
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.
Looking good. Went through the PR comments in a call :)
🔹 JIRA Ticket(s) if any
✏️ Description
Added documentation and a doc generator (though we're not currently serving the docs anywhere)