feat(prices): useIsPremium hook (#157) #164

Merged
maximus merged 1 commit from issue-157-use-is-premium into main 2026-04-28 01:06:36 +00:00
Owner

Summary

  • Trivial wrapper over useLicense().state.edition === 'premium'
  • Ergonomic at call sites + simplifies test mocking in #158
  • 3 vitest tests (premium / base / free)
  • CLAUDE.md hook count updated to 13

Test plan

  • npx tsc --noEmit clean
  • npx vitest run src/hooks/useIsPremium.test.ts 3/3 green

Closes #157

Generated autonomously by /autopilot run of 2026-04-27

## Summary - Trivial wrapper over `useLicense().state.edition === 'premium'` - Ergonomic at call sites + simplifies test mocking in #158 - 3 vitest tests (premium / base / free) - CLAUDE.md hook count updated to 13 ## Test plan - [x] `npx tsc --noEmit` clean - [x] `npx vitest run src/hooks/useIsPremium.test.ts` 3/3 green Closes #157 Generated autonomously by /autopilot run of 2026-04-27
maximus added 1 commit 2026-04-27 12:11:35 +00:00
feat(prices): useIsPremium hook from license.edition
All checks were successful
PR Check / rust (push) Successful in 26m18s
PR Check / frontend (push) Successful in 2m37s
PR Check / rust (pull_request) Successful in 25m0s
PR Check / frontend (pull_request) Successful in 2m41s
98f68f7a1f
- Reads useLicense().state.edition === 'premium'
- Ergonomic only — server enforces independently (ADR 0011)
- 3 vitest tests (premium, base, free)
- CLAUDE.md hook count 12 -> 13

Closes #157
maximus added the
autopilot:pending-human
status:approved
type:feature
labels 2026-04-27 12:11:41 +00:00
maximus merged commit 01cfbdba8b into main 2026-04-28 01:06:36 +00:00
maximus deleted branch issue-157-use-is-premium 2026-04-28 01:06:36 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: maximus/Simpl-Resultat#164
No description provided.