fix: add Enter Enterprise License Key action#7159
Conversation
There was a problem hiding this comment.
The PR adds license key functionality for the IntelliJ extension. The implementation has a critical logic error where success and error notifications are swapped, and there are several other issues including potential null pointer exceptions, missing EOF newlines, and hardcoded values that should be constants.
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Show resolved
Hide resolved
Code Review Summary✅ Strengths
|
|
@sestinj, I've decided to end with Restart IDE just so we can ship this quickly (I'm absent tomorrow), but we can think next week about improving that. |
|
I fixed a few things. The bot caught a few potential problems. |
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Show resolved
Hide resolved
Code Review Summary✅ Strengths
|
Solves CON-3473 Notes: * I don't have a license key, so I haven't fully tested this, but looking at the TypeScript: true in the response means it's valid, and false means it's not * Extra: I added Try Again because I noticed that searching for the action every time the key is invalid is inconvenient * I wasn't sure if restarting the IDE is safe without more testing, so I ended with Restart IDE action (it was much faster to implement)
|
🎉 This PR is included in version 1.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Solves CON-3473
Notes:
truein the response means it's valid, andfalsemeans it's notGIFs
Invalid
Valid
Summary by cubic
Added an "Enter Enterprise License Key" action to IntelliJ for setting and validating license keys. Users get instant feedback, with options to retry or restart the IDE as needed.