Repository navigation
feat(license): show persistent subscription expiry notice (NEU-889) - #567
Draft
Levi080513 wants to merge 1 commit into
Draft
Levi080513 wants to merge 1 commit into
Levi080513 wants to merge 1 commit into
Conversation
Show a persistent notice across authenticated pages and refresh the shared license query so renewal clears it. Refs NEU-889
DDU layer metrics
Foundation
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Issues
NEU-889
Changes
Show a persistent, non-dismissible banner across authenticated pages when the server reports an expired subscription. Poll the shared license query every 60 seconds in the foreground and clear the notice after renewal refreshes that query. A temporary query failure retains the last confirmed expiry notice. Trial expiry, invalid licenses, and OSS installations do not show this subscription notice.
Add the English message, update the license contracts and i18n tracker, and retain the existing license page and workspace-limit behavior. The Chinese locale overlay and backend expiry policy are provided by neutree-enterprise#331.
User-visible changes
subscription-expiry-notice: a prominent banner remains visible while navigating or scrolling authenticated pages until the subscription is renewed.Test
Unit test
pre-commit run --all-filesattempt returned 127 because the command is not installed. The repository's actual Husky commit hook passed, including typecheck, dependency checks, knip, lint-staged, i18n, and DDU.DB test
Not applicable: no SQL or schema changes.
E2E test
Three local Playwright browser scenarios passed against the production build with mock HTTP APIs: cross-page/scroll visibility, one polling request per interval with both query observers mounted, temporary query errors, renewal refresh, trial/invalid/OSS exclusions, and the Chinese message. Desktop and narrow-screen screenshots were visually checked. No live control-plane or GPU E2E was run; no additional manual testing is needed for the covered browser behavior.