Skip to content

SAS-147: Enable Usage & Billing for dev and non-prod environments - #37898

Draft
rjimeno-mz wants to merge 1 commit into
mainfrom
rjimeno/sas-147-phase-7-enable-usage-billing-for-dev-and-non-prod
Draft

SAS-147: Enable Usage & Billing for dev and non-prod environments#37898
rjimeno-mz wants to merge 1 commit into
mainfrom
rjimeno/sas-147-phase-7-enable-usage-billing-for-dev-and-non-prod

Conversation

@rjimeno-mz

@rjimeno-mz rjimeno-mz commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • useCanViewUsage now shows the Usage & Billing nav tab on any non-production stack (staging, dev, personal stacks), the same way the existing impersonation bypass already works.
  • Extracted the visibility logic into a pure canViewUsage() function, unit-tested directly.

Test plan

  • yarn typecheck / yarn lint
  • New auth.test.ts: impersonation, non-production stacks, personal dev stacks, and production plan-type gating (5 tests)
  • Full api/layouts/billing suites pass (183 tests)

Resolves SAS-147.

@linear-code

linear-code Bot commented Jul 27, 2026

Copy link
Copy Markdown

SAS-147

@rjimeno-mz rjimeno-mz changed the title Show Usage & Billing on non-production stacks SAS-147: Enable Usage & Billing for dev and non-prod environments Jul 27, 2026
@rjimeno-mz
rjimeno-mz marked this pull request as ready for review July 29, 2026 00:43
@rjimeno-mz
rjimeno-mz requested a review from a team as a code owner July 29, 2026 00:43
@rjimeno-mz
rjimeno-mz requested review from jubrad and leedqin July 29, 2026 00:43
@rjimeno-mz rjimeno-mz self-assigned this Jul 29, 2026
@rjimeno-mz
rjimeno-mz marked this pull request as draft July 29, 2026 04:29
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.

1 participant