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

Canny Support #1282

Merged
merged 4 commits into from
Feb 22, 2021
Merged

Canny Support #1282

merged 4 commits into from
Feb 22, 2021

Conversation

HerrEmil
Copy link
Contributor

This PR contains 5 changes:

  • Adds a canny notifications icon and widget in the help panel
  • Adds a button with a link to canny feature request page in the help panel
  • Moves the help panel button from the top section to the bottom section of the side panel
  • Displays an unread notifications badge on the help panel button (and on the notifications button)
  • Makes the "Other Resources" section in the help panel collapsed by default with expand/collapse on click

Feb-19-2021 16-52-38

The changes can be demoed in this sandbox: http://canny.surge.sh/

Copy link
Contributor

@OskarDamkjaer OskarDamkjaer left a comment

Choose a reason for hiding this comment

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

Great to see the increase of proper types :party:

src/browser/modules/Sidebar/Sidebar.tsx Show resolved Hide resolved
'https://neo4j-browser.canny.io/feature-requests'

declare global {
interface Window {
Copy link
Contributor

Choose a reason for hiding this comment

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

second global window declared in this PR, are they automatically merged? or are they only global for this file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Typescript interfaces are merge when declare several yes, we could move this declaration to the custom file, not sure what is more structured

const e = document.createElement('script') as HTMLScriptElement
e.type = 'text/javascript'
e.async = true
e.src = 'https://canny.io/sdk.js'
Copy link
Contributor

Choose a reason for hiding this comment

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

Now this feels pretty cursed for some reason, I guess it's not much different to a normal cdn:ed dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any suggestions on how to dispel the curse?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we'll have to live with it if we want canny 🤷

@HerrEmil HerrEmil merged commit 5800cce into neo4j:master Feb 22, 2021
@HerrEmil HerrEmil deleted the canny branch February 22, 2021 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants