Skip to content

feat(license): show persistent subscription expiry notice (NEU-889) - #567

Draft
Levi080513 wants to merge 1 commit into
mainfrom
feat-NEU-889
Draft

Levi080513 wants to merge 1 commit into
mainfrom
feat-NEU-889

Conversation

@Levi080513

Copy link
Copy Markdown
Contributor

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

  • Passed all 388 test files / 3,925 tests, including the expiry rule and banner state transition.
  • Passed typecheck, lint, dependency/unused-code checks, DDU, i18n checks, and builds with both English-only resources and the Enterprise Chinese overlay.
  • The required pre-commit run --all-files attempt 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.

Show a persistent notice across authenticated pages and refresh the shared license query so renewal clears it.

Refs NEU-889
@github-actions

Copy link
Copy Markdown

DDU layer metrics

type role scene description override override share
33 92 9 1120 (+2) 243 16.2% (-0.0 pp)

Foundation

  • concept modules: license 1 -> 3

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants