Skip to content

fix: make EE feature gating trial-aware - #370

Merged
vincentgrobler merged 1 commit into
mainfrom
fix/trial-ee-features
Apr 23, 2026
Merged

fix: make EE feature gating trial-aware#370
vincentgrobler merged 1 commit into
mainfrom
fix/trial-ee-features

Conversation

@vincentgrobler

@vincentgrobler vincentgrobler commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

Description

The 7-day trial sets trial_expires_at but didn't affect useEELicense, so Orchestrator/Collaboration modes were still locked for trial users.

Changes:

  • Import useWorkspace into useEELicense hook
  • When no ee_licenses row exists, fall back to effectivePlan (which is 'team' during trial) instead of always 'free'
  • Remove early return on !license — plan-level checks now work without an explicit license row
  • Trial users can now access all Team-tier features for 7 days

Related Issue

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation update
  • ♻️ Refactor (no functional changes)
  • 🧪 Test update

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Browser testing (specify browsers)

Screenshots (if applicable)

Checklist

  • My code follows the project's coding standards
  • I have run npm run lint and there are no errors
  • I have run npm run test and all tests pass
  • I have added tests for my changes (if applicable)
  • I have updated the documentation (if applicable)
  • My source files have AGPL licence headers
  • My changes generate no new TypeScript errors

The 7-day trial sets trial_expires_at but didn't affect useEELicense,
so Orchestrator/Collaboration modes were still locked for trial users.

Changes:
- Import useWorkspace into useEELicense hook
- When no ee_licenses row exists, fall back to effectivePlan (which is
  'team' during trial) instead of always 'free'
- Remove early return on !license — plan-level checks now work without
  an explicit license row
- Trial users can now access all Team-tier features for 7 days
@vercel

vercel Bot commented Apr 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crewform Ready Ready Preview, Comment Apr 23, 2026 11:51am

@vincentgrobler
vincentgrobler merged commit 6c7d08e into main Apr 23, 2026
8 checks passed
@vincentgrobler
vincentgrobler deleted the fix/trial-ee-features branch April 23, 2026 11:54
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