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

Replace Canny with Nolt (closes #775) #1107

Open
wants to merge 7 commits into
base: the-future
Choose a base branch
from

Conversation

matthewdias
Copy link
Contributor

@matthewdias matthewdias commented Oct 21, 2020

👢 🗑️

I've observed an issue here where moment timezone doesn't seem to get imported properly and it breaks the _getCurrentUser method in the application route. Not sure if it's something weird on my end so would appreciate if whoever reviews this could check if that works for them. Dunno if the discussion here is related: #775

@matthewdias matthewdias changed the title Replace Canny with Nolt Replace Canny with Nolt (closes #775) Oct 21, 2020
@@ -13,15 +13,14 @@ function adwords() {
}

/**
* Inject Canny's SDK script into the `head` on initialization.
* Inject Nolt's SDK script into the `head` on initialization.
Copy link
Member

Choose a reason for hiding this comment

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

LOL

@toyhammered
Copy link
Member

Thank you for doing this!

@wopian
Copy link
Member

wopian commented Oct 21, 2020

SSO (with nolt('identify', { jwt: token })) doesn't seem to happen when logged in on Kitsu

Edit: Nvm, looks like it's calling a query that hasn't been merged/deployed on production

image

Rather than data.authenticated.access_token
@matthewdias
Copy link
Contributor Author

Ah yep my bad forgot to note it uses this branch. https://github.com/hummingbird-me/kitsu-server/tree/nuck/nolt-sso
Will get that updated to relocate the token in the graphql schema

@NuckChorris
Copy link
Member

lmk when you've got that branch updated and I can give it 👀 pretty quick

@wopian
Copy link
Member

wopian commented Oct 22, 2020

LGTM! Don't merge until the server side has been deployed to production yet though - I deploy the-future to production regularly with translation updates

@wopian
Copy link
Member

wopian commented Oct 22, 2020

Waiting on hummingbird-me/kitsu-server#869

@wopian wopian added javascript Pull requests that update Javascript code type:enhancement labels Oct 22, 2020
Copy link
Member

@NuckChorris NuckChorris left a comment

Choose a reason for hiding this comment

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

Do we want to set up the "remote Login URL" thing? https://nolt.io/help/single-sign-on

<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle {{if isFeedbackRoute "active"}}" href="#" data-toggle="dropdown" data-href-to-ignore=true>
<li class="nav-item nolt-button">
<a class="nav-link" href="#" data-href-to-ignore=true>
Copy link
Member

Choose a reason for hiding this comment

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

We should probably link this to https://feedback.kitsu.io/ to still function in case the Nolt widget breaks or gets blocked

<div class="dropdown-menu">
<a class="dropdown-item" href={{href-to "feedback.bugs"}}>{{t "feedback.bugs"}}</a>
<a class="dropdown-item" href={{href-to "feedback.feature-requests"}}>{{t "feedback.features"}}</a>
<a class="dropdown-item" href="https://kitsu-stuff.com" target="_blank" rel="noopener">{{t "feedback.database"}}</a>
Copy link
Member

Choose a reason for hiding this comment

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

We still need this 😅

Copy link
Member

Choose a reason for hiding this comment

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

I'm shocked I didn't notice this

@@ -137,5 +139,8 @@
},
"resolutions": {
"ember-power-select/ember-concurrency": "0.8.27"
},
"dependencies": {
"@apollo/client": "^3.1.1"
Copy link
Member

Choose a reason for hiding this comment

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

Is this supposed to be a devDependency like the others? Ember is weird

this._super(...arguments);

nolt('init', {
selector: '.nolt-button',
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm. Would it be better to create a component that detects its own id and uses that to build a selector?

@wopian wopian self-requested a review October 29, 2020 01:11
@wopian
Copy link
Member

wopian commented Oct 29, 2020

Do we want to set up the "remote Login URL" thing? nolt.io/help/single-sign-on

We probably want to do this. The canny integration has started getting spammed by non-Kitsu accounts over the past year which I've had to delete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code type:enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants