Added a message about an expired license#113
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds client-side handling for non-active (e.g., expired) SpotFix licenses by requesting account_status from project_get, persisting it in localStorage, and showing a blocking message + hiding UI controls when the license isn’t active.
Changes:
- Request
account_statusviawith_account_status=1onproject_get. - Persist
account_statusinlocalStorageand gate widget UI when status is notACTIVE. - Add an error/message wrapper in the concrete issue template and update the built
distbundle.
Reviewed changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| js/src/widget.js | Shows a license-expired message and hides/disables create/report and comment UI when license status is non-active. |
| js/src/main.js | Stores the returned account_status in localStorage during initialization. |
| js/src/loaders/SpotFixTemplatesLoader.js | Adds message wrapper markup to the concrete issue template so messages can be displayed there. |
| js/src/api.js | Adds with_account_status: 1 to the project_get request payload. |
| dist/doboard-widget-bundle.js | Rebuilt bundle reflecting the source changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Glomberg
approved these changes
Jun 5, 2026
AntonV1211
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.