-
Notifications
You must be signed in to change notification settings - Fork 2
Confluence multiple pages #42
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
Conversation
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.
Mostly just nits around code readability
); | ||
|
||
const entityPages = useMemo((): EntityPageI[] => { | ||
if (!entityDefinition) return []; |
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.
Readability nits:
if (!entityDefinition) return []; | |
if (!entityDefinition) { | |
return []; | |
} |
const entityPages: EntityPageI[] = []; | ||
if (Array.isArray(entityDefinition.info?.["x-cortex-confluence"]?.pages)) { |
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.
And some spacing for readability:
const entityPages: EntityPageI[] = []; | |
if (Array.isArray(entityDefinition.info?.["x-cortex-confluence"]?.pages)) { | |
const entityPages: EntityPageI[] = []; | |
if (Array.isArray(entityDefinition.info?.["x-cortex-confluence"]?.pages)) { |
} | ||
if (entityDefinition.info?.["x-cortex-confluence"]?.pageID) { |
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.
} | |
if (entityDefinition.info?.["x-cortex-confluence"]?.pageID) { | |
} | |
if (entityDefinition.info?.["x-cortex-confluence"]?.pageID) { |
if (isLoading) return <Loading />; | ||
if (!baseConfluenceUrl) return <Instructions />; | ||
if (errorStr) return <Notice>{errorStr}</Notice>; |
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.
Same here for adding {} around return
Background
Add the ability to see multiple Confluence pages linked to an entity
This PR
This PR adds the ability to link multiple Confluence pages to a Cortex entity
Checklists
Security