Skip to content

Added a message about an expired license#113

Merged
veronika-tseleva-cleantalk merged 2 commits into
devfrom
no-license-warning
Jun 5, 2026
Merged

Added a message about an expired license#113
veronika-tseleva-cleantalk merged 2 commits into
devfrom
no-license-warning

Conversation

@veronika-tseleva-cleantalk

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 07:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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_status via with_account_status=1 on project_get.
  • Persist account_status in localStorage and gate widget UI when status is not ACTIVE.
  • Add an error/message wrapper in the concrete issue template and update the built dist bundle.

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.

Comment thread js/src/widget.js
Comment thread js/src/widget.js
Comment thread js/src/main.js Outdated
@veronika-tseleva-cleantalk veronika-tseleva-cleantalk merged commit 9cce355 into dev Jun 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants